Fix deprecate_constant INTERPOLATION_PATTERN#531
Merged
radar merged 1 commit intoruby-i18n:masterfrom Jun 24, 2020
Fatsoma:deprecate_constant_interpolation_pattern
Merged
Fix deprecate_constant INTERPOLATION_PATTERN#531radar merged 1 commit intoruby-i18n:masterfrom Fatsoma:deprecate_constant_interpolation_pattern
radar merged 1 commit intoruby-i18n:masterfrom
Fatsoma:deprecate_constant_interpolation_pattern
Conversation
deprecate_constant if Module responds to :deprecate_constant
radar
reviewed
Jun 24, 2020
Collaborator
radar
left a comment
There was a problem hiding this comment.
I think we could call deprecate_constant without worrying about whether or not it's supported, right? Because Ruby 2.3 and above has deprecate_constant. I'll merge this and double check.
Thank you for submitting this fix!
Contributor
Author
|
That's a good point @radar, it does seem to be present from Ruby 2.3 onward. I just happened across this on a wide grep across the gems we're using as it stuck out as being different to other uses of |
Collaborator
|
Already done in c2d85c0 :)
…On 24 Jun 2020, 11:18 AM +1000, Bill Ruddock ***@***.***>, wrote:
That's a good point @radar, it does seem to be present from Ruby 2.3 onward. I just happened across this on a wide grep across the gems we're using as it stuck out as being different to other uses of deprecate_constant. Feel free to remove the check entirely as Ruby >= 2.3 is required anyway.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
deprecate_constantI18n::INTERPOLATION_PATTERNifModuleresponds to:deprecate_constantChange introduced in #439 looks like it deprecates this constant, but the original condition will always evaluate as false.