lamby 5.2.0 → 5.2.1

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: 98dcd67fb4bd1f352c4afde4809295882f00f98136aecf0fb59d41b926a753cb
4
- data.tar.gz: bb842eac6ef100d94925ec34934b0f75055255f48148416763810ebe74d66481
3
+ metadata.gz: c2c9807f202b6afbc3e9070abe372dc32f8927731f0378ed21b3c638e0e1b8c3
4
+ data.tar.gz: a1a3e5acfb60c21f772f19be43f599772d32cd808a60a3024ba3e856d2dc8b59
5
5
  SHA512:
6
- metadata.gz: 715a673a6c996aea87b9639d5d130e851d9ed0c5ca005705f21edcb35a163696911f1f876ef2aced5450780a4387b2bc6270c3d5b95a811a828fa3343f49bbb6
7
- data.tar.gz: 18e6581b89d754cf7d4360d522c31a88e6c26a8ca7731e8f644e61e7ca88fc039c53a7bd3a403f14ebb974c4e8663d99659e24329e3f2b0528917e8995d69fb2
6
+ metadata.gz: beb9bac3adbffb93a727f48fab1cc855ac3439065850e3f3068cd41c6f57a6e51239e7ab92e35ad6ab17e7f5cf224f7a6f6b4f572a1cde7039ae12d7c9f53c57
7
+ data.tar.gz: 6b3dd2e45a3a1d434e4d9aa3276869777a1ed15d6de2c6b59cd913125336c0d8d63a39d3a962b37898ae931ce56bd0000030ed9780a05a40562ef3e5693e73a4
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  See this http://keepachangelog.com link for information on how we want this documented formatted.
4
4
 
5
+ ## v5.2.1
6
+
7
+ - Rack v6 compatibility.
8
+ - Exit gracefully when SIGTERM error happens.
9
+
5
10
  ## v5.2.0
6
11
 
7
12
  ### Fixed
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lamby (5.2.0)
4
+ lamby (5.2.1)
5
5
  lambda-console-ruby
6
6
  rack
7
7
 
@@ -183,7 +183,9 @@ GEM
183
183
 
184
184
  PLATFORMS
185
185
  aarch64-linux
186
+ arm64-darwin-21
186
187
  arm64-darwin-22
188
+ arm64-darwin-23
187
189
 
188
190
  DEPENDENCIES
189
191
  aws-sdk-ssm
@@ -47,9 +47,6 @@ module Lamby
47
47
  ::Rack::RACK_URL_SCHEME => headers['x-forwarded-proto'],
48
48
  ::Rack::RACK_INPUT => StringIO.new(body || ''),
49
49
  ::Rack::RACK_ERRORS => $stderr,
50
- ::Rack::RACK_MULTITHREAD => false,
51
- ::Rack::RACK_MULTIPROCESS => false,
52
- ::Rack::RACK_RUNONCE => false,
53
50
  LAMBDA_EVENT => event,
54
51
  LAMBDA_CONTEXT => context
55
52
  }.tap do |env|
@@ -42,9 +42,6 @@ module Lamby
42
42
  ::Rack::RACK_URL_SCHEME => 'https',
43
43
  ::Rack::RACK_INPUT => StringIO.new(body || ''),
44
44
  ::Rack::RACK_ERRORS => $stderr,
45
- ::Rack::RACK_MULTITHREAD => false,
46
- ::Rack::RACK_MULTIPROCESS => false,
47
- ::Rack::RACK_RUNONCE => false,
48
45
  LAMBDA_EVENT => event,
49
46
  LAMBDA_CONTEXT => context
50
47
  }.tap do |env|
@@ -36,9 +36,6 @@ module Lamby
36
36
  ::Rack::RACK_URL_SCHEME => 'https',
37
37
  ::Rack::RACK_INPUT => StringIO.new(body || ''),
38
38
  ::Rack::RACK_ERRORS => $stderr,
39
- ::Rack::RACK_MULTITHREAD => false,
40
- ::Rack::RACK_MULTIPROCESS => false,
41
- ::Rack::RACK_RUNONCE => false,
42
39
  LAMBDA_EVENT => event,
43
40
  LAMBDA_CONTEXT => context
44
41
  }.tap do |env|
data/lib/lamby/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lamby
2
- VERSION = '5.2.0'
2
+ VERSION = '5.2.1'
3
3
  end
data/lib/lamby.rb CHANGED
@@ -40,3 +40,14 @@ module Lamby
40
40
  autoload :ProxyServer, 'lamby/proxy_server'
41
41
 
42
42
  end
43
+
44
+ # Add signal traps for clean exit
45
+ Signal.trap("TERM") do
46
+ puts "Received SIGTERM, exiting gracefully..."
47
+ exit!(0) # exit! ensures no exception is raised
48
+ end
49
+
50
+ Signal.trap("INT") do
51
+ puts "Received SIGINT, exiting gracefully..."
52
+ exit!(0) # exit! ensures no exception is raised
53
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lamby
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.0
4
+ version: 5.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Collins
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-07-20 00:00:00.000000000 Z
11
+ date: 2024-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -226,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
226
226
  - !ruby/object:Gem::Version
227
227
  version: '0'
228
228
  requirements: []
229
- rubygems_version: 3.4.6
229
+ rubygems_version: 3.3.27
230
230
  signing_key:
231
231
  specification_version: 4
232
232
  summary: Simple Rails & AWS Lambda Integration using Rack