Skip to content

Commit 9de9657

Browse files
Merge pull request #40 from jeremiahlukus/update-gems-ruby-3-4-4
Update to Ruby 3.4.4, Bundler 4, and latest gems
2 parents f124c33 + 518eef5 commit 9de9657

11 files changed

Lines changed: 207 additions & 89 deletions

File tree

.github/workflows/cicd.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release Gem
2+
on:
3+
workflow_dispatch:
4+
branches:
5+
- master
6+
7+
jobs:
8+
push:
9+
name: Push gem to RubyGems.org
10+
runs-on: ubuntu-latest
11+
12+
permissions:
13+
id-token: write
14+
contents: write
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Set up Ruby
19+
uses: ruby/setup-ruby@v1
20+
with:
21+
bundler-cache: true
22+
ruby-version: ruby
23+
24+
- uses: rubygems/release-gem@v1

.github/workflows/test.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: CI/CD
2+
on: [push]
3+
jobs:
4+
test:
5+
runs-on: ubuntu-24.04
6+
steps:
7+
- name: Checkout
8+
uses: actions/checkout@v4
9+
- name: Set up Ruby
10+
uses: ruby/setup-ruby@v1
11+
with:
12+
bundler-cache: true
13+
ruby-version: ruby
14+
- name: Test
15+
run: bundle exec rake test

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.4.4

CHANGELOG.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
# Keep A Changelog!
22

3-
See this http://keepachangelog.com link for information on how we want this documented formatted.
3+
See this http://keepachangelog.com link for information on how we want this formatted.
4+
5+
## v2.4.0
6+
7+
### Changed
8+
9+
- Update to Ruby 3.4.4 and Bundler 4.
10+
- Update all gems, including Rails 6.1 → 8.1 and aws-sdk-sqs 1.35 → 1.116.
11+
- Fix duplicate `JobName` key in CloudWatch metrics output (would raise an error in json 3.0).
12+
- Modernize CI to use `ruby/setup-ruby` directly on `ubuntu-24.04`.
13+
- Add `release.yml` workflow for trusted publishing to RubyGems.org.
414

515
## v2.3.0
616

Gemfile.lock

Lines changed: 149 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -10,93 +10,177 @@ PATH
1010
GEM
1111
remote: https://rubygems.org/
1212
specs:
13-
actionpack (6.1.1)
14-
actionview (= 6.1.1)
15-
activesupport (= 6.1.1)
16-
rack (~> 2.0, >= 2.0.9)
13+
actionpack (8.1.3)
14+
actionview (= 8.1.3)
15+
activesupport (= 8.1.3)
16+
nokogiri (>= 1.8.5)
17+
rack (>= 2.2.4)
18+
rack-session (>= 1.0.1)
1719
rack-test (>= 0.6.3)
18-
rails-dom-testing (~> 2.0)
19-
rails-html-sanitizer (~> 1.0, >= 1.2.0)
20-
actionview (6.1.1)
21-
activesupport (= 6.1.1)
20+
rails-dom-testing (~> 2.2)
21+
rails-html-sanitizer (~> 1.6)
22+
useragent (~> 0.16)
23+
actionview (8.1.3)
24+
activesupport (= 8.1.3)
2225
builder (~> 3.1)
23-
erubi (~> 1.4)
24-
rails-dom-testing (~> 2.0)
25-
rails-html-sanitizer (~> 1.1, >= 1.2.0)
26-
activejob (6.1.1)
27-
activesupport (= 6.1.1)
26+
erubi (~> 1.11)
27+
rails-dom-testing (~> 2.2)
28+
rails-html-sanitizer (~> 1.6)
29+
activejob (8.1.3)
30+
activesupport (= 8.1.3)
2831
globalid (>= 0.3.6)
29-
activesupport (6.1.1)
30-
concurrent-ruby (~> 1.0, >= 1.0.2)
32+
activesupport (8.1.3)
33+
base64
34+
bigdecimal
35+
concurrent-ruby (~> 1.0, >= 1.3.1)
36+
connection_pool (>= 2.2.5)
37+
drb
3138
i18n (>= 1.6, < 2)
39+
json
40+
logger (>= 1.4.2)
3241
minitest (>= 5.1)
33-
tzinfo (~> 2.0)
34-
zeitwerk (~> 2.3)
35-
aws-eventstream (1.1.0)
36-
aws-partitions (1.422.0)
37-
aws-sdk-core (3.111.2)
42+
securerandom (>= 0.3)
43+
tzinfo (~> 2.0, >= 2.0.5)
44+
uri (>= 0.13.1)
45+
aws-eventstream (1.4.0)
46+
aws-partitions (1.1257.0)
47+
aws-sdk-core (3.251.0)
48+
aws-eventstream (~> 1, >= 1.3.0)
49+
aws-partitions (~> 1, >= 1.992.0)
50+
aws-sigv4 (~> 1.9)
51+
base64
52+
bigdecimal
53+
jmespath (~> 1, >= 1.6.1)
54+
logger
55+
aws-sdk-sqs (1.116.0)
56+
aws-sdk-core (~> 3, >= 3.248.0)
57+
aws-sigv4 (~> 1.5)
58+
aws-sigv4 (1.12.1)
3859
aws-eventstream (~> 1, >= 1.0.2)
39-
aws-partitions (~> 1, >= 1.239.0)
40-
aws-sigv4 (~> 1.1)
41-
jmespath (~> 1.0)
42-
aws-sdk-sqs (1.35.0)
43-
aws-sdk-core (~> 3, >= 3.109.0)
44-
aws-sigv4 (~> 1.1)
45-
aws-sigv4 (1.2.2)
46-
aws-eventstream (~> 1, >= 1.0.2)
47-
builder (3.2.4)
60+
base64 (0.3.0)
61+
bigdecimal (4.1.2)
62+
builder (3.3.0)
4863
coderay (1.1.3)
49-
concurrent-ruby (1.1.8)
64+
concurrent-ruby (1.3.6)
65+
connection_pool (3.0.2)
5066
crass (1.0.6)
51-
erubi (1.10.0)
52-
globalid (0.4.2)
53-
activesupport (>= 4.2.0)
54-
i18n (1.8.7)
67+
date (3.5.1)
68+
drb (2.2.3)
69+
erb (6.0.4)
70+
erubi (1.13.1)
71+
globalid (1.3.0)
72+
activesupport (>= 6.1)
73+
i18n (1.14.8)
5574
concurrent-ruby (~> 1.0)
56-
jmespath (1.4.0)
57-
loofah (2.9.0)
75+
io-console (0.8.2)
76+
irb (1.18.0)
77+
pp (>= 0.6.0)
78+
prism (>= 1.3.0)
79+
rdoc (>= 4.0.0)
80+
reline (>= 0.4.2)
81+
jmespath (1.6.2)
82+
json (2.19.8)
83+
logger (1.7.0)
84+
loofah (2.25.1)
5885
crass (~> 1.0.2)
59-
nokogiri (>= 1.5.9)
86+
nokogiri (>= 1.12.0)
6087
macaddr (1.7.2)
6188
systemu (~> 2.6.5)
62-
method_source (1.0.0)
63-
mini_portile2 (2.5.0)
64-
minitest (5.14.2)
65-
minitest-focus (1.2.1)
66-
minitest (>= 4, < 6)
67-
mocha (1.11.2)
68-
nokogiri (1.11.1)
69-
mini_portile2 (~> 2.5.0)
89+
method_source (1.1.0)
90+
mini_portile2 (2.8.9)
91+
minitest (6.0.6)
92+
drb (~> 2.0)
93+
prism (~> 1.5)
94+
minitest-focus (1.4.1)
95+
minitest (> 5.0)
96+
mocha (3.1.0)
97+
ruby2_keywords (>= 0.0.5)
98+
nokogiri (1.19.3)
99+
mini_portile2 (~> 2.8.2)
100+
racc (~> 1.4)
101+
nokogiri (1.19.3-aarch64-linux-gnu)
102+
racc (~> 1.4)
103+
nokogiri (1.19.3-aarch64-linux-musl)
104+
racc (~> 1.4)
105+
nokogiri (1.19.3-arm-linux-gnu)
106+
racc (~> 1.4)
107+
nokogiri (1.19.3-arm-linux-musl)
108+
racc (~> 1.4)
109+
nokogiri (1.19.3-arm64-darwin)
110+
racc (~> 1.4)
111+
nokogiri (1.19.3-x86_64-darwin)
112+
racc (~> 1.4)
113+
nokogiri (1.19.3-x86_64-linux-gnu)
114+
racc (~> 1.4)
115+
nokogiri (1.19.3-x86_64-linux-musl)
70116
racc (~> 1.4)
71-
pry (0.13.1)
117+
pp (0.6.3)
118+
prettyprint
119+
prettyprint (0.2.0)
120+
prism (1.9.0)
121+
pry (0.16.0)
72122
coderay (~> 1.1)
73123
method_source (~> 1.0)
74-
racc (1.5.2)
75-
rack (2.2.3)
76-
rack-test (1.1.0)
77-
rack (>= 1.0, < 3)
78-
rails-dom-testing (2.0.3)
79-
activesupport (>= 4.2.0)
124+
reline (>= 0.6.0)
125+
psych (5.4.0)
126+
date
127+
stringio
128+
racc (1.8.1)
129+
rack (3.2.6)
130+
rack-session (2.1.2)
131+
base64 (>= 0.1.0)
132+
rack (>= 3.0.0)
133+
rack-test (2.2.0)
134+
rack (>= 1.3)
135+
rackup (2.3.1)
136+
rack (>= 3)
137+
rails-dom-testing (2.3.0)
138+
activesupport (>= 5.0.0)
139+
minitest
80140
nokogiri (>= 1.6)
81-
rails-html-sanitizer (1.3.0)
82-
loofah (~> 2.3)
83-
railties (6.1.1)
84-
actionpack (= 6.1.1)
85-
activesupport (= 6.1.1)
86-
method_source
87-
rake (>= 0.8.7)
88-
thor (~> 1.0)
89-
rake (13.0.1)
141+
rails-html-sanitizer (1.7.0)
142+
loofah (~> 2.25)
143+
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
144+
railties (8.1.3)
145+
actionpack (= 8.1.3)
146+
activesupport (= 8.1.3)
147+
irb (~> 1.13)
148+
rackup (>= 1.0.0)
149+
rake (>= 12.2)
150+
thor (~> 1.0, >= 1.2.2)
151+
tsort (>= 0.2)
152+
zeitwerk (~> 2.6)
153+
rake (13.4.2)
154+
rdoc (7.2.0)
155+
erb
156+
psych (>= 4.0.0)
157+
tsort
158+
reline (0.6.3)
159+
io-console (~> 0.5)
160+
ruby2_keywords (0.0.5)
161+
securerandom (0.4.1)
162+
stringio (3.2.0)
90163
systemu (2.6.5)
91-
thor (1.1.0)
92-
tzinfo (2.0.4)
164+
thor (1.5.0)
165+
tsort (0.2.0)
166+
tzinfo (2.0.6)
93167
concurrent-ruby (~> 1.0)
168+
uri (1.1.1)
169+
useragent (0.16.11)
94170
uuid (2.3.9)
95171
macaddr (~> 1.0)
96-
zeitwerk (2.4.2)
172+
zeitwerk (2.8.2)
97173

98174
PLATFORMS
175+
aarch64-linux-gnu
176+
aarch64-linux-musl
177+
arm-linux-gnu
178+
arm-linux-musl
179+
arm64-darwin
99180
ruby
181+
x86_64-darwin
182+
x86_64-linux-gnu
183+
x86_64-linux-musl
100184

101185
DEPENDENCIES
102186
bundler
@@ -109,4 +193,4 @@ DEPENDENCIES
109193
uuid
110194

111195
BUNDLED WITH
112-
2.1.4
196+
4.0.13

lib/lambdakiq/metrics.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ def instrument!
6767
put_metric 'Count', 1, 'Count'
6868
put_metric 'ExceptionCount', 1, 'Count' if exception_name
6969
set_property 'JobId', job.job_id
70-
set_property 'JobName', job_name
7170
set_property 'QueueName', job.queue_name
7271
set_property 'MessageId', job.provider_job_id if job.provider_job_id
7372
set_property 'ExceptionName', exception_name if exception_name

lib/lambdakiq/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Lambdakiq
2-
VERSION = '2.3.0'
2+
VERSION = '2.4.0'
33
end

test/cases/job_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class JobTest < LambdakiqSpec
88
expect(aj).must_be_instance_of TestHelper::Jobs::BasicJob
99
expect(aj.job_id).must_equal '527cd37e-08f4-4aa8-9834-a46220cdc5a3'
1010
expect(aj.queue_name).must_equal queue_name
11-
expect(aj.enqueued_at).must_equal '2020-11-30T13:07:36Z'
11+
expect(aj.enqueued_at).must_equal Time.utc(2020, 11, 30, 13, 7, 36)
1212
expect(aj.executions).must_equal 0
1313
expect(aj.provider_job_id).must_equal message_id
1414
end

test/dummy_app/init.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ module Dummy
44
class Application < ::Rails::Application
55
config.root = File.join __FILE__, '..'
66
config.eager_load = true
7-
logger = ActiveSupport::Logger.new(StringIO.new)
7+
LOG_IO = StringIO.new
8+
logger = ActiveSupport::Logger.new(LOG_IO)
89
logger.formatter = ActiveSupport::Logger::SimpleFormatter.new
910
config.logger = logger
1011
config.active_job.queue_adapter = :lambdakiq

0 commit comments

Comments
 (0)