protocol-rack 0.8.0 → 0.9.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: 6847f34cf162c87306b57b25d1908b76508aafce25805bd9d821273449844df5
4
- data.tar.gz: a671e7169a8b76ac77ce12ce0ddaeb53cda3f7ffb0e6e0c0a9bc500a2ab00830
3
+ metadata.gz: 36a0633c754c61a78d6fee4b4c0e22b817d2ba12ebc3ca6c780b89c9bfbfecfd
4
+ data.tar.gz: b5fbe75d93826fc22f1ee4d848674cb94fcfb8bb2c3ea32ab7f3cb4626d4df96
5
5
  SHA512:
6
- metadata.gz: 2b05a2e9e0eeda2e84d7f80c60dc862726994903d886deb973100c435d5dc710cee92690f97f2cd1d8fc19415bf71766089bfed92c93671933567e5caddd8c14
7
- data.tar.gz: 1d5fae5ee35c5144bfa8637edeb8c9b94cbf75bfa22daed41e0b3bcf09fbddfc18cb42afc487b281b5da5e40e5cee3cb82822d2442ab5c46037812598624ae34
6
+ metadata.gz: e0b1e7479f9bfad4b8183aa35095c708c91442a9aadb2dc90bcd5c873a75eff9d0f16cce06a1b3d76defdfed30390cffc1e15a4fa6a027cde2cb9c5c3e6171c7
7
+ data.tar.gz: 2b4d7ab1582ea8971141f1a755c88cc9ba25422f60a44e0812523181a89e2f27c4a0e598e5a4cb72a482dc7ef76b41941c5eb2f20b5263d647f3259bcbf03ea1
checksums.yaml.gz.sig CHANGED
Binary file
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2022, by Samuel Williams.
4
+ # Copyright, 2022-2024, by Samuel Williams.
5
5
 
6
6
  require 'protocol/http/body/readable'
7
7
  require 'protocol/http/body/stream'
@@ -87,7 +87,14 @@ module Protocol
87
87
 
88
88
  def read_next
89
89
  if @body
90
- @body.read
90
+ # User's may forget to call #close...
91
+ if chunk = @body.read
92
+ return chunk
93
+ else
94
+ # So if we are at the end of the stream, we close it automatically:
95
+ @body.close
96
+ @body = nil
97
+ end
91
98
  elsif @closed
92
99
  raise IOError, "Stream is not readable, input has been closed!"
93
100
  end
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Protocol
7
7
  module Rack
8
- VERSION = "0.8.0"
8
+ VERSION = "0.9.0"
9
9
  end
10
10
  end
data/readme.md CHANGED
@@ -73,11 +73,11 @@ We welcome contributions to this project.
73
73
 
74
74
  ### Developer Certificate of Origin
75
75
 
76
- This project uses the [Developer Certificate of Origin](https://developercertificate.org/). All contributors to this project must agree to this document to have their contributions accepted.
76
+ In order to protect users of this project, we require all contributors to comply with the [Developer Certificate of Origin](https://developercertificate.org/). This ensures that all contributions are properly licensed and attributed.
77
77
 
78
- ### Contributor Covenant
78
+ ### Community Guidelines
79
79
 
80
- This project is governed by the [Contributor Covenant](https://www.contributor-covenant.org/). All contributors and participants agree to abide by its terms.
80
+ This project is best served by a collaborative and respectful environment. Treat each other professionally, respect differing viewpoints, and engage constructively. Harassment, discrimination, or harmful behavior is not tolerated. Communicate clearly, listen actively, and support one another. If any issues arise, please inform the project maintainers.
81
81
 
82
82
  ## See Also
83
83
 
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protocol-rack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -38,7 +38,7 @@ cert_chain:
38
38
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
39
39
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
40
40
  -----END CERTIFICATE-----
41
- date: 2024-09-10 00:00:00.000000000 Z
41
+ date: 2024-09-22 00:00:00.000000000 Z
42
42
  dependencies:
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: protocol-http
metadata.gz.sig CHANGED
Binary file