Skip to content
Snippets Groups Projects
  1. Dec 23, 2024
  2. Dec 22, 2024
  3. Dec 21, 2024
  4. Dec 20, 2024
  5. Dec 16, 2024
  6. Dec 14, 2024
  7. Dec 13, 2024
  8. Dec 11, 2024
  9. Dec 10, 2024
  10. Dec 06, 2024
    • cleemy desu wayo's avatar
      Modify: change the way of uniqueness of msgid · f454edc4
      cleemy desu wayo authored
      For msgid, it has been changed to be unique within the Outvoke
      object rather than unique within the data source.
      
      OutvokeDataSource#generate_new_msgid has been removed and
      Outvoke#generate_new_msgid has appeared instead.
      f454edc4
  11. Dec 05, 2024
  12. Dec 04, 2024
  13. Dec 03, 2024
  14. Dec 02, 2024
  15. Dec 01, 2024
  16. Nov 27, 2024
    • cleemy desu wayo's avatar
      43394346
    • cleemy desu wayo's avatar
      Modify: add new builtin data source "web-001" (experimental) · 535f5755
      cleemy desu wayo authored
      This commit adds simple web server functionality.
      
      It is more for one-liners.
      
      If the ring method is defined in outvoke.conf.rb and port 8080
      is free, then if you start Outoke as follows and then access
      lodalhost:8080 via HTTP, you will hear a sound each time you
      access.
      
        ./outvoke.rb -e 'hookweb{ring}'
      
      It may be more convenient to do it as follows:
      
        ./outvoke.rb -e 'hookweb{ring; "ok"}'
      
      The following example displays the request headers in an
      easy-to-read format.
      
        ./outvoke.rb -e 'hookweb{ _1.req.header.to_yaml }'
      
      You can change the port by doing the following outside the
      block passed to the hook.
      
      $outvoke["web-001"].port = 8081
      
      You can also put the above line in outvoke.conf.rb.
      
      The data source “web-001” uses the following features recently
      added to Outvoke:
      
        - post_procs (20f8d9c1)
        - attachment (d558e477)
        - msgid (0c1a0563)
        - new instance variable "ds" (835cc873)
        - new instance variable "outvoke" (bf184875)
        - OutvokeDataSource#generate_context (698e59bc)
      
      This commit is also related to 1c328546 which changed to use
      Object#to_yaml instead of Marshal.#dump. Because both
      WEBrick::HTTPRequest objects and WEBrick::HTTPResponse objects
      cause errors when Marshal.#dump.
      535f5755
Loading