messages<<"The description is not meaningful"ifspec.description&&spec.description=~/An optional longer description of/
messages<<"The description is not meaningful"ifspec.description&&spec.description=~/An optional longer description of/
messages<<"The summary should end with a dot"ifspec.summary!~/.*\./
messages<<"The summary should end with a dot"ifspec.summary!~/.*\./
messages<<"The description should end with a dot"ifspec.description!~/.*\./&&spec.description!=spec.summary
messages<<"The description should end with a dot"ifspec.description!~/.*\./&&spec.description!=spec.summary
messages<<"Git sources should specify either a tag or a commit"ifsource[:git]&&!source[:commit]&&!source[:tag]
messages<<"Github repositories should end in `.git'"ifgithub_source?&&source[:git]!~/.*\.git/
messages<<"Github repositories should use `https' link"ifgithub_source?&&source[:git]!~/https:\/\/github.com/
messages<<"Comments must be deleted"iftext.scan(/^\s*#/).length>24
messages<<"Comments must be deleted"iftext.scan(/^\s*#/).length>24
messages
if(git_source=source[:git])
messages<<"Git sources should specify either a tag or a commit"unlesssource[:commit]||source[:tag]
ifgit_source.include?('github.com')
messages<<"Github repositories should end in `.git'"unlessgit_source.end_with?('.git')
messages<<"Github repositories should use `https' link"unlessgit_source.start_with?('https://github.com')||git_source.start_with?('git://gist.github.com')
end
end
end
defgithub_source?
messages
spec.source&&spec.source[:git]=~/github.com/
end
end
# It creates a podfile in memory and builds a library containing
# It creates a podfile in memory and builds a library containing