github doesn't use .io urls

This commit is contained in:
Adam Vandenberg 2013-07-09 20:50:30 -07:00
parent 9b51f986c8
commit 37e64a2402

View File

@ -204,8 +204,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})"
if f.homepage =~ %r[^http://(.*)\.github\.com/]
if $1 != 'github'
problem "GitHub pages should use the github.io domain (url is #{f.homepage})"
end
end
urls = @specs.map(&:url)