protocol-http 0.24.2 → 0.24.3
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 +5 -2
- 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: e2395576c8aba120a122bc6f5855a3cb3b98c7fbbbc5b3cb8ce9c6a03428ac60
|
4
|
+
data.tar.gz: 4b20aa1a240517db6318ed8a0e34e4a86b928f34b28bd62faae5ae7ad565d149
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69c8da38bf38207c0b815973b6de1286066ef606717d1b20f13af2e79ed2ede88c932c3656ee178d522cd934ddd4c17b3a8c12749b332b6db9f10ee8cf503a2f
|
7
|
+
data.tar.gz: 6846f00a5d65e3230228bfdfd9e94d76372ca0528b6977fcd9c8ebf1f647a21793a4bfd340b818950c1a5e5f74e884d815176067ea56b353a5838c14e582aabe
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -19,6 +19,7 @@ module Protocol
|
|
19
19
|
# Will hold remaining data in `#read`.
|
20
20
|
@buffer = nil
|
21
21
|
@closed = false
|
22
|
+
@closed_read = false
|
22
23
|
end
|
23
24
|
|
24
25
|
attr :input
|
@@ -146,6 +147,9 @@ module Protocol
|
|
146
147
|
end
|
147
148
|
|
148
149
|
def close_read
|
150
|
+
@closed_read = true
|
151
|
+
@buffer = nil
|
152
|
+
|
149
153
|
@input&.close
|
150
154
|
@input = nil
|
151
155
|
end
|
@@ -181,8 +185,7 @@ module Protocol
|
|
181
185
|
def read_next
|
182
186
|
if @input
|
183
187
|
return @input.read
|
184
|
-
|
185
|
-
@input = nil
|
188
|
+
elsif @closed_read
|
186
189
|
raise IOError, "Stream is not readable, input has been closed!"
|
187
190
|
end
|
188
191
|
end
|
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.24.
|
4
|
+
version: 0.24.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -43,7 +43,7 @@ cert_chain:
|
|
43
43
|
Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
|
44
44
|
voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
|
45
45
|
-----END CERTIFICATE-----
|
46
|
-
date: 2023-06-
|
46
|
+
date: 2023-06-10 00:00:00.000000000 Z
|
47
47
|
dependencies:
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: bundler
|
metadata.gz.sig
CHANGED
Binary file
|