hutch 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/CHANGELOG.md +31 -1
- data/bin/hutch +1 -1
- data/hutch.gemspec +1 -1
- data/lib/hutch/broker.rb +2 -2
- data/lib/hutch/cli.rb +2 -2
- data/lib/hutch/version.rb +1 -1
- data/lib/hutch/worker.rb +1 -1
- metadata +5 -5
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: db5d3539145e0b5196542b4157d4262045f4e414
         | 
| 4 | 
            +
              data.tar.gz: 072daf962f5ff1cd2c63278b97bd2d11efcd37e0
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: fd18ffdbf03f1bbc8f18e9bbb71a3e92937392873c482ed1a2ba2bf7ccb6fc1b8e03ad1ed6dee2e1b09e03dfee6c15e59b4f8311c882a9b95e19c5cdb88d90c8
         | 
| 7 | 
            +
              data.tar.gz: 241814297de25974719b07d728fb236df4b3de062997c033d50e79223bbb0609bb331f45d563efc8206ded3b0d2722583bb87e1b160a0e8a5a8744b0838a57ca
         | 
    
        data/.travis.yml
    CHANGED
    
    
    
        data/CHANGELOG.md
    CHANGED
    
    | @@ -1,4 +1,32 @@ | |
| 1 | 
            -
            ## 0. | 
| 1 | 
            +
            ## 0.9.0 — unreleased
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            ### Platform-aware Signal Registration
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            Hutch will no longer attempt to register signal traps
         | 
| 6 | 
            +
            for signals not supported by the environment (e.g. on by certain OSes).
         | 
| 7 | 
            +
             | 
| 8 | 
            +
            Contributed by Tobias Matthies.
         | 
| 9 | 
            +
             | 
| 10 | 
            +
            ### TLS Fixes
         | 
| 11 | 
            +
             | 
| 12 | 
            +
            Hutch now properly passes client TLS key and certificate to
         | 
| 13 | 
            +
            Bunny.
         | 
| 14 | 
            +
             | 
| 15 | 
            +
            Contributed by Eric Nelson.
         | 
| 16 | 
            +
             | 
| 17 | 
            +
            ### Bunny Update
         | 
| 18 | 
            +
             | 
| 19 | 
            +
            Bunny is updated to 1.2.x which should offer
         | 
| 20 | 
            +
            [much better latency](https://github.com/ruby-amqp/bunny/pull/187) for
         | 
| 21 | 
            +
            workloads with lots of small messages published frequently.
         | 
| 22 | 
            +
             | 
| 23 | 
            +
            ### More Unit Testing Friendly CLI/Runner
         | 
| 24 | 
            +
             | 
| 25 | 
            +
            `Hutch::CLI#run` now accepts a parameter and is easier to use
         | 
| 26 | 
            +
            in automated tests.
         | 
| 27 | 
            +
             | 
| 28 | 
            +
             | 
| 29 | 
            +
            ## 0.8.0 — February 13, 2014
         | 
| 2 30 |  | 
| 3 31 | 
             
            ### Uncaught Exceptions Result in Rejected Messages
         | 
| 4 32 |  | 
| @@ -12,6 +40,8 @@ Contributed by Garrett Johnson. | |
| 12 40 | 
             
            `hutch/consumer.rb` no longer fails to load with the
         | 
| 13 41 | 
             
            apps that do not `require "set"`.
         | 
| 14 42 |  | 
| 43 | 
            +
            Contributed by Garrett Johnson.
         | 
| 44 | 
            +
             | 
| 15 45 | 
             
            ### Relaxed Queue Namespace Validation
         | 
| 16 46 |  | 
| 17 47 | 
             
            Namespaces now can include any characters that are valid in RabbitMQ
         | 
    
        data/bin/hutch
    CHANGED
    
    
    
        data/hutch.gemspec
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            require File.expand_path('../lib/hutch/version', __FILE__)
         | 
| 2 2 |  | 
| 3 3 | 
             
            Gem::Specification.new do |gem|
         | 
| 4 | 
            -
              gem.add_runtime_dependency 'bunny', '~> 1.1 | 
| 4 | 
            +
              gem.add_runtime_dependency 'bunny', '~> 1.2.1'
         | 
| 5 5 | 
             
              gem.add_runtime_dependency 'carrot-top', '~> 0.0.7'
         | 
| 6 6 | 
             
              gem.add_runtime_dependency 'multi_json', '~> 1.5'
         | 
| 7 7 | 
             
              gem.add_development_dependency 'rspec', '~> 2.12.0'
         | 
    
        data/lib/hutch/broker.rb
    CHANGED
    
    | @@ -52,8 +52,8 @@ module Hutch | |
| 52 52 | 
             
                  username = @config[:mq_username]
         | 
| 53 53 | 
             
                  password = @config[:mq_password]
         | 
| 54 54 | 
             
                  tls      = @config[:mq_tls]
         | 
| 55 | 
            -
                  tls_key  = @config[: | 
| 56 | 
            -
                  tls_cert = @config[: | 
| 55 | 
            +
                  tls_key  = @config[:mq_tls_key]
         | 
| 56 | 
            +
                  tls_cert = @config[:mq_tls_cert]
         | 
| 57 57 | 
             
                  protocol = tls ? "amqps://" : "amqp://"
         | 
| 58 58 | 
             
                  sanitized_uri = "#{protocol}#{username}@#{host}:#{port}/#{vhost.sub(/^\//, '')}"
         | 
| 59 59 | 
             
                  logger.info "connecting to rabbitmq (#{sanitized_uri})"
         | 
    
        data/lib/hutch/cli.rb
    CHANGED
    
    
    
        data/lib/hutch/version.rb
    CHANGED
    
    
    
        data/lib/hutch/worker.rb
    CHANGED
    
    | @@ -30,7 +30,7 @@ module Hutch | |
| 30 30 | 
             
                # gracefully. Forceful shutdowns are very bad!
         | 
| 31 31 | 
             
                def register_signal_handlers
         | 
| 32 32 | 
             
                  Thread.main[:signal_queue] = []
         | 
| 33 | 
            -
                  %w(QUIT TERM INT).map(&:to_sym).each do |sig|
         | 
| 33 | 
            +
                  %w(QUIT TERM INT).keep_if { |s| Signal.list.keys.include? s }.map(&:to_sym).each do |sig|
         | 
| 34 34 | 
             
                    # This needs to be reentrant, so we queue up signals to be handled
         | 
| 35 35 | 
             
                    # in the run loop, rather than acting on signals here
         | 
| 36 36 | 
             
                    trap(sig) do
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: hutch
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0. | 
| 4 | 
            +
              version: 0.9.0
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Harry Marr
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2014- | 
| 11 | 
            +
            date: 2014-05-13 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: bunny
         | 
| @@ -16,14 +16,14 @@ dependencies: | |
| 16 16 | 
             
                requirements:
         | 
| 17 17 | 
             
                - - ~>
         | 
| 18 18 | 
             
                  - !ruby/object:Gem::Version
         | 
| 19 | 
            -
                    version: 1.1 | 
| 19 | 
            +
                    version: 1.2.1
         | 
| 20 20 | 
             
              type: :runtime
         | 
| 21 21 | 
             
              prerelease: false
         | 
| 22 22 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 23 23 | 
             
                requirements:
         | 
| 24 24 | 
             
                - - ~>
         | 
| 25 25 | 
             
                  - !ruby/object:Gem::Version
         | 
| 26 | 
            -
                    version: 1.1 | 
| 26 | 
            +
                    version: 1.2.1
         | 
| 27 27 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 28 28 | 
             
              name: carrot-top
         | 
| 29 29 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| @@ -146,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 146 146 | 
             
                  version: '0'
         | 
| 147 147 | 
             
            requirements: []
         | 
| 148 148 | 
             
            rubyforge_project: 
         | 
| 149 | 
            -
            rubygems_version: 2. | 
| 149 | 
            +
            rubygems_version: 2.2.2
         | 
| 150 150 | 
             
            signing_key: 
         | 
| 151 151 | 
             
            specification_version: 4
         | 
| 152 152 | 
             
            summary: Easy inter-service communication using RabbitMQ.
         |