conjurinc/pg_random_id

License missing from gemspec

Closed this issue · 6 comments

bf4 commented

Some companies will only use gems with a certain license.
The canonical and easy way to check is via the gemspec
via e.g.

spec.license = 'MIT'
# or
spec.licenses = ['MIT', 'GPL-2']

There is even a License Finder to help companies ensure all gems they use
meet their licensing needs. This tool depends on license information being available in the gemspec.
Including a license in your gemspec is a good practice, in any case.

How did I find you?

I'm using a script to collect stats on gems, originally looking for download data, but decided to collect licenses too,
and make issues for missing ones as a public service :)
https://gist.github.com/bf4/5952053#file-license_issue-rb-L13 So far it's going pretty well

Duplicate of #3

bf4 commented

Sorry for the duplicate. I missed it because of the typo licence in that issue's title. Thanks!

bf4 commented

Ok, now I should apologize for my Americo-centrism, though I really was just thinking of the spec

Perhaps we should alias the method in rubygems :) http://guides.rubygems.org/specification-reference/#license=

I think there's no need :)
It's just that I used 'licence' in the issue title as a generic noun, and not referring to the method directly.

bf4 commented

Well, thanks for the learning opportunity 👍