Skip to content

Add Ruby/Rails compatibility matrix to README and CI - #1

Merged
jacksonpires merged 2 commits into
mainfrom
ci/compatibility-matrix
Nov 13, 2026
Merged

jacksonpires merged 2 commits into
mainfrom
ci/compatibility-matrix

Conversation

@jacksonpires

Copy link
Copy Markdown
Owner

Summary

  • CI (.github/workflows/ci.yml):
    • test: unit suite on Ruby 3.0, 3.1, 3.2, 3.3, 3.4, 4.0 (+ head, allowed to fail).
    • rails: end-to-end check on Rails 7.1 / 7.2 / 8.0 / 8.1 × Ruby 3.2 / 3.3 / 3.4 / 4.0 (runs after test).
  • script/rails_e2e/run.sh: rails new + scaffold with every common column type → ruby_ui_converter convert → wires the controller to the generated classes → integration test rendering index/show/new/edit, validation errors and create.
  • README: new "Compatibility" section with both matrices (converter vs. generated code) and a note on the json < 3 / minitest < 6 pins that Rails < 8.1 apps created today need (Rails-side incompatibilities, unrelated to the converter).
  • CHANGELOG and CLAUDE.md updated.

Verification

Verified locally before opening:

  • Unit suite green on Ruby 3.0.7, 3.1.7 (Docker), 3.2.11, 3.3.13, 3.4.12, 4.0.9.
  • E2E green on all 16 Rails × Ruby cells (latest: Ruby 4.0.9, Rails 8.1.4.1, phlex-rails 2.4.0, ruby_ui 1.6.0).

The workflow itself hasn't run on GitHub Actions yet — this PR is its first run.

🤖 Generated with Claude Code

jacksonpires and others added 2 commits November 12, 2026 22:46
- CI runs the unit suite on Ruby 3.0–4.0 (plus ruby-head, allowed to fail)
  and an end-to-end check on Rails 7.1/7.2/8.0/8.1 × Ruby 3.2–4.0.
- script/rails_e2e/run.sh creates a fresh Rails app, scaffolds a resource,
  converts its views and renders them through the generated Phlex/RubyUI
  classes in an integration test.
- README documents both matrices and the json/minitest pins needed by
  Rails < 8.1 apps created today.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
refract 1.1.0 (phlex 2.4 dependency) references Prism::MissingNode, removed
in prism 2.x, so the app crashes on eager load — which the Rails test env
enables when CI is set. Pin prism < 2 in the generated app, always run the
integration test with eager loading so every generated class is loaded, and
document the pin in the README.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@jacksonpires
jacksonpires merged commit 4cb9958 into main Nov 13, 2026
23 checks passed
@jacksonpires
jacksonpires deleted the ci/compatibility-matrix branch November 13, 2026 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant