async-io 1.34.2 → 1.34.3
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/lib/async/io/stream.rb +2 -2
- data/lib/async/io/version.rb +1 -1
- 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: c46c543da8514fafc78e12bbbcd6fd5abe30ce4cfd649fcb475a0410fb37179a
|
4
|
+
data.tar.gz: 8318595b652b6a7f272c97b978efab37d9e7a83e9764fa4fec692a3df965f506
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5bbab075ddb84a43c1c84b02e67f01ac2a948ce20b405ce91665b1d2a0865aea89cc8d410aeb52bcb66cef753b8853bdda3c890d792d9df610c937978fb5e954
|
7
|
+
data.tar.gz: 94465c8f599fc42acd819016785059dbee83e7f37325a685f7c6b1132877366b7f92ef0cba81c765e65dd2d7bb3864c3c5e5f2819b6e9d0f5bb0a4e820ea5874
|
data/lib/async/io/stream.rb
CHANGED
@@ -114,8 +114,8 @@ module Async
|
|
114
114
|
raise exception, "encountered eof while reading data"
|
115
115
|
end
|
116
116
|
|
117
|
-
def readpartial
|
118
|
-
read_partial or raise EOFError, "Encountered eof while reading data!"
|
117
|
+
def readpartial(size = nil)
|
118
|
+
read_partial(size) or raise EOFError, "Encountered eof while reading data!"
|
119
119
|
end
|
120
120
|
|
121
121
|
# Efficiently read data from the stream until encountering pattern.
|
data/lib/async/io/version.rb
CHANGED