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 +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +2 -2
- data/lib/apigatewayv2_rack/version.rb +1 -1
- data/lib/apigatewayv2_rack.rb +6 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0670d1d3244283b6842ca14f5c85492687f4b1cb99ce40addcdc43c1e7470a4e
|
4
|
+
data.tar.gz: 941caa3f4df1d593e3d6bf1c0b249ad2318976940606c5fc9878d4ca9134b439
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
11
|
+
rack (3.0.7)
|
12
12
|
rake (13.0.6)
|
13
13
|
rspec (3.11.0)
|
14
14
|
rspec-core (~> 3.11.0)
|
data/lib/apigatewayv2_rack.rb
CHANGED
@@ -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
|
-
|
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.
|
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:
|
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.
|
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
|