Skip to content

Commit 022a8fa

Browse files
committed
Update Dev Gems. Test Error Stack Trace.
1 parent b371c5d commit 022a8fa

File tree

4 files changed

+117
-90
lines changed

4 files changed

+117
-90
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## [1.1.3] - 2023-04-22
2+
3+
### Added
4+
5+
- Test for `error_handler` stack trace.
6+
17
## [1.1.2] - 2023-04-22
28

39
### Added

Gemfile.lock

Lines changed: 100 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
lambda_punch (1.1.1)
4+
lambda_punch (1.1.3)
55
concurrent-ruby
66
rake
77
rb-inotify
@@ -10,147 +10,158 @@ PATH
1010
GEM
1111
remote: https://rubygems.org/
1212
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)
1616
nio4r (~> 2.0)
1717
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)
2424
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)
3033
mail (~> 2.5, >= 2.5.4)
34+
net-imap
35+
net-pop
36+
net-smtp
3137
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)
3642
rack-test (>= 0.6.3)
3743
rails-dom-testing (~> 2.0)
3844
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)
4451
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)
4754
builder (~> 3.1)
4855
erubi (~> 1.4)
4956
rails-dom-testing (~> 2.0)
5057
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)
5360
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)
6572
mini_mime (>= 1.1.0)
66-
activesupport (6.1.4.1)
73+
activesupport (7.0.4.3)
6774
concurrent-ruby (~> 1.0, >= 1.0.2)
6875
i18n (>= 1.6, < 2)
6976
minitest (>= 5.1)
7077
tzinfo (~> 2.0)
71-
zeitwerk (~> 2.3)
7278
builder (3.2.4)
7379
coderay (1.1.3)
74-
concurrent-ruby (1.1.9)
80+
concurrent-ruby (1.2.2)
7581
crass (1.0.6)
76-
erubi (1.10.0)
82+
date (3.3.3)
83+
erubi (1.12.0)
7784
ffi (1.15.5)
78-
globalid (0.5.2)
85+
globalid (1.1.0)
7986
activesupport (>= 5.0)
80-
i18n (1.8.10)
87+
i18n (1.12.0)
8188
concurrent-ruby (~> 1.0)
82-
loofah (2.12.0)
89+
loofah (2.20.0)
8390
crass (~> 1.0.2)
8491
nokogiri (>= 1.5.9)
85-
mail (2.7.1)
92+
mail (2.8.1)
8693
mini_mime (>= 0.1.1)
94+
net-imap
95+
net-pop
96+
net-smtp
8797
marcel (1.0.2)
8898
method_source (1.0.0)
8999
mini_mime (1.1.2)
90-
mini_portile2 (2.6.1)
91-
minitest (5.14.4)
100+
minitest (5.18.0)
92101
minitest-focus (1.3.1)
93102
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)
97116
racc (~> 1.4)
98-
pry (0.14.1)
117+
pry (0.14.2)
99118
coderay (~> 1.1)
100119
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)
117136
bundler (>= 1.15.0)
118-
railties (= 6.1.4.1)
119-
sprockets-rails (>= 2.0.0)
137+
railties (= 7.0.4.3)
120138
rails-dom-testing (2.0.3)
121139
activesupport (>= 4.2.0)
122140
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)
128146
method_source
129-
rake (>= 0.13)
147+
rake (>= 12.2)
130148
thor (~> 1.0)
149+
zeitwerk (~> 2.5)
131150
rake (13.0.6)
132151
rb-inotify (0.10.1)
133152
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)
142154
timeout (0.3.2)
143-
tzinfo (2.0.4)
155+
tzinfo (2.0.6)
144156
concurrent-ruby (~> 1.0)
145157
websocket-driver (0.7.5)
146158
websocket-extensions (>= 0.1.0)
147159
websocket-extensions (0.1.5)
148-
zeitwerk (2.5.1)
160+
zeitwerk (2.6.7)
149161

150162
PLATFORMS
151163
aarch64-linux
152164
arm64-darwin-22
153-
x86_64-linux
154165

155166
DEPENDENCIES
156167
lambda_punch!
@@ -161,4 +172,4 @@ DEPENDENCIES
161172
rake
162173

163174
BUNDLED WITH
164-
2.2.30
175+
2.4.12

lib/lambda_punch/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module LambdaPunch
2-
VERSION = "1.1.2"
2+
VERSION = "1.1.3"
33
end

test/cases/queue_test.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,16 @@ class QueueTest < LambdaPunchSpec
3636
expect(out).must_include 'hell'
3737
end
3838

39+
it 'will log error backtraces' do
40+
LambdaPunch.push do
41+
hash_with_default_error = HashWithIndifferentAccess.new { |h| raise 'stack' }
42+
hash_with_default_error['boom']
43+
end
44+
out = capture(:stdout) { LambdaPunch::Queue.new.call }
45+
expect(out).must_include 'lambda_punch/test/cases/queue_test.rb'
46+
expect(out).must_include 'gems/activesupport'
47+
end
48+
3949
it 'will allow a custom error handler to be used' do
4050
LambdaPunch.error_handler = lambda { |e| puts("test-#{e.class.name}") }
4151
LambdaPunch.push { raise('hell') }

0 commit comments

Comments
 (0)