brew audit: find *.github.com pages

And suggest changing them to *.github.io

Closes Homebrew/homebrew#19012.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Jaime Marquínez Ferrándiz 2013-04-06 21:57:09 +02:00 committed by Adam Vandenberg
parent 89bb6664c4
commit 254f3b2c3c

View File

@ -192,6 +192,10 @@ class FormulaAuditor
problem "Google Code homepage should end with a slash (url is #{f.homepage})."
end
if f.homepage =~ %r[^http://.*\.github\.com/]
problem "GitHub pages should use the github.io domain (url is #{f.homepage})"
end
urls = [(f.stable.url rescue nil), (f.devel.url rescue nil), (f.head.url rescue nil)].compact
# Check GNU urls; doesn't apply to mirrors