hot_bunnies 1.3.1-java → 1.3.2-java
Sign up to get free protection for your applications and to get access to all the features.
data/lib/hot_bunnies/queue.rb
CHANGED
@@ -84,11 +84,18 @@ module HotBunnies
|
|
84
84
|
def cancel
|
85
85
|
raise 'Can\'t cancel: the subscriber haven\'t received an OK yet' if !@subscriber || !@subscriber.consumer_tag
|
86
86
|
@channel.basic_cancel(@subscriber.consumer_tag)
|
87
|
-
|
87
|
+
|
88
|
+
maybe_shutdown_executor
|
88
89
|
end
|
89
90
|
|
90
91
|
private
|
91
92
|
|
93
|
+
def maybe_shutdown_executor
|
94
|
+
if @executor && @shut_down_executor
|
95
|
+
@executor.shutdown
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
92
99
|
def run(&block)
|
93
100
|
@subscriber = BlockingSubscriber.new(@channel, self)
|
94
101
|
@channel.basic_consume(@queue_name, !@ack, @subscriber.consumer)
|
data/lib/hot_bunnies/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hot_bunnies
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 1.3.
|
9
|
+
- 2
|
10
|
+
version: 1.3.2
|
11
11
|
platform: java
|
12
12
|
authors:
|
13
13
|
- Theo Hultberg
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-11-
|
19
|
+
date: 2011-11-15 00:00:00 Z
|
20
20
|
dependencies: []
|
21
21
|
|
22
22
|
description: A object oriented interface to RabbitMQ that uses the Java driver under the hood
|