bunny 0.10.6 → 0.10.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 469097034b953e5817f30fe77c213b72ae8cbbff
4
- data.tar.gz: 9810b8fd87d11421cbd3ad48d32597fec5ab7856
3
+ metadata.gz: 35954f10d50b533a9e79fb1cd430c95ada76db3b
4
+ data.tar.gz: d52460ee91afe787083bb40421aa4ebee4e9a2b4
5
5
  SHA512:
6
- metadata.gz: ff03cb7eefd3abe762516596ea948f9ef0c2779213dc07ebd373fa2a7864d6635c3b46610efdb7400704d74ae5139ed82b765fbf4b8d86a226900679f3bfdd07
7
- data.tar.gz: b3d303b9a4817c96e07ec37e0b913b116184a25b6c082592e0dcaa9333f1f67587226cf2052ecf49889420e6fb9a71baf3e2652ef26c75feb0eed604621f4f89
6
+ metadata.gz: 8ba39c8aa2280f5d84fd63171cd44f2252e3a1391647a6661e84d953dc6255e17ba73c81e9d6f1b83cedeef81acea4c03d6ea0fc0923e94a7275e6906f771ac7
7
+ data.tar.gz: c6c39c7e4f80423121b1338ee29ead5a6297580fd4e47f58f16de1f85d67c10728506749fca0af9be0a9bba14a4d22e71981dd0f0f941a21f53c10be5f5e1a93
@@ -1,3 +1,11 @@
1
+ ## Changes between Bunny 0.10.6 and 0.10.7
2
+
3
+ ### Add timeout Bunny::ConsumerWorkPool#join
4
+
5
+ `Bunny::ConsumerWorkPool#join` now accepts an optional
6
+ timeout argument.
7
+
8
+
1
9
  ## Changes between Bunny 0.10.5 and 0.10.6
2
10
 
3
11
  ### Respect RABBITMQ_URL value
@@ -4,6 +4,8 @@ module Bunny
4
4
  # Thread pool that dispatches consumer deliveries. Not supposed to be shared between channels
5
5
  # or threads.
6
6
  #
7
+ # Every channel its own consumer pool.
8
+ #
7
9
  # @private
8
10
  class ConsumerWorkPool
9
11
 
@@ -11,6 +13,7 @@ module Bunny
11
13
  # API
12
14
  #
13
15
 
16
+ attr_reader :threads
14
17
  attr_reader :size
15
18
 
16
19
  def initialize(size = 1)
@@ -48,8 +51,8 @@ module Bunny
48
51
  end
49
52
  end
50
53
 
51
- def join
52
- @threads.each { |t| t.join }
54
+ def join(timeout = nil)
55
+ @threads.each { |t| t.join(timeout) }
53
56
  end
54
57
 
55
58
  def pause
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Bunny
4
4
  # @return [String] Version of the library
5
- VERSION = "0.10.6"
5
+ VERSION = "0.10.7"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bunny
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.6
4
+ version: 0.10.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Duncan
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2013-09-05 00:00:00.000000000 Z
15
+ date: 2013-09-13 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: amq-protocol