apigatewayv2_rack 0.1.2 → 0.1.3
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 +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/lib/apigatewayv2_rack/response.rb +3 -1
- data/lib/apigatewayv2_rack/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9c5a5dcc23b7a6e524d7a8c847befb580b8771839ae013c977991e35db824ef
|
4
|
+
data.tar.gz: e33794f5ffae56ad06cb14f12fcac3b3a41ad5e33f6119a9c262756801d9f3b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a27469fcbc9c1bc754aca949ed94fce1ec83f4e1cd5909fa70bee771267dd480ef12f78d69508205913f88c23bc4082a149279975ec6e5ed8897c0d5e777fbd
|
7
|
+
data.tar.gz: 88ff099fa17b319cf2f1cedd08091eeeff14874a7c9fa9eac37430e4ed98b2e51b7e2f1b2bf6146cb215730c637cbc639016ecd1b64e6759e96c26892c541491
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
## [0.1.3] - 2023-03-22
|
4
|
+
|
5
|
+
- Fixed Errno::EACCES from StringIO when a streaming body (body does not respond to `#each`) is returned
|
6
|
+
- Raise error when a response body is nil
|
7
|
+
|
3
8
|
## [0.1.2] - 2023-03-22
|
4
9
|
|
5
10
|
- Fixed Apigatewayv2Rack.handler_from_rack_config_file didn't work well with Rack 3.
|
data/Gemfile.lock
CHANGED
@@ -33,6 +33,8 @@ module Apigatewayv2Rack
|
|
33
33
|
|
34
34
|
private def consume_body
|
35
35
|
case
|
36
|
+
when body.nil?
|
37
|
+
raise TypeError, "Rack app returned nil body"
|
36
38
|
# FIXME: Rack::CommonLogger uses Rack::BodyProxy, which performs logging when body is closed, is not compatible with #to_ary on Rack 3 specification
|
37
39
|
# when body.respond_to?(:to_ary)
|
38
40
|
# body.to_ary.join
|
@@ -42,7 +44,7 @@ module Apigatewayv2Rack
|
|
42
44
|
body.close if body.respond_to?(:close)
|
43
45
|
buf
|
44
46
|
else
|
45
|
-
stream = StringIO.new(
|
47
|
+
stream = StringIO.new(String.new, 'w')
|
46
48
|
body.call(stream)
|
47
49
|
stream.string
|
48
50
|
end
|