Skip to content

Honor JRuby raw mode options - #155

Merged
nobu merged 1 commit into
ruby:masterfrom
OskarEichler:codex/jruby-raw-options
Sep 3, 2026
Merged

nobu merged 1 commit into
ruby:masterfrom
OskarEichler:codex/jruby-raw-options

Conversation

@OskarEichler

Copy link
Copy Markdown
Contributor

Summary

Forward min:, time: and intr: through JRuby's mutating raw-mode paths, preserve fractional timeout conversion, accept min: nil, and return the receiver from raw!.

Reproduction

Focused external FFI/stty models show that current raw! discards every option, truncates fractional timeout before converting to deciseconds, and returns backend state rather than the IO receiver.

Verification

  • external JRuby-backend option/return models
  • release/cumulative candidate: 36 tests / 143 assertions
  • current upstream: 35 tests / 144 assertions
  • syntax, Java/native package builds and Rails 8.1.3.1 loading

Compatibility

Matches MRI's existing option and return contracts. JRuby was modeled but is unavailable locally; current upstream CI is green on JRuby. Prepared with AI-assisted source review; no repository tests were changed.

@nobu
nobu merged commit 02f1cd9 into ruby:master Sep 3, 2026
36 checks passed
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.

2 participants