[Chore] Upgrade docs to Ruby 4.0.10 (fixes CI on ubuntu-26.04)

Merged
CI
2d ago
+13-15

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 (fullstaq 4.0.10-jemalloc-slim) and Gemfile.lock.
  • docs/Gemfile declares ruby "~> 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 still bundle install.
  • Both devcontainers move to 4.0.9. ghcr.io/rails/devcontainer/images/ruby hasn'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-versions and audit/.tool-versions go 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) and bundle 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 standard reports two pre-existing Layout/EmptyLineAfterMagicComment offenses 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/Gemfile to ruby "~> 4.0.0" so future patch bumps only touch .ruby-version and the Dockerfiles.
  • Adds Ruby 4.0 to the gem, mcp, and audit CI matrices and updates the matrix description in README.md and CLAUDE.md.
  • Removes the now-redundant require "pathname" from two rake tasks, since Pathname is core in Ruby 4.0.