Skip to content

Commit 801a2f9

Browse files
Merge pull request #1 from rails-lambda/update-ruby-gems-workflows
Upgrade to Ruby 3.4, Bundler 4, fix frozen string literal warning, update workflows
2 parents e210ad0 + f9d64e2 commit 801a2f9

8 files changed

Lines changed: 53 additions & 14 deletions

File tree

.github/workflows/release.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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 # IMPORTANT: this permission is mandatory for trusted publishing
14+
contents: write # IMPORTANT: this permission is required for `rake release` to push the release tag
15+
16+
steps:
17+
# Set up
18+
- uses: actions/checkout@v4
19+
- name: Set up Ruby
20+
uses: ruby/setup-ruby@v1
21+
with:
22+
bundler-cache: true
23+
ruby-version: ruby
24+
25+
# Release
26+
- uses: rubygems/release-gem@v1

.github/workflows/test.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,16 @@ name: CI/CD
22
on: [push]
33
jobs:
44
build:
5-
runs-on: ubuntu-latest
5+
runs-on: ubuntu-24.04
66
name: Ruby ${{ matrix.ruby }}
77
strategy:
88
matrix:
99
ruby:
10-
- "2.7.4"
11-
- "3.0.2"
12-
- "3.1.0"
13-
- "3.2.1"
10+
- "3.2"
11+
- "3.3"
12+
- "3.4"
1413
steps:
15-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1615
- name: Set up Ruby
1716
uses: ruby/setup-ruby@v1
1817
with:

.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: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
## [Unreleased]
22

3+
## [1.1.0] - 2026-06-04
4+
5+
- Ruby 3.4 support and development tooling upgrade (Bundler 4)
6+
- Fix frozen string literal warning in Ruby 3.4 (`String.new` instead of `''`)
7+
- Update CI to test against Ruby 3.2, 3.3, and 3.4; drop EOL 2.7/3.0/3.1
8+
- Add `release.yml` workflow for trusted RubyGems publishing
9+
310
## [1.0.0] - 2023-06-15
411

512
- Initial release

Gemfile.lock

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
11
PATH
22
remote: .
33
specs:
4-
lambda-console-ruby (1.0.0)
4+
lambda-console-ruby (1.1.0)
55

66
GEM
77
remote: https://rubygems.org/
88
specs:
9-
minitest (5.18.0)
10-
mocha (2.0.4)
9+
drb (2.2.3)
10+
minitest (6.0.6)
11+
drb (~> 2.0)
12+
prism (~> 1.5)
13+
mocha (3.1.0)
1114
ruby2_keywords (>= 0.0.5)
12-
rake (13.0.6)
15+
prism (1.9.0)
16+
rake (13.4.2)
1317
ruby2_keywords (0.0.5)
1418

1519
PLATFORMS
1620
arm64-darwin-22
21+
arm64-darwin-23
22+
arm64-darwin-25
1723
x86_64-linux
1824

1925
DEPENDENCIES
@@ -23,4 +29,4 @@ DEPENDENCIES
2329
rake
2430

2531
BUNDLED WITH
26-
2.4.13
32+
4.0.13

lib/lambda-console-ruby/run.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def handle(event)
2222

2323
def initialize(event)
2424
@event = event
25-
@body = ''
25+
@body = String.new
2626
end
2727

2828
def run

lib/lambda-console-ruby/version.rb

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

test/test_run.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class LambdaConsoleTestRun < LambdaConsoleSpec
1010
response = LambdaConsole::Run.handle(event('cat lib/lambda-console-ruby/version.rb'))
1111
expect(response[:statusCode]).must_equal 0
1212
expect(response[:headers]).must_equal({})
13-
expect(response[:body]).must_match %r{1.0.0}
13+
expect(response[:body]).must_match %r{#{LambdaConsole::VERSION}}
1414
end
1515

1616
it 'non shell captureable errors due to command not existing' do

0 commit comments

Comments
 (0)