queueing_rabbit 0.3.9 → 0.3.10
Sign up to get free protection for your applications and to get access to all the features.
@@ -40,7 +40,8 @@ module QueueingRabbit
|
|
40
40
|
|
41
41
|
def open_channel(options = {})
|
42
42
|
ch = connection.create_channel
|
43
|
-
ch.
|
43
|
+
ch.prefetch(options[:prefetch]) if options[:prefetch]
|
44
|
+
ch.confirm_select if options[:use_publisher_confirms]
|
44
45
|
yield ch, nil
|
45
46
|
ch
|
46
47
|
end
|
@@ -36,12 +36,13 @@ describe QueueingRabbit::Client::Bunny do
|
|
36
36
|
it { should be }
|
37
37
|
|
38
38
|
describe '#open_channel' do
|
39
|
-
let(:options) { {:use_publisher_confirms => true} }
|
39
|
+
let(:options) { {:use_publisher_confirms => true, :prefetch => 42} }
|
40
40
|
let(:channel) { mock }
|
41
41
|
|
42
42
|
before do
|
43
43
|
connection.should_receive(:create_channel).and_return(channel)
|
44
44
|
channel.should_receive(:confirm_select)
|
45
|
+
channel.should_receive(:prefetch).with(42)
|
45
46
|
end
|
46
47
|
|
47
48
|
it 'creates a channel and yields it' do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: queueing_rabbit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.10
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-01-
|
12
|
+
date: 2014-01-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: amqp
|
@@ -174,7 +174,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
174
174
|
version: '0'
|
175
175
|
segments:
|
176
176
|
- 0
|
177
|
-
hash: -
|
177
|
+
hash: -1201733101669835717
|
178
178
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
179
179
|
none: false
|
180
180
|
requirements:
|
@@ -183,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
183
183
|
version: '0'
|
184
184
|
segments:
|
185
185
|
- 0
|
186
|
-
hash: -
|
186
|
+
hash: -1201733101669835717
|
187
187
|
requirements: []
|
188
188
|
rubyforge_project:
|
189
189
|
rubygems_version: 1.8.23
|