[Chore] Upgrade docs to Ruby 4.0.10 (fixes CI on ubuntu-26.04)
Merged
CI
2d ago+13+13+01234567890123456789-15-15-01234567890123456789
Why
ubuntu-latest now resolves to ubuntu-26.04, and ruby/setup-ruby only builds the latest patch of each Ruby series for that image. docs/.ruby-version pinned 3.4.7, so the Docs (Rails) job has failed at "Set up Ruby" since 2026-11-18, on main and on every Dependabot PR (#672, #673, #674, #675):
Error: Unavailable version 3.4.7 for ruby on ubuntu-26.04
What changes
- docs runs on Ruby 4.0.10, the current release:
.ruby-version,Dockerfile(fullstaq4.0.10-jemalloc-slim) andGemfile.lock. docs/Gemfiledeclaresruby "~> 4.0.0"instead of an exact patch. The exact version lives in.ruby-version, so the next patch bump doesn't have to touch the Gemfile, and a devcontainer one patch behind can stillbundle install.- Both devcontainers move to 4.0.9.
ghcr.io/rails/devcontainer/images/rubyhasn't published 4.0.10 yet. - CI tests the gem, mcp and audit on Ruby 4.0 as well as 3.3 and 3.4, since the docs app now runs the gem on 4.0.
gem/.tool-versionsandaudit/.tool-versionsgo to 4.0.10.- Two rake tasks drop
require "pathname". Pathname is core in Ruby 4.0 and standardrb flags the require as redundant.
Testing
Run locally on Ruby 4.0.10:
docs:bin/rails db:test:prepare test(76 runs, 0 failures) andbundle exec standardrb(clean)gem:bundle exec rake(796 runs, 0 failures, standardrb clean)audit:bundle exec rake(288 runs, 0 failures)mcp: tests pass.rake standardreports two pre-existingLayout/EmptyLineAfterMagicCommentoffenses that CI doesn't run and that aren't related to this change.
After merge, comment @dependabot rebase on #672ā#675 to rerun their CI.
š¤ Generated with Claude Code
Summary by cubic
Fixes the docs (Rails) CI job, which has failed at the Set up Ruby step since ubuntu-latest moved to ubuntu-26.04, where ruby/setup-ruby only ships the latest patch of each Ruby series.
- Upgrades the docs app and audit tooling to Ruby 4.0.10; devcontainers use 4.0.9, the newest published image.
- Changes
docs/Gemfiletoruby "~> 4.0.0"so future patch bumps only touch.ruby-versionand the Dockerfiles. - Adds Ruby 4.0 to the gem, mcp, and audit CI matrices and updates the matrix description in
README.mdandCLAUDE.md. - Removes the now-redundant
require "pathname"from two rake tasks, since Pathname is core in Ruby 4.0.