bunny 2.20.0 → 2.20.2

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
  SHA256:
3
- metadata.gz: 468bfc7996c3f5788b662177b34a05347cfcb62719dcf28ed80eda672353785b
4
- data.tar.gz: 2bdfafeb9150f68fc6dbf63fdc9b14463c0f00cb0f7a9641f1b15ddf2e4cb56e
3
+ metadata.gz: 46774013196be7a46ad133b7cf5af2fc4a6b2da1dc09c18542833cb1c9558298
4
+ data.tar.gz: 0626e219bd998dcf20f34b050300ef03f1c8a0464936fb7fee4796bec840d463
5
5
  SHA512:
6
- metadata.gz: b51c187bd404eb6a57c5ce7dd061f25de84cff1f27873e38a751269410ee46a2f639a3b94b0e4f1544c9044850df9e8db5d45fe9a35d9ba2e7bd392f2290e72b
7
- data.tar.gz: 863c430420bc560223e24e90fb259bfc537ef73c016b2089e14d1b73307f8564cf945ade393d36b0cfe4a259b4daec88f50ee12d0a6cb037d27ce5aab0466d64
6
+ metadata.gz: c3de342e840d6f79326cd8ba4711e723bfd35279f7a3299523bdef8df16478e6a6715b311534de11f2abe220ca1e7be0654b21d7a4a0c1529e849245c6d49593
7
+ data.tar.gz: 3b738e7ce55f867da133175909afdde7f3167caa5598cdc6274dfd584263d13b55494b6dc2df674b0ed0955d6bf14413f750f2a245f76293a7037d6ffd93a726
data/lib/bunny/queue.rb CHANGED
@@ -68,6 +68,9 @@ module Bunny
68
68
  @options[:arguments]
69
69
  end
70
70
  verify_type!(@arguments)
71
+ # reassigns updated and verified arguments because Bunny::Channel#declare_queue
72
+ # accepts a map of options
73
+ @options[:arguments] = @arguments
71
74
 
72
75
  @bindings = Array.new
73
76
 
data/lib/bunny/session.rb CHANGED
@@ -671,8 +671,12 @@ module Bunny
671
671
  # avoid doing that while holding a mutex lock. MK.
672
672
  ch.handle_method(method)
673
673
  ensure
674
- # synchronises on @channel_mutex under the hood
675
- self.unregister_channel(ch)
674
+ if ch.nil?
675
+ @logger.warn "Received a server-sent channel.close but the channel was not found locally. Ignoring the frame."
676
+ else
677
+ # synchronises on @channel_mutex under the hood
678
+ self.unregister_channel(ch)
679
+ end
676
680
  end
677
681
  when AMQ::Protocol::Basic::GetEmpty then
678
682
  ch = find_channel(ch_number)
data/lib/bunny/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Bunny
4
4
  # @return [String] Version of the library
5
- VERSION = "2.20.0"
5
+ VERSION = "2.20.2"
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: 2.20.0
4
+ version: 2.20.2
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: 2022-12-16 00:00:00.000000000 Z
15
+ date: 2023-01-12 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: amq-protocol
@@ -54,7 +54,7 @@ dependencies:
54
54
  - - ">="
55
55
  - !ruby/object:Gem::Version
56
56
  version: 1.0.2
57
- description: Easy to use, feature complete Ruby client for RabbitMQ 3.3 and later
57
+ description: Easy to use, feature complete Ruby client for RabbitMQ 3.9 and later
58
58
  versions.
59
59
  email:
60
60
  - michael.s.klishin@gmail.com