Allow accessing version in livecheck blocks.

This commit is contained in:
Markus Reiter 2020-12-15 17:25:16 +01:00 committed by Sam Ford
parent 2a3ee11c07
commit 3a4c7223df
No known key found for this signature in database
GPG Key ID: 95209E46C7FFDEFE

View File

@ -8,6 +8,8 @@
# This information is used by the `brew livecheck` command to control its
# behavior.
class Livecheck
extend Forwardable
# A very brief description of why the formula/cask is skipped (e.g. `No longer
# developed or maintained`).
# @return [String, nil]
@ -107,6 +109,9 @@ class Livecheck
end
end
delegate version: :@formula_or_cask
private :version
# Returns a `Hash` of all instance variable values.
# @return [Hash]
def to_hash