amq-protocol 2.6.0 → 2.7.0

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: 0b58eb9e3a561cb4902e3a1b2526a47b68d4f0b5431f459fd87cce35cd6936bc
4
- data.tar.gz: 21257ef030688922961fdeaf4a83d64b8ab3c21688e53c5fc41bf083b2277f1f
3
+ metadata.gz: 1c88e7605bb8cf664993429123aab42370d5f8772f6ae70792ad2e64fd16051a
4
+ data.tar.gz: 74c708d7dcf7fa7a136728e845b306b7ee4d5ce56c248cbaf24659d3a3de4b9b
5
5
  SHA512:
6
- metadata.gz: 6e80602244a9d0768c9fbe24d16c0acc884205d9ebf41142bf69963dad829c60170b299b7b8ee43734299f7eb45be2d54b36ca58ef4de0196fc142bd68f70d3c
7
- data.tar.gz: ea1f03bf20b010e0fbc23b1c8441ee6de0b71202b8f3b0a3a7b7574510b8a682eddcc7982caee8fbcb24c0b566bc6d9e67b485990ad40b67f291d8fbccadd0f9
6
+ metadata.gz: d6a6442583dfdb00958f6860df51a0fdfea871ff7defb3a459bbffd8e197217e6b611a034466ea41b0a2adb1203c4b873f9e81a60b27858dd4498f105eda6e48
7
+ data.tar.gz: 8859c61e44da33a17515ac51953178f2d55824b230677da2d750c8acc9ee0a3818a858800ba705a8a2c6115709375f7777970a0506acc61847362a7871b7fd8d
data/ChangeLog.md CHANGED
@@ -1,6 +1,8 @@
1
- ## Changes between 2.6.0 and 2.7.0 (unreleased)
1
+ ## Changes between 2.6.0 and 2.7.0 (Mar 31, 2026)
2
2
 
3
- No changes yet.
3
+ ### Channel.Close Predicates Now Return True Boolean
4
+
5
+ And not just truthy values (values that are not `nil` or `false`).
4
6
 
5
7
 
6
8
  ## Changes between 2.5.1 and 2.6.0 (Mar 30, 2026)
@@ -6,17 +6,17 @@ module AMQ
6
6
  class Close
7
7
  # @return [Boolean] true if the channel was closed due to a consumer delivery acknowledgement timeout
8
8
  def delivery_ack_timeout?
9
- reply_code == 406 && reply_text =~ /delivery acknowledgement on channel \d+ timed out/
9
+ reply_code == 406 && reply_text.match?(/delivery acknowledgement on channel \d+ timed out/)
10
10
  end
11
11
 
12
12
  # @return [Boolean] true if the channel was closed due to an unknown delivery tag (e.g. double ack)
13
13
  def unknown_delivery_tag?
14
- reply_code == 406 && reply_text =~ /unknown delivery tag/
14
+ reply_code == 406 && reply_text.match?(/unknown delivery tag/)
15
15
  end
16
16
 
17
17
  # @return [Boolean] true if the channel was closed because a message exceeded the configured max size
18
18
  def message_too_large?
19
- reply_code == 406 && reply_text =~ /larger than configured max size/
19
+ reply_code == 406 && reply_text.match?(/larger than configured max size/)
20
20
  end
21
21
  end
22
22
  end
@@ -1,5 +1,5 @@
1
1
  module AMQ
2
2
  module Protocol
3
- VERSION = "2.6.0"
3
+ VERSION = "2.7.0"
4
4
  end # Protocol
5
5
  end # AMQ
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amq-protocol
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.0
4
+ version: 2.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jakub Stastny