aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Reiter2017-05-23 15:29:38 +0200
committerGitHub2017-05-23 15:29:38 +0200
commit0871e069a2e5ee2954296c931b3d4208c5f5bb4d (patch)
treebefa9fbaf9d975eda4c63238d635d49e0986e952
parentd1f599f1ed51976fc76ad19803de04864d12ef2b (diff)
parent45496f315662dbc42c1fa6d4dd2163fdee756caf (diff)
downloadbrew-0871e069a2e5ee2954296c931b3d4208c5f5bb4d.tar.bz2
Merge pull request #2669 from reitermarkus/fix-appcast-checkpoint
Fix appcast checkpoint command.
-rw-r--r--Library/Homebrew/cask/lib/hbc/cli/abstract_command.rb4
-rw-r--r--Library/Homebrew/cask/lib/hbc/cli/internal_appcast_checkpoint.rb6
2 files changed, 3 insertions, 7 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli/abstract_command.rb b/Library/Homebrew/cask/lib/hbc/cli/abstract_command.rb
index 5264799ed..7ee3be337 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
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 6b83b2446..da0223b14 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