apigatewayv2_rack 0.1.1 → 0.1.2

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: 6c08dab51de986cc6c713e6cfbe9eb1ba9d5c9db15bb90dbd61e917463718f7e
4
- data.tar.gz: 55e1ddb223d2b4c3bd9b01c1770a518b032f8b97d214a750a7fd2d2cd9ca46fb
3
+ metadata.gz: 0670d1d3244283b6842ca14f5c85492687f4b1cb99ce40addcdc43c1e7470a4e
4
+ data.tar.gz: 941caa3f4df1d593e3d6bf1c0b249ad2318976940606c5fc9878d4ca9134b439
5
5
  SHA512:
6
- metadata.gz: 7aa24b808539e4426bf721c3ef8cbface7f018d631a7b4d4e2fd9f76a9fef51f1be782010001e02932eae44b3240c2d2a36de13bf91453c1d6fcc97679774402
7
- data.tar.gz: fe8a6ac040b09340eee4c41f7c477cea1e7455333f664eb8ee81028b45f6a6c23bbe040053e5528f93072e57bcb12f7a5a087d532cd8b1e777205356c8fabe6d
6
+ metadata.gz: a50fde7a105b2f4c4a5bb3882866b1278ac9ede7fcbe43b1275f0c98702cf6edcb0a8495544f100a511fedaea4803970107445273f247301a26b3824c2edea7f
7
+ data.tar.gz: 1c0b407ece9a1952bf2d986c573b2aeef087d38e59ab0ce0263386c58533c16c7b213ee7c08c947f3e1b673bc6720068a229304610e223001945c39f4a97fe59
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.2] - 2023-03-22
4
+
5
+ - Fixed Apigatewayv2Rack.handler_from_rack_config_file didn't work well with Rack 3.
6
+
3
7
  ## [0.1.1] - 2022-10-17
4
8
 
5
9
  - `#to_ary` on response body is no longer called to support Rack::CommonLogger and keep compatibility with Rack 2 specification.
data/Gemfile.lock CHANGED
@@ -1,14 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- apigatewayv2_rack (0.1.1)
4
+ apigatewayv2_rack (0.1.2)
5
5
  rack
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
10
  diff-lcs (1.5.0)
11
- rack (3.0.0)
11
+ rack (3.0.7)
12
12
  rake (13.0.6)
13
13
  rspec (3.11.0)
14
14
  rspec-core (~> 3.11.0)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Apigatewayv2Rack
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
@@ -31,6 +31,11 @@ module Apigatewayv2Rack
31
31
  def self.handler_from_rack_config_file(path = './config.ru')
32
32
  require 'rack'
33
33
  require 'rack/builder'
34
- generate_handler(Rack::Builder.load_file(path, {})[0])
34
+ app = if Rack.release[0] == '2'
35
+ Rack::Builder.load_file(path, {})[0]
36
+ else
37
+ Rack::Builder.load_file(path)
38
+ end
39
+ generate_handler(app)
35
40
  end
36
41
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apigatewayv2_rack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sorah Fukumori
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-10-17 00:00:00.000000000 Z
11
+ date: 2023-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
78
  requirements: []
79
- rubygems_version: 3.3.7
79
+ rubygems_version: 3.4.0.dev
80
80
  signing_key:
81
81
  specification_version: 4
82
82
  summary: handle AWS Lambda API Gateway V2 or ALB (ELBv2) lambda request event with