From 254f3b2c3c03826f828f82e684777b3aeea3dd8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Marqui=CC=81nez=20Ferra=CC=81ndiz?= Date: Sat, 6 Apr 2013 21:57:09 +0200 Subject: [PATCH] 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(+) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 62d1405e09..1504b4fe09 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