From 254f3b2c3c03826f828f82e684777b3aeea3dd8f Mon Sep 17 00:00:00 2001 From: Jaime Marquínez Ferrándiz Date: Sat, 6 Apr 2013 21:57:09 +0200 Subject: brew audit: find *.github.com pages And suggest changing them to *.github.io Closes Homebrew/homebrew#19012. Signed-off-by: Adam Vandenberg --- Library/Homebrew/cmd/audit.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library') diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 62d1405e0..1504b4fe0 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -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 -- cgit v1.2.3