Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ["3.3", "3.4"]
ruby: ["3.3", "3.4", "4.0"]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3: The gem matrix now includes Ruby 4.0, but CLAUDE.md (line 15) and README.md (line 35) still say the gem CI runs on Ruby 3.3 + 3.4. Update those descriptions to include 4.0 so the docs match the workflow.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At .github/workflows/ci.yml, line 19:

<comment>The gem matrix now includes Ruby 4.0, but `CLAUDE.md` (line 15) and `README.md` (line 35) still say the gem CI runs on Ruby 3.3 + 3.4. Update those descriptions to include 4.0 so the docs match the workflow.</comment>

<file context>
@@ -16,7 +16,7 @@ jobs:
       fail-fast: false
       matrix:
-        ruby: ["3.3", "3.4"]
+        ruby: ["3.3", "3.4", "4.0"]
     steps:
       - uses: actions/checkout@v7
</file context>

steps:
- uses: actions/checkout@v7
- name: Set up Ruby
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion audit/.tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ruby 3.4.7
ruby 4.0.10

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3: This pin moves the audit toolchain to Ruby 4.0.10, but audit/README.md still lists Ruby 3.4 as the prerequisite in the Commands and Prerequisites sections. Update those references to 4.0 so setup instructions match the pinned version.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At audit/.tool-versions, line 1:

<comment>This pin moves the audit toolchain to Ruby 4.0.10, but `audit/README.md` still lists Ruby 3.4 as the prerequisite in the Commands and Prerequisites sections. Update those references to 4.0 so setup instructions match the pinned version.</comment>

<file context>
@@ -1 +1 @@
-ruby 3.4.7
+ruby 4.0.10
</file context>

2 changes: 1 addition & 1 deletion docs/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3: This pin is intentionally one patch behind docs/.ruby-version (4.0.10) until the 4.0.10 devcontainer image is published, but the comment above it still says it must match. Update the comment to note the deliberate lag and when to revert it, so the next maintainer doesn't "fix" it or treat the mismatch as a mistake.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At docs/.devcontainer/Dockerfile, line 2:

<comment>This pin is intentionally one patch behind `docs/.ruby-version` (4.0.10) until the 4.0.10 devcontainer image is published, but the comment above it still says it must match. Update the comment to note the deliberate lag and when to revert it, so the next maintainer doesn't "fix" it or treat the mismatch as a mistake.</comment>

<file context>
@@ -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
 
</file context>
Suggested change
ARG RUBY_VERSION=4.0.9
# Intentionally one patch behind .ruby-version (4.0.10) until the 4.0.10 devcontainer image is published; revert to match once it is.
ARG RUBY_VERSION=4.0.9

FROM ghcr.io/rails/devcontainer/images/ruby:$RUBY_VERSION

# Ensure binding is always 0.0.0.0
Expand Down
2 changes: 1 addition & 1 deletion docs/.ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.4.7
4.0.10
2 changes: 1 addition & 1 deletion docs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion docs/Gemfile
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion docs/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ DEPENDENCIES
web-console

RUBY VERSION
ruby 3.4.7p58
ruby 4.0.10p0

BUNDLED WITH
2.6.4
1 change: 0 additions & 1 deletion docs/lib/tasks/ruby_ui.rake
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
1 change: 0 additions & 1 deletion docs/lib/tasks/site_files.rake
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion gem/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3: The header comment requires this RUBY_VERSION to match .ruby-version, but 4.0.9 intentionally differs from the docs' 4.0.10. Add a comment explaining the lag so it is removed once the devcontainer image publishes 4.0.10.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At gem/.devcontainer/Dockerfile, line 2:

<comment>The header comment requires this `RUBY_VERSION` to match `.ruby-version`, but 4.0.9 intentionally differs from the docs' 4.0.10. Add a comment explaining the lag so it is removed once the devcontainer image publishes 4.0.10.</comment>

<file context>
@@ -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
 
</file context>
Suggested change
ARG RUBY_VERSION=4.0.9
# Intentionally 4.0.9: the devcontainer image lacks 4.0.10; match .ruby-version once it is published.
ARG RUBY_VERSION=4.0.9

FROM ghcr.io/rails/devcontainer/images/ruby:$RUBY_VERSION

# Ensure binding is always 0.0.0.0
Expand Down
2 changes: 1 addition & 1 deletion gem/.tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ruby 3.4.7
ruby 4.0.10

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: gem/.ruby-version still pins 3.3.3, so this update leaves conflicting default Ruby pins in gem/. Update .ruby-version to the intended version as part of this change.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At gem/.tool-versions, line 1:

<comment>`gem/.ruby-version` still pins 3.3.3, so this update leaves conflicting default Ruby pins in `gem/`. Update `.ruby-version` to the intended version as part of this change.</comment>

<file context>
@@ -1,2 +1,2 @@
-ruby 3.4.7
+ruby 4.0.10
 
</file context>