You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also 2.7 is EOL for 2.5 years, I think such warnings or minor inconveniences are OK, and it would only affect 2.7 users keeping pp updated. So maybe it would be fine to do nothing?
Not against fixing this though, especially with that has_data_define approach it's very simple.
BTW reverting the whole #20 seems bad, there are other commits which don't seem worth undoing & redoing, they are fine AFAIK. Could only revert & redo ed602b9 though.
Also 2.7 is EOL for 2.5 years, I think such warnings or minor inconveniences are OK, and it would only affect 2.7 users keeping pp updated. So maybe it would be fine to do nothing?
I encountered test failures by this warning at bigdecimal with ruby 2.7.
Well, I agree that 2.7 support will not matter nowadays, and propose the dropping it, like as 2-4 in #51 (comment).
It is almost same as my first fix, except for the variable name.
BTW reverting the whole #20 seems bad, there are other commits which don't seem worth undoing & redoing, they are fine AFAIK. Could only revert & redo ed602b9 though.
Activity
nobu commentedon Oct 4, 2025
A plan I'm thinking is:
@eregon How do you think?
eregon commentedon Oct 4, 2025
Sorry about the warning.
Yes, that would work but seems higher effort than just checking while setting $VERBOSE to nil like:
Also 2.7 is EOL for 2.5 years, I think such warnings or minor inconveniences are OK, and it would only affect 2.7 users keeping
ppupdated. So maybe it would be fine to do nothing?Not against fixing this though, especially with that
has_data_defineapproach it's very simple.Fix ::Data warning on Ruby 2.7
eregon commentedon Oct 4, 2025
Proposed simple fix: #53
eregon commentedon Oct 4, 2025
BTW reverting the whole #20 seems bad, there are other commits which don't seem worth undoing & redoing, they are fine AFAIK. Could only revert & redo ed602b9 though.
nobu commentedon Oct 4, 2025
I encountered test failures by this warning at bigdecimal with ruby 2.7.
Well, I agree that 2.7 support will not matter nowadays, and propose the dropping it, like as 2-4 in #51 (comment).
It is almost same as my first fix, except for the variable name.
Ah, yes, my bad.
[ruby/pp] Fix ::Data warning on Ruby 2.7