From 03de945fe8fe3660f09dc9e3e584760f295bc804 Mon Sep 17 00:00:00 2001 From: Kasumi Hanazuki Date: Sat, 24 Feb 2024 06:09:07 +0000 Subject: [PATCH] Drop support for Ruby 2.7 --- .github/workflows/test.yml | 1 - CHANGELOG.md | 3 +++ README.md | 4 ++-- example/lib/example-stack.ts | 6 ------ 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ca24e50..5d24217 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -59,7 +59,6 @@ jobs: - name: Test run: | cd example - sam local invoke -t ./cdk.out/LambdaRubyExample.template.json RubyFunction2_7 sam local invoke -t ./cdk.out/LambdaRubyExample.template.json RubyFunction3_2 test-finish: diff --git a/CHANGELOG.md b/CHANGELOG.md index fbb7964..9249e62 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # ChangeLog +## v0.3.0 (UNRELEASED) +- [breaking] Dropped support for Ruby 2.7 runtime. + ## v0.2.0 (2023-12-28) - [breaking] Node.js < v18 is no longer supported. - [breaking] Migrated to AWS CDK v2. diff --git a/README.md b/README.md index 7e62cfa..e6b2af3 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ export class ExampleStack extends cdk.Stack { super(scope, id, props); new lambdaRuby.RubyFunction(this, 'MyFunction', { - runtime: lambda.Runtime.RUBY_2_7, + runtime: lambda.Runtime.RUBY_3_2, sourceDirectory: 'function', handler: 'main.handler', bundlerConfig: { // optional @@ -31,7 +31,7 @@ export class ExampleStack extends cdk.Stack { ## Description -`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). +`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). 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. diff --git a/example/lib/example-stack.ts b/example/lib/example-stack.ts index 41335af..39e74fb 100644 --- a/example/lib/example-stack.ts +++ b/example/lib/example-stack.ts @@ -12,12 +12,6 @@ export class ExampleStack extends cdk.Stack { public constructor(scope: Construct, id: string, props?: ExampleStackProps) { super(scope, id, props); - new lambdaRuby.RubyFunction(this, 'RubyFunction2_7', { - runtime: lambda.Runtime.RUBY_2_7, - sourceDirectory: path.join(__dirname, '../app'), - handler: 'main.handler', - }); - new lambdaRuby.RubyFunction(this, 'RubyFunction3_2', { runtime: lambda.Runtime.RUBY_3_2, sourceDirectory: path.join(__dirname, '../app'),