protocol-http 0.23.6 → 0.23.9

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: 5ac45c5109f3d77c17b617114e826ac67cacaa32c04e7986f22b7c145ced7b0d
4
- data.tar.gz: 855c58835906c5e31bd44e30077518a3fb9b7886181ab5527c7119de4b397b5a
3
+ metadata.gz: 51808eff2467e7492a795e4ad1f8901649fdc6b7e6fec19cd8a49072bb461c96
4
+ data.tar.gz: 7f2622ac1894b8bffcf54934264465f6cf4de11c30976a707720558fcdd519c7
5
5
  SHA512:
6
- metadata.gz: 3c4d88d696d3c9404b69123d648f834f6c5f957fdd8896b9217a57cc086e944c56668ab15d18c3e9b9cb2a8888aef636d1cbfc01ba08cb59bef6a8e34aadda70
7
- data.tar.gz: 41a02231e3fdca5425e616915bab64ee455651a60b4eb0e259fb10139def8f2faf2699655a294839aa0b45a1c759e9e2b109a57ae290ac4927268a849c26248d
6
+ metadata.gz: e592bad7c0e72a312f95a012f3ac185de4bd04e611e0c792792a72eeccce0f63e5acc150f5bf7d6a82c29b6580292e82bbdbf8e017c114b9c2bc6aac51cf6222
7
+ data.tar.gz: 871ce95050b3242c57c1db9e4575146cb2569134c0a901a481a06e689688eec0c04deb2d9ae84181acf53f4f926ea71e6ad08ac6b9cd09b2a8a68f5e7688fbe8
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
@@ -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
@@ -33,7 +33,7 @@ module Protocol
33
33
  # Unescapes a percent encoded string.
34
34
  def self.unescape(string, encoding = string.encoding)
35
35
  string.b.gsub(/%(\h\h)/) do |hex|
36
- Integer(hex, 16).chr
36
+ Integer($1, 16).chr
37
37
  end.force_encoding(encoding)
38
38
  end
39
39
 
@@ -22,6 +22,6 @@
22
22
 
23
23
  module Protocol
24
24
  module HTTP
25
- VERSION = "0.23.6"
25
+ VERSION = "0.23.9"
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.6
4
+ version: 0.23.9
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