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

DSL: add license stanza #4873

Merged
merged 1 commit into from
Jun 28, 2014

Conversation

rolandwalker
Copy link
Contributor

References: #4688.

For forward-compatibility; intentionally left undocumented.

The license stanza is not free-form. There is a limited
set of valid symbols, of which the argument must be a member.
(The set will later be documented, and probably needs amendments.)

Version numbers and variants of licenses are intentionally
ommitted. The use-case for license is filtering and listing
of Casks. We want to avoid becoming a detailed repository of
application descriptions: that information can be found at the
homepage URL.

@@ -0,0 +1,42 @@
class Cask::License

VALID_LICENSES = [
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not use Set? It's faster and would ensure that there are no duplicate values. See this post

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Probably a good idea. Performance matters when an operation instantiates many Casks.

References: Homebrew#4688.

For forward-compatibility; intentionally left undocumented.

The `license` stanza is not free-form.  There is a limited
set of valid symbols, of which the argument must be a member.
(The set will later be documented, and probably needs amendments.)

Version numbers and variants of licenses are intentionally
ommitted.  The use-case for `license` is filtering and listing
of Casks. We want to avoid becoming a detailed repository of
application descriptions: that information can be found at the
`homepage` URL.
rolandwalker added a commit that referenced this pull request Jun 28, 2014
@rolandwalker rolandwalker merged commit 2c06def into Homebrew:master Jun 28, 2014
@rolandwalker rolandwalker deleted the add_license_stanza branch June 28, 2014 14:32
@rolandwalker rolandwalker mentioned this pull request Jul 31, 2014
9 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