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 +4 -4
- data/ChangeLog.md +4 -2
- data/lib/amq/protocol/channel_close.rb +3 -3
- data/lib/amq/protocol/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1c88e7605bb8cf664993429123aab42370d5f8772f6ae70792ad2e64fd16051a
|
|
4
|
+
data.tar.gz: 74c708d7dcf7fa7a136728e845b306b7ee4d5ce56c248cbaf24659d3a3de4b9b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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 (
|
|
1
|
+
## Changes between 2.6.0 and 2.7.0 (Mar 31, 2026)
|
|
2
2
|
|
|
3
|
-
|
|
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
|
|
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
|
|
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
|
|
19
|
+
reply_code == 406 && reply_text.match?(/larger than configured max size/)
|
|
20
20
|
end
|
|
21
21
|
end
|
|
22
22
|
end
|
data/lib/amq/protocol/version.rb
CHANGED