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

add uninstall :rmdir #6192

Merged
merged 1 commit into from
Sep 16, 2014
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
12 changes: 7 additions & 5 deletions doc/CASK_LANGUAGE_REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,8 @@ of the following key/value pairs as arguments to `uninstall`.
- `:args` - array of arguments to the uninstall script
- `:input` - array of lines of input to be sent to `stdin` of the script
- `:must_succeed` - set to `false` if the script is allowed to fail
* `:files` (array) - single-quoted, absolute paths of files or directories to remove. `:files` should only be used as a last resort. `:pkgutil` is strongly preferred
* `:files` (string or array) - single-quoted, absolute paths of files or directory trees to remove. `:files` should only be used as a last resort. `:pkgutil` is strongly preferred
* `:rmdir` (string or array) - single-quoted, absolute paths of directories to remove if empty.

Each `uninstall` technique is applied according to the order above. The order
in which `uninstall` keys appear in the Cask file is ignored.
Expand Down Expand Up @@ -636,11 +637,12 @@ $ brew cask zap td-toolbelt # also removes org.ruby-lang.installer
The form of `zap` stanza follows the [`uninstall` stanza](#uninstall-stanza-details).
All of the same directives are available.

`zap` differs from `uninstall` in the interpretation of values paired with
the `:files` key:
`zap` differs from `uninstall` in the following ways:
* The use of `:files` is not discouraged.
* The target values for `:files` and `:rmdir` accept leading tilde characters
(`~`), which will be expanded to home directories.

* Leading tilde characters (`~`) will be expanded to home directories, as
in the shell.
Example: [injection.rb](../Casks/injection.rb)


## Arbitrary Ruby Methods
Expand Down
1 change: 1 addition & 0 deletions doc/cask_language_deltas.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ This notice will be removed for the final form.**
* `depends_on :java`
* stub - not yet functional
* `zap`
* `uninstall :rmdir`


## Renames (1.0)
Expand Down
20 changes: 19 additions & 1 deletion lib/cask/artifact/uninstall_base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def dispatch_uninstall_directives(stanza, expand_tilde=false)
ohai "Running #{stanza} process for #{@cask}; your password may be necessary"

directives_set.each do |directives|
unknown_keys = directives.keys - [:early_script, :launchctl, :quit, :signal, :kext, :script, :pkgutil, :files, :delete, :trash]
unknown_keys = directives.keys - [:early_script, :launchctl, :quit, :signal, :kext, :script, :pkgutil, :files, :delete, :trash, :rmdir]
unless unknown_keys.empty?
opoo %Q{Unknown arguments to #{stanza} -- #{unknown_keys.inspect}. Running "brew update && brew upgrade brew-cask && brew cleanup && brew cask cleanup" will likely fix it.}
end
Expand Down Expand Up @@ -172,5 +172,23 @@ def dispatch_uninstall_directives(stanza, expand_tilde=false)
@command.run!('/bin/rm', :args => path_slice.unshift('-rf', '--'), :sudo => true)
end
end

directives_set.select{ |h| h.key?(:rmdir) }.each do |directives|
Array(directives[:rmdir]).flatten.each do |directory|
directory = self.class.expand_path_strings([directory]).first if expand_tilde
directory = self.class.remove_relative_path_strings(:rmdir, [ directory ]).first
next unless directory.respond_to?(:length)
next unless directory.length > 0
ohai "Removing directory if empty: #{directory.utf8_inspect}"
directory = Pathname.new(directory)
next unless directory.exist?
@command.run!('/bin/rm', :args => [ '-f', '--', directory.join('.DS_Store') ],
:sudo => true,
:stderr => :silence)
@command.run('/bin/rmdir', :args => [ '--', directory ],
:sudo => true,
:stderr => :silence)
end
end
end
end
2 changes: 1 addition & 1 deletion test/cask/artifact/alt_target_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
it "works with an application in a subdir" do
AltSubDirCask = Class.new(Cask)
AltSubDirCask.class_eval do
url TestHelper.local_binary('caffeine.zip')
url TestHelper.local_binary_url('caffeine.zip')
homepage 'http://example.com/local-caffeine'
version '1.2.3'
sha256 '9203c30951f9aab41ac294bbeb1dcef7bed401ff0b353dcb34d68af32ea51853'
Expand Down
2 changes: 1 addition & 1 deletion test/cask/artifact/app_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
it "works with an application in a subdir" do
SubDirCask = Class.new(Cask)
SubDirCask.class_eval do
url TestHelper.local_binary('caffeine.zip')
url TestHelper.local_binary_url('caffeine.zip')
homepage 'http://example.com/local-caffeine'
version '1.2.3'
sha256 '9203c30951f9aab41ac294bbeb1dcef7bed401ff0b353dcb34d68af32ea51853'
Expand Down
2 changes: 1 addition & 1 deletion test/cask/artifact/two_apps_correct_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
it "works with an application in a subdir" do
AltSubDirTwoAppsCask = Class.new(Cask)
AltSubDirTwoAppsCask.class_eval do
url TestHelper.local_binary('caffeine.zip')
url TestHelper.local_binary_url('caffeine.zip')
homepage 'http://example.com/local-caffeine'
version '1.2.3'
sha256 '9203c30951f9aab41ac294bbeb1dcef7bed401ff0b353dcb34d68af32ea51853'
Expand Down
2 changes: 2 additions & 0 deletions test/cask/artifact/uninstall_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@

Cask::FakeSystemCommand.expects_command(['/usr/bin/sudo', '-E', '--', @cask.destination_path/'MyFancyPkg'/'FancyUninstaller.tool', '--please'])
Cask::FakeSystemCommand.expects_command(['/usr/bin/sudo', '-E', '--', '/bin/rm', '-rf', '--', '/permissible/absolute/path'])
Cask::FakeSystemCommand.expects_command(['/usr/bin/sudo', '-E', '--', '/bin/rm', '-f', '--', Pathname.new(TestHelper.local_binary_path('empty_directory')).join('.DS_Store')])
Cask::FakeSystemCommand.expects_command(['/usr/bin/sudo', '-E', '--', '/bin/rmdir', '--', Pathname.new(TestHelper.local_binary_path('empty_directory'))])

shutup do
uninstall_artifact.uninstall_phase
Expand Down
2 changes: 1 addition & 1 deletion test/support/Casks/adobe-air-container.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class AdobeAirContainer < TestCask
url TestHelper.local_binary('GMDesk-1.01.air')
url TestHelper.local_binary_url('GMDesk-1.01.air')
homepage 'http://robertnyman.com/gmdesk/'
version '1.0.1'
sha256 '9b6e4174afa76f2af50238364fcf87525bc4ed2287acbe62925107ab6cda5c99'
Expand Down
2 changes: 1 addition & 1 deletion test/support/Casks/bad-checksum.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class BadChecksum < TestCask
url TestHelper.local_binary('caffeine.zip')
url TestHelper.local_binary_url('caffeine.zip')
homepage 'http://example.com/local-caffeine'
version '1.2.3'
sha256 'badbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadb'
Expand Down
2 changes: 1 addition & 1 deletion test/support/Casks/bzipped-asset.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class BzippedAsset < TestCask
url TestHelper.local_binary('bzipped_asset.bz2')
url TestHelper.local_binary_url('bzipped_asset.bz2')
homepage 'http://example.com/bzipped-asset'
version '1.2.3'
sha256 'eaf67b3a62cb9275f96e45d05c70b94bef9ef1dae344083e93eda6b0b388a61c'
Expand Down
2 changes: 1 addition & 1 deletion test/support/Casks/cab-container.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class CabContainer < TestCask
url TestHelper.local_binary('cabcontainer.cab')
url TestHelper.local_binary_url('cabcontainer.cab')
homepage 'http://example.com/cab-container'
version '1.2.3'
sha256 '192d0cf6b727473f9ba0f55cec793ee2a8f7113c5cfe9d49e05a087436c5efe2'
Expand Down
2 changes: 1 addition & 1 deletion test/support/Casks/gzipped-asset.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class GzippedAsset < TestCask
url TestHelper.local_binary('gzipped_asset.gz')
url TestHelper.local_binary_url('gzipped_asset.gz')
homepage 'http://example.com/gzipped-asset'
version '1.2.3'
sha256 '832506ade94b3e41ecdf2162654eb75891a0749803229e82b2e0420fd1b9e8d2'
Expand Down
2 changes: 1 addition & 1 deletion test/support/Casks/invalid/invalid-appcast-format.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class InvalidAppcastFormat < TestCask
url TestHelper.local_binary('caffeine.zip')
url TestHelper.local_binary_url('caffeine.zip')
homepage 'http://example.com/invalid-appcast-format'
appcast 'http://example.com/appcast.xml',
:sha256 => '9203c30951f9aab41ac294bbeb1dcef7bed401ff0b353dcb34d68af32ea51853',
Expand Down
2 changes: 1 addition & 1 deletion test/support/Casks/invalid/invalid-appcast-multiple.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class InvalidAppcastMultiple < TestCask
url TestHelper.local_binary('caffeine.zip')
url TestHelper.local_binary_url('caffeine.zip')
homepage 'http://example.com/invalid-appcast-multiple'
appcast 'http://example.com/appcast1.xml',
:sha256 => '9203c30951f9aab41ac294bbeb1dcef7bed401ff0b353dcb34d68af32ea51853',
Expand Down
2 changes: 1 addition & 1 deletion test/support/Casks/invalid/invalid-appcast-url.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class InvalidAppcastUrl < TestCask
url TestHelper.local_binary('caffeine.zip')
url TestHelper.local_binary_url('caffeine.zip')
homepage 'http://example.com/invalid-appcast-url'
appcast 1,
:sha256 => '9203c30951f9aab41ac294bbeb1dcef7bed401ff0b353dcb34d68af32ea51853',
Expand Down
2 changes: 1 addition & 1 deletion test/support/Casks/invalid/invalid-conflicts-with-key.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class InvalidConflictsWithKey < TestCask
url TestHelper.local_binary('caffeine.zip')
url TestHelper.local_binary_url('caffeine.zip')
homepage 'http://example.com/invalid-conflicts-with-key'
conflicts_with :no_such_key => 'unar'
sha256 '9203c30951f9aab41ac294bbeb1dcef7bed401ff0b353dcb34d68af32ea51853'
Expand Down
2 changes: 1 addition & 1 deletion test/support/Casks/invalid/invalid-depends-on-key.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class InvalidDependsOnKey < TestCask
url TestHelper.local_binary('caffeine.zip')
url TestHelper.local_binary_url('caffeine.zip')
homepage 'http://example.com/invalid-depends-on-key'
depends_on :no_such_key => 'unar'
sha256 '9203c30951f9aab41ac294bbeb1dcef7bed401ff0b353dcb34d68af32ea51853'
Expand Down
2 changes: 1 addition & 1 deletion test/support/Casks/invalid/invalid-gpg-conflicting-keys.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class InvalidGpgConflictingKeys < TestCask
url TestHelper.local_binary('caffeine.zip')
url TestHelper.local_binary_url('caffeine.zip')
homepage 'http://example.com/invalid-gpg-conflicting-keys'
gpg 'http://example.com/gpg-signature.asc',
:key_id => 'ID',
Expand Down
2 changes: 1 addition & 1 deletion test/support/Casks/invalid/invalid-gpg-key-url.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class InvalidGpgKeyUrl < TestCask
url TestHelper.local_binary('caffeine.zip')
url TestHelper.local_binary_url('caffeine.zip')
homepage 'http://example.com/invalid-gpg-key-url'
gpg 'http://example.com/gpg-signature.asc',
:key_url => 1
Expand Down
2 changes: 1 addition & 1 deletion test/support/Casks/invalid/invalid-gpg-missing-key.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class InvalidGpgMissingKeys < TestCask
url TestHelper.local_binary('caffeine.zip')
url TestHelper.local_binary_url('caffeine.zip')
homepage 'http://example.com/invalid-gpg-missing-keys'
gpg 'http://example.com/gpg-signature.asc'
sha256 '9203c30951f9aab41ac294bbeb1dcef7bed401ff0b353dcb34d68af32ea51853'
Expand Down
2 changes: 1 addition & 1 deletion test/support/Casks/invalid/invalid-gpg-multiple-stanzas.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class InvalidGpgMultipleStanzas < TestCask
url TestHelper.local_binary('caffeine.zip')
url TestHelper.local_binary_url('caffeine.zip')
homepage 'http://example.com/invalid-gpg-multiple-stanzas'
gpg 'http://example.com/gpg-signature.asc',
:key_id => 'ID'
Expand Down
2 changes: 1 addition & 1 deletion test/support/Casks/invalid/invalid-gpg-parameter.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class InvalidGpgParameter < TestCask
url TestHelper.local_binary('caffeine.zip')
url TestHelper.local_binary_url('caffeine.zip')
homepage 'http://example.com/invalid-gpg-type'
gpg 'http://example.com/gpg-signature.asc',
:no_such_parameter => :value
Expand Down
2 changes: 1 addition & 1 deletion test/support/Casks/invalid/invalid-gpg-signature-url.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class InvalidGpgSignatureUrl < TestCask
url TestHelper.local_binary('caffeine.zip')
url TestHelper.local_binary_url('caffeine.zip')
homepage 'http://example.com/invalid-gpg-signature-url'
gpg 1,
:key_id => 'ID'
Expand Down
2 changes: 1 addition & 1 deletion test/support/Casks/invalid/invalid-gpg-type.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class InvalidGpgParameter < TestCask
url TestHelper.local_binary('caffeine.zip')
url TestHelper.local_binary_url('caffeine.zip')
homepage 'http://example.com/invalid-gpg-type'
gpg 'http://example.com/gpg-signature.asc',
:no_such_parameter => :value
Expand Down
2 changes: 1 addition & 1 deletion test/support/Casks/invalid/invalid-license-multiple.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class InvalidLicenseMultiple < TestCask
url TestHelper.local_binary('transmission-2.61.dmg')
url TestHelper.local_binary_url('transmission-2.61.dmg')
homepage 'http://example.com/invalid-license-multiple'
license :gpl
license :gpl
Expand Down
2 changes: 1 addition & 1 deletion test/support/Casks/invalid/invalid-license-value.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class InvalidLicenseValue < TestCask
url TestHelper.local_binary('transmission-2.61.dmg')
url TestHelper.local_binary_url('transmission-2.61.dmg')
homepage 'http://example.com/invalid-license-value'
license :no_such_license
version '2.61'
Expand Down
2 changes: 1 addition & 1 deletion test/support/Casks/invalid/invalid-tags-key.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class InvalidTagsKey < TestCask
url TestHelper.local_binary('caffeine.zip')
url TestHelper.local_binary_url('caffeine.zip')
homepage 'http://example.com/invalid-tags-key'
tags :no_such_key => 'ExampleSoft'
sha256 '9203c30951f9aab41ac294bbeb1dcef7bed401ff0b353dcb34d68af32ea51853'
Expand Down
2 changes: 1 addition & 1 deletion test/support/Casks/invalid/invalid-tags-multiple.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class InvalidTagsMultiple < TestCask
url TestHelper.local_binary('caffeine.zip')
url TestHelper.local_binary_url('caffeine.zip')
homepage 'http://example.com/invalid-tags-multiple'
tags :vendor => 'ExampleSoft'
tags :vendor => 'ExampleSoft'
Expand Down
2 changes: 1 addition & 1 deletion test/support/Casks/invalid/invalid-two-homepage.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class InvalidTwoHomepage < TestCask
url TestHelper.local_binary('caffeine.zip')
url TestHelper.local_binary_url('caffeine.zip')
homepage 'http://example.com/local-caffeine'
homepage 'http://www.example.com/local-caffeine'
version '1.2.3'
Expand Down
2 changes: 1 addition & 1 deletion test/support/Casks/invalid/invalid-two-url.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class InvalidTwoUrl < TestCask
url TestHelper.local_binary('caffeine.zip')
url TestHelper.local_binary_url('caffeine.zip')
url 'http://example.com/caffeine.zip'
homepage 'http://example.com/local-caffeine'
version '1.2.3'
Expand Down
2 changes: 1 addition & 1 deletion test/support/Casks/invalid/invalid-two-version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class InvalidTwoVersion < TestCask
url TestHelper.local_binary('caffeine.zip')
url TestHelper.local_binary_url('caffeine.zip')
homepage 'http://example.com/local-caffeine'
version '1.2.3'
version '2.0'
Expand Down
2 changes: 1 addition & 1 deletion test/support/Casks/local-caffeine.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class LocalCaffeine < TestCask
url TestHelper.local_binary('caffeine.zip')
url TestHelper.local_binary_url('caffeine.zip')
homepage 'http://example.com/local-caffeine'
version '1.2.3'
sha256 '9203c30951f9aab41ac294bbeb1dcef7bed401ff0b353dcb34d68af32ea51853'
Expand Down
2 changes: 1 addition & 1 deletion test/support/Casks/local-transmission.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class LocalTransmission < TestCask
url TestHelper.local_binary('transmission-2.61.dmg')
url TestHelper.local_binary_url('transmission-2.61.dmg')
homepage 'http://example.com/local-transmission'
version '2.61'
sha256 'd26d7481cf1229f879c05e11cbdf440d99db6d6342f26c73d8ba7861b975532f'
Expand Down
2 changes: 1 addition & 1 deletion test/support/Casks/missing-checksum.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class MissingChecksum < TestCask
url TestHelper.local_binary('caffeine.zip')
url TestHelper.local_binary_url('caffeine.zip')
homepage 'http://example.com/local-caffeine'
version '1.2.3'
app 'Caffeine.app'
Expand Down
2 changes: 1 addition & 1 deletion test/support/Casks/naked-executable-dsl-one.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class NakedExecutableDslOne < TestCask
# todo: This Cask can be removed after DSL 1.0 transition,
# b/c the main Cask naked-executable.rb will be
# adopting this syntax.
url TestHelper.local_binary('naked_executable')
url TestHelper.local_binary_url('naked_executable')
homepage 'http://example.com/naked-executable'
version '1.2.3'
sha256 '306c6ca7407560340797866e077e053627ad409277d1b9da58106fce4cf717cb'
Expand Down
2 changes: 1 addition & 1 deletion test/support/Casks/naked-executable.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class NakedExecutable < TestCask
url TestHelper.local_binary('naked_executable')
url TestHelper.local_binary_url('naked_executable')
homepage 'http://example.com/naked-executable'
version '1.2.3'
sha256 '306c6ca7407560340797866e077e053627ad409277d1b9da58106fce4cf717cb'
Expand Down
2 changes: 1 addition & 1 deletion test/support/Casks/naked-pkg.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class NakedPkg < TestCask
url TestHelper.local_binary('Naked.pkg')
url TestHelper.local_binary_url('Naked.pkg')
homepage 'http://example.com/naked-pkg'
version '1.2.3'
sha256 '611c50c8a2a2098951d2cd0fd54787ed81b92cd97b4b08bd7cba17f1e1d8e40b'
Expand Down
2 changes: 1 addition & 1 deletion test/support/Casks/nested-app-dsl-one.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class NestedAppDslOne < TestCask
# todo: This Cask can be removed after DSL 1.0 transition,
# b/c the main Cask nested-app.rb will be
# adopting this syntax.
url TestHelper.local_binary('NestedApp.dmg.zip')
url TestHelper.local_binary_url('NestedApp.dmg.zip')
homepage 'http://example.com/nested-app'
version '1.2.3'
sha256 '1866dfa833b123bb8fe7fa7185ebf24d28d300d0643d75798bc23730af734216'
Expand Down
2 changes: 1 addition & 1 deletion test/support/Casks/nested-app.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class NestedApp < TestCask
url TestHelper.local_binary('NestedApp.dmg.zip')
url TestHelper.local_binary_url('NestedApp.dmg.zip')
homepage 'http://example.com/nested-app'
version '1.2.3'
sha256 '1866dfa833b123bb8fe7fa7185ebf24d28d300d0643d75798bc23730af734216'
Expand Down
2 changes: 1 addition & 1 deletion test/support/Casks/no-checksum.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class NoChecksum < TestCask
url TestHelper.local_binary('caffeine.zip')
url TestHelper.local_binary_url('caffeine.zip')
homepage 'http://example.com/local-caffeine'
version '1.2.3'
sha256 :no_check
Expand Down
2 changes: 1 addition & 1 deletion test/support/Casks/rar-container.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class RarContainer < TestCask
url TestHelper.local_binary('rarcontainer.rar')
url TestHelper.local_binary_url('rarcontainer.rar')
homepage 'http://example.com/rar-container'
version '1.2.3'
sha256 '35fb13fb13e6aefc38b60486627eff6b6b55b2f99f64bf47938530c6cf9e0a0f'
Expand Down
2 changes: 1 addition & 1 deletion test/support/Casks/sevenzip-container.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class SevenzipContainer < TestCask
url TestHelper.local_binary('sevenzipcontainer.7z')
url TestHelper.local_binary_url('sevenzipcontainer.7z')
homepage 'http://example.com/sevenzip-container'
version '1.2.3'
sha256 '1550701e7848fcb94f5b0085cca527083a8662ddeb8c0a7bc5af6bd145797cc1'
Expand Down
2 changes: 1 addition & 1 deletion test/support/Casks/stuffit-container.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class StuffitContainer < TestCask
url TestHelper.local_binary('sheldonmac.sit')
url TestHelper.local_binary_url('sheldonmac.sit')
homepage 'http://www.tobias-jung.de/seekingprofont/'
version '1.2.3'
sha256 '892b6d49a98c546381d41dec9b0bbc04267ac008d72b99755968d357099993b7'
Expand Down
2 changes: 1 addition & 1 deletion test/support/Casks/tarball.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class Tarball < TestCask
url TestHelper.local_binary('tarball.tgz')
url TestHelper.local_binary_url('tarball.tgz')
homepage 'http://example.com/tarball'
version '1.2.3'
sha256 :no_check
Expand Down
2 changes: 1 addition & 1 deletion test/support/Casks/with-alt-target.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class WithAltTarget < TestCask
url TestHelper.local_binary('caffeine.zip')
url TestHelper.local_binary_url('caffeine.zip')
homepage 'http://example.com/local-caffeine'
version '1.2.3'
sha256 '9203c30951f9aab41ac294bbeb1dcef7bed401ff0b353dcb34d68af32ea51853'
Expand Down
2 changes: 1 addition & 1 deletion test/support/Casks/with-appcast.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class WithAppcast < TestCask
url TestHelper.local_binary('caffeine.zip')
url TestHelper.local_binary_url('caffeine.zip')
homepage 'http://example.com/with-appcast'
appcast 'http://example.com/appcast.xml',
:sha256 => '9203c30951f9aab41ac294bbeb1dcef7bed401ff0b353dcb34d68af32ea51853',
Expand Down
2 changes: 1 addition & 1 deletion test/support/Casks/with-binary.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class WithBinary < TestCask
url TestHelper.local_binary('AppWithBinary.zip')
url TestHelper.local_binary_url('AppWithBinary.zip')
homepage 'http://example.com/with-binary'
sha256 'd5b2dfbef7ea28c25f7a77cd7fa14d013d82b626db1d82e00e25822464ba19e2'
version '1.2.3'
Expand Down
2 changes: 1 addition & 1 deletion test/support/Casks/with-caveats.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class WithCaveats < TestCask
url TestHelper.local_binary('caffeine.zip')
url TestHelper.local_binary_url('caffeine.zip')
homepage 'http://example.com/local-caffeine'
version '1.2.3'
sha256 '9203c30951f9aab41ac294bbeb1dcef7bed401ff0b353dcb34d68af32ea51853'
Expand Down
Loading