audit: catch new style gist URLs
This commit is contained in:
parent
9bbe38aa59
commit
dc8218fdb5
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user