From 7f633cce8ccf9ce15a690e5ceca450732273ed4d Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Fri, 25 Dec 2020 00:48:54 +0100 Subject: [PATCH] Remove `:appcast` and rename `:cask_url` to `:url`. --- Library/Homebrew/livecheck.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Library/Homebrew/livecheck.rb b/Library/Homebrew/livecheck.rb index 43288cdb3c..c25a4de36d 100644 --- a/Library/Homebrew/livecheck.rb +++ b/Library/Homebrew/livecheck.rb @@ -87,16 +87,14 @@ class Livecheck # Sets the `@url` instance variable to the provided argument or returns the # `@url` instance variable when no argument is provided. The argument can be # a `String` (a URL) or a supported `Symbol` corresponding to a URL in the - # formula/cask (e.g. `:stable`, `:homepage`, `:head`, `:cask_url`, `:appcast`). + # formula/cask (e.g. `:stable`, `:homepage`, `:head`, `:url`). # @param val [String, Symbol] URL to check for version information # @return [String, nil] def url(val = nil) @url = case val when nil return @url - when :appcast - @formula_or_cask.appcast.to_s - when :cask_url + when :url @formula_or_cask.url.to_s when :head, :stable @formula_or_cask.send(val).url