From 16c17433d5e1a024a567389585f43bd2bebf19fd Mon Sep 17 00:00:00 2001 From: Markus Reiter <me@reitermark.us> Date: Fri, 4 Sep 2020 05:19:33 +0200 Subject: [PATCH] Fix passing options through `Auditor`. --- Library/Homebrew/cask/auditor.rb | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/Library/Homebrew/cask/auditor.rb b/Library/Homebrew/cask/auditor.rb index 87179cd3e9..df3e396005 100644 --- a/Library/Homebrew/cask/auditor.rb +++ b/Library/Homebrew/cask/auditor.rb @@ -7,8 +7,6 @@ module Cask # # @api private class Auditor - extend Predicable - def self.audit( cask, audit_download: nil, @@ -57,9 +55,6 @@ module Cask @language = language end - attr_predicate :audit_appcast?, :audit_download?, :audit_online?, - :audit_strict?, :audit_new_cask?, :audit_token_conflicts?, :quarantine? - def audit warnings = Set.new errors = Set.new @@ -95,13 +90,13 @@ module Cask def audit_cask_instance(cask) audit = Audit.new( cask, - appcast: audit_appcast?, - online: audit_online?, - strict: audit_strict?, - new_cask: audit_new_cask?, - token_conflicts: audit_token_conflicts?, - download: audit_download?, - quarantine: quarantine?, + appcast: @audit_appcast, + online: @audit_online, + strict: @audit_strict, + new_cask: @audit_new_cask, + token_conflicts: @audit_token_conflicts, + download: @audit_download, + quarantine: @quarantine, ) audit.run! audit -- GitLab