protocol-http 0.23.7 → 0.23.10

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: 3684eaed45be5b2982d7e66469f286d48ab654903603ec9067b9d4c5753e9426
4
- data.tar.gz: 68af8b829774b8674a9892f7ae2174c272c1faac17b01906797310edc5067e5e
3
+ metadata.gz: cc95865af67ba0af08aa5ba078ad5cd9bd52ca325c970a59cc31939cf3987e3a
4
+ data.tar.gz: 678f2b4bb5859f014f6e75dc7526ee63aba533343f183999181ef8132b436fc8
5
5
  SHA512:
6
- metadata.gz: a38afbc159583cbdb66c98b6bbfdce31b7fbe7280b232a17ea70879ec897bd8ee78330ecdebadaaf1053853bcc6bad2fb87fd7b4dc722a0fa25ba14c1f04158d
7
- data.tar.gz: efe7d17b35892fcd393c6f47bc2845ff76144ad8d88d365d277969cc3f8fad87ed14e40b10d08bfc9857673a5e425613b3bc5c5d98f38d5c40698354b467b79b
6
+ metadata.gz: 11106c93b6a97913443ed74b1c25bd959e133e096a346f2ab783dbed1ebfd1fc40eb3f940149bca8f0e30c34cc2a5244e002b16dd90654a818ada197e47cfaa4
7
+ data.tar.gz: ff33ef5a0de40d1b66d8ed3086ab98e79fc684890eb31945ac254d20048fc7e111e7743a51c4b5499fe062a8f9db34e1b78b070389a7991559e0d0c5c0d03ea9
checksums.yaml.gz.sig CHANGED
Binary file
@@ -96,7 +96,6 @@ module Protocol
96
96
 
97
97
  self.each do |chunk|
98
98
  buffer << chunk
99
- chunk.clear
100
99
  end
101
100
 
102
101
  if buffer.empty?
@@ -54,13 +54,13 @@ module Protocol
54
54
  @index += 1
55
55
  else
56
56
  if chunk = super
57
- @chunks << chunk
57
+ @chunks << -chunk
58
58
  @index += 1
59
59
  end
60
60
  end
61
61
 
62
62
  # We dup them on the way out, so that if someone modifies the string, it won't modify the rewindability.
63
- return chunk&.dup
63
+ return chunk
64
64
  end
65
65
 
66
66
  def rewind
@@ -157,6 +157,8 @@ module Protocol
157
157
  self[key] != nil
158
158
  end
159
159
 
160
+ alias key? include?
161
+
160
162
  def keys
161
163
  self.to_h.keys
162
164
  end
@@ -23,6 +23,9 @@
23
23
  require_relative 'body/buffered'
24
24
  require_relative 'body/reader'
25
25
 
26
+ require_relative 'headers'
27
+ require_relative 'methods'
28
+
26
29
  module Protocol
27
30
  module HTTP
28
31
  class Request
@@ -22,6 +22,6 @@
22
22
 
23
23
  module Protocol
24
24
  module HTTP
25
- VERSION = "0.23.7"
25
+ VERSION = "0.23.10"
26
26
  end
27
27
  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.23.7
4
+ version: 0.23.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -41,7 +41,7 @@ cert_chain:
41
41
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
42
42
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
43
43
  -----END CERTIFICATE-----
44
- date: 2022-08-26 00:00:00.000000000 Z
44
+ date: 2022-08-27 00:00:00.000000000 Z
45
45
  dependencies:
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: bundler
metadata.gz.sig CHANGED
Binary file