From 8a64668979e16fa43561f3ccce220a1fcb78f78f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 22 Apr 2026 01:57:17 +0000 Subject: [PATCH] Add Ruby versions: 4.0.3 [automated-ruby-update] --- .github/ruby-versions.json | 1 + features/src/ruby/README.md | 2 +- features/src/ruby/devcontainer-feature.json | 4 ++-- features/test/ruby/test.sh | 2 +- features/test/ruby/with_rbenv.sh | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/ruby-versions.json b/.github/ruby-versions.json index a1c6411..e81ada1 100644 --- a/.github/ruby-versions.json +++ b/.github/ruby-versions.json @@ -1,4 +1,5 @@ [ + "4.0.3", "4.0.2", "4.0.1", "4.0.0", diff --git a/features/src/ruby/README.md b/features/src/ruby/README.md index 7690c14..027dd37 100644 --- a/features/src/ruby/README.md +++ b/features/src/ruby/README.md @@ -54,7 +54,7 @@ When using `mise`, this feature keeps `ruby.compile=true` by default so Ruby is | Options Id | Description | Type | Default Value | |-----|-----|-----|-----| -| version | The version of ruby to be installed | string | 4.0.2 | +| version | The version of ruby to be installed | string | 4.0.3 | | versionManager | The version manager to use for Ruby (mise or rbenv) | string | mise | | usePrecompiledRubies | Use precompiled Rubies with mise when available | boolean | false | diff --git a/features/src/ruby/devcontainer-feature.json b/features/src/ruby/devcontainer-feature.json index c919b7c..0dcdc5c 100644 --- a/features/src/ruby/devcontainer-feature.json +++ b/features/src/ruby/devcontainer-feature.json @@ -1,6 +1,6 @@ { "id": "ruby", - "version": "2.2.0", + "version": "2.2.1", "name": "Ruby", "description": "Installs Ruby and a version manager (mise or rbenv) along with libraries needed to build Ruby.", "documentationURL": "https://github.com/rails/devcontainer/tree/main/features/src/ruby", @@ -19,7 +19,7 @@ "options": { "version": { "type": "string", - "default": "4.0.2", + "default": "4.0.3", "description": "The ruby version to be installed" }, "versionManager": { diff --git a/features/test/ruby/test.sh b/features/test/ruby/test.sh index 738605a..b607045 100644 --- a/features/test/ruby/test.sh +++ b/features/test/ruby/test.sh @@ -9,6 +9,6 @@ check "mise init is sourced in the bashrc" bash -c "grep 'eval \"\$(~/.local/bin check "mise is configured to compile Ruby from source by default" bash -c "mise settings | grep ruby.compile | grep true" check "mise idiomatic version file is enabled for ruby" bash -c "mise settings | grep idiomatic_version_file_enable_tools | grep ruby" check "Ruby is installed with YJIT" bash -c "RUBY_YJIT_ENABLE=1 ruby -v | grep +YJIT" -check "Ruby version is set to 4.0.2" bash -c "mise use -g ruby | grep 4.0.2" +check "Ruby version is set to 4.0.3" bash -c "mise use -g ruby | grep 4.0.3" reportResults diff --git a/features/test/ruby/with_rbenv.sh b/features/test/ruby/with_rbenv.sh index 9751bbe..d58040c 100644 --- a/features/test/ruby/with_rbenv.sh +++ b/features/test/ruby/with_rbenv.sh @@ -9,6 +9,6 @@ check "rbenv is installed" bash -c "rbenv --version" check "ruby-build is installed" bash -c "ls -l $HOME/.rbenv/plugins/ruby-build | grep '\-> /usr/local/share/ruby-build'" eval "$(rbenv init -)" check "Ruby is installed with YJIT" bash -c "RUBY_YJIT_ENABLE=1 ruby -v | grep +YJIT" -check "Ruby version is set to 4.0.2" bash -c "rbenv global | grep 4.0.2" +check "Ruby version is set to 4.0.3" bash -c "rbenv global | grep 4.0.3" reportResults