lamby 4.0.2 → 4.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: ab238754427b550d4af87b1ed22f474f538aa4ccb8b7b25c003a514c4aef7f26
4
- data.tar.gz: ad971104829c43cb962b08d04df0783fa7bb5f803150249bae6ccce5e643c506
3
+ metadata.gz: fbf48cab613254b7bcdcf0b44471934f5aa2dfa6a1b3a4c367f2468bdf974abe
4
+ data.tar.gz: ffda31e411518be62e5473ed52c39b53a49fd8902b392be32ea88360cf95a1c7
5
5
  SHA512:
6
- metadata.gz: 85f8251a51591b1fbbd245e3168b03924ece75c2ac03f8db1a66d6b6b8e1a6a55950ad2e8d5de8dda9ee4ff1a33bf150fd23d07cb42337ae7b73c50f3cce130c
7
- data.tar.gz: 19c768ec3b3bd1d349a5c9fc7e36a45e52ecd679191e8f0a83ea8bfe23c0cdefe0524c4f9a0087ae7838aef2b1b828fa8a414f3bd93910c8e50c1b8862b5e642
6
+ metadata.gz: a7a22a26e51f93a2b732858198d142e9d51fbcdf61db745ffdfda84209b77e88a1525dde8edebd00e1955afddee26dfeabceeb353370db8328c1a774e213ab85
7
+ data.tar.gz: 910427c0ac907a06ddc767cb1c4d7d241dc8b6b1e640d6a6c4d57a43653fa569d1da61a496711102df209a5d93f61e3c4272555bfe0e96bc1e9c18d3656d41bf
@@ -1,23 +1,33 @@
1
1
  name: CI/CD
2
2
  on: [push]
3
3
  jobs:
4
- test:
5
- runs-on: ubuntu-latest
4
+ image:
5
+ name: Image
6
+ runs-on: ubuntu-20.04
6
7
  steps:
7
- - name: Checkout
8
- uses: actions/checkout@v2
9
- - name: Login to GitHub Container Registry
10
- uses: docker/login-action@v2
8
+ - uses: actions/checkout@v3
9
+ - uses: docker/login-action@v2
11
10
  with:
12
11
  registry: ghcr.io
13
12
  username: ${{ github.repository_owner }}
14
13
  password: ${{ secrets.GITHUB_TOKEN }}
15
- - name: Build & Run Development Container
16
- uses: devcontainers/ci@v0.2
14
+ - uses: devcontainers/ci@v0.3
17
15
  with:
18
16
  push: always
19
- imageName: ghcr.io/customink/lamby-devcontainer
20
- cacheFrom: ghcr.io/customink/lamby-devcontainer
17
+ imageName: ghcr.io/rails-lambda/lamby-devcontainer
18
+ cacheFrom: ghcr.io/rails-lambda/lamby-devcontainer
19
+ runCmd: echo DONE!
20
+ test:
21
+ runs-on: ubuntu-20.04
22
+ needs: image
23
+ steps:
24
+ - name: Checkout
25
+ uses: actions/checkout@v3
26
+ - name: Setup & Test
27
+ uses: devcontainers/ci@v0.3
28
+ with:
29
+ push: never
30
+ cacheFrom: ghcr.io/rails-lambda/lamby-devcontainer
21
31
  env: |
22
32
  CI
23
33
  runCmd: |
data/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  See this http://keepachangelog.com link for information on how we want this documented formatted.
4
4
 
5
+ ## v4.1.1
6
+
7
+ ### Changed
8
+
9
+ - New lamby.cloud site and GitHub community organization.
10
+
11
+ ## v4.1.0
12
+
13
+ ### Added
14
+
15
+ - Future-ready LambdaCable.cmd handler detection.
16
+
5
17
  ## v4.0.2
6
18
 
7
19
  ### Fixed
data/Gemfile.lock CHANGED
@@ -1,160 +1,165 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lamby (4.0.2)
4
+ lamby (4.1.1)
5
5
  rack
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actioncable (7.0.4)
11
- actionpack (= 7.0.4)
12
- activesupport (= 7.0.4)
10
+ actioncable (7.0.4.3)
11
+ actionpack (= 7.0.4.3)
12
+ activesupport (= 7.0.4.3)
13
13
  nio4r (~> 2.0)
