protocol-http 0.43.0 → 0.44.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/protocol/http/body/stream.rb +16 -0
- data/lib/protocol/http/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63c9b35fa3c497df0bc9ea8d0ff9488ccebd46e09405a93c42e3b2c1cd8edad9
|
4
|
+
data.tar.gz: 128e2fde1a23a141156b8d0f72e52025a288e3196607a99c711b3f8ec9507130
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c696e34c35e8d47cf3870988961f5c1713bcdcd0663396db6c2e37ae3611a7e58876cf84db3bb1f1e217a436e3470b331cfe8461e6ce19f4c927738c7d66f8ed
|
7
|
+
data.tar.gz: 71433c766fa3fcc25cbb4104d3afe30f3f2daefc46d31e2ed0dfa3131453a23176db23993349447e74808b47ba2dd6dec39177bd4ab7d47f2d3eed87cf864bf3
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -129,6 +129,22 @@ module Protocol
|
|
129
129
|
read_partial(length, buffer) or raise EOFError, "End of file reached!"
|
130
130
|
end
|
131
131
|
|
132
|
+
# Iterate over each chunk of data in the stream.
|
133
|
+
#
|
134
|
+
# @yields {|chunk| ...} Each chunk of data.
|
135
|
+
def each(&block)
|
136
|
+
return to_enum unless block_given?
|
137
|
+
|
138
|
+
if @buffer
|
139
|
+
yield @buffer
|
140
|
+
@buffer = nil
|
141
|
+
end
|
142
|
+
|
143
|
+
while chunk = read_next
|
144
|
+
yield chunk
|
145
|
+
end
|
146
|
+
end
|
147
|
+
|
132
148
|
# Read data from the stream without blocking if possible.
|
133
149
|
def read_nonblock(length, buffer = nil, exception: nil)
|
134
150
|
@buffer ||= read_next
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: protocol-http
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.44.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -47,7 +47,7 @@ cert_chain:
|
|
47
47
|
Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
|
48
48
|
voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
|
49
49
|
-----END CERTIFICATE-----
|
50
|
-
date: 2024-11-
|
50
|
+
date: 2024-11-12 00:00:00.000000000 Z
|
51
51
|
dependencies: []
|
52
52
|
description:
|
53
53
|
email:
|
metadata.gz.sig
CHANGED
Binary file
|