amqp 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,11 +5,9 @@ before_script: ./bin/ci/before_build.sh
5
5
  rvm:
6
6
  - 1.8.7
7
7
  - rbx-18mode
8
- # - rbx-19mode
9
- - jruby
8
+ - jruby-18mode
10
9
  - 1.9.2
11
10
  - 1.9.3
12
- # - ruby-head
13
11
  gemfile:
14
12
  - Gemfile
15
13
  - gemfiles/eventmachine-pre
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
23
23
 
24
24
  # Dependencies
25
25
  s.add_dependency "eventmachine"
26
- s.add_dependency "amq-client", "~> 0.9.1"
26
+ s.add_dependency "amq-client", "~> 0.9.2"
27
27
  s.add_dependency "amq-protocol", ">= 0.9.0"
28
28
 
29
29
  begin
@@ -930,8 +930,7 @@ module AMQP
930
930
  # @api public
931
931
  def close(reply_code = 200, reply_text = DEFAULT_REPLY_TEXT, class_id = 0, method_id = 0, &block)
932
932
  r = super(reply_code, reply_text, class_id, method_id, &block)
933
- self.class.release_channel_id(@id)
934
-
933
+
935
934
  r
936
935
  end
937
936
 
@@ -1114,8 +1113,15 @@ module AMQP
1114
1113
 
1115
1114
  self.class.error(method.reply_text)
1116
1115
  end
1117
-
1118
-
1116
+
1117
+ # Overrides AMQ::Client::Channel version to also release the channel id
1118
+ #
1119
+ # @private
1120
+ # @api private
1121
+ def handle_close_ok(method)
1122
+ super(method)
1123
+ self.class.release_channel_id(@id)
1124
+ end
1119
1125
  # Resets channel state (for example, list of registered queue objects and so on).
1120
1126
  #
1121
1127
  # Most of the time, this method is not
@@ -6,5 +6,5 @@ module AMQP
6
6
  #
7
7
  # @see AMQ::Protocol::VERSION
8
8
  # @return [String] AMQP gem version
9
- VERSION = '0.9.2'
9
+ VERSION = '0.9.3'
10
10
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amqp
3
3
  version: !ruby/object:Gem::Version
4
- hash: 63
4
+ hash: 61
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 2
10
- version: 0.9.2
9
+ - 3
10
+ version: 0.9.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Aman Gupta
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2012-01-24 00:00:00 Z
20
+ date: 2012-02-09 00:00:00 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: eventmachine
@@ -41,12 +41,12 @@ dependencies:
41
41
  requirements:
42
42
  - - ~>
43
43
  - !ruby/object:Gem::Version
44
- hash: 57
44
+ hash: 63
45
45
  segments:
46
46
  - 0
47
47
  - 9
48
- - 1
49
- version: 0.9.1
48
+ - 2
49
+ version: 0.9.2
50
50
  type: :runtime
51
51
  version_requirements: *id002
52
52
  - !ruby/object:Gem::Dependency
@@ -337,7 +337,7 @@ files:
337
337
  homepage: http://github.com/ruby-amqp/amqp
338
338
  licenses: []
339
339
 
340
- post_install_message:
340
+ post_install_message: ""
341
341
  rdoc_options:
342
342
  - --include=examples --main README.md
343
343
  require_paths: