lambda_punch 1.1.1 → 1.1.3

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: edd0fcb9d2a3d808ef2f2209f7d2b9c344e372fecb918bd6d2e25dfe375b3c55
4
- data.tar.gz: 4a0972320ed7f3734e43b9cfe9a9fde1134a2148b44532914361c99bc4b1f4fa
3
+ metadata.gz: f4c6f8629d96e9deed280449b12f90568d0a6b2f6959d2f5635ec827a47e6afe
4
+ data.tar.gz: 48ddc3b04b4a5ee25bc23865fc2ac870dca4961dd0875a2f51a0f781b12c2c6a
5
5
  SHA512:
6
- metadata.gz: 07bb2eccf539f0322316520fb0b45ee95110e7e6d47165cc3460542de6629c6f72a616901616fbf93a8fc75fb6fa1208619fcf17e80c059c0f204a21893cc261
7
- data.tar.gz: d1414ca50a4bcaca75dd346eab56b360d447f8f7e31736e4fe2a9d62ffafcd79cf9f4f77c5b8b687ce8eba1b3405daa34e06f576aebd64fd5dfe38076fcadd19
6
+ metadata.gz: ecfad623cc0f0e0102b1228120743e313cb6188c5db45bb5a2031f9ce20b1b9c7a7298e45a84606f9c74de9d668589409c242277edc6608f1306aa3fd2a719df
7
+ data.tar.gz: 98a79559e2882e9e29951867d3c12c53683ab21f7bf64da9b88822f454f89633a951d14af0e456d88f421b48d505dfbdb663ab0bfe534daf47b3d02b321e2f72
data/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## [1.1.3] - 2023-04-22
2
+
3
+ ### Added
4
+
5
+ - Test for `error_handler` stack trace.
6
+
7
+ ## [1.1.2] - 2023-04-22
8
+
9
+ ### Added
10
+
11
+ - The `error_handler` will now print the first 10 lines of a stack trace.
12
+
1
13
  ## [1.1.1] - 2023-04-16
2
14
 
3
15
  ### Fixed
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lambda_punch (1.1.1)
4
+ lambda_punch (1.1.3)
5
5
  concurrent-ruby
6
6
  rake
7
7
  rb-inotify
@@ -10,147 +10,158 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- actioncable (6.1.4.1)
14
- actionpack (= 6.1.4.1)
15
- activesupport (= 6.1.4.1)
13
+ actioncable (7.0.4.3)
14
+ actionpack (= 7.0.4.3)
15
+ activesupport (= 7.0.4.3)
16
16
  nio4r (~> 2.0)
17
17
  websocket-driver (>= 0.6.1)
18
- actionmailbox (6.1.4.1)
19
- actionpack (= 6.1.4.1)
20
- activejob (= 6.1.4.1)
21
- activerecord (= 6.1.4.1)
22
- activestorage (= 6.1.4.1)
23
- activesupport (= 6.1.4.1)
18
+ actionmailbox (7.0.4.3)
19
+ actionpack (= 7.0.4.3)
20
+ activejob (= 7.0.4.3)
21
+ activerecord (= 7.0.4.3)
22
+ activestorage (= 7.0.4.3)
23
+ activesupport (= 7.0.4.3)
24
24
  mail (>= 2.7.1)
25
- actionmailer (6.1.4.1)
26
- actionpack (= 6.1.4.1)
27
- actionview (= 6.1.4.1)
28
- activejob (= 6.1.4.1)
29
- activesupport (= 6.1.4.1)
25
+ net-imap
26
+ net-pop
27
+ net-smtp
28
+ actionmailer (7.0.4.3)
29
+ actionpack (= 7.0.4.3)
30
+ actionview (= 7.0.4.3)
31
+ activejob (= 7.0.4.3)
32
+ activesupport (= 7.0.4.3)
30
33
  mail (~> 2.5, >= 2.5.4)
34
+ net-imap
35
+ net-pop
36
+ net-smtp
31
37
  rails-dom-testing (~> 2.0)
