Commit Graph

160 Commits

Author SHA1 Message Date
Roland Walker 0c576a6012 doc: prepend vendor names to disambiguate
note as well that Casks which differ only by placement
of hyphens are somewhat ambiguous and to be avoided.
2014-03-04 08:37:25 -05:00
Roland Walker 83b8431b1d Merge pull request #3285 from rolandwalker/doc_cask_name_drop_version
doc: drop version numbers from end of Cask names
2014-03-01 06:48:39 -05:00
Roland Walker c0f434c76d doc: drop version numbers from end of Cask names 2014-02-28 11:41:33 -05:00
Roland Walker 2375c10504 doc: tweaks to CONTRIBUTING.md
- subheads so we can link directly to CONTRIBUTING.md#cask-stanzas
- clarification on naming `pkg` Casks
- fix repetitive language
2014-02-28 09:14:58 -05:00
Roland Walker 30dab022e7 Drop generic terms from ends of Canonical name 2014-02-27 08:33:23 -05:00
Roland Walker dd88c5efcb Merge pull request #3175 from rolandwalker/doc_cask_name_drop_characters
drop non-alpnanumeric chars from Canonical Name
2014-02-27 08:05:26 -05:00
Roland Walker b5f8fd0ca3 doc that vendor/upstream URLs are preferred
(unfortunately adding words to CONTRIBUTING.md again)
2014-02-26 06:42:56 -05:00
Roland Walker 8d8493b26e drop non-alpnanumeric chars from Canonical Name
following up on #2659, further steps toward an algorithmic
derivation of Canonical Name from App Name.

Also add two rules about hyphens which are implied and already
followed by every Cask.
2014-02-25 08:37:31 -05:00
Roland Walker de7a8cdcc9 doc: expand CASK_LANGUAGE_REF, shrink CONTRIBUTING
following up on #3094
- rename `THE_CASK_LANGUAGE.md` to `CASK_LANGUAGE_REFERENCE.md`
- expand `CASK_LANGUAGE_REFERENCE.md` to more fully specify the Cask DSL
- add sections: "Casks Are Ruby Classes" and "The Cask Language Is Declarative"
- import content from `FAQ.md` to `CASK_LANGUAGE_REFERENCE.md`, create multiple sections
  listing all stanzas according to category.
