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

remove support for legacy form destination_path #7506

Merged
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions doc/cask_language_deltas.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ This notice will be removed for the final form.**
| `uninstall :files` | `uninstall :delete`
| `version 'latest'` | `version :latest`
| `manual_installer(path)` (within `caveats`) | `installer :manual`
| `destination_path` | `staged_path`


## All Supported Stanzas (1.0)
Expand Down
5 changes: 0 additions & 5 deletions lib/cask.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,6 @@ def staged_path
caskroom_path.join(cask_version.to_s)
end

# todo transitional method, removeme after DSL 1.0
def destination_path
staged_path
end

def metadata_master_container_path
caskroom_path.join(self.class.metadata_subdir)
end
Expand Down
5 changes: 0 additions & 5 deletions lib/cask/caveats.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ def staged_path
caskroom_path.join(@cask.version.to_s)
end

# todo transitional method, removeme after DSL 1.0
def destination_path
staged_path
end

# DSL. Each method should handle output, following the convention of
# at least one trailing blank line so that the user can distinguish
# separate caveats.
Expand Down
5 changes: 0 additions & 5 deletions lib/cask/dsl/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,4 @@ def caskroom_path
def staged_path
caskroom_path.join(@cask.version.to_s)
end

# todo transitional method, removeme after DSL 1.0
def destination_path
staged_path
end
end
5 changes: 0 additions & 5 deletions lib/cask/without_source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ def staged_path
caskroom_path.children.first
end

# todo transitional method, removeme after DSL 1.0
def destination_path
staged_path
end

def to_s
"#{title} (!)"
end
Expand Down