32
- actionpack (6.1.4.1)
33
- actionview (= 6.1.4.1)
34
- activesupport (= 6.1.4.1)
35
- rack (~> 2.0, >= 2.0.9)
38
+ actionpack (7.0.4.3)
39
+ actionview (= 7.0.4.3)
40
+ activesupport (= 7.0.4.3)
41
+ rack (~> 2.0, >= 2.2.0)
36
42
  rack-test (>= 0.6.3)
37
43
  rails-dom-testing (~> 2.0)
38
44
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
39
- actiontext (6.1.4.1)
40
- actionpack (= 6.1.4.1)
41
- activerecord (= 6.1.4.1)
42
- activestorage (= 6.1.4.1)
43
- activesupport (= 6.1.4.1)
45
+ actiontext (7.0.4.3)
46
+ actionpack (= 7.0.4.3)
47
+ activerecord (= 7.0.4.3)
48
+ activestorage (= 7.0.4.3)
49
+ activesupport (= 7.0.4.3)
50
+ globalid (>= 0.6.0)
44
51
  nokogiri (>= 1.8.5)
45
- actionview (6.1.4.1)
46
- activesupport (= 6.1.4.1)
52
+ actionview (7.0.4.3)
53
+ activesupport (= 7.0.4.3)
47
54
  builder (~> 3.1)
48
55
  erubi (~> 1.4)
49
56
  rails-dom-testing (~> 2.0)
50
57
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
51
- activejob (6.1.4.1)
52
- activesupport (= 6.1.4.1)
58
+ activejob (7.0.4.3)
59
+ activesupport (= 7.0.4.3)
53
60
  globalid (>= 0.3.6)
54
- activemodel (6.1.4.1)
55
- activesupport (= 6.1.4.1)
56
- activerecord (6.1.4.1)
57
- activemodel (= 6.1.4.1)
58
- activesupport (= 6.1.4.1)
59
- activestorage (6.1.4.1)
60
- actionpack (= 6.1.4.1)
61
- activejob (= 6.1.4.1)
62
- activerecord (= 6.1.4.1)
63
- activesupport (= 6.1.4.1)
64
- marcel (~> 1.0.0)
61
+ activemodel (7.0.4.3)
62
+ activesupport (= 7.0.4.3)
63
+ activerecord (7.0.4.3)
64
+ activemodel (= 7.0.4.3)
65
+ activesupport (= 7.0.4.3)
66
+ activestorage (7.0.4.3)
67
+ actionpack (= 7.0.4.3)
68
+ activejob (= 7.0.4.3)
69
+ activerecord (= 7.0.4.3)
70
+ activesupport (= 7.0.4.3)
71
+ marcel (~> 1.0)
65
72
  mini_mime (>= 1.1.0)
66
- activesupport (6.1.4.1)
73
+ activesupport (7.0.4.3)
67
74
  concurrent-ruby (~> 1.0, >= 1.0.2)
68
75
  i18n (>= 1.6, < 2)
69
76
  minitest (>= 5.1)
70
77
  tzinfo (~> 2.0)
71
- zeitwerk (~> 2.3)
72
78
  builder (3.2.4)
73
79
  coderay (1.1.3)
74
- concurrent-ruby (1.1.9)
80
+ concurrent-ruby (1.2.2)
75
81
  crass (1.0.6)
76
- erubi (1.10.0)
82
+ date (3.3.3)
83
+ erubi (1.12.0)
77
84
  ffi (1.15.5)
78
- globalid (0.5.2)
85
+ globalid (1.1.0)
79
86
  activesupport (>= 5.0)
80
- i18n (1.8.10)
87
+ i18n (1.12.0)
81
88
  concurrent-ruby (~> 1.0)
82
- loofah (2.12.0)
89
+ loofah (2.20.0)
83
90
  crass (~> 1.0.2)
84
91
  nokogiri (>= 1.5.9)
85
- mail (2.7.1)
92
+ mail (2.8.1)
86
93
  mini_mime (>= 0.1.1)
94
+ net-imap
95
+ net-pop
96
+ net-smtp
87
97
  marcel (1.0.2)
88
98
  method_source (1.0.0)
89
99
  mini_mime (1.1.2)
90
- mini_portile2 (2.6.1)
91
- minitest (5.14.4)
100
+ minitest (5.18.0)
92
101
  minitest-focus (1.3.1)
93
102
  minitest (>= 4, < 6)
94
- nio4r (2.5.8)
95
- nokogiri (1.12.5)
96
- mini_portile2 (~> 2.6.1)
103
+ net-imap (0.3.4)
104
+ date
105
+ net-protocol
106
+ net-pop (0.1.2)
107
+ net-protocol
108
+ net-protocol (0.2.1)
109
+ timeout
110
+ net-smtp (0.3.3)
111
+ net-protocol
112
+ nio4r (2.5.9)
113
+ nokogiri (1.14.3-aarch64-linux)
114
+ racc (~> 1.4)
115
+ nokogiri (1.14.3-arm64-darwin)
97
116
  racc (~> 1.4)
98
- pry (0.14.1)
117
+ pry (0.14.2)
99
118
  coderay (~> 1.1)
100
119
  method_source (~> 1.0)
101
- racc (1.6.0)
102
- rack (2.2.3)
103
- rack-test (1.1.0)
104
- rack (>= 1.0, < 3)
105
- rails (6.1.4.1)
106
- actioncable (= 6.1.4.1)
107
- actionmailbox (= 6.1.4.1)
108
- actionmailer (= 6.1.4.1)
109
- actionpack (= 6.1.4.1)
110
- actiontext (= 6.1.4.1)
111
- actionview (= 6.1.4.1)
112
- activejob (= 6.1.4.1)
113
- activemodel (= 6.1.4.1)
114
- activerecord (= 6.1.4.1)
115
- activestorage (= 6.1.4.1)
116
- activesupport (= 6.1.4.1)
120
+ racc (1.6.2)
121
+ rack (2.2.6.4)
122
+ rack-test (2.1.0)
123
+ rack (>= 1.3)
124
+ rails (7.0.4.3)
125
+ actioncable (= 7.0.4.3)
126
+ actionmailbox (= 7.0.4.3)
127
+ actionmailer (= 7.0.4.3)
128
+ actionpack (= 7.0.4.3)
129
+ actiontext (= 7.0.4.3)
130
+ actionview (= 7.0.4.3)
131
+ activejob (= 7.0.4.3)
132
+ activemodel (= 7.0.4.3)
133
+ activerecord (= 7.0.4.3)
134
+ activestorage (= 7.0.4.3)
135
+ activesupport (= 7.0.4.3)
117
136
  bundler (>= 1.15.0)
118
- railties (= 6.1.4.1)
119
- sprockets-rails (>= 2.0.0)
137
+ railties (= 7.0.4.3)
120
138
  rails-dom-testing (2.0.3)
121
139
  activesupport (>= 4.2.0)
122
140
  nokogiri (>= 1.6)
123
- rails-html-sanitizer (1.4.2)
124
- loofah (~> 2.3)
125
- railties (6.1.4.1)
126
- actionpack (= 6.1.4.1)
127
- activesupport (= 6.1.4.1)
141
+ rails-html-sanitizer (1.5.0)
142
+ loofah (~> 2.19, >= 2.19.1)
143
+ railties (7.0.4.3)
144
+ actionpack (= 7.0.4.3)
145
+ activesupport (= 7.0.4.3)
128
146
  method_source
129
- rake (>= 0.13)
147
+ rake (>= 12.2)
130
148
  thor (~> 1.0)
149
+ zeitwerk (~> 2.5)
131
150
  rake (13.0.6)
132
151
  rb-inotify (0.10.1)
133
152
  ffi (~> 1.0)
134
- sprockets (4.0.2)
135
- concurrent-ruby (~> 1.0)
136
- rack (> 1, < 3)
137
- sprockets-rails (3.2.2)
138
- actionpack (>= 4.0)
139
- activesupport (>= 4.0)
140
- sprockets (>= 3.0.0)
141
- thor (1.1.0)
153
+ thor (1.2.1)
142
154
  timeout (0.3.2)
143
- tzinfo (2.0.4)
155
+ tzinfo (2.0.6)
144
156
  concurrent-ruby (~> 1.0)
145
157
  websocket-driver (0.7.5)
146
158
  websocket-extensions (>= 0.1.0)
147
159
  websocket-extensions (0.1.5)
148
- zeitwerk (2.5.1)
160
+ zeitwerk (2.6.7)
149
161
 
150
162
  PLATFORMS
151
163
  aarch64-linux
152
164
  arm64-darwin-22
153
- x86_64-linux
154
165
 
155
166
  DEPENDENCIES
156
167
  lambda_punch!
@@ -161,4 +172,4 @@ DEPENDENCIES
161
172
  rake
162
173
 
163
174
  BUNDLED WITH
164
- 2.2.30
175
+ 2.4.12
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ![LambdaPunch](https://user-images.githubusercontent.com/2381/123561512-c23fb580-d776-11eb-9780-71d606cd8f2c.png)
2
2
 
3
- ![Test](https://github.com/customink/lambda_punch/workflows/Test/badge.svg)
3
+ [![Test](https://github.com/customink/lambda_punch/actions/workflows/test.yml/badge.svg)](https://github.com/customink/lambda_punch/actions/workflows/test.yml)
4
4
 
5
5
  # 👊 LambdaPunch
6
6
 
@@ -24,12 +24,18 @@ Add this line to your project's `Gemfile` and then make sure to `bundle install`
24
24
  gem 'lambda_punch'
25
25
  ```
26
26
 
27
- Within your project or [Rails application's](https://lamby.custominktech.com/docs/anatomy) `Dockerfile`, add the following. Make sure you do this before you `COPY` your code. The idea is to implicitly use the default `USER root` since it needs permissions to create an `/opt/extensions` directory.
27
+ Within your project or [Rails application's](https://lamby.custominktech.com/docs/anatomy) `Dockerfile`, add the following. Make sure you do this before you `COPY` your code. The idea is to implicitly use the default `USER root` since it needs permission to create an `/opt/extensions` directory.
28
28
 
29
29
  ```dockerfile
30
30
  RUN gem install lambda_punch && lambda_punch install
31
31
  ```
32
32
 
33
+ LambdaPunch uses the `LAMBDA_TASK_ROOT` environment variable to find your project's Gemfile. If you are using a provided AWS Runtime container, this should be set for you to `/var/task`. However, if you are using your own base image, make sure to set this to your project directory.
34
+
35
+ ```dockerfile
36
+ ENV LAMBDA_TASK_ROOT=/app
37
+ ```
38
+
33
39
  Installation with AWS Lambda via the [Lamby](https://lamby.custominktech.com/) v4 (or higher) gem can be done using Lamby's `handled_proc` config. For example, appends these to your `config/environments/production.rb` file. Here we are ensuring that the LambdaPunch DRb server is running and that after each Lamby request we notify LambdaPunch.
34
40
 
35
41
  ```ruby
@@ -1,3 +1,3 @@
1
1
  module LambdaPunch
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.3"
3
3
  end
data/lib/lambda_punch.rb CHANGED
@@ -51,6 +51,7 @@ module LambdaPunch
51
51
  def error_handler
52
52
  @error_handler ||= lambda do |e|
53
53
  logger.error "Queue#call::error => #{e.message}"
54
+ logger.error e.backtrace[0..10].join("\n")
54
55
  end
55
56
  end
56
57
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lambda_punch
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.3
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-04-16 00:00:00.000000000 Z
11
+ date: 2023-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby
@@ -168,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
168
168
  - !ruby/object:Gem::Version
169
169
  version: '0'
170
170
  requirements: []
171
- rubygems_version: 3.4.7
171
+ rubygems_version: 3.2.33
172
172
  signing_key:
173
173
  specification_version: 4
174
174
  summary: 'LambdaPunch: Async Processing using Lambda Extensions'