Skip to content

Commit

Permalink
Merge pull request #404 from hanazuki/drop-ruby2.7
Browse files Browse the repository at this point in the history
Drop support for Ruby 2.7
  • Loading branch information
hanazuki authored Feb 24, 2024
2 parents ce212cc + 03de945 commit 0118fcd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.

Expand Down
6 changes: 0 additions & 6 deletions example/lib/example-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit 0118fcd

Please sign in to comment.