Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop support for Ruby 2.7 #404

Merged
merged 1 commit into from
Feb 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading