{"id":19339033,"url":"https://github.com/librariesio/license-compatibility","last_synced_at":"2025-04-23T01:31:32.876Z","repository":{"id":56881148,"uuid":"46889612","full_name":"librariesio/license-compatibility","owner":"librariesio","description":":copyright: Check compatibility between different SPDX licenses","archived":false,"fork":false,"pushed_at":"2018-03-29T09:39:22.000Z","size":81,"stargazers_count":34,"open_issues_count":8,"forks_count":5,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-18T09:02:22.918Z","etag":null,"topics":["compatibility","librariesio","licensing","spdx-licenses"],"latest_commit_sha":null,"homepage":"https://libraries.io/github/librariesio/license-compatibility","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/librariesio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-25T21:54:43.000Z","updated_at":"2023-12-19T20:54:28.000Z","dependencies_parsed_at":"2022-08-20T22:31:18.966Z","dependency_job_id":null,"html_url":"https://github.com/librariesio/license-compatibility","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/librariesio%2Flicense-compatibility","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/librariesio%2Flicense-compatibility/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/librariesio%2Flicense-compatibility/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/librariesio%2Flicense-compatibility/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/librariesio","download_url":"https://codeload.github.com/librariesio/license-compatibility/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250352322,"owners_count":21416470,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["compatibility","librariesio","licensing","spdx-licenses"],"created_at":"2024-11-10T03:19:34.481Z","updated_at":"2025-04-23T01:31:32.528Z","avatar_url":"https://github.com/librariesio.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# License::Compatibility\n\nCheck compatibility between different SPDX licenses, used by [Libraries.io](https://libraries.io) for checking dependency license compatibility.\n\n[![Build Status](https://travis-ci.org/librariesio/license-compatibility.svg?branch=master)](https://travis-ci.org/librariesio/license-compatibility)\n[![Code Climate](https://img.shields.io/codeclimate/github/librariesio/license-compatibility.svg?style=flat)](https://codeclimate.com/github/librariesio/license-compatibility)\n[![Test Coverage](https://img.shields.io/codeclimate/coverage/github/librariesio/license-compatibility.svg?style=flat)](https://codeclimate.com/github/librariesio/license-compatibility)\n[![Code Climate](https://img.shields.io/codeclimate/issues/github/librariesio/license-compatibility.svg)](https://codeclimate.com/github/librariesio/license-compatibility/issues)\n[![license](https://img.shields.io/github/license/librariesio/license-compatibility.svg)](https://github.com/librariesio/license-compatibility/blob/master/LICENSE.txt)\n\n*n.b. I am not a lawyer and any results should be confirmed with a copyright lawyer if it's important to you.*\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'license-compatibility'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install license-compatibility\n\n## Usage\n\nOn the command-line:\n\n`license-compatibility [-h] [-v] [-l] [-r file] [args]`\n\nArguments are a list of licenses or a list of package:license couples.\nExamples:\n```\nlicense-compatibility MIT GPL-3.0 Unlicense\nlicense-compatibility my_package:ISC other_pkg:BSD-2-Clause\n```\nMixing the two formats is not allowed.\nAdditional args after a --read option are accepted.\n\nOptions:\n- **-l, --list**: Print the list of supported licenses.\n- **-r, --read FILE**: Read arguments from file.\n- **-v, --version**: Show the program version.\n- **-h, --help**: Print help message.\n\n\nIn your code:\n\n```ruby\nLicense::Compatibility.forward_compatibility('MIT', 'GPL-3.0') #=\u003e true\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/librariesio/license-compatibility. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibrariesio%2Flicense-compatibility","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flibrariesio%2Flicense-compatibility","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibrariesio%2Flicense-compatibility/lists"}