Skip to content

Raise minimum Ruby to 3.1; CI now covers 3.1-3.5 + head#7

Merged
ya-luotao merged 1 commit into
mainfrom
raise-ruby-minimum-to-3.1
May 10, 2026
Merged

Raise minimum Ruby to 3.1; CI now covers 3.1-3.5 + head#7
ya-luotao merged 1 commit into
mainfrom
raise-ruby-minimum-to-3.1

Conversation

@ya-luotao
Copy link
Copy Markdown
Owner

Summary

Drops Ruby 3.0 (EOL since March 2024) from the supported floor and expands the CI matrix forward.

  • required_ruby_version>= 3.1.0 (was >= 3.0.0)
  • TargetRubyVersion in .rubocop.yml3.1
  • CI matrix3.1, 3.2, 3.3, 3.4, 3.5, head
    • head tracks Ruby's main branch (currently 4.0 development) and runs with continue-on-error: true — failures there don't block merge but give early warning of upcoming-Ruby regressions.
  • Services::CommandHandle: replaced &block parameters with the Ruby 3.1+ anonymous block-forwarding form (&) — surfaced once TargetRubyVersion was bumped and Naming/BlockForwarding / Style/ArgumentsForwarding started firing.

Breaking change

This raises the minimum supported Ruby — anyone on 3.0 will see Gem::InstallError on gem install e2b -v 0.4.0 (or whatever the next release ends up being). The next release should bump to 0.4.0 rather than 0.3.6 to reflect that.

Test plan

  • CI: rake (Ruby 3.1)
  • CI: rake (Ruby 3.2)
  • CI: rake (Ruby 3.3)
  • CI: rake (Ruby 3.4)
  • CI: rake (Ruby 3.5) — first time this version is exercised
  • CI: rake (Ruby head) — allowed to fail; informational

🤖 Generated with Claude Code

Drops Ruby 3.0 (EOL since March 2024, no upstream security patches)
from required_ruby_version, the CI matrix, and rubocop's
TargetRubyVersion. The matrix now spans 3.1, 3.2, 3.3, 3.4, 3.5,
plus `head` (4.0 development branch) as a continue-on-error
early-warning smoke test.

Bumping TargetRubyVersion to 3.1 unlocked Naming/BlockForwarding
and Style/ArgumentsForwarding, which surfaced `&block` patterns in
Services::CommandHandle. Replaced with the anonymous form (`&`).

This is a breaking change for anyone still running on Ruby 3.0 —
the next release should be 0.4.0 rather than 0.3.6.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@ya-luotao ya-luotao merged commit b355642 into main May 10, 2026
6 checks passed
@ya-luotao ya-luotao deleted the raise-ruby-minimum-to-3.1 branch May 10, 2026 17:02
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