-
Notifications
You must be signed in to change notification settings - Fork 113
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
Simply turn into a string and downcase #125
Conversation
`Symbol#to_s` returns frozen string now.
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.
Looks good to me, thank you for creating the PR.
Thanks! |
To all, Thanks for the fix. JFYI, this is causing errors in both spec & test-all when run in Ruby master without Due to: |
@MSP-Greg Could you point to a failure in a CI log? Or is it only happening locally? |
ruby/ruby builds are from the build folder, so they may not have did_you_mean enabled, as it is a bundled gem. ruby-loco runs tests from install, so it is enabled. See below:
I patched the method: def normalize(str_or_symbol) #:nodoc:
str_or_symbol.to_s.downcase.tr("@", "").dup
end As you know, it only affects people using very new versions of ruby-head. Didn't you do the commit? |
@MSP-Greg Interesting. I wonder if there is a case where the |
I've been writing/refactoring too many tests lately. Hence, write bullet-proof code.
Well, a few days ago, It's probably fine the way it is, and @nobu is certainly aware of what may be changing in the future... EDIT: |
@MSP-Greg You might want to write |
Actually, the did_you_mean tests failed on https://github.com/ruby/ruby/runs/236956239 but nobody noticed since that's run by ignored the exit status (https://github.com/ruby/ruby/blob/550a6a6bc1be4ff9aa6b65f6ad9b45c3fa2d1344/.github/workflows/ubuntu.yml#L83) |
@yuki24 Could you make a release of |
I'm probably mistaken, but isn't that true iif I ran the tests locally without the final |
released as part of |
@yuki24 Thank you, did_you_mean tests pass on ruby/ruby now: ruby/ruby#2503 |
Symbol#to_s
returns frozen string now.