Skip to content

Commit 565083f

Browse files
committed
Add support for ruby 3.4
1 parent 03053ac commit 565083f

3 files changed

Lines changed: 13 additions & 0 deletions

File tree

scripts/generate_layers_json.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ LAYER_NAMES=(
3838
"Datadog-Ruby3-2-ARM"
3939
"Datadog-Ruby3-3"
4040
"Datadog-Ruby3-3-ARM"
41+
"Datadog-Ruby3-4"
42+
"Datadog-Ruby3-4-ARM"
4143
"Datadog-Extension"
4244
"Datadog-Extension-ARM"
4345
"Datadog-Extension-FIPS"
@@ -72,6 +74,8 @@ JSON_LAYER_NAMES=(
7274
"ruby3.2-arm"
7375
"ruby3.3"
7476
"ruby3.3-arm"
77+
"ruby3.4"
78+
"ruby3.4-arm"
7579
"extension"
7680
"extension-arm"
7781
"extension-fips"

src/layer.spec.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ describe("findHandlers", () => {
5757
"python314-function": { handler: "myfile.handler", runtime: "python3.14" },
5858
"ruby32-function": { handler: "myfile.handler", runtime: "ruby3.2" },
5959
"ruby33-function": { handler: "myfile.handler", runtime: "ruby3.3" },
60+
"ruby34-function": { handler: "myfile.handler", runtime: "ruby3.4" },
6061
"java8-function": { handler: "myfile.handler", runtime: "java8" },
6162
"java8.al2-function": { handler: "myfile.handler", runtime: "java8.al2" },
6263
"java11-function": { handler: "myfile.handler", runtime: "java11" },
@@ -166,6 +167,12 @@ describe("findHandlers", () => {
166167
type: RuntimeType.RUBY,
167168
runtime: "ruby3.3",
168169
},
170+
{
171+
name: "ruby34-function",
172+
handler: { handler: "myfile.handler", runtime: "ruby3.4" },
173+
type: RuntimeType.RUBY,
174+
runtime: "ruby3.4",
175+
},
169176
{
170177
name: "java8-function",
171178
handler: { handler: "myfile.handler", runtime: "java8" },

src/layer.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ export const runtimeLookup: { [key: string]: RuntimeType } = {
8080
provided: RuntimeType.CUSTOM,
8181
"ruby3.2": RuntimeType.RUBY,
8282
"ruby3.3": RuntimeType.RUBY,
83+
"ruby3.4": RuntimeType.RUBY,
8384
"go1.x": RuntimeType.GO,
8485
};
8586

@@ -94,6 +95,7 @@ export const ARM_RUNTIME_KEYS: { [key: string]: string } = {
9495
"python3.14": "python3.14-arm",
9596
"ruby3.2": "ruby3.2-arm",
9697
"ruby3.3": "ruby3.3-arm",
98+
"ruby3.4": "ruby3.4-arm",
9799
extension: "extension-arm",
98100
dotnet: "dotnet-arm",
99101
// The same Node layers work for both x86 and ARM

0 commit comments

Comments
 (0)