Commit e666f0e9 authored by Fabio Pelosin's avatar Fabio Pelosin

[pod-spec] Warning for github repos not starting with https [#204]

parent 295f8ddc
......@@ -167,6 +167,7 @@ module Pod
warnings << 'Missing license[:type]' unless spec.license && spec.license[:type]
warnings << 'Missing license[:file] or [:text]' unless spec.license && (spec.license[:file] || spec.license[:text])
warnings << "Github repositories should end in `.git'" if spec.source[:git] =~ /github.com/ && spec.source[:git] !~ /.*\.git/
warnings << "Github repositories should start with https://github.com" if spec.source[:git] =~ /git:\/\/github\.com/
unless warnings.empty?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment