aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2014-03-19 18:21:14 -0500
committerJack Nagel2014-03-19 18:24:10 -0500
commitdc8218fdb50a303f5441e7a54866932f67669b0f (patch)
tree3239ee2c91f25f1802f5d61c30aee464a192f971 /Library/Homebrew
parent9bbe38aa595d833caf80e6e901932f9e9ea5ab27 (diff)
downloadbrew-dc8218fdb50a303f5441e7a54866932f67669b0f.tar.bz2
audit: catch new style gist URLs
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/cmd/audit.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index 1c4be9244..649796311 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -304,7 +304,8 @@ class FormulaAuditor
def audit_patch(patch)
case patch.url
- when %r[raw\.github\.com], %r[gist\.github\.com/raw], %r[gist\.github\.com/.+/raw]
+ when %r[raw\.github\.com], %r[gist\.github\.com/raw], %r[gist\.github\.com/.+/raw],
+ %r[gist\.githubusercontent\.com/.+/raw]
unless patch.url =~ /[a-fA-F0-9]{40}/
problem "GitHub/Gist patches should specify a revision:\n#{patch.url}"
end