14
14
  websocket-driver (>= 0.6.1)
15
- actionmailbox (7.0.4)
16
- actionpack (= 7.0.4)
17
- activejob (= 7.0.4)
18
- activerecord (= 7.0.4)
19
- activestorage (= 7.0.4)
20
- activesupport (= 7.0.4)
15
+ actionmailbox (7.0.4.3)
16
+ actionpack (= 7.0.4.3)
17
+ activejob (= 7.0.4.3)
18
+ activerecord (= 7.0.4.3)
19
+ activestorage (= 7.0.4.3)
20
+ activesupport (= 7.0.4.3)
21
21
  mail (>= 2.7.1)
22
22
  net-imap
23
23
  net-pop
24
24
  net-smtp
25
- actionmailer (7.0.4)
26
- actionpack (= 7.0.4)
27
- actionview (= 7.0.4)
28
- activejob (= 7.0.4)
29
- activesupport (= 7.0.4)
25
+ actionmailer (7.0.4.3)
26
+ actionpack (= 7.0.4.3)
27
+ actionview (= 7.0.4.3)
28
+ activejob (= 7.0.4.3)
29
+ activesupport (= 7.0.4.3)
30
30
  mail (~> 2.5, >= 2.5.4)
31
31
  net-imap
32
32
  net-pop
33
33
  net-smtp
34
34
  rails-dom-testing (~> 2.0)
35
- actionpack (7.0.4)
36
- actionview (= 7.0.4)
37
- activesupport (= 7.0.4)
35
+ actionpack (7.0.4.3)
36
+ actionview (= 7.0.4.3)
37
+ activesupport (= 7.0.4.3)
38
38
  rack (~> 2.0, >= 2.2.0)
39
39
  rack-test (>= 0.6.3)
40
40
  rails-dom-testing (~> 2.0)
41
41
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
42
- actiontext (7.0.4)
43
- actionpack (= 7.0.4)
44
- activerecord (= 7.0.4)
45
- activestorage (= 7.0.4)
46
- activesupport (= 7.0.4)
42
+ actiontext (7.0.4.3)
43
+ actionpack (= 7.0.4.3)
44
+ activerecord (= 7.0.4.3)
45
+ activestorage (= 7.0.4.3)
46
+ activesupport (= 7.0.4.3)
47
47
  globalid (>= 0.6.0)
48
48
  nokogiri (>= 1.8.5)
49
- actionview (7.0.4)
50
- activesupport (= 7.0.4)
49
+ actionview (7.0.4.3)
50
+ activesupport (= 7.0.4.3)
51
51
  builder (~> 3.1)
52
52
  erubi (~> 1.4)
53
53
  rails-dom-testing (~> 2.0)
54
54
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
55
- activejob (7.0.4)
56
- activesupport (= 7.0.4)
55
+ activejob (7.0.4.3)
56
+ activesupport (= 7.0.4.3)
57
57
  globalid (>= 0.3.6)
58
- activemodel (7.0.4)
59
- activesupport (= 7.0.4)
60
- activerecord (7.0.4)
61
- activemodel (= 7.0.4)
62
- activesupport (= 7.0.4)
63
- activestorage (7.0.4)
64
- actionpack (= 7.0.4)
65
- activejob (= 7.0.4)
66
- activerecord (= 7.0.4)
67
- activesupport (= 7.0.4)
58
+ activemodel (7.0.4.3)
59
+ activesupport (= 7.0.4.3)
60
+ activerecord (7.0.4.3)
61
+ activemodel (= 7.0.4.3)
62
+ activesupport (= 7.0.4.3)
63
+ activestorage (7.0.4.3)
64
+ actionpack (= 7.0.4.3)
65
+ activejob (= 7.0.4.3)
66
+ activerecord (= 7.0.4.3)
67
+ activesupport (= 7.0.4.3)
68
68
  marcel (~> 1.0)
69
69
  mini_mime (>= 1.1.0)
70
- activesupport (7.0.4)
70
+ activesupport (7.0.4.3)
71
71
  concurrent-ruby (~> 1.0, >= 1.0.2)
72
72
  i18n (>= 1.6, < 2)
73
73
  minitest (>= 5.1)
74
74
  tzinfo (~> 2.0)
75
75
  aws-eventstream (1.2.0)
76
- aws-partitions (1.660.0)
77
- aws-sdk-core (3.167.0)
76
+ aws-partitions (1.752.0)
77
+ aws-sdk-core (3.171.0)
78
78
  aws-eventstream (~> 1, >= 1.0.2)
79
79
  aws-partitions (~> 1, >= 1.651.0)
80
80
  aws-sigv4 (~> 1.5)
81
81
  jmespath (~> 1, >= 1.6.1)
82
- aws-sdk-sqs (1.52.0)
82
+ aws-sdk-sqs (1.53.0)
83
83
  aws-sdk-core (~> 3, >= 3.165.0)
84
84
  aws-sigv4 (~> 1.1)
85
- aws-sdk-ssm (1.144.0)
85
+ aws-sdk-ssm (1.150.0)
86
86
  aws-sdk-core (~> 3, >= 3.165.0)
87
87
  aws-sigv4 (~> 1.1)
88
88
  aws-sigv4 (1.5.2)
89
89
  aws-eventstream (~> 1, >= 1.0.2)
90
90
  builder (3.2.4)
91
91
  coderay (1.1.3)
92
- concurrent-ruby (1.1.10)
92
+ concurrent-ruby (1.2.2)
93
93
  crass (1.0.6)
94
- erubi (1.11.0)
95
- globalid (1.0.0)
94
+ date (3.3.3)
95
+ erubi (1.12.0)
96
+ globalid (1.1.0)
96
97
  activesupport (>= 5.0)
97
98
  i18n (1.12.0)
98
99
  concurrent-ruby (~> 1.0)
99
- jmespath (1.6.1)
100
- lambdakiq (2.1.0)
100
+ jmespath (1.6.2)
101
+ lambdakiq (2.2.0)
101
102
  activejob
102
103
  aws-sdk-sqs
103
104
  concurrent-ruby
104
105
  railties
105
- loofah (2.19.0)
106
+ loofah (2.20.0)
106
107
  crass (~> 1.0.2)
107
108
  nokogiri (>= 1.5.9)
108
- mail (2.7.1)
109
+ mail (2.8.1)
109
110
  mini_mime (>= 0.1.1)
111
+ net-imap
112
+ net-pop
113
+ net-smtp
110
114
  marcel (1.0.2)
111
115
  method_source (1.0.0)
112
116
  mini_mime (1.1.2)
113
- minitest (5.16.3)
117
+ minitest (5.18.0)
114
118
  minitest-focus (1.3.1)
115
119
  minitest (>= 4, < 6)
116
120
  mocha (2.0.2)
117
121
  ruby2_keywords (>= 0.0.5)
118
- net-imap (0.3.1)
122
+ net-imap (0.3.4)
123
+ date
119
124
  net-protocol
120
125
  net-pop (0.1.2)
121
126
  net-protocol
122
- net-protocol (0.1.3)
127
+ net-protocol (0.2.1)
123
128
  timeout
124
129
  net-smtp (0.3.3)
125
130
  net-protocol
126
- nio4r (2.5.8)
127
- nokogiri (1.13.9-x86_64-linux)
131
+ nio4r (2.5.9)
132
+ nokogiri (1.14.3-aarch64-linux)
128
133
  racc (~> 1.4)
129
- pry (0.14.1)
134
+ pry (0.14.2)
130
135
  coderay (~> 1.1)
131
136
  method_source (~> 1.0)
132
- racc (1.6.0)
133
- rack (2.2.4)
134
- rack-test (2.0.2)
137
+ racc (1.6.2)
138
+ rack (2.2.6.4)
139
+ rack-test (2.1.0)
135
140
  rack (>= 1.3)
