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 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 failre, connection loss; channel-level exceptions handlers on Channel instances.
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.
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
25
25
 
26
26
  # Dependencies
27
27
  s.add_dependency "eventmachine"
28
- s.add_dependency "amq-client", ">= 0.7.0.alpha16"
28
+ s.add_dependency "amq-client", ">= 0.7.0.alpha17"
29
29
 
30
30
  begin
31
31
  require "changelog"
@@ -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 |ch, close|
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
@@ -853,10 +853,10 @@ module AMQP
853
853
  #
854
854
  # @private
855
855
  # @api private
856
- def handle_close(_, exception = nil)
857
- super(_, exception)
856
+ def handle_close(method)
857
+ super(method)
858
858
 
859
- self.class.error(exception.message)
859
+ self.class.error(method.reply_text)
860
860
  end
861
861
 
862
862
 
@@ -6,5 +6,5 @@ module AMQP
6
6
  #
7
7
  # @see AMQ::Protocol::VERSION
8
8
  # @return [String] AMQP gem version
9
- VERSION = '0.8.0.rc4'
9
+ VERSION = '0.8.0.rc5'
10
10
  end
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: 1276957477555352241
5
- prerelease: 6
4
+ hash: 977940490
5
+ prerelease: true
6
6
  segments:
7
7
  - 0
8
8
  - 8
9
9
  - 0
10
- - rc
11
- - 4
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-02 00:00:00 +04:00
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: 1552698946208022719
45
+ hash: 1369027927
47
46
  segments:
48
47
  - 0
49
48
  - 7
50
49
  - 0
51
- - alpha
52
- - 16
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.5.2
247
+ rubygems_version: 1.3.7
250
248
  signing_key:
251
249
  specification_version: 3
252
250
  summary: AMQP client implementation in Ruby/EventMachine.