Skip to content

Commit

Permalink
[Command::Spec::Linter] fix for #podspec_warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiopelosin committed May 4, 2012
1 parent d9d8830 commit 43d8dc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cocoapods/command/spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,9 @@ def podspec_warnings
messages << "Missing license[:file] or [:text]" unless license[:file] || license[:text]
messages << "The summary should end with a dot" if @spec.summary !~ /.*\./
messages << "The description should end with a dot" if @spec.description !~ /.*\./ && @spec.description != @spec.summary
messages << "Git sources should specify either a tag or a commit" if source[:git] && ( !source[:commit] || !source[:tag] )
messages << "Git sources should specify either a tag or a commit" if source[:git] && !source[:commit] && !source[:tag]
messages << "Github repositories should end in `.git'" if github_source? && source[:git] !~ /.*\.git/
messages << "Github repositories should start with `https'" if github_source? && source[:git] !~ /https:\/\/github.com/
messages << "Github repositories should use `https' link" if github_source? && source[:git] !~ /https:\/\/github.com/
messages << "Comments must be deleted" if text =~ /^\w*#\n\w*#/ # allow a single line comment as it is generally used in subspecs
messages
end
Expand Down

0 comments on commit 43d8dc6

Please sign in to comment.