bunny 1.1.7 → 1.1.8

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: 8322004b8e74ad1d6d277a087c65595a8cfa8d7a
4
- data.tar.gz: 608b49e9a170f809286524b7c7ffe3e34365faa7
3
+ metadata.gz: b5470f52754b5f2c08668870f6694233967b6840
4
+ data.tar.gz: 5aca1ad44f43e08cadc2ca79d4f123e553a2fdc9
5
5
  SHA512:
6
- metadata.gz: 4f7c7eb7903634a7c7b166ed6f1cde4f99967841376d11def825ef298c92ea0e7d004fcc77eb090860f7b9a641c3bb4012a1fd08a253d74e3a6a83743fddd47f
7
- data.tar.gz: a73fc039021f78616cd847fab2b9d5de69ab54c7ba2487eaac86858d175b84f289b2a9fae5fd268ad8d429268485f526b8635354610407d7c708619e8114211b
6
+ metadata.gz: 53a9ed275c8a59a5e573ea5fa240a5ff68f48f58fbb65f093159c1dd10e85bda74831b25873fa72fcb40d056bbbce5571723b93ac2ce132bf277e56f9db2d468
7
+ data.tar.gz: 9fe3172cae2c0de6f88d8369075096345f10a363000e1a56d65479f52c8b40956172e93e0593f4dd08a5127b771ce04909203bcdf5f71db195ddc7a03bbc7ebe
@@ -1,3 +1,10 @@
1
+ ## Changes between Bunny 1.1.7 and 1.1.8
2
+
3
+ ### Initial Socket Connection Again Raises Bunny::TCPConnectionFailed
4
+
5
+ Initial socket connection again raises `Bunny::TCPConnectionFailed`
6
+ on the connection origin thread.
7
+
1
8
  ## Changes between Bunny 1.1.6 and 1.1.7
2
9
 
3
10
  ### Heartbeat Sender Thread Leak
@@ -240,11 +240,9 @@ module Bunny
240
240
 
241
241
  def initialize_socket
242
242
  begin
243
- @socket = Bunny::Timeout.timeout(@connect_timeout, ClientTimeout) do
244
- Bunny::SocketImpl.open(@host, @port,
245
- :keepalive => @opts[:keepalive],
246
- :socket_timeout => @connect_timeout)
247
- end
243
+ @socket = Bunny::SocketImpl.open(@host, @port,
244
+ :keepalive => @opts[:keepalive],
245
+ :socket_timeout => @connect_timeout)
248
246
  rescue StandardError, ClientTimeout => e
249
247
  @status = :not_connected
250
248
  raise Bunny::TCPConnectionFailed.new(e, self.hostname, self.port)
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Bunny
4
4
  # @return [String] Version of the library
5
- VERSION = "1.1.7"
5
+ VERSION = "1.1.8"
6
6
  end
@@ -0,0 +1,15 @@
1
+ require "spec_helper"
2
+
3
+ describe Bunny::Session do
4
+ context "with unreachable host" do
5
+ it "raises Bunny::TCPConnectionFailed" do
6
+ begin
7
+ conn = Bunny.new(:hostname => "192.192.192.192")
8
+ conn.start
9
+
10
+ fail "expected 192.192.192.192 to be unreachable"
11
+ rescue Bunny::TCPConnectionFailed => e
12
+ end
13
+ end
14
+ end
15
+ 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.1.7
4
+ version: 1.1.8
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-03-20 00:00:00.000000000 Z
15
+ date: 2014-03-27 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: amq-protocol
@@ -182,6 +182,7 @@ files:
182
182
  - spec/higher_level_api/integration/with_channel_spec.rb
183
183
  - spec/issues/issue100_spec.rb
184
184
  - spec/issues/issue141_spec.rb
185
+ - spec/issues/issue202_spec.rb
185
186
  - spec/issues/issue78_spec.rb
186
187
  - spec/issues/issue83_spec.rb
187
188
  - spec/issues/issue97_attachment.json
@@ -227,7 +228,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
227
228
  version: '0'
228
229
  requirements: []
229
230
  rubyforge_project:
230
- rubygems_version: 2.1.11
231
+ rubygems_version: 2.2.2
231
232
  signing_key:
232
233
  specification_version: 4
233
234
  summary: Popular easy to use Ruby client for RabbitMQ
@@ -278,6 +279,7 @@ test_files:
278
279
  - spec/higher_level_api/integration/with_channel_spec.rb
279
280
  - spec/issues/issue100_spec.rb
280
281
  - spec/issues/issue141_spec.rb
282
+ - spec/issues/issue202_spec.rb
281
283
  - spec/issues/issue78_spec.rb
282
284
  - spec/issues/issue83_spec.rb
283
285
  - spec/issues/issue97_attachment.json