apigatewayv2_rack 0.1.0 → 0.1.1

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: 894ffb241bac0229d4db0ab44c78b9904237561253594e2ba17cd7bd9c14ec36
4
- data.tar.gz: 209f5920b8ae62b716251d2f4923f24a5e300dd1ef4808cdf81859af59ebd7d3
3
+ metadata.gz: 6c08dab51de986cc6c713e6cfbe9eb1ba9d5c9db15bb90dbd61e917463718f7e
4
+ data.tar.gz: 55e1ddb223d2b4c3bd9b01c1770a518b032f8b97d214a750a7fd2d2cd9ca46fb
5
5
  SHA512:
6
- metadata.gz: 71e29e5f860810014dc3d9df8487f1357c4662593d08a1f831cba74fb46f01dec83752b36f79bdfb80e3685b119591f87afd261a0fc7e684a60c541a7e77b160
7
- data.tar.gz: 7330a8b7f66b1a6304b11c015916a691b0bf702f50c8d399937de38b2e9765c5807b53a6b4615721f8f437bfa2af38f4b71ff8f3daef83685ee87faf08e6af1d
6
+ metadata.gz: 7aa24b808539e4426bf721c3ef8cbface7f018d631a7b4d4e2fd9f76a9fef51f1be782010001e02932eae44b3240c2d2a36de13bf91453c1d6fcc97679774402
7
+ data.tar.gz: fe8a6ac040b09340eee4c41f7c477cea1e7455333f664eb8ee81028b45f6a6c23bbe040053e5528f93072e57bcb12f7a5a087d532cd8b1e777205356c8fabe6d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.1] - 2022-10-17
4
+
5
+ - `#to_ary` on response body is no longer called to support Rack::CommonLogger and keep compatibility with Rack 2 specification.
6
+
3
7
  ## [0.1.0] - 2022-10-17
4
8
 
5
9
  - Initial release
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- apigatewayv2_rack (0.1.0)
4
+ apigatewayv2_rack (0.1.1)
5
5
  rack
6
6
 
7
7
  GEM
@@ -33,8 +33,9 @@ module Apigatewayv2Rack
33
33
 
34
34
  private def consume_body
35
35
  case
36
- when body.respond_to?(:to_ary)
37
- body.to_ary.join
36
+ # FIXME: Rack::CommonLogger uses Rack::BodyProxy, which performs logging when body is closed, is not compatible with #to_ary on Rack 3 specification
37
+ # when body.respond_to?(:to_ary)
38
+ # body.to_ary.join
38
39
  when body.respond_to?(:each)
39
40
  buf = String.new
40
41
  body.each { |chunk| buf << chunk.b }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Apigatewayv2Rack
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apigatewayv2_rack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sorah Fukumori