bunny 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f1cf8263f0250d0bf8f2816bf1aaad837c5505eb
4
- data.tar.gz: bafa849e30666c22ff3574507567d27d7859f89b
3
+ metadata.gz: 057bcd48a6c1234452c4e61915c28b55d5248f46
4
+ data.tar.gz: 6c28bc03055ce2c4b8a3b4d30488619b4ccc562d
5
5
  SHA512:
6
- metadata.gz: a5e14b69c7a128c20e95e2850e80d5517f27f1d93068468ff0058cf9c041a1a8f243ec9c67119580e55dcedb9c6370d59eea15a38be2384b38678fee4307c591
7
- data.tar.gz: 849e7085e43ef4b3859940f492472c5058ffffdd0d18d1cdb1946fcf39b7b7761d7f2b4150f05dac6c7b39aa7e2a0e295d8a267d397d3b74815e9b97b4ab881f
6
+ metadata.gz: 68d2af85cca78d231f02e8833afffdfc11c6b1dbbba3e8110d352b20f0412613c194d3353afaa5646dd15026f59cd5bd4a3ddbf87c8b9915ec0c6304c8b0e965
7
+ data.tar.gz: 6fcdeea240c210a56a3c0727447d328ce85325dead5fae8067b9a58da7584be4f4156ba78befc92f505587d7dd264b9ca1a3d319794f507ec1aede68fde8c527
@@ -1,3 +1,13 @@
1
+ ## Changes between Bunny 1.4.0 and 1.4.1
2
+
3
+ ### Prevent Default Channel From Being Re-opened Twice on Recovery
4
+
5
+ Bunny's default channel (a relic from the `0.7.x` days when channels were not
6
+ even part of the API) is no longer recovered one time too many.
7
+
8
+ Contributed by Carl Chatfield.
9
+
10
+
1
11
  ## Changes between Bunny 1.3.0 and 1.4.0
2
12
 
3
13
  ### Channel#wait_for_confirms Returns Immediately If All Publishes Confirmed
@@ -258,7 +258,7 @@ module Bunny
258
258
  @reader_loop = nil
259
259
  self.start_reader_loop if threaded?
260
260
 
261
- @default_channel = self.create_channel
261
+ @default_channel = self.create_channel unless @default_channel
262
262
  rescue Exception => e
263
263
  @status_mutex.synchronize { @status = :not_connected }
264
264
  raise e
@@ -663,10 +663,7 @@ module Bunny
663
663
 
664
664
  # @private
665
665
  def recover_channels
666
- # default channel is reopened right after connection
667
- # negotiation is completed, so make sure we do not try to open
668
- # it twice. MK.
669
- @channels.reject { |n, ch| ch == @default_channel }.each do |n, ch|
666
+ @channels.each do |n, ch|
670
667
  ch.open
671
668
 
672
669
  ch.recover_from_network_failure
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Bunny
4
4
  # @return [String] Version of the library
5
- VERSION = "1.4.0"
5
+ VERSION = "1.4.1"
6
6
  end
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.0
4
+ version: 1.4.1
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-07-29 00:00:00.000000000 Z
15
+ date: 2014-09-17 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: amq-protocol
@@ -308,3 +308,4 @@ test_files:
308
308
  - spec/unit/concurrent/synchronized_sorted_set_spec.rb
309
309
  - spec/unit/system_timer_spec.rb
310
310
  - spec/unit/version_delivery_tag_spec.rb
311
+ has_rdoc: true