bunny 1.4.1 → 1.5.0.pre1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +1 -1
- data/ChangeLog.md +19 -5
- data/README.md +23 -3
- data/examples/guides/extensions/basic_nack.rb +1 -1
- data/examples/guides/extensions/dead_letter_exchange.rb +1 -1
- data/examples/guides/queues/redeliveries.rb +2 -2
- data/lib/bunny.rb +1 -1
- data/lib/bunny/channel.rb +34 -21
- data/lib/bunny/exceptions.rb +17 -2
- data/lib/bunny/exchange.rb +14 -22
- data/lib/bunny/queue.rb +19 -12
- data/lib/bunny/session.rb +67 -57
- data/lib/bunny/version.rb +1 -1
- data/spec/config/enabled_plugins +1 -0
- data/spec/config/rabbitmq.config +18 -0
- data/spec/higher_level_api/integration/basic_ack_spec.rb +29 -2
- data/spec/higher_level_api/integration/basic_consume_with_objects_spec.rb +1 -1
- data/spec/higher_level_api/integration/basic_nack_spec.rb +5 -5
- data/spec/higher_level_api/integration/basic_reject_spec.rb +3 -3
- data/spec/higher_level_api/integration/connection_recovery_spec.rb +79 -2
- data/spec/higher_level_api/integration/connection_spec.rb +24 -0
- data/spec/higher_level_api/integration/dead_lettering_spec.rb +1 -1
- data/spec/higher_level_api/integration/exchange_unbind_spec.rb +1 -1
- data/spec/higher_level_api/integration/message_properties_access_spec.rb +1 -1
- data/spec/issues/issue78_spec.rb +2 -2
- data/spec/spec_helper.rb +6 -7
- data/spec/tls/ca_certificate.pem +18 -0
- data/spec/tls/ca_key.pem +27 -0
- data/spec/tls/client_cert.pem +16 -16
- data/spec/tls/client_key.pem +25 -25
- data/spec/tls/server_cert.pem +16 -16
- data/spec/tls/server_key.pem +25 -25
- metadata +12 -10
- data/.ruby-version +0 -1
- data/lib/bunny/compatibility.rb +0 -24
- data/spec/compatibility/queue_declare_spec.rb +0 -44
- data/spec/compatibility/queue_declare_with_default_channel_spec.rb +0 -33
@@ -147,6 +147,30 @@ describe Bunny::Session do
|
|
147
147
|
end
|
148
148
|
end
|
149
149
|
|
150
|
+
context "initialized with :hosts => [...]" do
|
151
|
+
after :each do
|
152
|
+
subject.close if subject.open?
|
153
|
+
end
|
154
|
+
|
155
|
+
let(:host) { "192.168.1.10" }
|
156
|
+
let(:hosts) { [host] }
|
157
|
+
let(:subject) { described_class.new(:hosts => hosts) }
|
158
|
+
|
159
|
+
it "uses hostname = localhost" do
|
160
|
+
subject.host.should == host
|
161
|
+
subject.hostname.should == host
|
162
|
+
end
|
163
|
+
|
164
|
+
it "uses port 5672" do
|
165
|
+
subject.port.should == port
|
166
|
+
end
|
167
|
+
|
168
|
+
it "uses username = guest" do
|
169
|
+
subject.username.should == username
|
170
|
+
subject.user.should == username
|
171
|
+
end
|
172
|
+
end
|
173
|
+
|
150
174
|
context "initialized with :channel_max => 4096" do
|
151
175
|
after :each do
|
152
176
|
subject.close if subject.open?
|
@@ -21,7 +21,7 @@ describe Bunny::Queue, "#subscribe" do
|
|
21
21
|
t = Thread.new do
|
22
22
|
ch = connection.create_channel
|
23
23
|
q = ch.queue(queue_name, :auto_delete => true, :durable => false)
|
24
|
-
q.subscribe(:exclusive => true, :
|
24
|
+
q.subscribe(:exclusive => true, :manual_ack => false) do |delivery_info, properties, payload|
|
25
25
|
metadata = properties
|
26
26
|
envelope = delivery_info
|
27
27
|
end
|
data/spec/issues/issue78_spec.rb
CHANGED
@@ -27,7 +27,7 @@ unless ENV["CI"]
|
|
27
27
|
ch2 = connection1.create_channel
|
28
28
|
|
29
29
|
q = ch1.queue("", :exclusive => true)
|
30
|
-
q.subscribe(:
|
30
|
+
q.subscribe(:manual_ack => false, :block => false) do |delivery_info, properties, payload|
|
31
31
|
delivered_data << payload
|
32
32
|
end
|
33
33
|
sleep 0.5
|
@@ -60,7 +60,7 @@ unless ENV["CI"]
|
|
60
60
|
sleep 0.7
|
61
61
|
q.message_count.should == 3
|
62
62
|
|
63
|
-
q.subscribe(:
|
63
|
+
q.subscribe(:manual_ack => false, :block => false) do |delivery_info, properties, payload|
|
64
64
|
delivered_data << payload
|
65
65
|
end
|
66
66
|
sleep 0.7
|
data/spec/spec_helper.rb
CHANGED
@@ -14,8 +14,6 @@ require "rabbitmq/http/client"
|
|
14
14
|
require "amq/protocol/version"
|
15
15
|
puts "Using Ruby #{RUBY_VERSION}, amq-protocol #{AMQ::Protocol::VERSION}"
|
16
16
|
|
17
|
-
|
18
|
-
|
19
17
|
#
|
20
18
|
# Ruby version-specific
|
21
19
|
#
|
@@ -29,21 +27,22 @@ when "1.8.6" then
|
|
29
27
|
raise "Ruby 1.8.6 is not supported. Sorry, pal. Time to move on beyond One True Ruby. Yes, time flies by."
|
30
28
|
end
|
31
29
|
|
32
|
-
|
33
|
-
|
34
30
|
module RabbitMQ
|
35
31
|
module Control
|
32
|
+
|
33
|
+
RABBITMQ_NODENAME = ENV['RABBITMQ_NODENAME'] || 'rabbit'
|
34
|
+
|
36
35
|
def rabbitmq_pid
|
37
|
-
$1.to_i if `rabbitmqctl status` =~ /\{pid,(\d+)\}/
|
36
|
+
$1.to_i if `rabbitmqctl -n #{RABBITMQ_NODENAME} status` =~ /\{pid,(\d+)\}/
|
38
37
|
end
|
39
38
|
|
40
39
|
def start_rabbitmq(delay = 1.0)
|
41
40
|
# this is Homebrew-specific :(
|
42
|
-
`rabbitmq-server > /dev/null 2>&1 &`; sleep(delay)
|
41
|
+
`RABBITMQ_NODENAME=#{RABBITMQ_NODENAME} rabbitmq-server > /dev/null 2>&1 &`; sleep(delay)
|
43
42
|
end
|
44
43
|
|
45
44
|
def stop_rabbitmq(pid = rabbitmq_pid, delay = 1.0)
|
46
|
-
`rabbitmqctl stop`; sleep(delay)
|
45
|
+
`rabbitmqctl -n #{RABBITMQ_NODENAME} stop`; sleep(delay)
|
47
46
|
end
|
48
47
|
|
49
48
|
def kill_rabbitmq(pid = rabbitmq_pid, delay = 1.0)
|
@@ -0,0 +1,18 @@
|
|
1
|
+
-----BEGIN CERTIFICATE-----
|
2
|
+
MIIC7jCCAdagAwIBAgIJAO45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K5Rlu9l8HAHxWDMT4DXC5Zlq6KdMOoHx6xSlYx
|
21
|
+
OjQop0gH1RQkPKjPsAYD5QKBgQCS7ohNw8Sxrn7u6oJIDGq5qmsTKocxkPfuuyXr
|
22
|
+
fX22BEezmJMOBycg/gzRNJOYevFHqguknRDzLl05mdZg86PGqxZV6xQoWYwIhQ63
|
23
|
+
6LRIcjq06wDrsxSKJzvSrAE4x+LWWFFb6m+uJamGDTrrMNw6TbVxLg4No4OxFXTf
|
24
|
+
7KaivwKBgGan2Sj93FN7NWFn45TQjAK/Xh+XfLL+YjNL9VYIJ2KyUXOLXLHYMSkm
|
25
|
+
hKCPlJaJPu0ro8ue4Hl1Sg3WpCXgwIxY1uX52Yy3wLyXVTWRFmfDl+obzi/y745Z
|
26
|
+
UYiUqglUwSD/IowWZ+xYrHuh+tb56iDhceRdrmA6NFXm/7g28Wp8
|
27
27
|
-----END RSA PRIVATE KEY-----
|
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: 1.
|
4
|
+
version: 1.5.0.pre1
|
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: 2014-09-
|
15
|
+
date: 2014-09-25 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: amq-protocol
|
@@ -43,7 +43,6 @@ extra_rdoc_files:
|
|
43
43
|
files:
|
44
44
|
- .gitignore
|
45
45
|
- .rspec
|
46
|
-
- .ruby-version
|
47
46
|
- .travis.yml
|
48
47
|
- .yardopts
|
49
48
|
- ChangeLog.md
|
@@ -103,7 +102,6 @@ files:
|
|
103
102
|
- lib/bunny/authentication/plain_mechanism_encoder.rb
|
104
103
|
- lib/bunny/channel.rb
|
105
104
|
- lib/bunny/channel_id_allocator.rb
|
106
|
-
- lib/bunny/compatibility.rb
|
107
105
|
- lib/bunny/concurrent/atomic_fixnum.rb
|
108
106
|
- lib/bunny/concurrent/condition.rb
|
109
107
|
- lib/bunny/concurrent/continuation_queue.rb
|
@@ -137,8 +135,8 @@ files:
|
|
137
135
|
- lib/bunny/versioned_delivery_tag.rb
|
138
136
|
- profiling/basic_publish/with_4K_messages.rb
|
139
137
|
- repl
|
140
|
-
- spec/
|
141
|
-
- spec/
|
138
|
+
- spec/config/enabled_plugins
|
139
|
+
- spec/config/rabbitmq.config
|
142
140
|
- spec/higher_level_api/integration/basic_ack_spec.rb
|
143
141
|
- spec/higher_level_api/integration/basic_cancel_spec.rb
|
144
142
|
- spec/higher_level_api/integration/basic_consume_spec.rb
|
@@ -198,6 +196,8 @@ files:
|
|
198
196
|
- spec/stress/concurrent_publishers_stress_spec.rb
|
199
197
|
- spec/stress/connection_open_close_spec.rb
|
200
198
|
- spec/stress/long_running_consumer_spec.rb
|
199
|
+
- spec/tls/ca_certificate.pem
|
200
|
+
- spec/tls/ca_key.pem
|
201
201
|
- spec/tls/cacert.pem
|
202
202
|
- spec/tls/client_cert.pem
|
203
203
|
- spec/tls/client_key.pem
|
@@ -225,9 +225,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
225
225
|
version: '0'
|
226
226
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
227
227
|
requirements:
|
228
|
-
- - '
|
228
|
+
- - '>'
|
229
229
|
- !ruby/object:Gem::Version
|
230
|
-
version:
|
230
|
+
version: 1.3.1
|
231
231
|
requirements: []
|
232
232
|
rubyforge_project:
|
233
233
|
rubygems_version: 2.2.2
|
@@ -235,8 +235,8 @@ signing_key:
|
|
235
235
|
specification_version: 4
|
236
236
|
summary: Popular easy to use Ruby client for RabbitMQ
|
237
237
|
test_files:
|
238
|
-
- spec/
|
239
|
-
- spec/
|
238
|
+
- spec/config/enabled_plugins
|
239
|
+
- spec/config/rabbitmq.config
|
240
240
|
- spec/higher_level_api/integration/basic_ack_spec.rb
|
241
241
|
- spec/higher_level_api/integration/basic_cancel_spec.rb
|
242
242
|
- spec/higher_level_api/integration/basic_consume_spec.rb
|
@@ -296,6 +296,8 @@ test_files:
|
|
296
296
|
- spec/stress/concurrent_publishers_stress_spec.rb
|
297
297
|
- spec/stress/connection_open_close_spec.rb
|
298
298
|
- spec/stress/long_running_consumer_spec.rb
|
299
|
+
- spec/tls/ca_certificate.pem
|
300
|
+
- spec/tls/ca_key.pem
|
299
301
|
- spec/tls/cacert.pem
|
300
302
|
- spec/tls/client_cert.pem
|
301
303
|
- spec/tls/client_key.pem
|
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.0@rabbitmq
|
data/lib/bunny/compatibility.rb
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
module Bunny
|
2
|
-
# Helper methods necessary to stay mostly backwards-compatible with legacy (0.7.x, 0.8.x) Bunny
|
3
|
-
# releases that hide channels completely from the API.
|
4
|
-
#
|
5
|
-
# @private
|
6
|
-
module Compatibility
|
7
|
-
|
8
|
-
#
|
9
|
-
# API
|
10
|
-
#
|
11
|
-
|
12
|
-
# @private
|
13
|
-
def channel_from(channel_or_connection)
|
14
|
-
# Bunny 0.8.x and earlier completely hide channels from the API. So, queues and exchanges are
|
15
|
-
# instantiated with a "Bunny object", which is a session. This function coerces two types of input to a
|
16
|
-
# channel.
|
17
|
-
if channel_or_connection.is_a?(Bunny::Session)
|
18
|
-
channel_or_connection.default_channel
|
19
|
-
else
|
20
|
-
channel_or_connection
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|