diff options
| author | Jack Nagel | 2014-03-19 18:21:14 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-03-19 18:24:10 -0500 |
| commit | 3759f776c037f331734a1cdb1dbac12c16b008cd (patch) | |
| tree | 6c8800f954ea352b5bd1e70598fb5a49915b52fa /Library | |
| parent | abe72fbc1174fe25e130528bfef79eef001f13fc (diff) | |
| download | homebrew-3759f776c037f331734a1cdb1dbac12c16b008cd.tar.bz2 | |
audit: catch new style gist URLs
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 3 |
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 |
