Skip to content

Commit 0118fcd

Browse files
authored
Merge pull request #404 from hanazuki/drop-ruby2.7
Drop support for Ruby 2.7
2 parents ce212cc + 03de945 commit 0118fcd

4 files changed

Lines changed: 5 additions & 9 deletions

File tree

.github/workflows/test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ jobs:
5959
- name: Test
6060
run: |
6161
cd example
62-
sam local invoke -t ./cdk.out/LambdaRubyExample.template.json RubyFunction2_7
6362
sam local invoke -t ./cdk.out/LambdaRubyExample.template.json RubyFunction3_2
6463
6564
test-finish:

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# ChangeLog
22

3+
## v0.3.0 (UNRELEASED)
4+
- [breaking] Dropped support for Ruby 2.7 runtime.
5+
36
## v0.2.0 (2023-12-28)
47
- [breaking] Node.js < v18 is no longer supported.
58
- [breaking] Migrated to AWS CDK v2.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class ExampleStack extends cdk.Stack {
1515
super(scope, id, props);
1616

1717
new lambdaRuby.RubyFunction(this, 'MyFunction', {
18-
runtime: lambda.Runtime.RUBY_2_7,
18+
runtime: lambda.Runtime.RUBY_3_2,
1919
sourceDirectory: 'function',
2020
handler: 'main.handler',
2121
bundlerConfig: { // optional
@@ -31,7 +31,7 @@ export class ExampleStack extends cdk.Stack {
3131

3232
## Description
3333

34-
`RubyFunction` deploys the `sourceDirectory` as a Lambda function written in Ruby. `runtime` is expected to be a Ruby-family Lambda Runtime (i.e., RUBY\_2\_7 at the moment).
34+
`RubyFunction` deploys the `sourceDirectory` as a Lambda function written in Ruby. `runtime` is expected to be a Ruby-family Lambda Runtime (i.e., RUBY\_3\_2 at the moment).
3535

3636
If a file named "Gemfile" exists directly inside `sourceDirectory`, the dependency gems are bundled using [Bundler](https://bundler.io/). Bundling is performed inside a [Docker](https://www.docker.com/) container using the Lambda builder images privided by AWS. The `bundlerConfig` prop may have the `without` field to specify a colon-separated list of gem groups to skip installation.
3737

example/lib/example-stack.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@ export class ExampleStack extends cdk.Stack {
1212
public constructor(scope: Construct, id: string, props?: ExampleStackProps) {
1313
super(scope, id, props);
1414

15-
new lambdaRuby.RubyFunction(this, 'RubyFunction2_7', {
16-
runtime: lambda.Runtime.RUBY_2_7,
17-
sourceDirectory: path.join(__dirname, '../app'),
18-
handler: 'main.handler',
19-
});
20-
2115
new lambdaRuby.RubyFunction(this, 'RubyFunction3_2', {
2216
runtime: lambda.Runtime.RUBY_3_2,
2317
sourceDirectory: path.join(__dirname, '../app'),

0 commit comments

Comments
 (0)