protocol-http 0.23.8 → 0.23.11

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: 0dba0edfd27df2534928a7fddef34fbf35de627a4856193bd83c19d7cb5baaf1
4
- data.tar.gz: 8b2e533261403ca07c597dea803ab1ddf7bd8b196b4cbc620d1d8ed31614742f
3
+ metadata.gz: 9545141abc2607b219662d4bac1bfda0fe878948e043efd1352422ffd36f53f3
4
+ data.tar.gz: 1ae4a8438b15dc1507134ff403089fb4512f4d69b1505fc2a0d8d94f1ae6fb68
5
5
  SHA512:
6
- metadata.gz: 7f19d3903e699d9d54a5a42103b02c8a38012deaeb055f972a3f903f2b6201c9f91f4e193e3ed157121dab7eee7d140c36ea0c72464faafaffddb40f1239b00a
7
- data.tar.gz: d3e8eeca020aa0a4e9ce49782532f40ade77e2467c973ec65794ff97fcbc26652e3b2f855d1b8a40564e47df009fd63a9180e994eb52842ff2b5637562b1b4f1
6
+ metadata.gz: ed6aba47c9faa13bc6350b4d8b3132f7ca19c162675e91621fd64c1215e6986d817cf65959ec0e68fca3a63b8101e8110a57045b4544af42a7165f9a04a0b463
7
+ data.tar.gz: 95b109acf30ac7b93c3abe0cfa02d40bffba865be594efcbfe86fadd97efadf5b04586fc4c9b214a880ebf6e870cb734d97627e812b4f5ed7cc74b13a9f1a7df
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
@@ -151,7 +151,13 @@ module Protocol
151
151
  end
152
152
  end
153
153
 
154
- alias write_nonblock write
154
+ def write_nonblock(buffer)
155
+ write(buffer)
156
+ end
157
+
158
+ def << (buffer)
159
+ write(buffer)
160
+ end
155
161
 
156
162
  def flush
157
163
  end
@@ -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
@@ -22,6 +22,6 @@
22
22
 
23
23
  module Protocol
24
24
  module HTTP
25
- VERSION = "0.23.8"
25
+ VERSION = "0.23.11"
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.8
4
+ version: 0.23.11
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-30 00:00:00.000000000 Z
45
45
  dependencies:
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: bundler
metadata.gz.sig CHANGED
Binary file