From c81e97701ab7fa369a8b01597d865e2b308840b8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 12 May 2026 01:09:38 +0000 Subject: [PATCH] Add Ruby versions: 4.0.4 [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_precompiled_rubies.sh | 2 +- features/test/ruby/with_rbenv.sh | 2 +- 6 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/ruby-versions.json b/.github/ruby-versions.json index e81ada1..bbed52e 100644 --- a/.github/ruby-versions.json +++ b/.github/ruby-versions.json @@ -1,4 +1,5 @@ [ + "4.0.4", "4.0.3", "4.0.2", "4.0.1", diff --git a/features/src/ruby/README.md b/features/src/ruby/README.md index 027dd37..d56921e 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.3 | +| version | The version of ruby to be installed | string | 4.0.4 | | 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 0dcdc5c..4cc7482 100644 --- a/features/src/ruby/devcontainer-feature.json +++ b/features/src/ruby/devcontainer-feature.json @@ -1,6 +1,6 @@ { "id": "ruby", - "version": "2.2.1", + "version": "2.2.2", "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.3", + "default": "4.0.4", "description": "The ruby version to be installed" }, "versionManager": { diff --git a/features/test/ruby/test.sh b/features/test/ruby/test.sh index b607045..a049d7c 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.3" bash -c "mise use -g ruby | grep 4.0.3" +check "Ruby version is set to 4.0.4" bash -c "mise use -g ruby | grep 4.0.4" reportResults diff --git a/features/test/ruby/with_precompiled_rubies.sh b/features/test/ruby/with_precompiled_rubies.sh index b92753a..a9a7244 100644 --- a/features/test/ruby/with_precompiled_rubies.sh +++ b/features/test/ruby/with_precompiled_rubies.sh @@ -8,6 +8,6 @@ check "mise is installed" bash -c "mise --version" check "mise uses precompiled Rubies when enabled" bash -c "mise settings | grep ruby.compile | grep false" 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.3" bash -c "mise use -g ruby | grep 4.0.3" +check "Ruby version is set to 4.0.4" bash -c "mise use -g ruby | grep 4.0.4" reportResults diff --git a/features/test/ruby/with_rbenv.sh b/features/test/ruby/with_rbenv.sh index d58040c..9220883 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.3" bash -c "rbenv global | grep 4.0.3" +check "Ruby version is set to 4.0.4" bash -c "rbenv global | grep 4.0.4" reportResults