-
Notifications
You must be signed in to change notification settings - Fork 194
Fix Tempfile#size and #length when the IO is not flushed #1765
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
Conversation
4c49651
to
44d716c
Compare
Hello Rafael Mendonça França, thanks for contributing a PR to our project! We use the Oracle Contributor Agreement to make the copyright of contributions clear. We don't have a record of you having signed this yet, based on your email address rafael -(dot)- franca -(at)- shopify -(dot)- com. You can sign it at that link. If you think you've already signed it, please comment below and we'll check. |
I have signed the OCA. |
@rafaelfranca Thank you for the PR! When did you submit the OCA? |
Expect more coming. We have a few in our fork.
I sent it a couple of hours ago. I was not expecting it to be fast, just replied to the bot that asked me to comment when if I already signed it. |
Rafael Mendonça França has signed the Oracle Contributor Agreement (based on email address rafael -(dot)- franca -(at)- shopify -(dot)- com) so can contribute to this repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the fix!
On MRI, File#size implementation relies on the fact that it calls rb_io_flush_raw and that function flush the IO before calculating the size. Now we are doing the same to follow the same behavior of MRI.
44d716c
to
0c97ace
Compare
Added CHANGELOG entry |
…1765). PullRequest: truffleruby/1084
Merged in 68dcd88 (with the PR number reference in the merge message). |
On MRI,
File#size
implementation relies on the fact that it callsrb_io_flush_raw
and that function flush the IO before calculating the size.Now we are doing the same to follow the same behavior of MRI.
This bug was found while trying to get the rack test suite passing with TruffleRuby.
Shopify#1