bunny 2.2.0 → 2.2.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: 4513453ba83efb33a882a0360116c2d652deaeca
4
- data.tar.gz: a5b1deb516b9a0798f02b394d78eabc3022e96ba
3
+ metadata.gz: ec4f4235cbef8ebc88c1e366750efbdb3dc3180c
4
+ data.tar.gz: 5830cd9d2963966ddedf99687aaeca4196e551c0
5
5
  SHA512:
6
- metadata.gz: 71f26786c44ac4580a48cacb604dbeed272bab27005bbb3d4dc0816e10d02679e23adcd671898a8a8f12727c0a63fec16a15dddf1764f16cd13bec8d8a867cd8
7
- data.tar.gz: 3ac225508d9a2bc13b1e24f98bb879e8a4ce500340abff9362e28c1fe9e106eff44a5d6b818df65a432eb3f0d48db9ff6db4760c91041b16e9558ffc092dd6fe
6
+ metadata.gz: 3befb1f605b26c85039b2dc5d75984175974485daf424b7464943946d02080fc30afac91b5cf78195069c8c3b484310156de2be059c03bb402290b931c756c0d
7
+ data.tar.gz: 3a9f602f0f6d73b0e96daccaec68d1d96a4e08b67adc4e55c3e408b8c81ac9a200798c466eeda88676da60aa905dde48ba2aa90dbdac7b5c7cba1e47fdcd83e4
@@ -1,3 +1,15 @@
1
+ ## Changes between Bunny 2.2.0 and 2.2.1
2
+
3
+ ### No TLS Socket Double-init
4
+
5
+ Makes sure that TLS sockets are not double-initialized.
6
+
7
+ GH issue: [#345](https://github.com/ruby-amqp/bunny/issues/345).
8
+
9
+ Contributed by Carl Hörberg.
10
+
11
+
12
+
1
13
  ## Changes between Bunny 2.1.0 and 2.2.0
2
14
 
3
15
  ### Add :addresses to connect options
@@ -292,7 +292,7 @@ module Bunny
292
292
  end
293
293
 
294
294
  def post_initialize_socket
295
- @socket = if uses_tls?
295
+ @socket = if uses_tls? and !@socket.is_a?(Bunny::SSLSocketImpl)
296
296
  wrap_in_tls_socket(@socket)
297
297
  else
298
298
  @socket
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Bunny
4
4
  # @return [String] Version of the library
5
- VERSION = "2.2.0"
5
+ VERSION = "2.2.1"
6
6
  end
@@ -467,7 +467,7 @@ describe Bunny::Session do
467
467
  let(:logger) { ::Logger.new(io) }
468
468
 
469
469
  it "uses provided logger" do
470
- conn = described_class.new(:hostname => "localhost", :logger => logger)
470
+ conn = described_class.new(:logger => logger)
471
471
  conn.start
472
472
 
473
473
  expect(io.string.length).to be > 100
@@ -477,7 +477,7 @@ describe Bunny::Session do
477
477
 
478
478
  it "doesn't reassign the logger's progname attribute" do
479
479
  expect(logger).not_to receive(:progname=)
480
- described_class.new(:hostname => "localhost", :logger => logger)
480
+ described_class.new(:logger => logger)
481
481
  end
482
482
  end
483
483
  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: 2.2.0
4
+ version: 2.2.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: 2015-09-05 00:00:00.000000000 Z
15
+ date: 2015-11-01 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: amq-protocol