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

devscript: add cask_namer #3443

Merged
merged 1 commit into from
Mar 10, 2014
Merged

Conversation

rolandwalker
Copy link
Contributor

This script implements naming rules for App-based Casks
as currently documented. After some real-world testing, this
logic should be merged into brew cask create. This commit adds
doc/CASK_NAMING_REFERENCE.md, and reduces CONTRIBUTING.md by
422 words.

@vitorgalvao here is the result of our efforts. This script correctly predicts
the current names of all but 18 link-based Casks (less than 2%).

It also checks the current repo for name collisions. The logic is
idempotent in that (although the script is designed to accept App paths),
correctly formed Cask names will pass through unchanged. This is an
important criterion for any future merger with brew cask create.


The easiest way to name a Cask is to run this command:
```bash
$ /usr/local/Library/Taps/phinze-cask/developer/bin/cask_namer '/full/path/to/new/software.app'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/usr/local/Library/Taps/phinze-cask/developer/bin/cask_namer should be $(brew --prefix)/Library/Taps/phinze-cask/developer/bin/cask_namer.

@vitorgalvao
Copy link
Member

Looking good. The amount of work you’ve been putting into this is commendable.

This script implements naming rules for App-based Casks
as currently documented.  After some real-world testing, this
logic should be merged into `brew cask create`.  This commit adds
`doc/CASK_NAMING_REFERENCE.md`, and reduces `CONTRIBUTING.md` by
422 words.
@rolandwalker
Copy link
Contributor Author

"Quantity has a quality all its own".

Oh, one rule sneaked into this PR that we didn't discuss: removing trailing "app" from the name (separate from the extension .app). I forgot to bring it up in a separate issue because it did not affect any existing Cask names.

@vitorgalvao
Copy link
Member

In this case, it has been a high quantity of high quality work.

Yes, I very much agree with that (I actually thought we had discussed it).

rolandwalker added a commit that referenced this pull request Mar 10, 2014
@rolandwalker rolandwalker merged commit 58db201 into Homebrew:master Mar 10, 2014
@rolandwalker rolandwalker deleted the cask_namer branch March 10, 2014 14:33
@rolandwalker rolandwalker mentioned this pull request Mar 11, 2014
@rolandwalker rolandwalker mentioned this pull request Jun 4, 2014
87 tasks
@Homebrew Homebrew locked and limited conversation to collaborators May 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants