hutch 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5a5e2b2315f71a38d34043446034950e26c63612
4
- data.tar.gz: 24f650b6681c6c7c18e5a9a067666155edae4d2d
3
+ metadata.gz: db5d3539145e0b5196542b4157d4262045f4e414
4
+ data.tar.gz: 072daf962f5ff1cd2c63278b97bd2d11efcd37e0
5
5
  SHA512:
6
- metadata.gz: ffdefefec637a9ad46fb00207a74c78210fcc167c0dbfe6c34a91da32ec5499ea67c07f12a68af1ac0ea7e9d23a9df7b33690a9c68d9a4b765897533fcc37d18
7
- data.tar.gz: ac34de5ef0600b31a6f3614de06508cca2c47406371a9137f43458a2533996cac906a47825c45230b5bb887633dbc15b2c859fb1bae477b77149c221e5b6f198
6
+ metadata.gz: fd18ffdbf03f1bbc8f18e9bbb71a3e92937392873c482ed1a2ba2bf7ccb6fc1b8e03ad1ed6dee2e1b09e03dfee6c15e59b4f8311c882a9b95e19c5cdb88d90c8
7
+ data.tar.gz: 241814297de25974719b07d728fb236df4b3de062997c033d50e79223bbb0609bb331f45d563efc8206ded3b0d2722583bb87e1b160a0e8a5a8744b0838a57ca
data/.travis.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
+ - "2.1.0"
3
4
  - "2.0.0"
4
5
  - "1.9.3"
5
6
  services:
data/CHANGELOG.md CHANGED
@@ -1,4 +1,32 @@
1
- ## 0.8.0 — unreleased
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
@@ -4,5 +4,5 @@ require_relative '../lib/hutch'
4
4
  require_relative '../lib/hutch/cli'
5
5
 
6
6
  cli = Hutch::CLI.new
7
- cli.run
7
+ cli.run(ARGV)
8
8
 
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.2'
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[:mq_tls_cert]
56
- tls_cert = @config[:mq_tls_key]
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
@@ -9,8 +9,8 @@ module Hutch
9
9
  include Logging
10
10
 
11
11
  # Run a Hutch worker with the command line interface.
12
- def run
13
- parse_options
12
+ def run(argv = ARGV)
13
+ parse_options(argv)
14
14
 
15
15
  Hutch.logger.info "hutch booted with pid #{Process.pid}"
16
16
 
data/lib/hutch/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Hutch
2
- VERSION = '0.8.0'.freeze
2
+ VERSION = '0.9.0'.freeze
3
3
  end
4
4
 
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.8.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-02-13 00:00:00.000000000 Z
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.2
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.2
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.1.11
149
+ rubygems_version: 2.2.2
150
150
  signing_key:
151
151
  specification_version: 4
152
152
  summary: Easy inter-service communication using RabbitMQ.