amqp 0.8.0.rc4 → 0.8.0.rc5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +1 -1
- data/amqp.gemspec +1 -1
- data/examples/error_handling/global_channel_level_exception_handler.rb +2 -2
- data/lib/amqp/channel.rb +3 -3
- data/lib/amqp/version.rb +1 -1
- metadata +9 -11
data/CHANGELOG
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
* [API] AMQP::Error instance now may carry cause, an exception that caused exception in question to be raised.
|
8
8
|
* [API] When initial TCP connection fails, default action is now to raise AMQP::TCPConnectionFailed.
|
9
9
|
* [API] AMQP::BasicClient#reconnect now takes 2nd optional argument, period of waiting in seconds.
|
10
|
-
* [FEATURE] Handlers for initial connection
|
10
|
+
* [FEATURE] Handlers for initial connection failure, connection loss; channel-level exceptions handlers on Channel instances.
|
11
11
|
* [API] AMQP::Exchange#initialize now accepts :arguments option that takes a hash.
|
12
12
|
* [API] AMQP::Queue#initialize now accepts :arguments option that takes a hash.
|
13
13
|
* [API] AMQP#Logger is deprecated. It will be removed before 1.0 release.
|
data/amqp.gemspec
CHANGED
@@ -36,8 +36,8 @@ AMQP.start("amqp://guest:guest@dev.rabbitmq.com:5672/") do |connection, open_ok|
|
|
36
36
|
puts "Handling channel-level exception at instance level"
|
37
37
|
end
|
38
38
|
|
39
|
-
AMQP::Channel.on_error do |
|
40
|
-
puts "Handling channel-level exception at GLOBAL level. Jeez."
|
39
|
+
AMQP::Channel.on_error do |message|
|
40
|
+
puts "Handling channel-level exception at GLOBAL level. Jeez. Message is #{message}"
|
41
41
|
end
|
42
42
|
|
43
43
|
EventMachine.add_timer(0.4) do
|
data/lib/amqp/channel.rb
CHANGED
@@ -853,10 +853,10 @@ module AMQP
|
|
853
853
|
#
|
854
854
|
# @private
|
855
855
|
# @api private
|
856
|
-
def handle_close(
|
857
|
-
super(
|
856
|
+
def handle_close(method)
|
857
|
+
super(method)
|
858
858
|
|
859
|
-
self.class.error(
|
859
|
+
self.class.error(method.reply_text)
|
860
860
|
end
|
861
861
|
|
862
862
|
|
data/lib/amqp/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: amqp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 977940490
|
5
|
+
prerelease: true
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 8
|
9
9
|
- 0
|
10
|
-
-
|
11
|
-
|
12
|
-
version: 0.8.0.rc4
|
10
|
+
- rc5
|
11
|
+
version: 0.8.0.rc5
|
13
12
|
platform: ruby
|
14
13
|
authors:
|
15
14
|
- Aman Gupta
|
@@ -18,7 +17,7 @@ authors:
|
|
18
17
|
autorequire:
|
19
18
|
bindir: bin
|
20
19
|
cert_chain:
|
21
|
-
date: 2011-05-
|
20
|
+
date: 2011-05-04 00:00:00 +04:00
|
22
21
|
default_executable:
|
23
22
|
dependencies:
|
24
23
|
- !ruby/object:Gem::Dependency
|
@@ -43,14 +42,13 @@ dependencies:
|
|
43
42
|
requirements:
|
44
43
|
- - ">="
|
45
44
|
- !ruby/object:Gem::Version
|
46
|
-
hash:
|
45
|
+
hash: 1369027927
|
47
46
|
segments:
|
48
47
|
- 0
|
49
48
|
- 7
|
50
49
|
- 0
|
51
|
-
-
|
52
|
-
|
53
|
-
version: 0.7.0.alpha16
|
50
|
+
- alpha17
|
51
|
+
version: 0.7.0.alpha17
|
54
52
|
type: :runtime
|
55
53
|
version_requirements: *id002
|
56
54
|
description: Widely used, feature-rich asynchronous AMQP 0.9.1 client with batteries included
|
@@ -246,7 +244,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
246
244
|
requirements: []
|
247
245
|
|
248
246
|
rubyforge_project: amqp
|
249
|
-
rubygems_version: 1.
|
247
|
+
rubygems_version: 1.3.7
|
250
248
|
signing_key:
|
251
249
|
specification_version: 3
|
252
250
|
summary: AMQP client implementation in Ruby/EventMachine.
|