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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1727f4dbfca01835cbc22019086dda09c7696033
4
- data.tar.gz: 3ef0c8e3ea1a1f3b9dbe7ec00a171d30c196ec98
3
+ metadata.gz: a2300a08d4b91b185b601971711c302e444ed42b
4
+ data.tar.gz: 0b02b296187c972d00e9a355eda453009ba29842
5
5
  SHA512:
6
- metadata.gz: ba745b6f58a1eeca8f3064c3f11d17df8b2b306d0ccdcb83dd9d109b312b5408d6f83bd9e0735a5e077ea7290995dc4ef2392b1fd6753aa7ec55cc6ae570d41a
7
- data.tar.gz: 6debdd81bc52d31937e78cab8fcfa6922d2df2143c27b6e698b2b5f5a5e42826e22e7bfe8d551a3479cc118417cde5e8e6863f3a587c9c8f8424e4f4b2b7daea
6
+ metadata.gz: ec12d8260233fb4def78ea75030fb201a083d574530fae276b4c035071b4d38a206c0dd0060067843e1b55bd81cc92b2faf668bc7faafc0a72bb2915251d6138
7
+ data.tar.gz: ad3b8d18e8bf7e0d04b1a6a5770ef1734e320b2fa15efc439e90482cbd7226804bc6ebf29e9525404c1b7e4d4f75141e761c39732ff946c883dd826782253518
@@ -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']}, SKIPPPED"
44
+ puts "[consumer1] Got message ##{properties.headers['i']}, SKIPPED"
45
45
  end
46
46
  end
47
47
 
@@ -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 excepton when notifying consumer #{method.consumer_tag} about cancellation!"
1548
+ @logger.error "Got exception when notifying consumer #{method.consumer_tag} about cancellation!"
1549
1549
  end
1550
1550
  end
1551
1551
  else
@@ -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 [:pwd] || DEFAULT_PASSWORD
634
+ options[:password] || options[:pass] || options[:pwd] || DEFAULT_PASSWORD
635
635
  end
636
636
 
637
637
  # @private
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Bunny
4
4
  # @return [String] Version of the library
5
- VERSION = "1.0.0.pre5"
5
+ VERSION = "1.0.0.pre6"
6
6
  end
@@ -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 "acknowleges a message" do
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.pre5
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-08-27 00:00:00.000000000 Z
15
+ date: 2013-09-05 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: amq-protocol