protocol-http 0.23.5 → 0.23.8

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: 647e0b3ea883053a0181b4a47623893d9cf9a9effdbe4ebb001fc4788ac504fc
4
- data.tar.gz: a8b9f1d185f320acc1f84c5af015bc28ac0cbd165bb2c92ab8c6b9f950e311db
3
+ metadata.gz: 0dba0edfd27df2534928a7fddef34fbf35de627a4856193bd83c19d7cb5baaf1
4
+ data.tar.gz: 8b2e533261403ca07c597dea803ab1ddf7bd8b196b4cbc620d1d8ed31614742f
5
5
  SHA512:
6
- metadata.gz: 7193d7634fb0a006320f6199ba3a2ac1985412f9dfe46bc6610745741088045c14ef561efb5d9efa4e9de42ac797fe4d778f28eb6c5442ae482c733a8f273e4b
7
- data.tar.gz: 03c36e9c6f5010bdcdbc1dc4c26ea19e55169897eba6efb0b1bf0fe98498f205c364093045f44307d15c4f65bac7ccc05e4a0d4624427b319e7b9b138ea9cd39
6
+ metadata.gz: 7f19d3903e699d9d54a5a42103b02c8a38012deaeb055f972a3f903f2b6201c9f91f4e193e3ed157121dab7eee7d140c36ea0c72464faafaffddb40f1239b00a
7
+ data.tar.gz: d3e8eeca020aa0a4e9ce49782532f40ade77e2467c973ec65794ff97fcbc26652e3b2f855d1b8a40564e47df009fd63a9180e994eb52842ff2b5637562b1b4f1
checksums.yaml.gz.sig CHANGED
Binary file
@@ -68,7 +68,7 @@ module Protocol
68
68
  def self.parse(string)
69
69
  head, *directives = string.split(/\s*;\s*/)
70
70
 
71
- key, value = head.split('=')
71
+ key, value = head.split('=', 2)
72
72
  directives = self.parse_directives(directives)
73
73
 
74
74
  self.new(
@@ -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.5"
25
+ VERSION = "0.23.8"
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.5
4
+ version: 0.23.8
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-21 00:00:00.000000000 Z
44
+ date: 2022-08-26 00:00:00.000000000 Z
45
45
  dependencies:
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: bundler
metadata.gz.sig CHANGED
Binary file