Spdx
A SPDX license checker
This gem allows you to find standard SPDX licenses from similar, but not exact names using FuzzyMatch to find the closest match.
Installation
Add this line to your application's Gemfile:
gem 'spdx'
And then execute:
$ bundle
Or install it yourself as:
$ gem install spdx
Usage
Spdx.find('Apache 2') # => <SpdxLicenses::License:0x007fa3a2b462c8 @id="Apache-2.0", @name="Apache License 2.0", @osi_approved=true>
Testing
Run the tests with:
$ bundle exec rake
Contributing
- Fork it ( https://github.com/librariesio/spdx/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request