amq-client 0.7.0.alpha28 → 0.7.0.alpha29

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.
@@ -261,6 +261,8 @@ module AMQ
261
261
  @queues_awaiting_cancel_ok = Array.new
262
262
 
263
263
  @queues_awaiting_get_response = Array.new
264
+
265
+ @callbacks = Hash.new
264
266
  end # reset_state!
265
267
 
266
268
 
@@ -62,10 +62,7 @@ module AMQ
62
62
 
63
63
 
64
64
  def error(exception)
65
- # Asynchronous error handling.
66
- # Set callback for given class (Queue for example)
67
- # or for the Connection class (or instance, of course).
68
- callbacks = [self.callbacks[:close], self.connection.callbacks[:close]].flatten.compact
65
+ callbacks = [@callbacks[:close]].flatten.compact
69
66
 
70
67
  callbacks.map { |c| c.call(exception) } if callbacks.any?
71
68
  end
@@ -1,5 +1,5 @@
1
1
  module AMQ
2
2
  module Client
3
- VERSION = "0.7.0.alpha28"
3
+ VERSION = "0.7.0.alpha29"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amq-client
3
3
  version: !ruby/object:Gem::Version
4
- hash: -3702664428
4
+ hash: -3702664426
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
9
  - 0
10
10
  - alpha
11
- - 28
12
- version: 0.7.0.alpha28
11
+ - 29
12
+ version: 0.7.0.alpha29
13
13
  platform: ruby
14
14
  authors:
15
15
  - Jakub Stastny