bunny 0.9.0 → 0.9.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a6609fd8d343c1eec98e9da88ae45dfd5f4a8700
4
- data.tar.gz: 44d923b952630e72f34c86f1301518b2c0f09dde
3
+ metadata.gz: 9e5fc526781ca58758094abdb97f80c73dbbd895
4
+ data.tar.gz: 776c3e93dd301774054da7ac4a99969559a4efdc
5
5
  SHA512:
6
- metadata.gz: 631b259c7c43c8718fc488f4d66324dea03adcce07677454283c2cb23158ca568f87e547e21e2002ff983827f5e6d65c90547a798e4c56ed6e6641e01cff3931
7
- data.tar.gz: c2aaf955089270d06e50279b6ca1499afdf386767e6fb4f227e3b4ee60471fdc766b1f4e58a68188d0f2670491a9dbc109d9f86a712abc370208c3ab3ebe09ff
6
+ metadata.gz: 207adf5c0274c4277ab0c5a685188392d7f436b89bdec8101e98be513947ec44b8f560c8a0a190aad99de0787c5386b2757cc097f6de1453f41cdb9306f5ce77
7
+ data.tar.gz: 4c20d9682bd762032fd3ca4b975b2c64096166c1b4ed863a364d41648a94b52d59332f016d96ab3e0e3aeb93b210ce403e7196e9348b25f59ed29b64697a074a
@@ -146,6 +146,9 @@ module Bunny
146
146
  @locale = @opts.fetch(:locale, DEFAULT_LOCALE)
147
147
  # mutex for the channel id => channel hash
148
148
  @channel_mutex = Mutex.new
149
+ # transport operations/continuations mutex. A workaround for
150
+ # the non-reentrant Ruby mutexes. MK.
151
+ @transport_mutex = Mutex.new
149
152
  @channels = Hash.new
150
153
 
151
154
  self.reset_continuations
@@ -336,7 +339,7 @@ module Bunny
336
339
  n = ch.number
337
340
  self.register_channel(ch)
338
341
 
339
- @channel_mutex.synchronize do
342
+ @transport_mutex.synchronize do
340
343
  @transport.send_frame(AMQ::Protocol::Channel::Open.encode(n, AMQ::Protocol::EMPTY_STRING))
341
344
  end
342
345
  @last_channel_open_ok = wait_on_continuations
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Bunny
4
4
  # @return [String] Version of the library
5
- VERSION = "0.9.0"
5
+ VERSION = "0.9.1"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bunny
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Duncan
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2013-07-12 00:00:00.000000000 Z
15
+ date: 2013-07-17 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: amq-protocol