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 +4 -4
- data/ChangeLog.md +8 -0
- data/lib/bunny/consumer_work_pool.rb +5 -2
- data/lib/bunny/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35954f10d50b533a9e79fb1cd430c95ada76db3b
|
4
|
+
data.tar.gz: d52460ee91afe787083bb40421aa4ebee4e9a2b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ba39c8aa2280f5d84fd63171cd44f2252e3a1391647a6661e84d953dc6255e17ba73c81e9d6f1b83cedeef81acea4c03d6ea0fc0923e94a7275e6906f771ac7
|
7
|
+
data.tar.gz: c6c39c7e4f80423121b1338ee29ead5a6297580fd4e47f58f16de1f85d67c10728506749fca0af9be0a9bba14a4d22e71981dd0f0f941a21f53c10be5f5e1a93
|
data/ChangeLog.md
CHANGED
@@ -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
|
data/lib/bunny/version.rb
CHANGED
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.
|
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-
|
15
|
+
date: 2013-09-13 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: amq-protocol
|