From cc295601c708c2f19a7742267f8abc2daf553348 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Tue, 23 May 2017 14:57:51 +0200 Subject: [PATCH 1/2] Fix undefined `cask_tokens` method. --- .../cask/lib/hbc/cli/internal_appcast_checkpoint.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/cask/lib/hbc/cli/internal_appcast_checkpoint.rb b/Library/Homebrew/cask/lib/hbc/cli/internal_appcast_checkpoint.rb index 6b83b24464..da0223b14d 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/internal_appcast_checkpoint.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/internal_appcast_checkpoint.rb @@ -9,10 +9,10 @@ module Hbc end def run - if cask_tokens.all? { |t| t =~ %r{^https?://} && t !~ /\.rb$/ } - self.class.appcask_checkpoint_for_url(cask_tokens) + if args.all? { |t| t =~ %r{^https?://} && t !~ /\.rb$/ } + self.class.appcask_checkpoint_for_url(args) else - self.class.appcask_checkpoint(cask_tokens, calculate?) + self.class.appcask_checkpoint(args, calculate?) end end From 45496f315662dbc42c1fa6d4dd2163fdee756caf Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Tue, 23 May 2017 14:58:03 +0200 Subject: [PATCH 2/2] Remove `cask_tokens_from` method. --- Library/Homebrew/cask/lib/hbc/cli/abstract_command.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Library/Homebrew/cask/lib/hbc/cli/abstract_command.rb b/Library/Homebrew/cask/lib/hbc/cli/abstract_command.rb index 5264799eda..7ee3be3378 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/abstract_command.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/abstract_command.rb @@ -22,10 +22,6 @@ module Hbc true end - def self.cask_tokens_from(args) - args.reject { |a| a.empty? || a.chars.first == "-" } - end - def self.help nil end