cask/dsl: remap unsigned to fails_gatekeeper_check
This commit is contained in:
parent
6c567067fd
commit
869bdfa10a
@ -625,6 +625,9 @@ module Cask
|
|||||||
raise ArgumentError, "more than one of replacement, replacement_formula and/or replacement_cask specified!"
|
raise ArgumentError, "more than one of replacement, replacement_formula and/or replacement_cask specified!"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# odeprecate: remove this remapping when the :unsigned reason is removed
|
||||||
|
because = :fails_gatekeeper_check if because == :unsigned
|
||||||
|
|
||||||
if replacement
|
if replacement
|
||||||
odeprecated(
|
odeprecated(
|
||||||
"deprecate!(:replacement)",
|
"deprecate!(:replacement)",
|
||||||
@ -651,6 +654,9 @@ module Cask
|
|||||||
raise ArgumentError, "more than one of replacement, replacement_formula and/or replacement_cask specified!"
|
raise ArgumentError, "more than one of replacement, replacement_formula and/or replacement_cask specified!"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# odeprecate: remove this remapping when the :unsigned reason is removed
|
||||||
|
because = :fails_gatekeeper_check if because == :unsigned
|
||||||
|
|
||||||
if replacement
|
if replacement
|
||||||
odeprecated(
|
odeprecated(
|
||||||
"disable!(:replacement)",
|
"disable!(:replacement)",
|
||||||
|
|||||||
@ -27,7 +27,7 @@ module DeprecateDisable
|
|||||||
no_longer_available: "is no longer available upstream",
|
no_longer_available: "is no longer available upstream",
|
||||||
no_longer_meets_criteria: "no longer meets the criteria for acceptable casks",
|
no_longer_meets_criteria: "no longer meets the criteria for acceptable casks",
|
||||||
unmaintained: "is not maintained upstream",
|
unmaintained: "is not maintained upstream",
|
||||||
fails_gatekeeper_check: "does not pass macOS Gatekeeper check",
|
fails_gatekeeper_check: "does not pass the macOS Gatekeeper check",
|
||||||
# odeprecate: remove the unsigned reason in a future release
|
# odeprecate: remove the unsigned reason in a future release
|
||||||
unsigned: "is unsigned or does not meet signature requirements",
|
unsigned: "is unsigned or does not meet signature requirements",
|
||||||
}.freeze, T::Hash[Symbol, String])
|
}.freeze, T::Hash[Symbol, String])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user