async-io 1.34.1 → 1.34.2

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: 3791c085eb9bb840e8284d6b480a796412729f34b45835610cab5a26c35db171
4
- data.tar.gz: 35ce53fb9b6396bd4d233d9ac70df721e8b7abd28db3fcc7a496569bac897623
3
+ metadata.gz: a8c1a9e5d89a2edf192c69d6fac28fa00a9c24b0de074a2f9b4e5a6666496d93
4
+ data.tar.gz: b4f9f3db305d8cbca108855076cb9ca9c8ba003082d02dabc400c4ae2ff2a05a
5
5
  SHA512:
6
- metadata.gz: f9d0bbb019c4dd2d95440efbb2fbb2241d8e62933c167dae1f54a8ae5e2887a1ece25e7186fd1cd030095dc742f460abb2eadc707240a08ace08e373d67811e2
7
- data.tar.gz: cada614b6a50dceee3aa55350e2cf6fb5af1fa2d6db562892b2e28fcae4ba475c743907dbc5d923cdc9b2eec88a128c89e5221052b9786ec7d3afbd9627567c1
6
+ metadata.gz: 631aa9c93ef096f8563ab56153c78dee3289f5ebc463c557476b7722e77ed0d76c6d49a139915579e1ad430df47d25efbadbf25fa3103d1de61246b7ce685395
7
+ data.tar.gz: 90673353c83e111b17239fbf0df847339864adb18b7501db04f58dcc543e5d57e6b8d41cc0248f308ce96ff3506abcbf4b7984b31a4056c42c883f79a0c61e38
@@ -114,7 +114,9 @@ module Async
114
114
  raise exception, "encountered eof while reading data"
115
115
  end
116
116
 
117
- alias readpartial read_partial
117
+ def readpartial
118
+ read_partial or raise EOFError, "Encountered eof while reading data!"
119
+ end
118
120
 
119
121
  # Efficiently read data from the stream until encountering pattern.
120
122
  # @param pattern [String] The pattern to match.
@@ -22,6 +22,6 @@
22
22
 
23
23
  module Async
24
24
  module IO
25
- VERSION = "1.34.1"
25
+ VERSION = "1.34.2"
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-io
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.34.1
4
+ version: 1.34.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -16,7 +16,7 @@ authors:
16
16
  autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
- date: 2022-12-28 00:00:00.000000000 Z
19
+ date: 2023-01-30 00:00:00.000000000 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: async