goru 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/goru/routines/io.rb +12 -4
- data/lib/goru/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee1c8b3918ce9583f53e8d0e80c15b45ac402a33cd006b43cc022c90ddab02ae
|
4
|
+
data.tar.gz: 8f951013098962c00aca0e20ba82a3b81b6d30ccb7d36abfae333f042b9bbd53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 339305691d3b38927b32c5cc51040a2cd48f179956bcfc6d04648631a6508d2d4147c63a3eef4a75cdd7517a37b255e654875c66f6da60b39a37b20a64fb2028
|
7
|
+
data.tar.gz: 65fa5d90461938fac3c3857e431505ba855dabd555afb60993b6a52f4f1d3468db0d7747f433d53139fbc2b34ce600b3677aeb0c73ac79f08514732454a7c599
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
## [v0.4.1](https://github.com/bryanp/goru/releases/tag/v0.4.1)
|
2
|
+
|
3
|
+
*released on 2023-07-29*
|
4
|
+
|
5
|
+
* `fix` [#23](https://github.com/bryanp/goru/pull/23) Handle `IOError` in io routines ([bryanp](https://github.com/bryanp))
|
6
|
+
|
1
7
|
## [v0.4.0](https://github.com/bryanp/goru/releases/tag/v0.4.0)
|
2
8
|
|
3
9
|
*released on 2023-07-16*
|
data/lib/goru/routines/io.rb
CHANGED
@@ -68,8 +68,9 @@ module Goru
|
|
68
68
|
rescue Errno::EAGAIN
|
69
69
|
wait
|
70
70
|
rescue Errno::ECONNRESET, Errno::EPIPE, EOFError
|
71
|
-
|
72
|
-
|
71
|
+
handle_io_unavailable
|
72
|
+
rescue IOError
|
73
|
+
handle_io_unavailable
|
73
74
|
end
|
74
75
|
|
75
76
|
def wait
|
@@ -86,8 +87,9 @@ module Goru
|
|
86
87
|
rescue Errno::EAGAIN
|
87
88
|
wait
|
88
89
|
rescue Errno::ECONNRESET, Errno::EPIPE, EOFError
|
89
|
-
|
90
|
-
|
90
|
+
handle_io_unavailable
|
91
|
+
rescue IOError
|
92
|
+
handle_io_unavailable
|
91
93
|
end
|
92
94
|
|
93
95
|
# [public]
|
@@ -97,6 +99,12 @@ module Goru
|
|
97
99
|
rescue Errno::EAGAIN
|
98
100
|
wait
|
99
101
|
rescue Errno::ECONNRESET, Errno::EPIPE, EOFError
|
102
|
+
handle_io_unavailable
|
103
|
+
rescue IOError
|
104
|
+
handle_io_unavailable
|
105
|
+
end
|
106
|
+
|
107
|
+
private def handle_io_unavailable
|
100
108
|
finished
|
101
109
|
nil
|
102
110
|
end
|
data/lib/goru/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: goru
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bryan Powell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07-
|
11
|
+
date: 2023-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: core-extension
|
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
121
|
- !ruby/object:Gem::Version
|
122
122
|
version: '0'
|
123
123
|
requirements: []
|
124
|
-
rubygems_version: 3.4.
|
124
|
+
rubygems_version: 3.4.17
|
125
125
|
signing_key:
|
126
126
|
specification_version: 4
|
127
127
|
summary: Concurrent routines for Ruby.
|