lamby 4.0.2 → 4.1.0

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: ab238754427b550d4af87b1ed22f474f538aa4ccb8b7b25c003a514c4aef7f26
4
- data.tar.gz: ad971104829c43cb962b08d04df0783fa7bb5f803150249bae6ccce5e643c506
3
+ metadata.gz: 3381e11a58b68451710f0a2986e158e74a32f179f0c4e4c3e5d62093f7abfbc0
4
+ data.tar.gz: 5b09b23df9166c2e382b36e6d6b0243a9ad8af23bebd9cb931201e2be085a657
5
5
  SHA512:
6
- metadata.gz: 85f8251a51591b1fbbd245e3168b03924ece75c2ac03f8db1a66d6b6b8e1a6a55950ad2e8d5de8dda9ee4ff1a33bf150fd23d07cb42337ae7b73c50f3cce130c
7
- data.tar.gz: 19c768ec3b3bd1d349a5c9fc7e36a45e52ecd679191e8f0a83ea8bfe23c0cdefe0524c4f9a0087ae7838aef2b1b828fa8a414f3bd93910c8e50c1b8862b5e642
6
+ metadata.gz: 6ddab5c17140f08741f7315db4b31284d3455f1084d79fb3c60dead8cd719dbb2ee6ab08afa69949ff2a241d4978d80b77bbb959136139466e911cdc04394d2b
7
+ data.tar.gz: 58d6653787f54724ea2491707fe08b0dce63eb70a1794c6547754f0f5f78e43aa2e24ca88620f864c46a19bcd1443e0646053eda6b56b0431abd8b8b803d0047
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  See this http://keepachangelog.com link for information on how we want this documented formatted.
4
4
 
5
+ ## v4.1.0
6
+
7
+ ### Added
8
+
9
+ - Future-ready LambdaCable.cmd handler detection.
10
+
5
11
  ## v4.0.2
6
12
 
7
13
  ### 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.0)
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/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.0'
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.0
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-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -166,7 +166,7 @@ homepage: https://github.com/customink/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: []