bunny 1.3.0 → 1.3.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: 972f0f0055bbc831144da54e6805c4d5f5e2262c
4
- data.tar.gz: ad2f3539fb6946771238e6451b17d33cfdba692b
3
+ metadata.gz: d9ff439246dbe426e92dd28209ffa0acab8fb5e9
4
+ data.tar.gz: 3762043ad87100abe20a84a0c63b5c4f0e54142a
5
5
  SHA512:
6
- metadata.gz: ad93a02f5623437589eb2027259de36a2269df8ab06d251b00e6b28b265f8f562068a1c7e473b2513eff18bdde77902b46a24c114a9a1c9dbe29426c93f67085
7
- data.tar.gz: da94e1d8349674cf2819678f2fb18a1fd911017fb7c99104d64d755c9d7f9622068db60a5502411c6442d04fe341372d09d31c6e5885c0cda18293ea04db3e81
6
+ metadata.gz: 766ba0c503ae3df0969214dee0d9d00da5550514aee46d3b5a95c232b78b62df0099f601ea2c85154ff0dce261ce41fc35ab4a2d91bf24aa4110cbb61176bb94
7
+ data.tar.gz: d5f8c93ac81cb252717c2e5d98fe06e4ab5e5027a82329f0ce2622f5b0e398b0f1b297af3f7f0ade43a548ff6e0724b8a6f75249ea38c9cd5300e3d8f8231499
data/ChangeLog.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## Changes between Bunny 1.3.0 and 1.3.1
2
+
3
+ ### NoMethodError on Thread During Shutdown
4
+
5
+ During abnormal termination, `Bunny::Session` no longer tries
6
+ to call the non-existent `terminate_with` method on its origin
7
+ thread.
8
+
9
+
1
10
  ## Changes between Bunny 1.2.0 and 1.3.0
2
11
 
3
12
  ### TLS Can Be Explicitly Disabled
data/lib/bunny/session.rb CHANGED
@@ -708,7 +708,7 @@ module Bunny
708
708
 
709
709
  clean_up_on_shutdown
710
710
  if threaded?
711
- @origin_thread.terminate_with(@last_connection_error)
711
+ @origin_thread.raise(@last_connection_error)
712
712
  else
713
713
  raise @last_connection_error
714
714
  end
@@ -1038,7 +1038,11 @@ module Bunny
1038
1038
  close_transport
1039
1039
  end
1040
1040
 
1041
- @origin_thread.terminate_with(e)
1041
+ if threaded?
1042
+ @origin_thread.raise(e)
1043
+ else
1044
+ raise e
1045
+ end
1042
1046
  else
1043
1047
  raise "could not open connection: server did not respond with connection.open-ok but #{connection_open_ok.inspect} instead"
1044
1048
  end
data/lib/bunny/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Bunny
4
4
  # @return [String] Version of the library
5
- VERSION = "1.3.0"
5
+ VERSION = "1.3.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.3.0
4
+ version: 1.3.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-06-18 00:00:00.000000000 Z
15
+ date: 2014-06-19 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: amq-protocol