ractorize 0.0.6 → 0.0.7

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/src/ractorize.rb +6 -0
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b13798c2672421a3ade98f40b682d17bf7cd7f4015623c5aaad5deae50a284f5
4
- data.tar.gz: f9d670957f28b585ef14ef1d2b86f28a3161fdb378eb5a6d6f164ac6bee5f44b
3
+ metadata.gz: 02d57de76c96c80c8fa5d7a49dcc54a12e9c7f849ff8951faba91806ff5dadbb
4
+ data.tar.gz: e6ae43cf484790673a4010505622b7255a09b7a5d04f358a2b5a8bec0ab6b917
5
5
  SHA512:
6
- metadata.gz: cbd7694277cd6e9d671727fd234751b5c0e847b77f44f39252e6a8db84eaf0edc20aa662e5baed4650b068b012880c26cf0f9356e559159864f80464fff12cc8
7
- data.tar.gz: d5dc1e7be2a29f0d5a6d4a268f185a0bb236d7eedc486559d088d31e270795ff601dd375a868df872ad2eef8bcf2600785a59ae1da6b239a2bab70a811f5c88d
6
+ metadata.gz: 5034e676239f3e6ccd3ea1aa83a0923c0b439800127fd1a3444c08ce93de706f48b05f87e68d697cddb6612d42d7ca057b1b29adef5954ca5b51575cd1320050
7
+ data.tar.gz: 461059bac8aeea154ec67ed22ed530ac7f8921902bef688d7a5d21927e67adaaab582e2bc528b7a556b4c1fb733a37b9a9202bf261eb6d048125761d516a720f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [0.0.7] - 2026-06-06
2
+
3
+ - Closed Ractor::Ports sometimes give IOError instead of Ractor::ClosedError so handle both
4
+
1
5
  ## [0.0.6] - 2026-06-06
2
6
 
3
7
  - Fix a bug where a closed port mysteriously breaks out of Kernel#loop
data/src/ractorize.rb CHANGED
@@ -275,6 +275,12 @@ module Ractorize
275
275
 
276
276
  begin
277
277
  return_port.send(value)
278
+ rescue IOError => e
279
+ # Unclear why this sometimes manifests as this error instead of ClosedError but
280
+ # need to handle them both.
281
+ # :nocov:
282
+ raise unless e.message == "closed stream"
283
+ # :nocov:
278
284
  rescue Ractor::ClosedError
279
285
  # Whoa... this error inherits from StopIteration and will kill the loop!!!
280
286
  # Nothing really to do here but keep the loop going and handle other
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ractorize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi