Browse Source

Merge pull request #385 from jamesaanderson/cask-template

Update cask template with shortened link syntax
Vítor Galvão 12 years ago
parent
commit
d933cf3b32
  1. 6
      CONTRIBUTING.md
  2. 2
      lib/cask/cli/create.rb
  3. 2
      test/cli/create_test.rb

6
CONTRIBUTING.md

@ -28,7 +28,7 @@ class Alfred < Cask
homepage 'http://www.alfredapp.com/'
version '1.3.2_265'
sha1 'e10f15a0ae758cae2a22557f14890fa5989260ce'
link :app, 'Alfred.app'
link 'Alfred.app'
end
```
@ -49,7 +49,7 @@ class MyNewCask < Cask
homepage ''
version ''
sha1 ''
link :app, ''
link ''
end
```
@ -68,7 +68,7 @@ Fill in the following fields for your Cask:
* In order to find out the checksum for the file, the easiest way is to leave
it blank and attempt installation. The checksum will fail and tell you what the
real sha1 should be.
* You can specify `link :app, :none` if no files should be linked
* You can specify `link :none` if no files should be linked
* If the application does not have versioned downloads, you can skip the
checksum by specifying `no_checksum`, which takes no arguments
* We have some conventions for projects without version-specific URLs. `latest`

2
lib/cask/cli/create.rb

@ -22,7 +22,7 @@ module Cask::CLI::Create
homepage ''
version ''
sha1 ''
link :app, ''
link ''
end
EOS
end

2
test/cli/create_test.rb

@ -44,7 +44,7 @@ describe Cask::CLI::Create do
homepage ''
version ''
sha1 ''
link :app, ''
link ''
end
TEMPLATE
end

Loading…
Cancel
Save