Skip to content

Support Ruby 4.0 - #48

Merged
doron050 merged 1 commit into
mainfrom
devin/1793728046-ruby-4-0
Nov 3, 2026
Merged

doron050 merged 1 commit into
mainfrom
devin/1793728046-ruby-4-0

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Summary

Ruby 4.0 is the current stable Ruby, but rubyVersion stopped at 3.4, so projects on 4.0 could not declare it.

  • RubyVersion::MAX_SUPPORTED is now 4.0 (3.1 – 4.0, also 3 / 4).
  • The upper-bound check ignores the patch part, so 3.4.1 / 4.0.1 are accepted (removed from README limitations). 4.1 and 5 are still rejected.
  • CI: plugin unit tests on 3.1 / 3.2 / 3.4 / 4.0; codegen options matrix gains a 4.0 entry (types + Gemfile); the three E2E jobs run on a ['3.3', '4.0'] matrix (job names now include the Ruby version, so required-check names change if any are configured).
  • Docs (README, CLAUDE.md, Testing.md) updated.

No generator output change. Verified locally on Ruby 4.0.9 (docker): bundle install resolves, rake test 90 runs green, rake end2end_sqlite3 37 runs green, RuboCop and Steep (with expectations) clean on examples/. PG/MySQL E2E on 4.0 are covered by CI.

Checklist

  • examples/ is regenerated (rake sqlc_generate_process) and committed (no output change)
  • Tests added or updated (rake test, and rake end2end_* when the generated code changes)
  • The generated code stays RuboCop-clean (rake rubocop) and Steep-clean (rake steep)
  • Labelled (bug, enhancement, documentation, or breaking) so the release notes are grouped correctly

Link to Devin session: https://app.devin.ai/sessions/04cf491412be4c008462250be44ffd7a
Open in Devin Desktop: https://app.devin.ai/desktop/session/04cf491412be4c008462250be44ffd7a?variant=devin
Requested by: @doron050

…on 4.0)

Co-Authored-By: Doron Eli Rachman <doron050@gmail.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration devin-ai-integration Bot added the enhancement New feature or request label Nov 3, 2026
@doron050
doron050 merged commit 7194e3b into main Nov 3, 2026
19 checks passed
@doron050
doron050 deleted the devin/1793728046-ruby-4-0 branch November 3, 2026 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant