Merge pull request #14278 from nandahkrishna/fix-constants-livecheck
Fix access to `livecheck` constants in formulae
This commit is contained in:
commit
f679990d79
@ -65,6 +65,7 @@ class Formula
|
|||||||
include Utils::Shell
|
include Utils::Shell
|
||||||
include Context
|
include Context
|
||||||
include OnSystem::MacOSAndLinux
|
include OnSystem::MacOSAndLinux
|
||||||
|
include Homebrew::Livecheck::Constants
|
||||||
extend Forwardable
|
extend Forwardable
|
||||||
extend Cachable
|
extend Cachable
|
||||||
extend Predicable
|
extend Predicable
|
||||||
@ -3278,7 +3279,6 @@ class Formula
|
|||||||
def livecheck(&block)
|
def livecheck(&block)
|
||||||
return @livecheck unless block
|
return @livecheck unless block
|
||||||
|
|
||||||
include Homebrew::Livecheck::Constants
|
|
||||||
@livecheckable = true
|
@livecheckable = true
|
||||||
@livecheck.instance_eval(&block)
|
@livecheck.instance_eval(&block)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user