Fix deprecation warning in Ruby 3.4#8593
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 |
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 <[email protected]>
After upgrade to Ruby 3.4, our test suite outputs the following warning:
This PR should fix it.