Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert more backend code from cask_name to token #7807

Merged
merged 1 commit into from
Dec 5, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/cask/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -150,18 +150,18 @@ def self.file_is_descendant(file, dir)
return false
end

def self.method_missing_message(method, cask_name, section=nil)
def self.method_missing_message(method, token, section=nil)
during = section ? "during #{section} " : '';
poo = <<-EOPOO.undent
Unexpected method '#{method}' called #{during}on Cask #{cask_name}.
Unexpected method '#{method}' called #{during}on Cask #{token}.

If you are working on #{cask_name}, this may point to a typo. Otherwise
If you are working on #{token}, this may point to a typo. Otherwise
it probably means this Cask is using a new feature. If that feature
has been released, running

brew update && brew upgrade brew-cask && brew cleanup && brew cask cleanup

should fix it. Otherwise you should wait to use #{cask_name} until the
should fix it. Otherwise you should wait to use #{token} until the
new feature is released.
EOPOO
poo.split("\n").each { |line| opoo line }
Expand Down