amq-client 0.7.0.alpha11 → 0.7.0.alpha12

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,7 +9,33 @@ module AMQ
9
9
  class EventMachineClient < EM::Connection
10
10
  # @private
11
11
  class Deferrable
12
+
13
+ #
14
+ # Behaviors
15
+ #
16
+
12
17
  include EventMachine::Deferrable
18
+
19
+ #
20
+ # API
21
+ #
22
+
23
+ # Same as EventMachine::Deferrable#callback but instead of prepending callback to callbacks list,
24
+ # appends it.
25
+ #
26
+ # @return [self]
27
+ # @api public
28
+ def append_callback(&block)
29
+ return unless block
30
+ @deferred_status ||= :unknown
31
+ if @deferred_status == :succeeded
32
+ block.call(*@deferred_args)
33
+ elsif @deferred_status != :failed
34
+ @callbacks ||= []
35
+ @callbacks.push(block)
36
+ end
37
+ self
38
+ end
13
39
  end
14
40
 
15
41
  #
@@ -1,5 +1,5 @@
1
1
  module AMQ
2
2
  module Client
3
- VERSION = "0.7.0.alpha11"
3
+ VERSION = "0.7.0.alpha12"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amq-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0.alpha11
4
+ version: 0.7.0.alpha12
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -12,12 +12,12 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain:
15
- date: 2011-04-23 00:00:00.000000000 +04:00
15
+ date: 2011-04-24 00:00:00.000000000 +04:00
16
16
  default_executable:
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: eventmachine
20
- requirement: &2152342960 !ruby/object:Gem::Requirement
20
+ requirement: &2165200260 !ruby/object:Gem::Requirement
21
21
  none: false
22
22
  requirements:
23
23
  - - ! '>='
@@ -25,10 +25,10 @@ dependencies:
25
25
  version: '0'
26
26
  type: :runtime
27
27
  prerelease: false
28
- version_requirements: *2152342960
28
+ version_requirements: *2165200260
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: amq-protocol
31
- requirement: &2152937180 !ruby/object:Gem::Requirement
31
+ requirement: &2165199840 !ruby/object:Gem::Requirement
32
32
  none: false
33
33
  requirements:
34
34
  - - ! '>='
@@ -36,7 +36,7 @@ dependencies:
36
36
  version: '0'
37
37
  type: :runtime
38
38
  prerelease: false
39
- version_requirements: *2152937180
39
+ version_requirements: *2165199840
40
40
  description: amq-client supports multiple networking adapters (EventMachine, TCP sockets,
41
41
  cool.io) and supposed to back more opinionated AMQP clients (such as amqp gem, bunny,
42
42
  et cetera) or be used directly in cases when access to more advanced AMQP 0.9.1