lamby 5.2.0 → 5.2.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: 98dcd67fb4bd1f352c4afde4809295882f00f98136aecf0fb59d41b926a753cb
4
- data.tar.gz: bb842eac6ef100d94925ec34934b0f75055255f48148416763810ebe74d66481
3
+ metadata.gz: '080a9068193b2f2afdb3b3552dc4a810480d6adca8db7ffd4cc87600cd44c236'
4
+ data.tar.gz: 6624c5ae8fd629b48771698e1401b6b07df6b1d2dbad120cf87f55d405d95500
5
5
  SHA512:
6
- metadata.gz: 715a673a6c996aea87b9639d5d130e851d9ed0c5ca005705f21edcb35a163696911f1f876ef2aced5450780a4387b2bc6270c3d5b95a811a828fa3343f49bbb6
7
- data.tar.gz: 18e6581b89d754cf7d4360d522c31a88e6c26a8ca7731e8f644e61e7ca88fc039c53a7bd3a403f14ebb974c4e8663d99659e24329e3f2b0528917e8995d69fb2
6
+ metadata.gz: e520c73320c6b8bbce4c37fca9ef8770882769471ef6de65114b7aa9645134a31715ab489ba88e8d3d279c8ee5fd81de56e2f22990c7ae9400bf93b0a025508c
7
+ data.tar.gz: c63dbe6e8c382a7fe97fb9f4c16b5d85bc96d2485ae6622b3913c0e8eeceff992543124058fc6ac83d5ea255452d544ee6d07cdce52cdf777327db0e0393c3c7
data/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  See this http://keepachangelog.com link for information on how we want this documented formatted.
4
4
 
5
+ ## v5.2.2
6
+
7
+ - Lock down to Rack < 3 in 5-stable branch.
8
+
9
+ ## v5.2.1
10
+
11
+ - Rack 3.X compatibility, by removing uninitialized constants.
12
+ - Exit gracefully when SIGTERM or SIGINT signal occurs.
13
+
5
14
  ## v5.2.0
6
15
 
7
16
  ### Fixed
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lamby (5.2.0)
4
+ lamby (5.2.2)
5
5
  lambda-console-ruby
6
- rack
6
+ rack (< 3)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
@@ -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
data/lamby.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.bindir = "exe"
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ["lib"]
21
- spec.add_dependency 'rack'
21
+ spec.add_dependency 'rack', '< 3'
22
22
  spec.add_dependency 'lambda-console-ruby'
23
23
  spec.add_development_dependency 'aws-sdk-ssm'
24
24
  spec.add_development_dependency 'bundler'
@@ -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.2'
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,29 +1,29 @@
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.2
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-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "<"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '3'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "<"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: lambda-console-ruby
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -206,7 +206,6 @@ files:
206
206
  - lib/lamby/ssm_parameter_store.rb
207
207
  - lib/lamby/tasks.rake
208
208
  - lib/lamby/version.rb
209
- - vendor/.keep
210
209
  homepage: https://github.com/rails-lambda/lamby
211
210
  licenses:
212
211
  - MIT
@@ -226,7 +225,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
226
225
  - !ruby/object:Gem::Version
227
226
  version: '0'
228
227
  requirements: []
229
- rubygems_version: 3.4.6
228
+ rubygems_version: 3.3.27
230
229
  signing_key:
231
230
  specification_version: 4
232
231
  summary: Simple Rails & AWS Lambda Integration using Rack
data/vendor/.keep DELETED
File without changes