omq 0.15.1 → 0.15.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 +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/omq/version.rb +1 -1
- data/lib/omq.rb +10 -0
- 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: 1d8abfdf5533770decdf8afb3ff888e6c0a393d5c7efec57c3229d2bd4559d38
|
|
4
|
+
data.tar.gz: 6255e873ea2fe871cdbe09df38f5f959bdcfb274c4d9bfe1e05139d4a8cc35fd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 663ddb49423de2b24c2b56e768d76d75198fb5faba9e98978c179ffb91f12cb4e7c3bef3c7caf09178930c6aa04597747b259d7d27b58455a506d4531a66a183
|
|
7
|
+
data.tar.gz: b1a82047b9b00218ee4e95f91511dbb2441fbd325448fe1ad8cca40881ddd7e9678ef5c5fd7ab8bafb189fd026623831845c948dcf7806b5620f0fe482505d0c
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.15.2 — 2026-04-07
|
|
4
|
+
|
|
5
|
+
- **Add `OMQ.freeze_for_ractors!`** — freezes `CONNECTION_LOST`,
|
|
6
|
+
`CONNECTION_FAILED`, and `Engine.transports` so OMQ sockets can be
|
|
7
|
+
created inside bare Ractors. Call once before spawning Ractors.
|
|
8
|
+
|
|
3
9
|
## 0.15.0 — 2026-04-07
|
|
4
10
|
|
|
5
11
|
- **Fix pipe FIFO ordering** — messages from sequential source batches could
|
data/lib/omq/version.rb
CHANGED
data/lib/omq.rb
CHANGED
|
@@ -47,6 +47,16 @@ module OMQ
|
|
|
47
47
|
Errno::ENETUNREACH,
|
|
48
48
|
Socket::ResolutionError,
|
|
49
49
|
]
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
# Freezes module-level state so OMQ sockets can be used inside Ractors.
|
|
53
|
+
# Call this once before spawning any Ractors that create OMQ sockets.
|
|
54
|
+
#
|
|
55
|
+
def self.freeze_for_ractors!
|
|
56
|
+
Ractor.make_shareable(CONNECTION_LOST)
|
|
57
|
+
Ractor.make_shareable(CONNECTION_FAILED)
|
|
58
|
+
Ractor.make_shareable(Engine.transports)
|
|
59
|
+
end
|
|
50
60
|
end
|
|
51
61
|
|
|
52
62
|
|