amqp 1.1.4 → 1.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0b474fa8cecd7ea1ba095811ee1798338db1e0ab
4
- data.tar.gz: 6464f1611b35aa95be57ee3500d1e77b32c2eaf7
3
+ metadata.gz: c75b12b09ec783fd8d5b1e953b2ad36d348401f7
4
+ data.tar.gz: 3a2e57b606aa0563c2b94ff911a4fd32cacac18a
5
5
  SHA512:
6
- metadata.gz: 31ee1dc8e153698b827d793879fe2bbe92f88823eee7eb3dc1743bf24ef09353f0479609bde744242a2608baecd47dfef214233575ea0c33ea5360ed6116e70b
7
- data.tar.gz: f49e7b6f83fb9fbe310c272fa00d3d1ad715ab01fa0c800fc10817c6440a066fee19e6af1540355d4ec32ee374c4ab784e4f8d92656050bfb9b0c841e6d3dc19
6
+ metadata.gz: f7956da40b93fb3aca23c1a3c318c9bc343761e4bf2265019957dfb48a8a482284fc52118fa4b5dea46b9b8ac6b4d0fbc8af76d1605cc6b3d7921dd148af8688
7
+ data.tar.gz: 87f9aa52d4ccbbec0cf3893d62534a6bf4f6c31facc379c19b555b6010cf258b663462ccd0026ee0b45338ed22d499a324e99d89f13d0d3fd718831ea9525c9b
data/lib/amqp/channel.rb CHANGED
@@ -949,10 +949,12 @@ module AMQP
949
949
  #
950
950
  # @api public
951
951
  def close(reply_code = 200, reply_text = DEFAULT_REPLY_TEXT, class_id = 0, method_id = 0, &block)
952
- self.status = :closing
953
- @connection.send_frame(AMQ::Protocol::Channel::Close.encode(@id, reply_code, reply_text, class_id, method_id))
952
+ self.once_open do
953
+ self.status = :closing
954
+ @connection.send_frame(AMQ::Protocol::Channel::Close.encode(@id, reply_code, reply_text, class_id, method_id))
954
955
 
955
- self.redefine_callback :close, &block
956
+ self.redefine_callback :close, &block
957
+ end
956
958
  end
957
959
 
958
960
  # @endgroup
data/lib/amqp/version.rb CHANGED
@@ -6,5 +6,5 @@ module AMQP
6
6
  #
7
7
  # @see AMQ::Protocol::VERSION
8
8
  # @return [String] AMQP gem version
9
- VERSION = '1.1.4'
9
+ VERSION = '1.1.5'
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amqp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aman Gupta