Change cache file naming. (#23265)

This commit is contained in:
Markus Reiter 2016-07-30 06:42:28 +02:00
parent 1381528f07
commit b77a536c29
6 changed files with 9 additions and 9 deletions

View File

@ -69,7 +69,7 @@ class Hbc::CurlDownloadStrategy < Hbc::AbstractDownloadStrategy
end
def tarball_path
@tarball_path ||= Hbc.cache.join("#{name}-#{version}#{ext}")
@tarball_path ||= Hbc.cache.join("#{name}--#{version}#{ext}")
end
def temporary_path

View File

@ -141,7 +141,7 @@ describe Hbc::Installer do
dest_path = Hbc.caskroom.join("bzipped-asset", asset.version)
dest_path.must_be :directory?
file = Hbc.appdir.join("bzipped-asset-#{asset.version}")
file = Hbc.appdir.join("bzipped-asset--#{asset.version}")
file.must_be :file?
end
@ -154,7 +154,7 @@ describe Hbc::Installer do
dest_path = Hbc.caskroom.join("gzipped-asset", asset.version)
dest_path.must_be :directory?
file = Hbc.appdir.join("gzipped-asset-#{asset.version}")
file = Hbc.appdir.join("gzipped-asset--#{asset.version}")
file.must_be :file?
end
@ -170,7 +170,7 @@ describe Hbc::Installer do
dest_path = Hbc.caskroom.join("xzipped-asset", asset.version)
dest_path.must_be :directory?
file = Hbc.appdir.join("xzipped-asset-#{asset.version}")
file = Hbc.appdir.join("xzipped-asset--#{asset.version}")
file.must_be :file?
end
@ -186,7 +186,7 @@ describe Hbc::Installer do
dest_path = Hbc.caskroom.join("lzma-asset", asset.version)
dest_path.must_be :directory?
file = Hbc.appdir.join("lzma-asset-#{asset.version}")
file = Hbc.appdir.join("lzma-asset--#{asset.version}")
file.must_be :file?
end

View File

@ -5,5 +5,5 @@ test_cask 'bzipped-asset' do
url TestHelper.local_binary_url('bzipped_asset.bz2')
homepage 'http://example.com/bzipped-asset'
app 'bzipped-asset-1.2.3'
app 'bzipped-asset--1.2.3'
end

View File

@ -5,5 +5,5 @@ test_cask 'gzipped-asset' do
url TestHelper.local_binary_url('gzipped_asset.gz')
homepage 'http://example.com/gzipped-asset'
app 'gzipped-asset-1.2.3'
app 'gzipped-asset--1.2.3'
end

View File

@ -7,5 +7,5 @@ test_cask 'lzma-asset' do
depends_on formula: 'lzma'
app 'lzma-asset-1.2.3'
app 'lzma-asset--1.2.3'
end

View File

@ -7,5 +7,5 @@ test_cask 'xzipped-asset' do
depends_on formula: 'xz'
app 'xzipped-asset-1.2.3'
app 'xzipped-asset--1.2.3'
end