protocol-http 0.40.0 → 0.42.0

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: 10e80047df314ab51026467f51437b52b9c09efda85f028ae1835f5e8ff4ae6c
4
- data.tar.gz: '08c4a65646072f0e229cbd096a10d7c3f701d5c72edb17c5f9ee2cc112d574bb'
3
+ metadata.gz: 3dcfd47b74176108bc100b7fdbb649f8fcfd09e753e268f7cf2136f4d5871eb5
4
+ data.tar.gz: 68424943f3195c241b99494d21714ee5e3a4c56ed0fccefecaeb444382f74a2d
5
5
  SHA512:
6
- metadata.gz: 2a7c1dcdeffbf00442217783b7b01a93ae866b1471a1441729931cc485d5eef491c03fb22b2a5ee05dfcf87c4818be41706cb10abe78f37de6dd4187f9d75fb6
7
- data.tar.gz: 778915a18c596ff9ebb21f2d0b5bc6da4f59de7248d1ac08ee3dddaa9526a8b17de6fb93b002fe048ed4b842370d161499eaaf1d70aeb7dd4fe41281dc8ed90e
6
+ metadata.gz: 509aa00c0dbc0a39c9641593b481b549c3b0150b4ef1372ae7deb1468b43027399f1f024ae7c26ca30c06eb3ce46bb8720da613b199070fac03d5607e15f1d2e
7
+ data.tar.gz: 438fcedcbda571ba5f3d9e800105669801123444d359c9915a4c90ba2cd3139e17e3b40c116750ae0f731a2eb6094a99c447b6f62a7978d4bc7d4c8015e95538
checksums.yaml.gz.sig CHANGED
Binary file
@@ -33,12 +33,12 @@ module Protocol
33
33
  end
34
34
 
35
35
  def close(error = nil)
36
- super.tap do
37
- if @callback
38
- @callback.call(error)
39
- @callback = nil
40
- end
36
+ if @callback
37
+ @callback.call(error)
38
+ @callback = nil
41
39
  end
40
+
41
+ super
42
42
  end
43
43
  end
44
44
  end
@@ -202,7 +202,8 @@ module Protocol
202
202
 
203
203
  # If no separator is given, this is the same as a read operation:
204
204
  if separator.nil?
205
- return read(limit)
205
+ # I tried using `read(limit)` here but it will block until the limit is reached, which is not usually desirable behaviour.
206
+ return read_partial(limit)
206
207
  end
207
208
 
208
209
  # We don't want to split on the separator, so we subtract the size of the separator:
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Protocol
7
7
  module HTTP
8
- VERSION = "0.40.0"
8
+ VERSION = "0.42.0"
9
9
  end
10
10
  end
data.tar.gz.sig CHANGED
@@ -1 +1 @@
1
- I�1�a�����g}�nm�"�KL�+VJC%���t��k�e}�s}�*�xٻ3c7�9��d�-:���i�,Z����+0%�𐟟�<�R�"E�|�w 5��AM���'z��b�c��sG]B�]�b���ڍ�I+
1
+ 
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.40.0
4
+ version: 0.42.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -47,7 +47,7 @@ cert_chain:
47
47
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
48
48
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
49
49
  -----END CERTIFICATE-----
50
- date: 2024-10-16 00:00:00.000000000 Z
50
+ date: 2024-10-21 00:00:00.000000000 Z
51
51
  dependencies: []
52
52
  description:
53
53
  email:
metadata.gz.sig CHANGED
Binary file