-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Fix deprecation warning in Ruby 3.4 #8593
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
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #8593 +/- ##
==========================================
- Coverage 99.11% 99.11% -0.01%
==========================================
Files 141 141
Lines 4076 4074 -2
==========================================
- Hits 4040 4038 -2
Misses 36 36 ☔ View full report in Codecov by Sentry. |
|
Hi, thanks for this PR. It is fine for me but I will leave the review to someone else It is possible to replicate this issue by running Also:
After merging, this should be backported to |
Running the spec suite with `RUBYOPT='-w'` to validate PR #8593 revealed numerous warnings related to ambiguous operators. To address these warnings, the `Lint/AmbiguousOperator` cop has been enabled and `rubocop -a` has been run to fix the offenses.
|
@tagliala I use |
javierjulio
left a comment
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.
Thanks!
Running the spec suite with `RUBYOPT='-w'` to validate PR #8593 revealed numerous warnings related to ambiguous operators. To address these warnings, the `Lint/AmbiguousOperator` cop has been enabled and `rubocop -a` has been run to fix the offenses.
After upgrade to Ruby 3.4, our test suite outputs the following warning: ``` ~/.rvm/gems/ruby-3.4.1/gems/activeadmin-3.2.5/lib/active_admin/inputs/filters/select_input.rb:19: warning: string returned by <Symbol>.to_s will be frozen in the future ```
Fix behavior change
I don't know, I'll ask Copilot and edit this response
There is a lot of extra noise from other gems, and a lot of "method redefinitions" with
I'll investigate a little bit.
|
After upgrade to Ruby 3.4, our test suite outputs the following warning: ``` lib/active_admin/inputs/filters/select_input.rb:19: warning: string returned by <Symbol>.to_s will be frozen in the future ```
|
Good to know about that difference. Thank you. |
After upgrade to Ruby 3.4, our test suite outputs the following warning: ``` lib/active_admin/inputs/filters/select_input.rb:19: warning: string returned by <Symbol>.to_s will be frozen in the future ```
Fix deprecation warning in Ruby 3.4 (#8593) After upgrade to Ruby 3.4, our test suite outputs the following warning: ``` lib/active_admin/inputs/filters/select_input.rb:19: warning: string returned by <Symbol>.to_s will be frozen in the future ``` Co-authored-by: Yvan BARTHÉLEMY <223016+ybart@users.noreply.github.com>
After upgrade to Ruby 3.4, our test suite outputs the following warning:
This PR should fix it.