-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
StringIO#seek should work even if String is frozen #119
Comments
headius
added a commit
to headius/stringio
that referenced
this issue
Feb 20, 2025
seek only modifies the StringIO pos, and should work when the underlying String is frozen. Fixes ruby#119
headius
added a commit
to headius/stringio
that referenced
this issue
Feb 20, 2025
headius
added a commit
to headius/stringio
that referenced
this issue
Feb 20, 2025
This fixes the JRuby extension to allow read-only methods to work against a frozen StringIO, as described in ruby#119.
headius
added a commit
to headius/stringio
that referenced
this issue
Feb 20, 2025
matzbot
pushed a commit
to ruby/ruby
that referenced
this issue
Feb 21, 2025
(ruby/stringio#121) Fixes ruby/stringio#119. Adds a test for this expectation. ruby/stringio@3f90fe44c6
headius
added a commit
to headius/jruby
that referenced
this issue
Feb 21, 2025
This updates stringio to 3.1.5, which includes all the fixes from ruby/stringio#116 and the regression ruby/stringio#119 fixed by ruby/stringio#121. All CRuby tests and ruby/spec specs for stringio are now green. Tests are from v3.1.5 of the ruby/stringio repo.
mrzasa
pushed a commit
to mrzasa/ruby
that referenced
this issue
Feb 21, 2025
(ruby/stringio#121) Fixes ruby/stringio#119. Adds a test for this expectation. ruby/stringio@3f90fe44c6
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A regression from #116 only in the JRuby extension.
This CVS test creates a StringIO using a frozen String and later calls StringIO#seek. Changes in #116 incorrectly checked if the String is frozen and raised an error.
The StringIO#seek definition in the JRuby extension shall be modified to allow frozen Strings.
The text was updated successfully, but these errors were encountered: