-
Notifications
You must be signed in to change notification settings - Fork 350
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
Better linting for Github URIs. #77
Conversation
Does not longer warn for Github repositories with OAuth authentication.
I like this a lot. Can you make sure to update the changelog on the main repository? |
Better linting for Github URIs.
👍 |
@@ -333,18 +333,15 @@ def _validate_source(s) | |||
# Performs validations related to github sources. | |||
# | |||
def perform_github_source_checks(s) | |||
supported_domains = [ | |||
'https://github.com', | |||
'https://gist.github.com', |
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.
These changes seem to drop the check for gist.github.com, is this intentional?
oops, no that wasn't intended, just slipped by. I will create a corresponding spec and fix. |
Oh no, use URI.parse will has side effect. Because we use local path as git repo. example for path:
URI.parse will throw out InvalidURIError
|
Oh, will a correct URI work in this case, |
There is no limit for git repo is working on local path or url path. No mater what that path, it is work just fine. Because this problem, I must change git source path on every pod specs. |
Better linting for Github URIs.
Actually check URI.host and URI.scheme instead of checking against hardcoded URLs.
Does not longer warn for Github repositories with OAuth authentication, which was reported in CocoaPods/CocoaPods#1928