-
Notifications
You must be signed in to change notification settings - Fork 351
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
Fail if a spec is deprecated_in_favor_of itself #212
Conversation
# Performs validations related to the `deprecated_in_favor_of` attribute. | ||
# | ||
def _validate_deprecated_in_favor_of(d) | ||
if d == @spec.name |
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.
Specification.root_name(d)
?
Changelog entry? |
lol Btw, that extra whitespace in the CHANGELOG should stay, it’s there to ensure proper formatting on GH. |
d04cb32
to
c1e4bff
Compare
* The Linter will now ensure against marking a spec as | ||
`deprecated_in_favor_of` itself. | ||
[Keith Smiley](https://github.com/Keithbsmiley) | ||
[#212](https://github.com/CocoaPods/Core/pull/212) |
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.
Please reference the original issue, not this PR
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.
That spec PR really isn't an original issue. Also that is linked from here.
|
Fail if a spec is deprecated_in_favor_of itself
Fail if a spec is deprecated_in_favor_of itself
This may seem funny. If so, see CocoaPods/Specs#12876