From d8e6414643ddd17290e4f1efe054b638a86d35bd Mon Sep 17 00:00:00 2001 From: Cirdes Date: Sun, 22 Nov 2026 11:16:24 -0300 Subject: [PATCH 1/2] [Chore] Upgrade docs to Ruby 4.0.10 and test the gem on Ruby 4.0 ubuntu-latest moved to ubuntu-26.04, where ruby/setup-ruby only ships the latest patch of each series. docs/.ruby-version pinned 3.4.7, so the Docs (Rails) job failed before running anything, on main and on every Dependabot PR. - docs: Ruby 4.0.10 (.ruby-version, Dockerfile, Gemfile.lock) - docs/Gemfile: `ruby "~> 4.0.0"` so a patch bump only touches .ruby-version and the Dockerfiles - devcontainers: 4.0.9, the newest tag of ghcr.io/rails/devcontainer/images/ruby - CI: add Ruby 4.0 to the gem, mcp and audit matrices - drop `require "pathname"` from two rake tasks (core in Ruby 4.0) Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 6 +++--- audit/.tool-versions | 2 +- docs/.devcontainer/Dockerfile | 2 +- docs/.ruby-version | 2 +- docs/Dockerfile | 2 +- docs/Gemfile | 2 +- docs/Gemfile.lock | 2 +- docs/lib/tasks/ruby_ui.rake | 1 - docs/lib/tasks/site_files.rake | 1 - gem/.devcontainer/Dockerfile | 2 +- gem/.tool-versions | 2 +- 11 files changed, 11 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 82a520b9b..ed08ea77d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: strategy: fail-fast: false matrix: - ruby: ["3.3", "3.4"] + ruby: ["3.3", "3.4", "4.0"] steps: - uses: actions/checkout@v7 - name: Set up Ruby @@ -73,7 +73,7 @@ jobs: strategy: fail-fast: false matrix: - ruby: ["3.3", "3.4"] + ruby: ["3.3", "3.4", "4.0"] steps: - uses: actions/checkout@v7 - name: Set up Ruby @@ -95,7 +95,7 @@ jobs: strategy: fail-fast: false matrix: - ruby: ["3.3", "3.4"] + ruby: ["3.3", "3.4", "4.0"] steps: - uses: actions/checkout@v7 - name: Set up Ruby diff --git a/audit/.tool-versions b/audit/.tool-versions index 3f03c7a73..09b5e2474 100644 --- a/audit/.tool-versions +++ b/audit/.tool-versions @@ -1 +1 @@ -ruby 3.4.7 +ruby 4.0.10 diff --git a/docs/.devcontainer/Dockerfile b/docs/.devcontainer/Dockerfile index 896970f38..ab41ca1cd 100644 --- a/docs/.devcontainer/Dockerfile +++ b/docs/.devcontainer/Dockerfile @@ -1,5 +1,5 @@ # Make sure RUBY_VERSION matches the Ruby version in .ruby-version -ARG RUBY_VERSION=3.4.7 +ARG RUBY_VERSION=4.0.9 FROM ghcr.io/rails/devcontainer/images/ruby:$RUBY_VERSION # Ensure binding is always 0.0.0.0 diff --git a/docs/.ruby-version b/docs/.ruby-version index 2aa513199..2d2d68106 100644 --- a/docs/.ruby-version +++ b/docs/.ruby-version @@ -1 +1 @@ -3.4.7 +4.0.10 diff --git a/docs/Dockerfile b/docs/Dockerfile index 67c779545..cbd0a0756 100644 --- a/docs/Dockerfile +++ b/docs/Dockerfile @@ -7,7 +7,7 @@ # flyctl deploy --config docs/fly.toml --dockerfile docs/Dockerfile . # Make sure RUBY_VERSION matches the Ruby version in docs/.ruby-version -ARG RUBY_VERSION=3.4.7 +ARG RUBY_VERSION=4.0.10 FROM quay.io/evl.ms/fullstaq-ruby:${RUBY_VERSION}-jemalloc-slim AS base LABEL fly_launch_runtime="rails" diff --git a/docs/Gemfile b/docs/Gemfile index 330a59f8e..99164946a 100644 --- a/docs/Gemfile +++ b/docs/Gemfile @@ -1,7 +1,7 @@ source "https://rubygems.org" git_source(:github) { |repo| "https://github.com/#{repo}.git" } -ruby "3.4.7" +ruby "~> 4.0.0" # patch comes from .ruby-version; devcontainer images can lag a patch behind # Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main" gem "rails", "8.1.4.1" diff --git a/docs/Gemfile.lock b/docs/Gemfile.lock index 596693bb0..92bbf45cf 100644 --- a/docs/Gemfile.lock +++ b/docs/Gemfile.lock @@ -383,7 +383,7 @@ DEPENDENCIES web-console RUBY VERSION - ruby 3.4.7p58 + ruby 4.0.10p0 BUNDLED WITH 2.6.4 diff --git a/docs/lib/tasks/ruby_ui.rake b/docs/lib/tasks/ruby_ui.rake index a5d4b8892..ad8d724d0 100644 --- a/docs/lib/tasks/ruby_ui.rake +++ b/docs/lib/tasks/ruby_ui.rake @@ -1,7 +1,6 @@ # frozen_string_literal: true require "fileutils" -require "pathname" namespace :ruby_ui do desc "Ensure docs/app/javascript/controllers/ruby_ui/ has a symlink for every gem Stimulus controller" diff --git a/docs/lib/tasks/site_files.rake b/docs/lib/tasks/site_files.rake index 5be68f5c3..fa0a5e180 100644 --- a/docs/lib/tasks/site_files.rake +++ b/docs/lib/tasks/site_files.rake @@ -1,7 +1,6 @@ # frozen_string_literal: true require "fileutils" -require "pathname" namespace :site_files do desc "Generate llms.txt, llms-full.txt, and sitemap.xml" diff --git a/gem/.devcontainer/Dockerfile b/gem/.devcontainer/Dockerfile index 896970f38..ab41ca1cd 100644 --- a/gem/.devcontainer/Dockerfile +++ b/gem/.devcontainer/Dockerfile @@ -1,5 +1,5 @@ # Make sure RUBY_VERSION matches the Ruby version in .ruby-version -ARG RUBY_VERSION=3.4.7 +ARG RUBY_VERSION=4.0.9 FROM ghcr.io/rails/devcontainer/images/ruby:$RUBY_VERSION # Ensure binding is always 0.0.0.0 diff --git a/gem/.tool-versions b/gem/.tool-versions index b92a57cac..f525bb074 100644 --- a/gem/.tool-versions +++ b/gem/.tool-versions @@ -1,2 +1,2 @@ -ruby 3.4.7 +ruby 4.0.10 From 8a683c3554de346997738a949ad0294129ee9656 Mon Sep 17 00:00:00 2001 From: Cirdes Date: Sun, 22 Nov 2026 11:16:56 -0300 Subject: [PATCH 2/2] [Documentation] Mention Ruby 4.0 in the CI matrix description Co-Authored-By: Claude Opus 5.5 --- CLAUDE.md | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 5f118199b..8ed13b45b 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -12,7 +12,7 @@ Independent subprojects (gem, docs, mcp, audit), each with its own `Gemfile` and | [`docs/`](docs/) | Rails 8 app powering https://rubyui.com. Consumes the local gem via `path: "../gem"`. | | [`audit/`](audit/) | shadcn fidelity audit tooling (its browser steps use the headless `audit-chrome` MCP from [`.mcp.json`](.mcp.json)); skills in [`.claude/skills/shadcn-audit/`](.claude/skills/shadcn-audit/) (audit a PR/component) and [`.claude/skills/shadcn-drift/`](.claude/skills/shadcn-drift/) (weekly upstream watch). | | [`mcp/`](mcp/) | MCP server for ruby_ui; `mcp/data/registry/` (one JSON per component plus `index.json`) is generated from the gem's component source and parsed docs. | -| `.github/workflows/ci.yml` | Unified CI: `gem` tests (Ruby 3.3 + 3.4), `docs` Rails tests, `mcp` tests + registry check, `audit` (shadcn-audit CLI) tests, docker build for the docs devcontainer. | +| `.github/workflows/ci.yml` | Unified CI: `gem` tests (Ruby 3.3, 3.4, 4.0), `docs` Rails tests, `mcp` tests + registry check, `audit` (shadcn-audit CLI) tests, docker build for the docs devcontainer. | Subproject-specific instructions live in `gem/AGENTS.md` and `docs/CLAUDE.md` (→ `docs/AGENTS.md`). Read those before editing inside a subdir. diff --git a/README.md b/README.md index e643d25d0..27825b590 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ ruby_ui/ | --- | --- | | [`gem/`](gem/) | The `ruby_ui` gem (`gem build`, `gem release` from this folder). | | [`docs/`](docs/) | Rails 8 app for the documentation site. Consumes the local gem via `path: "../gem"`. | -| [`.github/workflows/ci.yml`](.github/workflows/ci.yml) | Unified CI: gem tests on Ruby 3.3 + 3.4, Rails docs app tests, and a docker-build job that publishes the docs devcontainer to ghcr.io. | +| [`.github/workflows/ci.yml`](.github/workflows/ci.yml) | Unified CI: gem tests on Ruby 3.3, 3.4 and 4.0, Rails docs app tests, and a docker-build job that publishes the docs devcontainer to ghcr.io. | ## Development