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.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.travis.yml +1 -1
  4. data/ChangeLog.md +19 -5
  5. data/README.md +23 -3
  6. data/examples/guides/extensions/basic_nack.rb +1 -1
  7. data/examples/guides/extensions/dead_letter_exchange.rb +1 -1
  8. data/examples/guides/queues/redeliveries.rb +2 -2
  9. data/lib/bunny.rb +1 -1
  10. data/lib/bunny/channel.rb +34 -21
  11. data/lib/bunny/exceptions.rb +17 -2
  12. data/lib/bunny/exchange.rb +14 -22
  13. data/lib/bunny/queue.rb +19 -12
  14. data/lib/bunny/session.rb +67 -57
  15. data/lib/bunny/version.rb +1 -1
  16. data/spec/config/enabled_plugins +1 -0
  17. data/spec/config/rabbitmq.config +18 -0
  18. data/spec/higher_level_api/integration/basic_ack_spec.rb +29 -2
  19. data/spec/higher_level_api/integration/basic_consume_with_objects_spec.rb +1 -1
  20. data/spec/higher_level_api/integration/basic_nack_spec.rb +5 -5
  21. data/spec/higher_level_api/integration/basic_reject_spec.rb +3 -3
  22. data/spec/higher_level_api/integration/connection_recovery_spec.rb +79 -2
  23. data/spec/higher_level_api/integration/connection_spec.rb +24 -0
  24. data/spec/higher_level_api/integration/dead_lettering_spec.rb +1 -1
  25. data/spec/higher_level_api/integration/exchange_unbind_spec.rb +1 -1
  26. data/spec/higher_level_api/integration/message_properties_access_spec.rb +1 -1
  27. data/spec/issues/issue78_spec.rb +2 -2
  28. data/spec/spec_helper.rb +6 -7
  29. data/spec/tls/ca_certificate.pem +18 -0
  30. data/spec/tls/ca_key.pem +27 -0
  31. data/spec/tls/client_cert.pem +16 -16
  32. data/spec/tls/client_key.pem +25 -25
  33. data/spec/tls/server_cert.pem +16 -16
  34. data/spec/tls/server_key.pem +25 -25
  35. metadata +12 -10
  36. data/.ruby-version +0 -1
  37. data/lib/bunny/compatibility.rb +0 -24
  38. data/spec/compatibility/queue_declare_spec.rb +0 -44
  39. 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?
@@ -22,7 +22,7 @@ describe "A message" do
22
22
  x.publish("")
23
23
  sleep 0.2
24
24
 
25
- delivery_info, _, _ = q.pop(:ack => true)
25
+ delivery_info, _, _ = q.pop(:manual_ack => true)
26
26
  dlq.message_count.should be_zero
27
27
  ch.nack(delivery_info.delivery_tag)
28
28
 
@@ -25,7 +25,7 @@ describe Bunny::Exchange do
25
25
  sleep 0.5
26
26
 
27
27
  queue.message_count.should be == 1
28
- queue.pop(:ack => true)
28
+ queue.pop(:manual_ack => true)
29
29
 
30
30
  destination.unbind(source)
31
31
  source.publish("")
@@ -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, :ack => false) do |delivery_info, properties, payload|
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
@@ -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(:ack => false, :block => false) do |delivery_info, properties, payload|
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(:ack => false, :block => false) do |delivery_info, properties, payload|
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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g4TgUvD5xsi
20
+ pn8oXaVvOs7ldgBzEdOhLOu9sSK5Rlu9l8HAHxWDMT4DXC5Zlq6KdMOoHx6xSlYx
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.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-17 00:00:00.000000000 Z
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/compatibility/queue_declare_spec.rb
141
- - spec/compatibility/queue_declare_with_default_channel_spec.rb
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: '0'
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/compatibility/queue_declare_spec.rb
239
- - spec/compatibility/queue_declare_with_default_channel_spec.rb
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
@@ -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