Allow accessing version in livecheck blocks.
This commit is contained in:
parent
2a3ee11c07
commit
3a4c7223df
@ -8,6 +8,8 @@
|
|||||||
# This information is used by the `brew livecheck` command to control its
|
# This information is used by the `brew livecheck` command to control its
|
||||||
# behavior.
|
# behavior.
|
||||||
class Livecheck
|
class Livecheck
|
||||||
|
extend Forwardable
|
||||||
|
|
||||||
# A very brief description of why the formula/cask is skipped (e.g. `No longer
|
# A very brief description of why the formula/cask is skipped (e.g. `No longer
|
||||||
# developed or maintained`).
|
# developed or maintained`).
|
||||||
# @return [String, nil]
|
# @return [String, nil]
|
||||||
@ -107,6 +109,9 @@ class Livecheck
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
delegate version: :@formula_or_cask
|
||||||
|
private :version
|
||||||
|
|
||||||
# Returns a `Hash` of all instance variable values.
|
# Returns a `Hash` of all instance variable values.
|
||||||
# @return [Hash]
|
# @return [Hash]
|
||||||
def to_hash
|
def to_hash
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user