diff --git a/lib/cask.rb b/lib/cask.rb index f7fce1b81150f..4d91a2b9ad354 100644 --- a/lib/cask.rb +++ b/lib/cask.rb @@ -84,11 +84,6 @@ def self.token self.name.gsub(/([a-zA-Z\d])([A-Z])/,'\1-\2').gsub(/([a-zA-Z\d])([A-Z])/,'\1-\2').downcase end - # todo removeme transitional backward-compatibility - def self.title - self.token - end - def self.nowstamp_metadata_path(container_path) @timenow ||= Time.now.gmtime if container_path.respond_to?(:join) @@ -105,11 +100,6 @@ def initialize(token=self.class.token) @token = token end - # todo removeme transitional backward-compatibility - def title - @token - end - def caskroom_path self.class.caskroom.join(token) end diff --git a/lib/cask/caveats.rb b/lib/cask/caveats.rb index 81bc09494684d..e99000d33713f 100644 --- a/lib/cask/caveats.rb +++ b/lib/cask/caveats.rb @@ -24,11 +24,6 @@ def token @cask.token end - # todo removeme transitional backward compatibility - def title - @cask.token - end - def version @cask.version end diff --git a/lib/cask/dsl.rb b/lib/cask/dsl.rb index 865efdeaf72e2..48f3abbbf5ed8 100644 --- a/lib/cask/dsl.rb +++ b/lib/cask/dsl.rb @@ -275,7 +275,7 @@ def sha256(sha2=nil) end def method_missing(method, *args) - Cask::Utils.method_missing_message(method, self.title) + Cask::Utils.method_missing_message(method, self.token) return nil end end diff --git a/lib/cask/dsl/base.rb b/lib/cask/dsl/base.rb index e8725fa210dba..c0bd32b8ba1c8 100644 --- a/lib/cask/dsl/base.rb +++ b/lib/cask/dsl/base.rb @@ -12,11 +12,6 @@ def token @cask.token end - # todo removeme transitional backward compatibility - def title - @cask.token - end - def version @cask.version end diff --git a/lib/cask/source/tapped.rb b/lib/cask/source/tapped.rb index f1328c186396d..cf4e17f125ad6 100644 --- a/lib/cask/source/tapped.rb +++ b/lib/cask/source/tapped.rb @@ -23,11 +23,6 @@ def initialize(token) @token = token end - # todo removeme transitional backward-compatibility - def title - @token - end - def load path = self.class.path_for_query(token) Cask::Source::PathSlashOptional.new(path).load diff --git a/spec/cask/download_strategy_spec.rb b/spec/cask/download_strategy_spec.rb index b1a01b9286491..cd112c92992fa 100644 --- a/spec/cask/download_strategy_spec.rb +++ b/spec/cask/download_strategy_spec.rb @@ -5,7 +5,7 @@ let(:url_options) { Hash.new } let(:cask) { class_double(Cask, - :title => 'some-cask', + :token => 'some-cask', :url => Cask::URL.new(url, url_options), :version => '1.2.3.4' )