brew audit: check that homepage includes the protocol

This commit is contained in:
Adam Vandenberg 2011-03-15 21:40:09 -07:00
parent 5f5fdb3284
commit 2eb0065ced

View File

@ -144,6 +144,10 @@ end
def audit_formula_urls f def audit_formula_urls f
problems = [] problems = []
unless f.homepage =~ %r[^https?://]
problems << " * The homepage should start with http or https."
end
urls = [(f.url rescue nil), (f.head rescue nil)].reject {|p| p.nil?} urls = [(f.url rescue nil), (f.head rescue nil)].reject {|p| p.nil?}
# Check SourceForge urls # Check SourceForge urls