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.
@@ -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 :each do
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.exchages.fanout"
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.exchages.durable"
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.exchages.auto-delete"
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.exchages.direct"
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.exchages.topic"
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.exchages.headers"
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 queue" do
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 an existing exchange" do
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
- 5000.times do
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 == 5001
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 == 5000
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 |metadata, payload|
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
- - Chris Duncan
9
- - Eric Lindvall
10
- - Jakub Stastny aka botanicus
11
- - Michael S. Klishin
12
- - Stefan Kaes
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
- date: 2012-12-01 00:00:00 Z
18
- dependencies:
19
- - !ruby/object:Gem::Dependency
20
- name: amq-protocol
21
- prerelease: false
22
- requirement: &id001 !ruby/object:Gem::Requirement
23
- none: false
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- version: 1.0.0
28
- type: :runtime
29
- version_requirements: *id001
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
- - celldee@gmail.com
33
- - eric@5stops.com
34
- - stastny@101ideas.cz
35
- - michael@novemberain.com
36
- - skaes@railsexpress.de
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
- extra_rdoc_files:
42
- - README.md
43
- files:
44
- - .gitignore
45
- - .rspec
46
- - .travis.yml
47
- - .yardopts
48
- - ChangeLog.md
49
- - Gemfile
50
- - LICENSE
51
- - README.md
52
- - bin/ci/before_build.sh
53
- - bunny.gemspec
54
- - examples/connection/heartbeat.rb
55
- - examples/connection/unknown_host.rb
56
- - examples/guides/getting_started/blabbr.rb
57
- - examples/guides/getting_started/hello_world.rb
58
- - examples/guides/getting_started/weathr.rb
59
- - lib/bunny.rb
60
- - lib/bunny/channel.rb
61
- - lib/bunny/channel_id_allocator.rb
62
- - lib/bunny/compatibility.rb
63
- - lib/bunny/concurrent/condition.rb
64
- - lib/bunny/consumer.rb
65
- - lib/bunny/consumer_tag_generator.rb
66
- - lib/bunny/consumer_work_pool.rb
67
- - lib/bunny/delivery_info.rb
68
- - lib/bunny/exceptions.rb
69
- - lib/bunny/exchange.rb
70
- - lib/bunny/framing.rb
71
- - lib/bunny/heartbeat_sender.rb
72
- - lib/bunny/main_loop.rb
73
- - lib/bunny/message_properties.rb
74
- - lib/bunny/queue.rb
75
- - lib/bunny/return_info.rb
76
- - lib/bunny/session.rb
77
- - lib/bunny/socket.rb
78
- - lib/bunny/system_timer.rb
79
- - lib/bunny/transport.rb
80
- - lib/bunny/version.rb
81
- - spec/compatibility/queue_declare_spec.rb
82
- - spec/higher_level_api/integration/basic_ack_spec.rb
83
- - spec/higher_level_api/integration/basic_consume_spec.rb
84
- - spec/higher_level_api/integration/basic_get_spec.rb
85
- - spec/higher_level_api/integration/basic_nack_spec.rb
86
- - spec/higher_level_api/integration/basic_publish_spec.rb
87
- - spec/higher_level_api/integration/basic_qos_spec.rb
88
- - spec/higher_level_api/integration/basic_recover_spec.rb
89
- - spec/higher_level_api/integration/basic_reject_spec.rb
90
- - spec/higher_level_api/integration/basic_return_spec.rb
91
- - spec/higher_level_api/integration/channel_close_spec.rb
92
- - spec/higher_level_api/integration/channel_flow_spec.rb
93
- - spec/higher_level_api/integration/channel_open_spec.rb
94
- - spec/higher_level_api/integration/channel_open_stress_spec.rb
95
- - spec/higher_level_api/integration/confirm_select_spec.rb
96
- - spec/higher_level_api/integration/connection_spec.rb
97
- - spec/higher_level_api/integration/consumer_cancellation_notification_spec.rb
98
- - spec/higher_level_api/integration/exchange_bind_spec.rb
99
- - spec/higher_level_api/integration/exchange_declare_spec.rb
100
- - spec/higher_level_api/integration/exchange_delete_spec.rb
101
- - spec/higher_level_api/integration/exchange_unbind_spec.rb
102
- - spec/higher_level_api/integration/publisher_confirms_spec.rb
103
- - spec/higher_level_api/integration/queue_bind_spec.rb
104
- - spec/higher_level_api/integration/queue_declare_spec.rb
105
- - spec/higher_level_api/integration/queue_delete_spec.rb
106
- - spec/higher_level_api/integration/queue_purge_spec.rb
107
- - spec/higher_level_api/integration/queue_unbind_spec.rb
108
- - spec/higher_level_api/integration/tx_commit_spec.rb
109
- - spec/higher_level_api/integration/tx_rollback_spec.rb
110
- - spec/lower_level_api/integration/basic_cancel_spec.rb
111
- - spec/lower_level_api/integration/basic_consume_spec.rb
112
- - spec/spec_helper.rb
113
- - spec/unit/bunny_spec.rb
114
- - spec/unit/concurrent/condition_spec.rb
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
- - MIT
118
- post_install_message:
130
+ licenses:
131
+ - MIT
132
+ post_install_message:
119
133
  rdoc_options: []
120
-
121
- require_paths:
122
- - lib
123
- required_ruby_version: !ruby/object:Gem::Requirement
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
- requirements:
126
- - - ">="
127
- - !ruby/object:Gem::Version
128
- version: "0"
129
- required_rubygems_version: !ruby/object:Gem::Requirement
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
- - spec/compatibility/queue_declare_spec.rb
144
- - spec/higher_level_api/integration/basic_ack_spec.rb
145
- - spec/higher_level_api/integration/basic_consume_spec.rb
146
- - spec/higher_level_api/integration/basic_get_spec.rb
147
- - spec/higher_level_api/integration/basic_nack_spec.rb
148
- - spec/higher_level_api/integration/basic_publish_spec.rb
149
- - spec/higher_level_api/integration/basic_qos_spec.rb
150
- - spec/higher_level_api/integration/basic_recover_spec.rb
151
- - spec/higher_level_api/integration/basic_reject_spec.rb
152
- - spec/higher_level_api/integration/basic_return_spec.rb
153
- - spec/higher_level_api/integration/channel_close_spec.rb
154
- - spec/higher_level_api/integration/channel_flow_spec.rb
155
- - spec/higher_level_api/integration/channel_open_spec.rb
156
- - spec/higher_level_api/integration/channel_open_stress_spec.rb
157
- - spec/higher_level_api/integration/confirm_select_spec.rb
158
- - spec/higher_level_api/integration/connection_spec.rb
159
- - spec/higher_level_api/integration/consumer_cancellation_notification_spec.rb
160
- - spec/higher_level_api/integration/exchange_bind_spec.rb
161
- - spec/higher_level_api/integration/exchange_declare_spec.rb
162
- - spec/higher_level_api/integration/exchange_delete_spec.rb
163
- - spec/higher_level_api/integration/exchange_unbind_spec.rb
164
- - spec/higher_level_api/integration/publisher_confirms_spec.rb
165
- - spec/higher_level_api/integration/queue_bind_spec.rb
166
- - spec/higher_level_api/integration/queue_declare_spec.rb
167
- - spec/higher_level_api/integration/queue_delete_spec.rb
168
- - spec/higher_level_api/integration/queue_purge_spec.rb
169
- - spec/higher_level_api/integration/queue_unbind_spec.rb
170
- - spec/higher_level_api/integration/tx_commit_spec.rb
171
- - spec/higher_level_api/integration/tx_rollback_spec.rb
172
- - spec/lower_level_api/integration/basic_cancel_spec.rb
173
- - spec/lower_level_api/integration/basic_consume_spec.rb
174
- - spec/spec_helper.rb
175
- - spec/unit/bunny_spec.rb
176
- - spec/unit/concurrent/condition_spec.rb
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