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
4 changes: 2 additions & 2 deletions .claude/skills/shadcn-audit/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ judging, and writing `report.json`. Run every CLI call from `audit/`:
cd audit && mise exec -- bundle exec exe/shadcn-audit <subcommand> …
```

(Without mise, drop `mise exec --` and use a Ruby 3.4 on PATH.)
(Without mise, drop `mise exec --` and use a Ruby 4.0 on PATH.)

Each subcommand prints one JSON object. On failure it is `{"error": "…"}`
with exit status 1: read the message, fix the cause, and re-run; never treat
Expand All @@ -38,7 +38,7 @@ an error as an empty result. Talk to the user in their language;

## Prerequisites

- Ruby 3.4 (via mise, as in `gem/.tool-versions`, or an equivalent version
- Ruby 4.0 (via mise, as in `gem/.tool-versions`, or an equivalent version
manager) with `cd audit && bundle install` done.
- `gh` authenticated (`gh auth status`) with read access to
`ruby-ui/ruby_ui`; posting the comment needs write access.
Expand Down
4 changes: 2 additions & 2 deletions .claude/skills/shadcn-drift/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ Run every CLI call from `audit/`:
cd audit && mise exec -- bundle exec exe/shadcn-audit <subcommand> …
```

(Without mise, drop `mise exec --` and use a Ruby 3.4 on PATH.) Each call
(Without mise, drop `mise exec --` and use a Ruby 4.0 on PATH.) Each call
prints one JSON object; `{"error": …}` with exit 1 is a failure. Report it,
never treat it as "nothing changed".

## Prerequisites

Ruby 3.4 with `cd audit && bundle install`, `git`, and `gh` authenticated
Ruby 4.0 with `cd audit && bundle install`, `git`, and `gh` authenticated
(read is enough; the commit list comes from the GitHub API). No browser, no
Node.

Expand Down
2 changes: 1 addition & 1 deletion audit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Tests use `ShadcnAudit::FakeShell` (`test/test_helper.rb`): stub canned stdout b

## Prerequisites

Ruby 3.4 (via mise, as below, or an equivalent version manager; without mise, drop `mise exec --`), `gh` authenticated (`gh auth status`), Node and pnpm, Playwright's Chromium for `collect` (above), and, for the remaining browser steps and the component video, the headless `audit-chrome` MCP declared in the repo's `.mcp.json` (Claude Code asks once to approve it). `comment --post` attaches the report's `videos` with `gh pr comment --attach` (gh >= 2.101). The audit runs its two dev servers in Herdr panes when `HERDR_ENV=1`, otherwise as background shell processes; either way it stops them at the end. `preview` boot commands use `mise exec --` only when `mise` is on PATH.
Ruby 4.0 (via mise, as below, or an equivalent version manager; without mise, drop `mise exec --`), `gh` authenticated (`gh auth status`), Node and pnpm, Playwright's Chromium for `collect` (above), and, for the remaining browser steps and the component video, the headless `audit-chrome` MCP declared in the repo's `.mcp.json` (Claude Code asks once to approve it). `comment --post` attaches the report's `videos` with `gh pr comment --attach` (gh >= 2.101). The audit runs its two dev servers in Herdr panes when `HERDR_ENV=1`, otherwise as background shell processes; either way it stops them at the end. `preview` boot commands use `mise exec --` only when `mise` is on PATH.
Comment thread
cubic-dev-ai[bot] marked this conversation as resolved.
Resolved

A component gets its own `component_map/<folder>.yml` (keys in [`component_map/README.md`](component_map/README.md)) and also needs fixtures in `fixtures/<folder>/` (`content.yml`, `shadcn.tsx`, `rubyui.rb`).

Expand Down
3 changes: 2 additions & 1 deletion docs/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Make sure RUBY_VERSION matches the Ruby version in .ruby-version
# Should match .ruby-version. Held at 4.0.9 until ghcr.io/rails/devcontainer/images/ruby
# publishes a 4.0.10 tag; bump it then.
ARG RUBY_VERSION=4.0.9
FROM ghcr.io/rails/devcontainer/images/ruby:$RUBY_VERSION

Expand Down
3 changes: 2 additions & 1 deletion gem/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Make sure RUBY_VERSION matches the Ruby version in .ruby-version
# Should match .ruby-version. Held at 4.0.9 until ghcr.io/rails/devcontainer/images/ruby
# publishes a 4.0.10 tag; bump it then.
ARG RUBY_VERSION=4.0.9
FROM ghcr.io/rails/devcontainer/images/ruby:$RUBY_VERSION

Expand Down
3 changes: 1 addition & 2 deletions gem/.ruby-version
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
3.3.3

4.0.10
4 changes: 2 additions & 2 deletions gem/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ RubyUI components mirror shadcn's **Base UI** build with the **vega** style and
- **New component in the audit:** create [`audit/component_map/<folder>.yml`](../audit/component_map/README.md) (one file per component, so parallel PRs don't conflict) and add fixtures in `audit/fixtures/<folder>/` (`content.yml`, `shadcn.tsx`, `rubyui.rb`, the same strings on both sides and one `data-audit-trigger`); without fixtures the browser checks have nothing to render. If `shadcn.tsx` renders other shadcn components (e.g. Form's fixture uses Input and Checkbox), list them under `fixture_shadcn` so the sandbox installs them.
- **Deliberate differences:** register them in the component's file under [`audit/divergences/`](../audit/divergences/) (`<folder>.yml`) in the same PR, with a reason. Unregistered differences show up as findings.
- **Licensing:** mirror shadcn's classes, structure and behavior (MIT). Port *behavior* from Base UI and React Aria, never their source. If code is ever ported, its license notice goes in alongside it.
- **Before opening a component PR:** run the audit. In Claude Code, `/shadcn-audit`; in any other agent, read [`SKILL.md`](../.claude/skills/shadcn-audit/SKILL.md) (and its `references/`) and follow that procedure with the CLI in [`audit/`](../audit/README.md). Prerequisites: Ruby 3.4 (via mise or equivalent), `gh` authenticated, Node and pnpm, and the chrome-devtools MCP. Servers run in Herdr panes when `HERDR_ENV=1`, otherwise as background shell processes; stop them at the end.
- **Before opening a component PR:** run the audit. In Claude Code, `/shadcn-audit`; in any other agent, read [`SKILL.md`](../.claude/skills/shadcn-audit/SKILL.md) (and its `references/`) and follow that procedure with the CLI in [`audit/`](../audit/README.md). Prerequisites: Ruby 4.0 (via mise or equivalent), `gh` authenticated, Node and pnpm, and the chrome-devtools MCP. Servers run in Herdr panes when `HERDR_ENV=1`, otherwise as background shell processes; stop them at the end.

## Commands

Expand Down Expand Up @@ -98,7 +98,7 @@ When writing or reviewing a Stimulus controller, follow the **`ruby-ui-stimulus`

## CI

GitHub Actions (`.github/workflows/ci.yml`) runs `rake test` and `rake standard` against Ruby 3.3 and 3.4 on every push to main and on PRs.
GitHub Actions (`.github/workflows/ci.yml`) runs `rake test` and `rake standard` against Ruby 3.3, 3.4 and 4.0 on every push to main and on PRs.

## PR Template

Expand Down