bunny 0.9.4 → 0.9.5
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +2 -2
- data/ChangeLog.md +8 -1
- data/lib/bunny/session.rb +8 -6
- data/lib/bunny/version.rb +1 -1
- data/spec/higher_level_api/integration/connection_stop_spec.rb +12 -0
- metadata +24 -13
- checksums.yaml +0 -7
data/.travis.yml
CHANGED
data/ChangeLog.md
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
## Changes between Bunny 0.9.4 and 0.9.5
|
2
2
|
|
3
|
-
|
3
|
+
### connection.close Raises Exceptions on Connection Thread
|
4
|
+
|
5
|
+
Connection-level exceptions (including when a connection is closed via
|
6
|
+
management UI or `rabbitmqctl`) will now be raised on the connection
|
7
|
+
thread so they
|
8
|
+
|
9
|
+
* can be handled by applications
|
10
|
+
* do not start connection recovery, which may be uncalled for
|
4
11
|
|
5
12
|
|
6
13
|
## Changes between Bunny 0.9.3 and 0.9.4
|
data/lib/bunny/session.rb
CHANGED
@@ -370,13 +370,15 @@ module Bunny
|
|
370
370
|
|
371
371
|
# @private
|
372
372
|
def close_connection(sync = true)
|
373
|
-
@transport.
|
373
|
+
if @transport.open?
|
374
|
+
@transport.send_frame(AMQ::Protocol::Connection::Close.encode(200, "Goodbye", 0, 0))
|
374
375
|
|
375
|
-
|
376
|
-
|
376
|
+
maybe_shutdown_heartbeat_sender
|
377
|
+
@status = :not_connected
|
377
378
|
|
378
|
-
|
379
|
-
|
379
|
+
if sync
|
380
|
+
@last_connection_close_ok = wait_on_continuations
|
381
|
+
end
|
380
382
|
end
|
381
383
|
end
|
382
384
|
|
@@ -392,7 +394,7 @@ module Bunny
|
|
392
394
|
@last_connection_error = instantiate_connection_level_exception(method)
|
393
395
|
@continuations.push(method)
|
394
396
|
|
395
|
-
raise
|
397
|
+
@origin_thread.raise(@last_connection_error)
|
396
398
|
when AMQ::Protocol::Connection::CloseOk then
|
397
399
|
@last_connection_close_ok = method
|
398
400
|
begin
|
data/lib/bunny/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bunny
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.5
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Chris Duncan
|
@@ -17,24 +18,31 @@ dependencies:
|
|
17
18
|
- !ruby/object:Gem::Dependency
|
18
19
|
name: amq-protocol
|
19
20
|
requirement: !ruby/object:Gem::Requirement
|
21
|
+
none: false
|
20
22
|
requirements:
|
21
|
-
- - '>='
|
23
|
+
- - ! '>='
|
22
24
|
- !ruby/object:Gem::Version
|
23
25
|
version: 1.6.0
|
24
26
|
type: :runtime
|
25
27
|
prerelease: false
|
26
28
|
version_requirements: !ruby/object:Gem::Requirement
|
29
|
+
none: false
|
27
30
|
requirements:
|
28
|
-
- - '>='
|
31
|
+
- - ! '>='
|
29
32
|
- !ruby/object:Gem::Version
|
30
33
|
version: 1.6.0
|
31
34
|
description: Easy to use, feature complete Ruby client for RabbitMQ 2.0.
|
32
35
|
email:
|
33
|
-
-
|
34
|
-
|
35
|
-
-
|
36
|
-
|
37
|
-
-
|
36
|
+
- !binary |-
|
37
|
+
Y2VsbGRlZUBnbWFpbC5jb20=
|
38
|
+
- !binary |-
|
39
|
+
ZXJpY0A1c3RvcHMuY29t
|
40
|
+
- !binary |-
|
41
|
+
c3Rhc3RueUAxMDFpZGVhcy5jeg==
|
42
|
+
- !binary |-
|
43
|
+
bWljaGFlbEBub3ZlbWJlcmFpbi5jb20=
|
44
|
+
- !binary |-
|
45
|
+
c2thZXNAcmFpbHNleHByZXNzLmRl
|
38
46
|
executables: []
|
39
47
|
extensions: []
|
40
48
|
extra_rdoc_files:
|
@@ -137,6 +145,7 @@ files:
|
|
137
145
|
- spec/higher_level_api/integration/channel_open_spec.rb
|
138
146
|
- spec/higher_level_api/integration/confirm_select_spec.rb
|
139
147
|
- spec/higher_level_api/integration/connection_spec.rb
|
148
|
+
- spec/higher_level_api/integration/connection_stop_spec.rb
|
140
149
|
- spec/higher_level_api/integration/consistent_hash_exchange_spec.rb
|
141
150
|
- spec/higher_level_api/integration/consumer_cancellation_notification_spec.rb
|
142
151
|
- spec/higher_level_api/integration/dead_lettering_spec.rb
|
@@ -184,26 +193,27 @@ files:
|
|
184
193
|
homepage: http://rubybunny.info
|
185
194
|
licenses:
|
186
195
|
- MIT
|
187
|
-
metadata: {}
|
188
196
|
post_install_message:
|
189
197
|
rdoc_options: []
|
190
198
|
require_paths:
|
191
199
|
- lib
|
192
200
|
required_ruby_version: !ruby/object:Gem::Requirement
|
201
|
+
none: false
|
193
202
|
requirements:
|
194
|
-
- - '>='
|
203
|
+
- - ! '>='
|
195
204
|
- !ruby/object:Gem::Version
|
196
205
|
version: '0'
|
197
206
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
207
|
+
none: false
|
198
208
|
requirements:
|
199
|
-
- - '>='
|
209
|
+
- - ! '>='
|
200
210
|
- !ruby/object:Gem::Version
|
201
211
|
version: '0'
|
202
212
|
requirements: []
|
203
213
|
rubyforge_project:
|
204
|
-
rubygems_version:
|
214
|
+
rubygems_version: 1.8.25
|
205
215
|
signing_key:
|
206
|
-
specification_version:
|
216
|
+
specification_version: 3
|
207
217
|
summary: Popular easy to use Ruby client for RabbitMQ
|
208
218
|
test_files:
|
209
219
|
- spec/compatibility/queue_declare_spec.rb
|
@@ -223,6 +233,7 @@ test_files:
|
|
223
233
|
- spec/higher_level_api/integration/channel_open_spec.rb
|
224
234
|
- spec/higher_level_api/integration/confirm_select_spec.rb
|
225
235
|
- spec/higher_level_api/integration/connection_spec.rb
|
236
|
+
- spec/higher_level_api/integration/connection_stop_spec.rb
|
226
237
|
- spec/higher_level_api/integration/consistent_hash_exchange_spec.rb
|
227
238
|
- spec/higher_level_api/integration/consumer_cancellation_notification_spec.rb
|
228
239
|
- spec/higher_level_api/integration/dead_lettering_spec.rb
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: 6bf2e653c0def6db325c55467b9aadc29cd1a95c
|
4
|
-
data.tar.gz: e842ff44b84872269ff66ab83d1cf9f46fab5708
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: c526be96cb7740a54e13657302c3628abf86f8165f722ad44b55cf3d3a94b0bbeddaf603143ed7f572c3c595871104bcdecad916f318cc28951aec392db5de35
|
7
|
-
data.tar.gz: 7d60dbc8c64568343d913d4c03f8f142ef0ed8b4daea45197ecf73a4c8192af61bb19bf9afd9700ac3aea587b8740c73ea6f95b58add6bbcb1dfa7f5637e9d0b
|