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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6a301e53d2d2ccaf00604ec927599d152ae68d430067dead05a2155e232d7ac8
4
- data.tar.gz: 21cd71578d7f5f02a68955b657e8799e0d74b72ffb80afadd59dc948d2d0d9ca
3
+ metadata.gz: e2395576c8aba120a122bc6f5855a3cb3b98c7fbbbc5b3cb8ce9c6a03428ac60
4
+ data.tar.gz: 4b20aa1a240517db6318ed8a0e34e4a86b928f34b28bd62faae5ae7ad565d149
5
5
  SHA512:
6
- metadata.gz: 43c713f5a9e8862357c4664a7c8d62c1e0a4abd24dbc65b20bd6c2c212752a7c362e30e844f94f321720f97634a77bc0c87d414b23fe62f363e152fbffa6e337
7
- data.tar.gz: f5bb6d9fd9d6419ddaafdf16391fe3019b8e9feb6a91f2fa246cecbc0123c3432822cc302809f8ac1b26d643ae149e2eeee13b3bd1bd3013a2c35562b45b2368
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
- else
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
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Protocol
7
7
  module HTTP
8
- VERSION = "0.24.2"
8
+ VERSION = "0.24.3"
9
9
  end
10
10
  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.2
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-02 00:00:00.000000000 Z
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