Method: Pod::Specification::Linter#perform_github_source_checks
- Defined in:
- lib/cocoapods-core/specification/linter.rb
#perform_github_source_checks(s) ⇒ Object (private)
Performs validations related to github sources.
476 477 478 479 480 481 482 483 484 485 486 |
# File 'lib/cocoapods-core/specification/linter.rb', line 476 def perform_github_source_checks(s) require 'uri' if git = s[:git] return unless git =~ /^#{URI.regexp}$/ git_uri = URI.parse(git) if git_uri.host perform_github_uri_checks(git, git_uri) if git_uri.host.end_with?('github.com') end end end |