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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a1bad5e42a7c84e99e1e75651c62f0c2459497aacafea49319279d8de5251c9c
4
- data.tar.gz: 4c6a172e82892ce4301482d42fe03c59b299e6409efbc1bd620aacaf2bc24301
3
+ metadata.gz: ee1c8b3918ce9583f53e8d0e80c15b45ac402a33cd006b43cc022c90ddab02ae
4
+ data.tar.gz: 8f951013098962c00aca0e20ba82a3b81b6d30ccb7d36abfae333f042b9bbd53
5
5
  SHA512:
6
- metadata.gz: 9dbcc82cce20117208062ac716097982b96ad59bec1fa6a3326f5703ea47529c7afb2ddf9531d81b0b237d77a13aab253494c74da5c8312eb166bde150525707
7
- data.tar.gz: a6259dac811fabfd7791319d09e3ddf228b8b8a7f3f73e829fcd1b29630eae52e2c503a5682c7b3ac269068464947da2254343e0f0743ee0111284f87d9a284c
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*
@@ -68,8 +68,9 @@ module Goru
68
68
  rescue Errno::EAGAIN
69
69
  wait
70
70
  rescue Errno::ECONNRESET, Errno::EPIPE, EOFError
71
- finished
72
- nil
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
- finished
90
- nil
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
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Goru
4
- VERSION = "0.4.0"
4
+ VERSION = "0.4.1"
5
5
 
6
6
  # [public]
7
7
  #
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.0
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-16 00:00:00.000000000 Z
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.12
124
+ rubygems_version: 3.4.17
125
125
  signing_key:
126
126
  specification_version: 4
127
127
  summary: Concurrent routines for Ruby.