8000 Podfile: Add a CDNSource automatically if it's not present, just like git Source by igor-makarov · Pull Request #8362 · CocoaPods/CocoaPods · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Podfile: Add a CDNSource automatically if it's not present, just like git Source #8362

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

Merged
merged 1 commit into from
Dec 17, 2018

Conversation

igor-makarov
Copy link
Contributor

Currently, if you specify in your Podfile source 'https://github.com/artsy/Specs.git', it would clone the spec repo for you.
This PR adds the same convenience for CDNSource when specified as source 'https://cdn.jsdelivr.net/cocoa/'.

The way the new code determines whether the URL is git or not, is by examining whether it ends with .git.
I've added tests for the new case and also another for master repo add.

@dnkoutso dnkoutso added this to the 1.7.0 milestone Dec 17, 2018
@dnkoutso dnkoutso merged commit 089473b into CocoaPods:master Dec 17, 2018
@igor-makarov igor-makarov deleted the cdn-source-auto-add branch December 18, 2018 08:02
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.

2 participants
0