aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorViktor Szakats2017-02-05 18:03:11 +0100
committerViktor Szakats2017-02-10 14:53:32 +0000
commit03253a8d8b66b49eb6b6a7edd4ed353bcbf3a238 (patch)
tree3c017b6b98e83eaa366a302d5e33371d1d9527d4 /Library/Homebrew/test
parent8535a8cd7fd94abd09eebe0a9133decb1bf8c715 (diff)
downloadbrew-03253a8d8b66b49eb6b6a7edd4ed353bcbf3a238.tar.bz2
audit: enforce https://*.sourceforge.io/ homepages
Ref: https://sourceforge.net/blog/introducing-https-for-project-websites/
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/audit_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/test/audit_test.rb b/Library/Homebrew/test/audit_test.rb
index 60cf27610..b1ccb1e10 100644
--- a/Library/Homebrew/test/audit_test.rb
+++ b/Library/Homebrew/test/audit_test.rb
@@ -431,6 +431,9 @@ class FormulaAuditorTests < Homebrew::TestCase
"corge" => "http://savannah.nongnu.org/corge",
"grault" => "http://grault.github.io/",
"garply" => "http://www.gnome.org/garply",
+ "sf1" => "http://foo.sourceforge.net/",
+ "sf2" => "http://foo.sourceforge.net",
+ "sf3" => "http://foo.sf.net/",
"waldo" => "http://www.gnu.org/waldo",
}
@@ -455,6 +458,8 @@ class FormulaAuditorTests < Homebrew::TestCase
end
elsif homepage =~ %r{https:\/\/code\.google\.com}
assert_match "#{homepage} should end with a slash", fa.problems.first
+ elsif homepage =~ /foo\.(sf|sourceforge)\.net/
+ assert_match "#{homepage} should be `https://foo.sourceforge.io/`", fa.problems.first
else
assert_match "Please use https:// for #{homepage}", fa.problems.first
end