From 5331d4e82331b24a7c2f9ac91b1b07345f2d40a4 Mon Sep 17 00:00:00 2001 From: sireeshajonnalagadda Date: Mon, 12 Jan 2026 08:37:40 +0000 Subject: [PATCH] Adding support for ruby 4.0 --- src/ruby-rails-postgres/.devcontainer/Dockerfile | 2 +- src/ruby-rails-postgres/README.md | 2 +- src/ruby-rails-postgres/devcontainer-template.json | 10 +++++----- src/ruby/.devcontainer/devcontainer.json | 2 +- src/ruby/README.md | 2 +- src/ruby/devcontainer-template.json | 10 +++++----- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/ruby-rails-postgres/.devcontainer/Dockerfile b/src/ruby-rails-postgres/.devcontainer/Dockerfile index 47767878..dd84a119 100644 --- a/src/ruby-rails-postgres/.devcontainer/Dockerfile +++ b/src/ruby-rails-postgres/.devcontainer/Dockerfile @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/devcontainers/ruby:2-${templateOption:imageVariant} +FROM mcr.microsoft.com/devcontainers/ruby:3-${templateOption:imageVariant} # Install Rails RUN su vscode -c "gem install rails webdrivers" diff --git a/src/ruby-rails-postgres/README.md b/src/ruby-rails-postgres/README.md index deb86ec2..6a3d0597 100644 --- a/src/ruby-rails-postgres/README.md +++ b/src/ruby-rails-postgres/README.md @@ -7,7 +7,7 @@ Develop Ruby on Rails applications with Postgres. Includes a Rails application c | Options Id | Description | Type | Default Value | |-----|-----|-----|-----| -| imageVariant | Ruby version (use -trixie, -bookworm, -bullseye variants on local arm64/Apple Silicon) : | string | 3.4-trixie | +| imageVariant | Ruby version (use -trixie, -bookworm, -bullseye variants on local arm64/Apple Silicon) : | string | 4-trixie | This template references an image that was [pre-built](https://containers.dev/implementors/reference/#prebuilding) to automatically include needed devcontainer.json metadata. diff --git a/src/ruby-rails-postgres/devcontainer-template.json b/src/ruby-rails-postgres/devcontainer-template.json index e277e7ef..20b64f65 100644 --- a/src/ruby-rails-postgres/devcontainer-template.json +++ b/src/ruby-rails-postgres/devcontainer-template.json @@ -1,6 +1,6 @@ { "id": "ruby-rails-postgres", - "version": "5.0.0", + "version": "6.0.0", "name": "Ruby on Rails & Postgres", "description": "Develop Ruby on Rails applications with Postgres. Includes a Rails application container and PostgreSQL server.", "documentationURL": "https://github.com/devcontainers/templates/tree/main/src/ruby-rails-postgres", @@ -11,20 +11,20 @@ "type": "string", "description": "Ruby version (use -bookworm, -bullseye variants on local arm64/Apple Silicon):", "proposals": [ - "3-trixie", + "4-trixie", "3.4-trixie", "3.3-trixie", "3.2-trixie", - "3-bookworm", + "4-bookworm", "3.4-bookworm", "3.3-bookworm", "3.2-bookworm", - "3-bullseye", + "4-bullseye", "3.4-bullseye", "3.3-bullseye", "3.2-bullseye" ], - "default": "3.4-trixie" + "default": "4-trixie" } }, "platforms": ["Ruby"], diff --git a/src/ruby/.devcontainer/devcontainer.json b/src/ruby/.devcontainer/devcontainer.json index eead7386..3f642645 100644 --- a/src/ruby/.devcontainer/devcontainer.json +++ b/src/ruby/.devcontainer/devcontainer.json @@ -3,7 +3,7 @@ { "name": "Ruby", // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile - "image": "mcr.microsoft.com/devcontainers/ruby:2-${templateOption:imageVariant}" + "image": "mcr.microsoft.com/devcontainers/ruby:3-${templateOption:imageVariant}" // Features to add to the dev container. More info: https://containers.dev/features. // "features": {}, diff --git a/src/ruby/README.md b/src/ruby/README.md index 9857029f..54896171 100644 --- a/src/ruby/README.md +++ b/src/ruby/README.md @@ -7,7 +7,7 @@ Develop Ruby based applications. includes everything you need to get up and runn | Options Id | Description | Type | Default Value | |-----|-----|-----|-----| -| imageVariant | Ruby version (use -trixie, -bookworm, -bullseye variants on local arm64/Apple Silicon) : | string | 3.4-trixie | +| imageVariant | Ruby version (use -trixie, -bookworm, -bullseye variants on local arm64/Apple Silicon) : | string | 4-trixie | This template references an image that was [pre-built](https://containers.dev/implementors/reference/#prebuilding) to automatically include needed devcontainer.json metadata. diff --git a/src/ruby/devcontainer-template.json b/src/ruby/devcontainer-template.json index d3ae4051..caaebd0f 100644 --- a/src/ruby/devcontainer-template.json +++ b/src/ruby/devcontainer-template.json @@ -1,6 +1,6 @@ { "id": "ruby", - "version": "5.0.0", + "version": "6.0.0", "name": "Ruby", "description": "Develop Ruby based applications. includes everything you need to get up and running.", "documentationURL": "https://github.com/devcontainers/templates/tree/main/src/ruby", @@ -11,20 +11,20 @@ "type": "string", "description": "Ruby version (use -trixie, -bookworm, -bullseye variants on local arm64/Apple Silicon):", "proposals": [ - "3-trixie", + "4-trixie", "3.4-trixie", "3.3-trixie", "3.2-trixie", - "3-bookworm", + "4-bookworm", "3.4-bookworm", "3.3-bookworm", "3.2-bookworm", - "3-bullseye", + "4-bullseye", "3.4-bullseye", "3.3-bullseye", "3.2-bullseye" ], - "default": "3.4-trixie" + "default": "4-trixie" } }, "platforms": ["Ruby"],