cask: remove old prefix placeholder
This was just a temporary workaround while we waited for the API to regenerate the JSON content.
This commit is contained in:
parent
5550aa215e
commit
3aae28aa0d
@ -23,9 +23,6 @@ module Cask
|
|||||||
HOMEBREW_PREFIX_PLACEHOLDER = "$HOMEBREW_PREFIX"
|
HOMEBREW_PREFIX_PLACEHOLDER = "$HOMEBREW_PREFIX"
|
||||||
APPDIR_PLACEHOLDER = "$APPDIR"
|
APPDIR_PLACEHOLDER = "$APPDIR"
|
||||||
|
|
||||||
# TODO: can be removed when API JSON is regenerated with HOMEBREW_PREFIX_PLACEHOLDER.
|
|
||||||
HOMEBREW_OLD_PREFIX_PLACEHOLDER = "$(brew --prefix)"
|
|
||||||
|
|
||||||
attr_reader :token, :sourcefile_path, :source, :config, :default_config, :loader
|
attr_reader :token, :sourcefile_path, :source, :config, :default_config, :loader
|
||||||
attr_accessor :download, :allow_reassignment
|
attr_accessor :download, :allow_reassignment
|
||||||
|
|
||||||
|
|||||||
@ -326,13 +326,10 @@ module Cask
|
|||||||
end
|
end
|
||||||
|
|
||||||
def from_h_string_gsubs(string, appdir)
|
def from_h_string_gsubs(string, appdir)
|
||||||
# TODO: HOMEBREW_OLD_PREFIX_PLACEHOLDER can be removed when API JSON is
|
|
||||||
# regenerated with HOMEBREW_PREFIX_PLACEHOLDER.
|
|
||||||
string.to_s
|
string.to_s
|
||||||
.gsub(Cask::HOME_PLACEHOLDER, Dir.home)
|
.gsub(Cask::HOME_PLACEHOLDER, Dir.home)
|
||||||
.gsub(Cask::HOMEBREW_PREFIX_PLACEHOLDER, HOMEBREW_PREFIX)
|
.gsub(Cask::HOMEBREW_PREFIX_PLACEHOLDER, HOMEBREW_PREFIX)
|
||||||
.gsub(Cask::APPDIR_PLACEHOLDER, appdir)
|
.gsub(Cask::APPDIR_PLACEHOLDER, appdir)
|
||||||
.gsub(Cask::HOMEBREW_OLD_PREFIX_PLACEHOLDER, HOMEBREW_PREFIX)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def from_h_array_gsubs(array, appdir)
|
def from_h_array_gsubs(array, appdir)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user