protocol-http 0.43.0 → 0.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7bdd0ca9356d15e047333ae5e070710d5453bece234e484d236656edb984eb3b
4
- data.tar.gz: eb605cfc6aa68422dd8142ba7e86fb0ec9eef55f8415e8cc0e9066af714a4aa7
3
+ metadata.gz: 63c9b35fa3c497df0bc9ea8d0ff9488ccebd46e09405a93c42e3b2c1cd8edad9
4
+ data.tar.gz: 128e2fde1a23a141156b8d0f72e52025a288e3196607a99c711b3f8ec9507130
5
5
  SHA512:
6
- metadata.gz: 493688f8e6e8a417bfdb49fd53103e07ccca2f164613e5cea2ce0298b4eb4c4e251add7c1873d178f38b1cfb984267e277c4388f60b9e36b013d1f8bac950b57
7
- data.tar.gz: '0590a15ef7f6447efc5c84a0c6ce7e796a1b1b8d91975b10f895a5c0d9c450402f7adeb7b504785179e6fe68f776a7113050adc2458dc84e7f4330b6faec4774'
6
+ metadata.gz: c696e34c35e8d47cf3870988961f5c1713bcdcd0663396db6c2e37ae3611a7e58876cf84db3bb1f1e217a436e3470b331cfe8461e6ce19f4c927738c7d66f8ed
7
+ data.tar.gz: 71433c766fa3fcc25cbb4104d3afe30f3f2daefc46d31e2ed0dfa3131453a23176db23993349447e74808b47ba2dd6dec39177bd4ab7d47f2d3eed87cf864bf3
checksums.yaml.gz.sig CHANGED
Binary file
@@ -129,6 +129,22 @@ module Protocol
129
129
  read_partial(length, buffer) or raise EOFError, "End of file reached!"
130
130
  end
131
131
 
132
+ # Iterate over each chunk of data in the stream.
133
+ #
134
+ # @yields {|chunk| ...} Each chunk of data.
135
+ def each(&block)
136
+ return to_enum unless block_given?
137
+
138
+ if @buffer
139
+ yield @buffer
140
+ @buffer = nil
141
+ end
142
+
143
+ while chunk = read_next
144
+ yield chunk
145
+ end
146
+ end
147
+
132
148
  # Read data from the stream without blocking if possible.
133
149
  def read_nonblock(length, buffer = nil, exception: nil)
134
150
  @buffer ||= read_next
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Protocol
7
7
  module HTTP
8
- VERSION = "0.43.0"
8
+ VERSION = "0.44.0"
9
9
  end
10
10
  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.43.0
4
+ version: 0.44.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-11-09 00:00:00.000000000 Z
50
+ date: 2024-11-12 00:00:00.000000000 Z
51
51
  dependencies: []
52
52
  description:
53
53
  email:
metadata.gz.sig CHANGED
Binary file