bunny 1.0.0.pre5 → 1.0.0.pre6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ChangeLog.md +14 -0
- data/examples/guides/queues/redeliveries.rb +1 -1
- data/lib/bunny/channel.rb +1 -1
- data/lib/bunny/session.rb +2 -2
- data/lib/bunny/version.rb +1 -1
- data/spec/higher_level_api/integration/basic_ack_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2300a08d4b91b185b601971711c302e444ed42b
|
4
|
+
data.tar.gz: 0b02b296187c972d00e9a355eda453009ba29842
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec12d8260233fb4def78ea75030fb201a083d574530fae276b4c035071b4d38a206c0dd0060067843e1b55bd81cc92b2faf668bc7faafc0a72bb2915251d6138
|
7
|
+
data.tar.gz: ad3b8d18e8bf7e0d04b1a6a5770ef1734e320b2fa15efc439e90482cbd7226804bc6ebf29e9525404c1b7e4d4f75141e761c39732ff946c883dd826782253518
|
data/ChangeLog.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
|
+
## Changes between Bunny 1.0.0.pre5 and 1.0.0.pre6
|
2
|
+
|
3
|
+
### Respect RABBITMQ_URL value
|
4
|
+
|
5
|
+
`RABBITMQ_URL` env variable will now have effect even if
|
6
|
+
Bunny.new is invoked without arguments.
|
7
|
+
|
8
|
+
|
9
|
+
|
1
10
|
## Changes between Bunny 1.0.0.pre4 and 1.0.0.pre5
|
2
11
|
|
12
|
+
### Ruby 1.8 Compatibility
|
13
|
+
|
14
|
+
Bunny is Ruby 1.8-compatible again and no longer references
|
15
|
+
`RUBY_ENGINE`.
|
16
|
+
|
3
17
|
### Bunny::Session.parse_uri
|
4
18
|
|
5
19
|
`Bunny::Session.parse_uri` is a new method that parses
|
@@ -41,7 +41,7 @@ q1.bind(x).subscribe(:ack => true, :block => false) do |delivery_info, propertie
|
|
41
41
|
else
|
42
42
|
# some messages are not ack-ed and will remain in the queue for redelivery
|
43
43
|
# when app #1 connection is closed (either properly or due to a crash)
|
44
|
-
puts "[consumer1] Got message ##{properties.headers['i']},
|
44
|
+
puts "[consumer1] Got message ##{properties.headers['i']}, SKIPPED"
|
45
45
|
end
|
46
46
|
end
|
47
47
|
|
data/lib/bunny/channel.rb
CHANGED
@@ -1545,7 +1545,7 @@ module Bunny
|
|
1545
1545
|
@consumers.delete(method.consumer_tag)
|
1546
1546
|
consumer.handle_cancellation(method)
|
1547
1547
|
rescue Exception => e
|
1548
|
-
@logger.error "Got
|
1548
|
+
@logger.error "Got exception when notifying consumer #{method.consumer_tag} about cancellation!"
|
1549
1549
|
end
|
1550
1550
|
end
|
1551
1551
|
else
|
data/lib/bunny/session.rb
CHANGED
@@ -114,7 +114,7 @@ module Bunny
|
|
114
114
|
when nil then
|
115
115
|
Hash.new
|
116
116
|
when String then
|
117
|
-
self.class.parse_uri(connection_string_or_opts)
|
117
|
+
self.class.parse_uri(ENV["RABBITMQ_URL"] || connection_string_or_opts)
|
118
118
|
when Hash then
|
119
119
|
connection_string_or_opts
|
120
120
|
end.merge(optz)
|
@@ -631,7 +631,7 @@ module Bunny
|
|
631
631
|
|
632
632
|
# @private
|
633
633
|
def password_from(options)
|
634
|
-
options[:password] || options[:pass] || options
|
634
|
+
options[:password] || options[:pass] || options[:pwd] || DEFAULT_PASSWORD
|
635
635
|
end
|
636
636
|
|
637
637
|
# @private
|
data/lib/bunny/version.rb
CHANGED
@@ -12,7 +12,7 @@ describe Bunny::Channel, "#ack" do
|
|
12
12
|
end
|
13
13
|
|
14
14
|
context "with a valid (known) delivery tag" do
|
15
|
-
it "
|
15
|
+
it "acknowledges a message" do
|
16
16
|
ch = connection.create_channel
|
17
17
|
q = ch.queue("bunny.basic.ack.manual-acks", :exclusive => true)
|
18
18
|
x = ch.default_exchange
|
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.0.0.
|
4
|
+
version: 1.0.0.pre6
|
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: 2013-
|
15
|
+
date: 2013-09-05 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: amq-protocol
|