bunny 0.9.0.pre3 → 0.9.0.pre4
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -0
- data/ChangeLog.md +56 -1
- data/README.md +96 -30
- data/bunny.gemspec +1 -1
- data/examples/connection/heartbeat.rb +3 -3
- data/examples/connection/unknown_host.rb +2 -2
- data/examples/guides/getting_started/hello_world.rb +1 -2
- data/examples/guides/queues/redeliveries.rb +79 -0
- data/lib/bunny/authentication/credentials_encoder.rb +37 -0
- data/lib/bunny/authentication/external_mechanism_encoder.rb +26 -0
- data/lib/bunny/authentication/plain_mechanism_encoder.rb +17 -0
- data/lib/bunny/channel.rb +44 -22
- data/lib/bunny/consumer.rb +5 -1
- data/lib/bunny/delivery_info.rb +3 -2
- data/lib/bunny/exceptions.rb +7 -1
- data/lib/bunny/exchange.rb +6 -3
- data/lib/bunny/heartbeat_sender.rb +7 -3
- data/lib/bunny/queue.rb +16 -3
- data/lib/bunny/session.rb +28 -14
- data/lib/bunny/transport.rb +8 -1
- data/lib/bunny/version.rb +1 -1
- data/spec/higher_level_api/integration/basic_cancel_spec.rb +43 -0
- data/spec/higher_level_api/integration/connection_spec.rb +2 -7
- data/spec/higher_level_api/integration/consumer_cancellation_notification_spec.rb +1 -1
- data/spec/higher_level_api/integration/exchange_declare_spec.rb +21 -6
- data/spec/higher_level_api/integration/exchange_delete_spec.rb +47 -2
- data/spec/higher_level_api/integration/message_properties_access_spec.rb +95 -0
- data/spec/higher_level_api/integration/publisher_confirms_spec.rb +4 -3
- data/spec/issues/issue78_spec.rb +73 -0
- data/spec/lower_level_api/integration/basic_cancel_spec.rb +6 -1
- metadata +177 -160
@@ -276,7 +276,7 @@ describe Bunny::Session do
|
|
276
276
|
|
277
277
|
|
278
278
|
context "initialized with :host => 127.0.0.1 and non-default credentials (take 2)" do
|
279
|
-
after :
|
279
|
+
after :all do
|
280
280
|
subject.close if subject.open?
|
281
281
|
end
|
282
282
|
|
@@ -304,11 +304,6 @@ describe Bunny::Session do
|
|
304
304
|
props["platform"].should_not be_nil
|
305
305
|
props["version"].should_not be_nil
|
306
306
|
props["capabilities"].should_not be_nil
|
307
|
-
end
|
308
|
-
|
309
|
-
it "uses provided heartbeat interval" do
|
310
|
-
subject.start
|
311
|
-
subject.should be_connected
|
312
307
|
|
313
308
|
# this is negotiated with RabbitMQ, so we need to
|
314
309
|
# establish the connection first
|
@@ -331,7 +326,7 @@ describe Bunny::Session do
|
|
331
326
|
|
332
327
|
it "fails to connect" do
|
333
328
|
lambda do
|
334
|
-
subject.start
|
329
|
+
subject.start
|
335
330
|
end.should raise_error(Bunny::PossibleAuthenticationFailureError)
|
336
331
|
end
|
337
332
|
|
@@ -62,7 +62,7 @@ describe Bunny::Channel do
|
|
62
62
|
ch2 = connection.create_channel
|
63
63
|
q = ch2.queue(queue_name, :auto_delete => true)
|
64
64
|
|
65
|
-
consumer = ExampleConsumer.new(ch2, q)
|
65
|
+
consumer = ExampleConsumer.new(ch2, q, "")
|
66
66
|
q.subscribe_with(consumer)
|
67
67
|
end
|
68
68
|
t.abort_on_exception = true
|
@@ -17,7 +17,7 @@ describe Bunny::Exchange do
|
|
17
17
|
it "is declared" do
|
18
18
|
ch = connection.create_channel
|
19
19
|
|
20
|
-
name = "bunny.tests.
|
20
|
+
name = "bunny.tests.exchanges.fanout#{rand}"
|
21
21
|
x = ch.fanout(name)
|
22
22
|
x.name.should == name
|
23
23
|
|
@@ -38,11 +38,26 @@ describe Bunny::Exchange do
|
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
+
context "with a name prefixed with 'amq.'" do
|
42
|
+
it "raises an exception" do
|
43
|
+
ch = connection.create_channel
|
44
|
+
|
45
|
+
expect {
|
46
|
+
ch.fanout("amq.test")
|
47
|
+
}.to raise_error(Bunny::AccessRefused)
|
48
|
+
|
49
|
+
ch.should be_closed
|
50
|
+
expect {
|
51
|
+
ch.fanout("amq.test")
|
52
|
+
}.to raise_error(Bunny::ChannelAlreadyClosed)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
41
56
|
context "with the durable property" do
|
42
57
|
it "is declared as durable" do
|
43
58
|
ch = connection.create_channel
|
44
59
|
|
45
|
-
name = "bunny.tests.
|
60
|
+
name = "bunny.tests.exchanges.durable"
|
46
61
|
x = ch.fanout(name, :durable => true)
|
47
62
|
x.name.should == name
|
48
63
|
x.should be_durable
|
@@ -58,7 +73,7 @@ describe Bunny::Exchange do
|
|
58
73
|
it "is declared as auto-delete" do
|
59
74
|
ch = connection.create_channel
|
60
75
|
|
61
|
-
name = "bunny.tests.
|
76
|
+
name = "bunny.tests.exchanges.auto-delete"
|
62
77
|
x = ch.fanout(name, :auto_delete => true)
|
63
78
|
x.name.should == name
|
64
79
|
x.should_not be_durable
|
@@ -93,7 +108,7 @@ describe Bunny::Exchange do
|
|
93
108
|
it "is declared" do
|
94
109
|
ch = connection.create_channel
|
95
110
|
|
96
|
-
name = "bunny.tests.
|
111
|
+
name = "bunny.tests.exchanges.direct"
|
97
112
|
x = ch.direct(name)
|
98
113
|
x.name.should == name
|
99
114
|
|
@@ -120,7 +135,7 @@ describe Bunny::Exchange do
|
|
120
135
|
it "is declared" do
|
121
136
|
ch = connection.create_channel
|
122
137
|
|
123
|
-
name = "bunny.tests.
|
138
|
+
name = "bunny.tests.exchanges.topic"
|
124
139
|
x = ch.topic(name)
|
125
140
|
x.name.should == name
|
126
141
|
|
@@ -147,7 +162,7 @@ describe Bunny::Exchange do
|
|
147
162
|
it "is declared" do
|
148
163
|
ch = connection.create_channel
|
149
164
|
|
150
|
-
name = "bunny.tests.
|
165
|
+
name = "bunny.tests.exchanges.headers"
|
151
166
|
x = ch.headers(name)
|
152
167
|
x.name.should == name
|
153
168
|
|
@@ -13,7 +13,7 @@ describe Bunny::Exchange, "#delete" do
|
|
13
13
|
|
14
14
|
|
15
15
|
context "with a name of an existing exchange" do
|
16
|
-
it "deletes that
|
16
|
+
it "deletes that exchange" do
|
17
17
|
ch = connection.create_channel
|
18
18
|
x = ch.fanout("bunny.tests.exchanges.fanout#{rand}")
|
19
19
|
|
@@ -25,7 +25,7 @@ describe Bunny::Exchange, "#delete" do
|
|
25
25
|
end
|
26
26
|
|
27
27
|
|
28
|
-
context "with a name of
|
28
|
+
context "with a name of a non-existent exchange" do
|
29
29
|
it "raises an exception" do
|
30
30
|
ch = connection.create_channel
|
31
31
|
|
@@ -34,4 +34,49 @@ describe Bunny::Exchange, "#delete" do
|
|
34
34
|
}.to raise_error(Bunny::NotFound)
|
35
35
|
end
|
36
36
|
end
|
37
|
+
|
38
|
+
context "with a name of 'amq.direct'" do
|
39
|
+
it "does not delete the exchange" do
|
40
|
+
ch = connection.create_channel
|
41
|
+
x = ch.direct('amq.direct')
|
42
|
+
|
43
|
+
x.delete.should == nil
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
context "with a name of 'amq.fanout'" do
|
48
|
+
it "does not delete the exchange" do
|
49
|
+
ch = connection.create_channel
|
50
|
+
x = ch.fanout('amq.fanout')
|
51
|
+
|
52
|
+
x.delete.should == nil
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
context "with a name of 'amq.topic'" do
|
57
|
+
it "does not delete the exchange" do
|
58
|
+
ch = connection.create_channel
|
59
|
+
x = ch.topic('amq.topic')
|
60
|
+
|
61
|
+
x.delete.should == nil
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
context "with a name of 'amq.headers'" do
|
66
|
+
it "does not delete the exchange" do
|
67
|
+
ch = connection.create_channel
|
68
|
+
x = ch.headers('amq.headers')
|
69
|
+
|
70
|
+
x.delete.should == nil
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
context "with a name of 'amq.match'" do
|
75
|
+
it "does not delete the exchange" do
|
76
|
+
ch = connection.create_channel
|
77
|
+
x = ch.headers('amq.match')
|
78
|
+
|
79
|
+
x.delete.should == nil
|
80
|
+
end
|
81
|
+
end
|
37
82
|
end
|
@@ -0,0 +1,95 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe Bunny::Queue, "#subscribe" do
|
4
|
+
let(:connection) do
|
5
|
+
c = Bunny.new(:user => "bunny_gem", :password => "bunny_password", :vhost => "bunny_testbed")
|
6
|
+
c.start
|
7
|
+
c
|
8
|
+
end
|
9
|
+
|
10
|
+
after :all do
|
11
|
+
connection.close if connection.open?
|
12
|
+
end
|
13
|
+
|
14
|
+
let(:queue_name) { "bunny.basic_consume#{rand}" }
|
15
|
+
|
16
|
+
it "provides delivery handler access to message properties" do
|
17
|
+
@now = Time.now
|
18
|
+
metadata = {}
|
19
|
+
envelope = {}
|
20
|
+
|
21
|
+
t = Thread.new do
|
22
|
+
ch = connection.create_channel
|
23
|
+
q = ch.queue(queue_name, :auto_delete => true, :durable => false)
|
24
|
+
q.subscribe(:exclusive => true, :ack => false) do |delivery_info, properties, payload|
|
25
|
+
metadata = properties
|
26
|
+
envelope = delivery_info
|
27
|
+
end
|
28
|
+
end
|
29
|
+
t.abort_on_exception = true
|
30
|
+
sleep 0.5
|
31
|
+
|
32
|
+
ch = connection.create_channel
|
33
|
+
x = ch.default_exchange
|
34
|
+
x.publish("hello",
|
35
|
+
:routing_key => queue_name,
|
36
|
+
:app_id => "bunny.example",
|
37
|
+
:priority => 8,
|
38
|
+
:type => "kinda.checkin",
|
39
|
+
# headers table keys can be anything
|
40
|
+
:headers => {
|
41
|
+
:coordinates => {
|
42
|
+
:latitude => 59.35,
|
43
|
+
:longitude => 18.066667
|
44
|
+
},
|
45
|
+
:time => @now,
|
46
|
+
:participants => 11,
|
47
|
+
:venue => "Stockholm",
|
48
|
+
:true_field => true,
|
49
|
+
:false_field => false,
|
50
|
+
:nil_field => nil,
|
51
|
+
:ary_field => ["one", 2.0, 3, [{"abc" => 123}]]
|
52
|
+
},
|
53
|
+
:timestamp => @now.to_i,
|
54
|
+
:reply_to => "a.sender",
|
55
|
+
:correlation_id => "r-1",
|
56
|
+
:message_id => "m-1")
|
57
|
+
|
58
|
+
sleep 0.7
|
59
|
+
|
60
|
+
metadata.content_type.should == "application/octet-stream"
|
61
|
+
metadata.priority.should == 8
|
62
|
+
|
63
|
+
time = metadata.headers["time"]
|
64
|
+
time.year.should == @now.year
|
65
|
+
time.month.should == @now.month
|
66
|
+
time.day.should == @now.day
|
67
|
+
time.hour.should == @now.hour
|
68
|
+
time.min.should == @now.min
|
69
|
+
time.sec.should == @now.sec
|
70
|
+
|
71
|
+
metadata.headers["coordinates"]["latitude"].should == 59.35
|
72
|
+
metadata.headers["participants"].should == 11
|
73
|
+
metadata.headers["venue"].should == "Stockholm"
|
74
|
+
metadata.headers["true_field"].should == true
|
75
|
+
metadata.headers["false_field"].should == false
|
76
|
+
metadata.headers["nil_field"].should be_nil
|
77
|
+
metadata.headers["ary_field"].should == ["one", 2.0, 3, [{ "abc" => 123}]]
|
78
|
+
|
79
|
+
metadata.timestamp.should == Time.at(@now.to_i)
|
80
|
+
metadata.type.should == "kinda.checkin"
|
81
|
+
metadata.reply_to.should == "a.sender"
|
82
|
+
metadata.correlation_id.should == "r-1"
|
83
|
+
metadata.message_id.should == "m-1"
|
84
|
+
metadata.app_id.should == "bunny.example"
|
85
|
+
|
86
|
+
envelope.consumer_tag.should_not be_nil
|
87
|
+
envelope.consumer_tag.should_not be_empty
|
88
|
+
envelope.should_not be_redelivered
|
89
|
+
envelope.delivery_tag.should == 1
|
90
|
+
envelope.routing_key.should == queue_name
|
91
|
+
envelope.exchange.should == ""
|
92
|
+
|
93
|
+
ch.close
|
94
|
+
end
|
95
|
+
end
|
@@ -23,14 +23,15 @@ describe Bunny::Channel do
|
|
23
23
|
q = ch.queue("", :exclusive => true)
|
24
24
|
x = ch.default_exchange
|
25
25
|
|
26
|
-
|
26
|
+
500.times do
|
27
27
|
x.publish("xyzzy", :routing_key => q.name)
|
28
28
|
end
|
29
29
|
|
30
|
-
ch.next_publish_seq_no.should ==
|
30
|
+
ch.next_publish_seq_no.should == 501
|
31
31
|
ch.wait_for_confirms
|
32
|
+
sleep 0.25
|
32
33
|
|
33
|
-
q.message_count.should ==
|
34
|
+
q.message_count.should == 500
|
34
35
|
q.purge
|
35
36
|
|
36
37
|
ch.close
|
@@ -0,0 +1,73 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe Bunny::Queue, "#subscribe" do
|
4
|
+
let(:connection1) do
|
5
|
+
c = Bunny.new(:user => "bunny_gem", :password => "bunny_password", :vhost => "bunny_testbed")
|
6
|
+
c.start
|
7
|
+
c
|
8
|
+
end
|
9
|
+
let(:connection2) do
|
10
|
+
c = Bunny.new(:user => "bunny_gem", :password => "bunny_password", :vhost => "bunny_testbed")
|
11
|
+
c.start
|
12
|
+
c
|
13
|
+
end
|
14
|
+
|
15
|
+
after :all do
|
16
|
+
connection1.close if connection1.open?
|
17
|
+
connection2.close if connection2.open?
|
18
|
+
end
|
19
|
+
|
20
|
+
|
21
|
+
context "with an empty queue" do
|
22
|
+
it "consumes messages" do
|
23
|
+
delivered_data = []
|
24
|
+
|
25
|
+
ch1 = connection1.create_channel
|
26
|
+
ch2 = connection1.create_channel
|
27
|
+
|
28
|
+
q = ch1.queue("", :exclusive => true)
|
29
|
+
q.subscribe(:ack => false, :block => false) do |delivery_info, properties, payload|
|
30
|
+
delivered_data << payload
|
31
|
+
end
|
32
|
+
sleep 0.5
|
33
|
+
|
34
|
+
x = ch2.default_exchange
|
35
|
+
x.publish("abc", :routing_key => q.name)
|
36
|
+
sleep 0.7
|
37
|
+
|
38
|
+
delivered_data.should == ["abc"]
|
39
|
+
|
40
|
+
ch1.close
|
41
|
+
ch2.close
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
context "with a non-empty queue" do
|
46
|
+
let(:queue_name) { "queue#{rand}" }
|
47
|
+
|
48
|
+
it "consumes messages" do
|
49
|
+
delivered_data = []
|
50
|
+
|
51
|
+
ch1 = connection1.create_channel
|
52
|
+
ch2 = connection1.create_channel
|
53
|
+
|
54
|
+
q = ch1.queue(queue_name, :exclusive => true)
|
55
|
+
x = ch2.default_exchange
|
56
|
+
3.times do |i|
|
57
|
+
x.publish("data#{i}", :routing_key => queue_name)
|
58
|
+
end
|
59
|
+
sleep 0.7
|
60
|
+
q.message_count.should == 3
|
61
|
+
|
62
|
+
q.subscribe(:ack => false, :block => false) do |delivery_info, properties, payload|
|
63
|
+
delivered_data << payload
|
64
|
+
end
|
65
|
+
sleep 0.7
|
66
|
+
|
67
|
+
delivered_data.should == ["data0", "data1", "data2"]
|
68
|
+
|
69
|
+
ch1.close
|
70
|
+
ch2.close
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
@@ -11,6 +11,8 @@ describe Bunny::Channel, "#basic_cancel" do
|
|
11
11
|
connection.close if connection.open?
|
12
12
|
end
|
13
13
|
|
14
|
+
let(:queue_name) { "bunny.queues.#{rand}" }
|
15
|
+
|
14
16
|
it "returns basic.cancel-ok" do
|
15
17
|
ch = connection.create_channel
|
16
18
|
q = ch.queue("", :exclusive => true)
|
@@ -33,7 +35,7 @@ describe Bunny::Channel, "#basic_cancel" do
|
|
33
35
|
t = Thread.new do
|
34
36
|
ch = connection.create_channel
|
35
37
|
q = ch.queue(queue_name, :auto_delete => true, :durable => false)
|
36
|
-
consume_ok = ch.basic_consume(q, "", true, false) do |
|
38
|
+
consume_ok = ch.basic_consume(q, "", true, false) do |_, _, payload|
|
37
39
|
delivered_data << payload
|
38
40
|
end
|
39
41
|
|
@@ -46,6 +48,9 @@ describe Bunny::Channel, "#basic_cancel" do
|
|
46
48
|
t.abort_on_exception = true
|
47
49
|
sleep 0.5
|
48
50
|
|
51
|
+
ch = connection.create_channel
|
52
|
+
ch.default_exchange.publish("", :routing_key => queue_name)
|
53
|
+
|
49
54
|
sleep 0.7
|
50
55
|
delivered_data.should be_empty
|
51
56
|
end
|
metadata
CHANGED
@@ -1,176 +1,193 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: bunny
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.9.0.pre4
|
4
5
|
prerelease: 6
|
5
|
-
version: 0.9.0.pre3
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
autorequire:
|
7
|
+
authors:
|
8
|
+
- Chris Duncan
|
9
|
+
- Eric Lindvall
|
10
|
+
- Jakub Stastny aka botanicus
|
11
|
+
- Michael S. Klishin
|
12
|
+
- Stefan Kaes
|
13
|
+
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
16
|
+
date: 2012-12-24 00:00:00.000000000 Z
|
17
|
+
dependencies:
|
18
|
+
- !ruby/object:Gem::Dependency
|
19
|
+
name: amq-protocol
|
20
|
+
version_requirements: !ruby/object:Gem::Requirement
|
21
|
+
requirements:
|
22
|
+
- - ! '>='
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: 1.0.1
|
25
|
+
none: false
|
26
|
+
requirement: !ruby/object:Gem::Requirement
|
27
|
+
requirements:
|
28
|
+
- - ! '>='
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: 1.0.1
|
31
|
+
none: false
|
32
|
+
prerelease: false
|
33
|
+
type: :runtime
|
30
34
|
description: Easy to use synchronous Ruby client for RabbitMQ
|
31
|
-
email:
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
35
|
+
email:
|
36
|
+
- !binary |-
|
37
|
+
Y2VsbGRlZUBnbWFpbC5jb20=
|
38
|
+
- !binary |-
|
39
|
+
ZXJpY0A1c3RvcHMuY29t
|
40
|
+
- !binary |-
|
41
|
+
c3Rhc3RueUAxMDFpZGVhcy5jeg==
|
42
|
+
- !binary |-
|
43
|
+
bWljaGFlbEBub3ZlbWJlcmFpbi5jb20=
|
44
|
+
- !binary |-
|
45
|
+
c2thZXNAcmFpbHNleHByZXNzLmRl
|
37
46
|
executables: []
|
38
|
-
|
39
47
|
extensions: []
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
48
|
+
extra_rdoc_files:
|
49
|
+
- README.md
|
50
|
+
files:
|
51
|
+
- .gitignore
|
52
|
+
- .rspec
|
53
|
+
- .travis.yml
|
54
|
+
- .yardopts
|
55
|
+
- ChangeLog.md
|
56
|
+
- Gemfile
|
57
|
+
- LICENSE
|
58
|
+
- README.md
|
59
|
+
- bin/ci/before_build.sh
|
60
|
+
- bunny.gemspec
|
61
|
+
- examples/connection/heartbeat.rb
|
62
|
+
- examples/connection/unknown_host.rb
|
63
|
+
- examples/guides/getting_started/blabbr.rb
|
64
|
+
- examples/guides/getting_started/hello_world.rb
|
65
|
+
- examples/guides/getting_started/weathr.rb
|
66
|
+
- examples/guides/queues/redeliveries.rb
|
67
|
+
- lib/bunny.rb
|
68
|
+
- lib/bunny/authentication/credentials_encoder.rb
|
69
|
+
- lib/bunny/authentication/external_mechanism_encoder.rb
|
70
|
+
- lib/bunny/authentication/plain_mechanism_encoder.rb
|
71
|
+
- lib/bunny/channel.rb
|
72
|
+
- lib/bunny/channel_id_allocator.rb
|
73
|
+
- lib/bunny/compatibility.rb
|
74
|
+
- lib/bunny/concurrent/condition.rb
|
75
|
+
- lib/bunny/consumer.rb
|
76
|
+
- lib/bunny/consumer_tag_generator.rb
|
77
|
+
- lib/bunny/consumer_work_pool.rb
|
78
|
+
- lib/bunny/delivery_info.rb
|
79
|
+
- lib/bunny/exceptions.rb
|
80
|
+
- lib/bunny/exchange.rb
|
81
|
+
- lib/bunny/framing.rb
|
82
|
+
- lib/bunny/heartbeat_sender.rb
|
83
|
+
- lib/bunny/main_loop.rb
|
84
|
+
- lib/bunny/message_properties.rb
|
85
|
+
- lib/bunny/queue.rb
|
86
|
+
- lib/bunny/return_info.rb
|
87
|
+
- lib/bunny/session.rb
|
88
|
+
- lib/bunny/socket.rb
|
89
|
+
- lib/bunny/system_timer.rb
|
90
|
+
- lib/bunny/transport.rb
|
91
|
+
- lib/bunny/version.rb
|
92
|
+
- spec/compatibility/queue_declare_spec.rb
|
93
|
+
- spec/higher_level_api/integration/basic_ack_spec.rb
|
94
|
+
- spec/higher_level_api/integration/basic_cancel_spec.rb
|
95
|
+
- spec/higher_level_api/integration/basic_consume_spec.rb
|
96
|
+
- spec/higher_level_api/integration/basic_get_spec.rb
|
97
|
+
- spec/higher_level_api/integration/basic_nack_spec.rb
|
98
|
+
- spec/higher_level_api/integration/basic_publish_spec.rb
|
99
|
+
- spec/higher_level_api/integration/basic_qos_spec.rb
|
100
|
+
- spec/higher_level_api/integration/basic_recover_spec.rb
|
101
|
+
- spec/higher_level_api/integration/basic_reject_spec.rb
|
102
|
+
- spec/higher_level_api/integration/basic_return_spec.rb
|
103
|
+
- spec/higher_level_api/integration/channel_close_spec.rb
|
104
|
+
- spec/higher_level_api/integration/channel_flow_spec.rb
|
105
|
+
- spec/higher_level_api/integration/channel_open_spec.rb
|
106
|
+
- spec/higher_level_api/integration/channel_open_stress_spec.rb
|
107
|
+
- spec/higher_level_api/integration/confirm_select_spec.rb
|
108
|
+
- spec/higher_level_api/integration/connection_spec.rb
|
109
|
+
- spec/higher_level_api/integration/consumer_cancellation_notification_spec.rb
|
110
|
+
- spec/higher_level_api/integration/exchange_bind_spec.rb
|
111
|
+
- spec/higher_level_api/integration/exchange_declare_spec.rb
|
112
|
+
- spec/higher_level_api/integration/exchange_delete_spec.rb
|
113
|
+
- spec/higher_level_api/integration/exchange_unbind_spec.rb
|
114
|
+
- spec/higher_level_api/integration/message_properties_access_spec.rb
|
115
|
+
- spec/higher_level_api/integration/publisher_confirms_spec.rb
|
116
|
+
- spec/higher_level_api/integration/queue_bind_spec.rb
|
117
|
+
- spec/higher_level_api/integration/queue_declare_spec.rb
|
118
|
+
- spec/higher_level_api/integration/queue_delete_spec.rb
|
119
|
+
- spec/higher_level_api/integration/queue_purge_spec.rb
|
120
|
+
- spec/higher_level_api/integration/queue_unbind_spec.rb
|
121
|
+
- spec/higher_level_api/integration/tx_commit_spec.rb
|
122
|
+
- spec/higher_level_api/integration/tx_rollback_spec.rb
|
123
|
+
- spec/issues/issue78_spec.rb
|
124
|
+
- spec/lower_level_api/integration/basic_cancel_spec.rb
|
125
|
+
- spec/lower_level_api/integration/basic_consume_spec.rb
|
126
|
+
- spec/spec_helper.rb
|
127
|
+
- spec/unit/bunny_spec.rb
|
128
|
+
- spec/unit/concurrent/condition_spec.rb
|
115
129
|
homepage: http://github.com/ruby-amqp/bunny
|
116
|
-
licenses:
|
117
|
-
|
118
|
-
post_install_message:
|
130
|
+
licenses:
|
131
|
+
- MIT
|
132
|
+
post_install_message:
|
119
133
|
rdoc_options: []
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
134
|
+
require_paths:
|
135
|
+
- lib
|
136
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
137
|
+
requirements:
|
138
|
+
- - ! '>='
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: !binary |-
|
141
|
+
MA==
|
124
142
|
none: false
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
143
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
144
|
+
requirements:
|
145
|
+
- - !binary |-
|
146
|
+
Pg==
|
147
|
+
- !ruby/object:Gem::Version
|
148
|
+
version: 1.3.1
|
130
149
|
none: false
|
131
|
-
requirements:
|
132
|
-
- - ">"
|
133
|
-
- !ruby/object:Gem::Version
|
134
|
-
version: 1.3.1
|
135
150
|
requirements: []
|
136
|
-
|
137
|
-
rubyforge_project:
|
151
|
+
rubyforge_project:
|
138
152
|
rubygems_version: 1.8.24
|
139
|
-
signing_key:
|
153
|
+
signing_key:
|
140
154
|
specification_version: 3
|
141
155
|
summary: Easy to use synchronous Ruby client for RabbitMQ
|
142
|
-
test_files:
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
156
|
+
test_files:
|
157
|
+
- spec/compatibility/queue_declare_spec.rb
|
158
|
+
- spec/higher_level_api/integration/basic_ack_spec.rb
|
159
|
+
- spec/higher_level_api/integration/basic_cancel_spec.rb
|
160
|
+
- spec/higher_level_api/integration/basic_consume_spec.rb
|
161
|
+
- spec/higher_level_api/integration/basic_get_spec.rb
|
162
|
+
- spec/higher_level_api/integration/basic_nack_spec.rb
|
163
|
+
- spec/higher_level_api/integration/basic_publish_spec.rb
|
164
|
+
- spec/higher_level_api/integration/basic_qos_spec.rb
|
165
|
+
- spec/higher_level_api/integration/basic_recover_spec.rb
|
166
|
+
- spec/higher_level_api/integration/basic_reject_spec.rb
|
167
|
+
- spec/higher_level_api/integration/basic_return_spec.rb
|
168
|
+
- spec/higher_level_api/integration/channel_close_spec.rb
|
169
|
+
- spec/higher_level_api/integration/channel_flow_spec.rb
|
170
|
+
- spec/higher_level_api/integration/channel_open_spec.rb
|
171
|
+
- spec/higher_level_api/integration/channel_open_stress_spec.rb
|
172
|
+
- spec/higher_level_api/integration/confirm_select_spec.rb
|
173
|
+
- spec/higher_level_api/integration/connection_spec.rb
|
174
|
+
- spec/higher_level_api/integration/consumer_cancellation_notification_spec.rb
|
175
|
+
- spec/higher_level_api/integration/exchange_bind_spec.rb
|
176
|
+
- spec/higher_level_api/integration/exchange_declare_spec.rb
|
177
|
+
- spec/higher_level_api/integration/exchange_delete_spec.rb
|
178
|
+
- spec/higher_level_api/integration/exchange_unbind_spec.rb
|
179
|
+
- spec/higher_level_api/integration/message_properties_access_spec.rb
|
180
|
+
- spec/higher_level_api/integration/publisher_confirms_spec.rb
|
181
|
+
- spec/higher_level_api/integration/queue_bind_spec.rb
|
182
|
+
- spec/higher_level_api/integration/queue_declare_spec.rb
|
183
|
+
- spec/higher_level_api/integration/queue_delete_spec.rb
|
184
|
+
- spec/higher_level_api/integration/queue_purge_spec.rb
|
185
|
+
- spec/higher_level_api/integration/queue_unbind_spec.rb
|
186
|
+
- spec/higher_level_api/integration/tx_commit_spec.rb
|
187
|
+
- spec/higher_level_api/integration/tx_rollback_spec.rb
|
188
|
+
- spec/issues/issue78_spec.rb
|
189
|
+
- spec/lower_level_api/integration/basic_cancel_spec.rb
|
190
|
+
- spec/lower_level_api/integration/basic_consume_spec.rb
|
191
|
+
- spec/spec_helper.rb
|
192
|
+
- spec/unit/bunny_spec.rb
|
193
|
+
- spec/unit/concurrent/condition_spec.rb
|