- document which stanzas are permitted multiple times
- add previously undocumented `before_install` and `before_uninstall`
- doc that `Hardware::CPU.is_64_bit?` (and 32-bit) are acceptable in conditionals
- doc that `:target` may contain an absolute path (this works more reliably after #3075)
- doc that `uninstall` is optional in the DSL, but required by the community
- link examples
- standardize mixed language on "stanza" over "field"
- further shrink `CONTRIBUTING.md` by deleting rarely used stanzas
  and referencing `CASK_LANGUAGE_REFERENCE.md`
2014-02-24 15:49:37 -05:00
Roland Walker 9dad8600a3 shrink CONTRIBUTING.md to 1/4 its current size
Rationale:
- lengthy CONTRIBUTING.md may itself discourage new Cask authors
- it is doubtful that everyone reads to the end, where there
  are important notes about squashing.

CONTRIBUTING.md reduced from 7947 words to 1927 words.

This was accomplished principally by spinning out "details" sections
into a new reference file `doc/THE_CASK_LANGUAGE.md`, but also by
ruthless re-organization, removal of duplication, and trimming of
phrases. Content remains 99% identical, though a few typos were
caught along the way, and a table of contents was added.
2014-02-22 14:51:55 -05:00
Paul Hinze 73d0273b98 Merge pull request #3067 from rolandwalker/organize_docs
move HACKING.md and CHANGELOG.md to doc subdir
2014-02-21 15:35:58 -06:00
Caleb Xu beab539ca3 Added clause about cases with no available stable versions 2014-02-20 21:42:29 -05:00
Roland Walker b7dcd35dab move HACKING.md and CHANGELOG.md to doc subdir 2014-02-20 19:17:02 -05:00
Caleb Xu 6c6f07c8bf Added ## Finding a Home For Your Cask
Explains the alternate `caskroom` repositories and what belongs there.
2014-02-19 16:53:05 -05:00
Roland Walker 763bbfbc2e Merge pull request #2659 from rolandwalker/cask_naming_1
doc: Canonical name == App bundle name
2014-02-19 09:52:46 -05:00
Roland Walker fbcbcd21be Merge pull request #2761 from rolandwalker/private_eye_followups
sleep during uninstall, allow `:must_succeed`
2014-02-15 07:44:33 -05:00
Roland Walker b023953def document Subversion URLs
lightly re-org the URL Details section
2014-02-14 21:26:53 -05:00
Roland Walker 45ed67c64f add :allow_untrusted modifier on install 2014-02-11 14:40:16 -05:00
Roland Walker 273a9d95b3 devscript: add command list_payload_in_pkg 2014-02-10 10:47:12 -05:00
Roland Walker de78b0f359 sleep during uninstall, allow :must_succeed
on script directives. followups from #1802. amend private-eye Cask.
2014-02-08 16:15:15 -05:00
Roland Walker 4802067e30 Merge pull request #2810 from rolandwalker/doc_devscripts
Document all developer scripts
2014-02-08 16:11:06 -05:00
Paul Hinze 1f5cc4e1e8 Merge pull request #2719 from lgarron/sha256
Change the template hash function to SHA-256.
2014-02-08 12:20:33 -06:00
Roland Walker 124f8d44a3 Document all developer scripts
Significantly rewrite "Uninstall Details" in `CONTRIBUTING.md`
2014-02-08 08:03:09 -05:00
Roland Walker 320f8a46d8 Merge pull request #2637 from rolandwalker/version_caveats
add os_version_only to caveats DSL
2014-02-06 08:25:40 -05:00
Roland Walker 34f38caf3e add os_version_only to caveats DSL 2014-02-06 08:25:17 -05:00
Lucas Garron 913f3e6f76 Change default hash to SHA-256. 2014-02-05 18:16:18 -08:00
Roland Walker bf7b16c0fd Merge pull request #2554 from rolandwalker/caveats_on_dashboard_widgets
Loud caveats against installing Dashboard Widgets
2014-02-04 15:44:53 -08:00
Roland Walker ba218993a1 Loud caveats against installing Dashboard Widgets
And doc note, pending a fix of the underlying issue.
2014-02-03 11:28:44 -05:00
Roland Walker 9445b05c4d tiny nits on new Screen Saver artifact
whitespace, filenames, orthography to be consistent with
other artifacts. No functional change.
2014-02-03 11:21:09 -05:00
Roland Walker ffe9d025a0 Merge pull request #2681 from rolandwalker/doc_uninstall_sections
doc: create specific uninstall sections
2014-01-30 16:25:43 -08:00
Roland Walker 872132f7c8 screensaver spelled screen_saver in DSL and opts 2014-01-29 11:27:44 -05:00
Fernando Paredes 8f177a81ac Merge pull request #2680 from rolandwalker/doc_xfer_contributing_fonts
move font-specific docs to the font repo
2014-01-28 08:58:08 -08:00
Roland Walker a7bdac580b doc: create specific uninstall sections
move recipes from "Good Things to Know"
2014-01-28 11:32:38 -05:00
Roland Walker d50f4d5def move font-specific docs to the font repo 2014-01-28 11:07:51 -05:00
Jonathan Dahan ca61dfdd81 Add support for screensaver artifact 2014-01-28 10:17:50 -05:00
Paul Hinze ae2d5822e1 Merge pull request #2592 from rolandwalker/arch_caveats
add arch_only to caveats mini-DSL
2014-01-28 06:29:16 -08:00
Paul Hinze 3179a55e71 Merge pull request #2391 from rolandwalker/uninstall_script_order
Defer :script uninstall, add :early_script
2014-01-28 06:20:43 -08:00
Roland Walker a807804e56 doc: Canonical name == App bundle name
There's only one substantive change in this patch, which is
that the Canonical App name is defined exactly by the name
of the App bundle on disk. The suggestion that the author's
website be consulted for orthography is removed.
2014-01-28 08:36:12 -05:00
Roland Walker 67e39804e2 Merge pull request #2636 from goxberry/how-to-find-kexts
CONTRIBUTING: Add method for finding kexts.
2014-01-28 05:27:19 -08:00
Paul Hinze a9aabf4f22 Merge pull request #2305 from rolandwalker/depends_on_brew
add dependencies for Homebrew formulae
2014-01-26 12:49:38 -08:00
Geoffrey Oxberry 7fa8e2c35c CONTRIBUTING: Add method for finding kexts.
Method based on previous experience finding bundle id(s) and
grepping through packages.
2014-01-25 19:06:46 -08:00
Will Styler ca19ed6e0a Add zip subfolder to contributing.md (squash)
Now that 'Link Details' exists, it's a great place to discuss how to handle subfolders within zip files. "relative path" is unclear in the world of zip folders, as the root isn't clear either, so an example seemed prudent. Seemed better here than in the link discussion.

Squashed from https://github.com/phinze/homebrew-cask/pull/2617
2014-01-25 14:17:32 -07:00
Roland Walker a36e4ff1d7 doc followup for link :target
Followup for #2532.
2014-01-25 13:18:53 -05:00
Roland Walker c59ba39c91 Merge pull request #2532 from voanhduy1512/symlinked
Allow customizing the application symlink
2014-01-25 09:03:51 -08:00
Roland Walker c60711ffed Merge pull request #2583 from rolandwalker/no_commas_in_link
don't use commas in artifact stanzas
2014-01-25 08:59:24 -08:00
Võ Anh Duy 2835172641 Allow customizing the application symlink 2014-01-25 23:43:12 +07:00
Roland Walker 10f2f57a69 don't use commas in artifact stanzas
- no functional changes in this patch
- preparation for interface change allowing custom
  target links in #2532
2014-01-25 08:43:14 -05:00
Roland Walker 9d2d6e3575 add arch_only to caveats mini-DSL
Relevant to points raised by @goxberry in #2581
2014-01-24 10:43:00 -05:00
Roland Walker 926067b140 Merge pull request #2584 from rolandwalker/doc_error_brackets
doc error: extraneous brackets
2014-01-24 05:40:48 -08:00
Roland Walker c7863dbac0 doc error: vagrant uninstall incorrect 2014-01-24 08:40:15 -05:00
Roland Walker 2ff2275bfb Merge pull request #2526 from goxberry/how-to-find-package-id
CONTRIBUTING: Add method for finding package ids.
2014-01-24 03:38:48 -08:00
Geoffrey Oxberry db8634c6e8 CONTRIBUTING: Add method for finding package ids.
Package IDs are contained within <pkg-info> tags within PackageInfo
files. These files can be located by unpackaging a package with
`pkgutil --expand` and then using the `find` command.
2014-01-23 23:04:17 -08:00
Roland Walker 9d439510d3 add dependencies for Homebrew Formulae
new DSL key `depends_on_formula`
2014-01-22 16:22:07 -05:00
Roland Walker 9b54342e42 indent to two spaces
This patch contains only whitespace changes, plus a short
addition to CONTRIBUTING.md on the project-wide indent style
2014-01-22 13:08:34 -05:00
Roland Walker fc2241db7a move squashing doc from HACKING to CONTRIBUTING.md 2014-01-20 17:51:08 -05:00
Roland Walker 406ae7e0bd Merge pull request #2475 from rolandwalker/doc_commits
documentation on commit messages
2014-01-20 14:43:57 -08:00
Roland Walker 329c48298a caveats first-class in DSL, gets own mini-DSL
Make caveats a first-class member of the Cask DSL.  It no longer has to
be specified with "def caveats", but can be given as "caveats do ... end"
as with after_install blocks.

In addition, create a mini-DSL which can be used within caveats blocks,
providing standard messages when manual installers must be used,
reboot-required, etc.

Add alternate form: caveats can also accept a compile-time string for
simple cases.

This is 99% compatible with old Casks, as it still works by defining
a caveats method.  However, all Casks containing caveats are cleaned
up and adapted according to the new DSL.

Full docs in CONTRIBUTING.md.
2014-01-20 11:54:46 -05:00
Roland Walker 98fc7bfde2 Merge pull request #2416 from linc01n/input-method
Implement `input_method` artifact
2014-01-20 08:44:02 -08:00
Roland Walker 4d2e520089 Defer :script uninstall, add :early_script
fixes #2254
2014-01-18 18:24:10 -05:00
Roland Walker 175f276de5 documentation on commit messages
per request from @fanquake
- expand existing content in CONTRIBUTING.md and break out into section
- add section to HACKING.md
2014-01-18 11:49:34 -05:00
Lincoln Lee cc14ebdb55 Implement `input_method` artifact 2014-01-19 00:40:56 +08:00
Roland Walker 9c2c589a7c truly trivial doc followups
- sync the docs to match some recent PRs
- formatting mistakes
- capitalization
- quoting
2014-01-18 11:38:34 -05:00
Paul Hinze bfe3af2f25 Merge pull request #2390 from rolandwalker/hacking_doc
Spin out HACKING.md from CONTRIBUTING.md
2014-01-17 16:56:48 -08:00
Roland Walker 6fd0bcbc0c Spin out HACKING.md from CONTRIBUTING.md
Create a bunch of guidelines/FAQs based on stuff gleaned from
PR discussions and IRC.  Obviously this is just a starting
point.
2014-01-16 07:02:36 -05:00
Roland Walker 81744a038d bugfix: make uninstall :script accept a hash
The indentation in CONTRIBUTING.md implies that :script accepts a hash.
But that is not the case. Instead :script accesses the entire hash defined
by uninstall.  Unrelated install keys such as :quit leak through to
@command.run! when attempting to exec :script.  Result: contrary to docs,
:script cannot be combined with other uninstall keys.

This PR makes uninstall :script accept a hash.  When :args or :input are not
needed, :script can still accept a plain string, so many Casks require no
alteration.

In addition
- adds key :executable, required when using hash argument to :script
- keys to :script are validated and sanitized before being passed to
  @command.run!
- adds :quit to with-installable.rb test to protect against regression
  on leaky keys
2014-01-11 12:20:59 -05:00
Stratos Moros 7136269198 implement `binary` artifact 2014-01-05 22:55:18 +02:00
Geoffrey Oxberry 5c92dda304 Distinguish between checking SHA-1 & SHA-256 sums
A couple casks use SHA-256 checksums. Add language to describe how to
determine those checksums in an easy way.
2014-01-04 12:11:36 -08:00
Jon Chen 1f77200ebf use shasum/sha1sum to generate sha-1 hash 2014-01-02 15:36:52 -05:00
Vítor Galvão 2518474085 corrected some namings, according to conventions 2013-12-16 15:26:00 +00:00
Paul Hinze e46b89c908 Merge pull request #2081 from leoj3n/services-support
[WIP] services support
2013-12-15 15:26:44 -06:00
Paul Hinze f271002540 document URL options 2013-12-15 14:00:43 -06:00
Joel Kuzmarski 7432affc59 services support 2013-12-13 18:13:19 -06:00
Fernando Paredes 20f5f5989d Fix Contributing layout issue 2013-12-13 14:45:08 -08:00
Paul Hinze 8870f7c1fc Merge pull request #2008 from kevinSuttle/colorpickers 2013-12-13 10:40:36 -06:00
Kevin Suttle 6dff4a35db Add support for colorpicker type 2013-12-12 22:59:58 -05:00
Johan 969fca1f83 Fixing Markdown layout error in CONTRIBUTING.md 2013-12-12 12:41:39 +01:00
Paul Hinze 356f82c65d Merge pull request #2024 from rolandwalker/uninstall_order
refine & document order of uninstall keys
2013-12-09 19:27:41 -08:00
Paul Hinze f288ac5249 Merge pull request #2023 from rolandwalker/doc_more_fields
document caveats, after_install, after_uninstall
2013-12-09 19:24:09 -08:00
Roland Walker 07b9eea19b refine & document order of uninstall keys
Proposed order - :script, :launchctl, :quit, :kext, :pkgutil, :files.  Quit
a process before attempting to unload an assocated kext, unload kext before
attempting to delete the associated file, etc.  Arguably :script fits
loically with :files near the end of the list.  However, we also have
:after_uninstall which implicitly fires immediately after :files.
Therefore, running :script early provides greater functionality.
2013-12-09 21:34:30 -05:00
Roland Walker 9ed8407265 document caveats, after_install, after_uninstall
in FAQ.md and CONTRIBUTING.md.  Also divide fields in CONTRIBUTING.md
into two sections: frequently-used and infrequently-used .
2013-12-09 19:56:25 -05:00
Roland Walker 6d05664532 add :quit key to uninstall
The applescript is divided into two commands to keep from transiently
invoking the application in the case where it is not currently running.
2013-12-09 09:23:53 -05:00
Fernando Paredes d9c77c65cb Add support for installing Widgets 2013-12-08 09:28:56 -08:00
Fernando Paredes eb32ed9304 Merge pull request #1991 from rolandwalker/font_doc
Document conventions for fonts
2013-12-07 12:19:50 -08:00
Roland Walker 7238439bfc Document conventions for fonts
Multiple faces rule per IRC with @phinze
2013-12-07 15:02:35 -05:00
Roland Walker e6630fb49e Fix documentation nits
Mostly this is spelling, capitalization, and whitespace.  One
substantive change is updating the list of fields given in FAQ.md
to match CONTRIBUTING.md.  Also incorporates suggestions from @NanoXD,
removing an old paragraph from FAQ.md re: nested containers.
2013-12-07 13:42:16 -05:00
Paul Hinze 5dba177bf1 Merge pull request #1860 from rolandwalker/fonts
add support for installing fonts
2013-12-05 18:27:02 -08:00
Fernando Paredes 7221b777a6 Update Contributing guide
Add a mention of `rake` command to use tests.

Refs #1893
2013-11-30 16:39:50 -08:00
Roland Walker 5da6e642bf add support for installing fonts 2013-11-26 08:38:43 -05:00
Fernando Paredes 26de3172a9 Merge pull request #1733 from lgarron/qlplugin
QuickLook Plugin Support
2013-11-25 16:00:10 -08:00
phinze adcffc1da3 clarify contributing symlink instructions
closes #1762
2013-11-16 17:29:02 -06:00
Lucas Garron ee30f839d2 QuickLook plugin support. 2013-11-14 20:26:07 -08:00
Scott Reeves 875ccce975 Document prefpane option 2013-11-10 17:07:37 -05:00
Scott Reeves 3e58afa00c Add docs for versions repo 2013-11-10 08:39:35 -05:00
Vítor Galvão b728c24fe9 corrected 1Password's name 2013-11-06 17:47:51 +00:00
phinze 8feec1de14 new preferred sourceforge url style
- document sf link policy
 - change audit to accept old and new style links
 - need to keep old style links for projects where the 'latest' link
   does not point to something usable
 - link to official policy in audit warning message

refs #1436
2013-11-05 22:09:15 -06:00
phinze 5f2146e009 document naming convention in contrib.md 2013-11-03 22:47:26 -06:00
Erwann Mest 0edf0c7a42 Add naming convention (discussion). 2013-10-31 23:33:29 +01:00
phinze 5d10014ba5 work on CONTRIBUTING docs a little 2013-10-19 18:04:24 -05:00
billwanjohi 251c002bdc contributing.md: symlink to taps instead of home
The rest of the contribution instructions
have people working on the clone already in brew taps.

This just updates a reference that is still pointing
to the would-be contributors' home directory.
2013-09-14 17:03:51 -05:00
Fernando Paredes 45a5176a11 Update Contributing guide
* Update Alfred.app to the latest spec
* Add Vagrant.pkg to illustrate the difference in Casks
* Add `install` and `uninstall` fields to table
2013-07-28 16:08:58 -07:00