136
- rails (7.0.4)
137
- actioncable (= 7.0.4)
138
- actionmailbox (= 7.0.4)
139
- actionmailer (= 7.0.4)
140
- actionpack (= 7.0.4)
141
- actiontext (= 7.0.4)
142
- actionview (= 7.0.4)
143
- activejob (= 7.0.4)
144
- activemodel (= 7.0.4)
145
- activerecord (= 7.0.4)
146
- activestorage (= 7.0.4)
147
- activesupport (= 7.0.4)
141
+ rails (7.0.4.3)
142
+ actioncable (= 7.0.4.3)
143
+ actionmailbox (= 7.0.4.3)
144
+ actionmailer (= 7.0.4.3)
145
+ actionpack (= 7.0.4.3)
146
+ actiontext (= 7.0.4.3)
147
+ actionview (= 7.0.4.3)
148
+ activejob (= 7.0.4.3)
149
+ activemodel (= 7.0.4.3)
150
+ activerecord (= 7.0.4.3)
151
+ activestorage (= 7.0.4.3)
152
+ activesupport (= 7.0.4.3)
148
153
  bundler (>= 1.15.0)
149
- railties (= 7.0.4)
154
+ railties (= 7.0.4.3)
150
155
  rails-dom-testing (2.0.3)
151
156
  activesupport (>= 4.2.0)
152
157
  nokogiri (>= 1.6)
153
- rails-html-sanitizer (1.4.3)
154
- loofah (~> 2.3)
155
- railties (7.0.4)
156
- actionpack (= 7.0.4)
157
- activesupport (= 7.0.4)
158
+ rails-html-sanitizer (1.5.0)
159
+ loofah (~> 2.19, >= 2.19.1)
160
+ railties (7.0.4.3)
161
+ actionpack (= 7.0.4.3)
162
+ activesupport (= 7.0.4.3)
158
163
  method_source
159
164
  rake (>= 12.2)
160
165
  thor (~> 1.0)
@@ -162,16 +167,16 @@ GEM
162
167
  rake (13.0.6)
163
168
  ruby2_keywords (0.0.5)
164
169
  thor (1.2.1)
165
- timeout (0.3.0)
166
- tzinfo (2.0.5)
170
+ timeout (0.3.2)
171
+ tzinfo (2.0.6)
167
172
  concurrent-ruby (~> 1.0)
168
173
  websocket-driver (0.7.5)
169
174
  websocket-extensions (>= 0.1.0)
170
175
  websocket-extensions (0.1.5)
171
- zeitwerk (2.6.6)
176
+ zeitwerk (2.6.7)
172
177
 
173
178
  PLATFORMS
174
- x86_64-linux
179
+ aarch64-linux
175
180
 
176
181
  DEPENDENCIES
177
182
  aws-sdk-ssm
@@ -186,4 +191,4 @@ DEPENDENCIES
186
191
  rake
187
192
 
188
193
  BUNDLED WITH
189
- 2.3.7
194
+ 2.3.26
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
- # Lamby [![Actions Status](https://github.com/customink/lamby/workflows/CI/CD/badge.svg)](https://github.com/customink/lamby/actions) [![Codespaces](https://img.shields.io/badge/Codespaces-✅-black)](https://github.com/features/codespaces)
1
+ # Lamby [![Actions Status](https://github.com/rails-lambda/lamby/workflows/CI/CD/badge.svg)](https://github.com/rails-lambda/lamby/actions) [![Codespaces](https://img.shields.io/badge/Codespaces-✅-black)](https://github.com/features/codespaces)
2
2
 
3
3
  <h2>Simple Rails &amp; AWS Lambda Integration using Rack</h2>
4
- <a href="https://lamby.custominktech.com"><img src="https://raw.githubusercontent.com/customink/lamby/master/images/social2.png" alt="Lamby: Simple Rails & AWS Lambda Integration using Rack." align="right" width="450" style="margin-left:1rem;margin-bottom:1rem;" /></a>
4
+ <a href="https://lamby.cloud"><img src="https://raw.githubusercontent.com/rails-lambda/lamby/master/images/social2.png" alt="Lamby: Simple Rails & AWS Lambda Integration using Rack." align="right" width="450" style="margin-left:1rem;margin-bottom:1rem;" /></a>
5
5
 
6
6
  Lamby is an [AWS Lambda Web Adapter](https://github.com/awslabs/aws-lambda-web-adapter) for Rack applications.
7
7
 
@@ -9,11 +9,11 @@ We support Lambda [Function URLs](https://docs.aws.amazon.com/lambda/latest/dg/l
9
9
 
10
10
  ## Quick Start
11
11
 
12
- https://lamby.custominktech.com/docs/quick-start
12
+ https://lamby.cloud/docs/quick-start
13
13
 
14
14
  ## Full Documentation
15
15
 
16
- https://lamby.custominktech.com/docs/anatomy
16
+ https://lamby.cloud/docs/anatomy
17
17
 
18
18
  ## Contributing
19
19
 
@@ -30,6 +30,6 @@ If you have the [Visual Studio Code Dev Container](https://marketplace.visualstu
30
30
 
31
31
  ## Code of Conduct
32
32
 
33
- Everyone interacting in the Lamby project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/customink/lamby/blob/master/CODE_OF_CONDUCT.md).
33
+ Everyone interacting in the Lamby project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/rails-lambda/lamby/blob/master/CODE_OF_CONDUCT.md).
34
34
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/customink/lamby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/rails-lambda/lamby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
data/lamby.gemspec CHANGED
@@ -7,10 +7,10 @@ Gem::Specification.new do |spec|
7
7
  spec.name = "lamby"
8
8
  spec.version = Lamby::VERSION
9
9
  spec.authors = ["Ken Collins"]
10
- spec.email = ["kcollins@customink.com"]
10
+ spec.email = ["ken@metaskills.net"]
11
11
  spec.summary = %q{Simple Rails & AWS Lambda Integration using Rack}
12
12
  spec.description = %q{Simple Rails & AWS Lambda Integration using Rack and various utilities.}
13
- spec.homepage = "https://github.com/customink/lamby"
13
+ spec.homepage = "https://github.com/rails-lambda/lamby"
14
14
  spec.license = "MIT"
15
15
  spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
16
16
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
data/lib/lamby/handler.rb CHANGED
@@ -88,11 +88,13 @@ module Lamby
88
88
  @status, @headers, @body = @app.call rack.env
89
89
  set_cookies
90
90
  rack_response
91
+ elsif lambdakiq?
92
+ Lambdakiq.cmd event: @event, context: @context
93
+ elsif lambda_cable?
94
+ LambdaCable.cmd event: @event, context: @context
91
95
  elsif runner?
92
96
  @status, @headers, @body = Runner.call(@event)
93
97
  { statusCode: status, headers: headers, body: body }
94
- elsif lambdakiq?
95
- Lambdakiq.handler(@event)
96
98
  elsif event_bridge?
97
99
  Lamby.config.event_bridge_handler.call @event, @context
98
100
  else
@@ -121,5 +123,9 @@ module Lamby
121
123
  def runner?
122
124
  Runner.handle?(@event)
123
125
  end
126
+
127
+ def lambda_cable?
128
+ defined?(::LambdaCable) && ::LambdaCable.handle?(@event, @context)
129
+ end
124
130
  end
125
131
  end
data/lib/lamby/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lamby
2
- VERSION = '4.0.2'
2
+ VERSION = '4.1.1'
3
3
  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: 4.0.2
4
+ version: 4.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Collins
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-02-08 00:00:00.000000000 Z
11
+ date: 2023-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -124,7 +124,7 @@ dependencies:
124
124
  version: '0'
125
125
  description: Simple Rails & AWS Lambda Integration using Rack and various utilities.
126
126
  email:
127
- - kcollins@customink.com
127
+ - ken@metaskills.net
128
128
  executables: []
129
129
  extensions: []
130
130
  extra_rdoc_files: []
@@ -162,11 +162,11 @@ files:
162
162
  - lib/lamby/ssm_parameter_store.rb
163
163
  - lib/lamby/version.rb
164
164
  - vendor/.keep
165
- homepage: https://github.com/customink/lamby
165
+ homepage: https://github.com/rails-lambda/lamby
166
166
  licenses:
167
167
  - MIT
168
168
  metadata: {}
169
- post_install_message:
169
+ post_install_message:
170
170
  rdoc_options: []
171
171
  require_paths:
172
172
  - lib
@@ -181,8 +181,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
181
  - !ruby/object:Gem::Version
182
182
  version: '0'
183
183
  requirements: []
184
- rubygems_version: 3.1.2
185
- signing_key:
184
+ rubygems_version: 3.4.12
185
+ signing_key:
186
186
  specification_version: 4
187
187
  summary: Simple Rails & AWS Lambda Integration using Rack
188
188
  test_files: []