Skip to content
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

Merged
merged 1 commit into from
Dec 23, 2014
Merged

Conversation

keith
Copy link
Member

@keith keith commented Dec 23, 2014

This may seem funny. If so, see CocoaPods/Specs#12876

# Performs validations related to the `deprecated_in_favor_of` attribute.
#
def _validate_deprecated_in_favor_of(d)
if d == @spec.name
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Specification.root_name(d)?

@segiddins
Copy link
Member

Changelog entry?

@alloy
Copy link
Member

alloy commented Dec 23, 2014

lol

Btw, that extra whitespace in the CHANGELOG should stay, it’s there to ensure proper formatting on GH.

@keith keith force-pushed the ks-deprecated branch 2 times, most recently from d04cb32 to c1e4bff Compare December 23, 2014 21:11
* 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)
Copy link
Member

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

Copy link
Member Author

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.

@segiddins
Copy link
Member

:shipit:

segiddins added a commit that referenced this pull request Dec 23, 2014
Fail if a spec is deprecated_in_favor_of itself
@segiddins segiddins merged commit 7d2b3c0 into master Dec 23, 2014
@keith keith deleted the ks-deprecated branch December 23, 2014 22:52
Ashton-W pushed a commit to Ashton-W/Core that referenced this pull request Nov 2, 2015
Fail if a spec is deprecated_in_favor_of itself
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants