Licensed
Licensed caches the licenses of dependencies and checks their status.
Licensed is available as a Ruby gem for Ruby environments, and as a self-contained executable for non-Ruby environments.
Licensed is not a complete open source license compliance solution. Please understand the important disclaimer below to make appropriate use of Licensed.
Current Status
Licensed is in active development and currently used at GitHub. See the open issues for a list of potential work.
Licensed v2
Licensed v2 includes many internal changes intended to make licensed more extensible and easier to update in the future. While not too much has changed externally, v2 is incompatible with configuration files and cached records from previous versions. Fortunately, migrating is easy using the licensed migrate command.
See CHANGELOG.md for more details on whats changed.
See the migration documentation for more info on migrating to v2, or run licensed help migrate.
Installation
With a Gemfile
Add this line to your application's Gemfile:
gem 'licensed', :group => 'development'And then execute:
$ bundleAs an executable
Download a package from GitHub and extract the executable. Executable packages are available for each release starting with version 1.2.0.
$ curl -sSL https://github.com/github/licensed/releases/download/<version>/licensed-<version>-<os>-x64.tar.gz > licensed.tar.gz
$ tar -xzf licensed.tar.gz
$ rm -f licensed.tar.gz
$ ./licensed listFor system wide usage, install licensed to a location on $PATH, e.g. /usr/local/bin.
Dependencies
Licensed uses the the libgit2 bindings for Ruby provided by rugged. rugged has its own dependencies - cmake and pkg-config - which you may need to install before you can install Licensed.
For example, on macOS with Homebrew: brew install cmake pkg-config and on Ubuntu: apt-get install cmake pkg-config.
Usage
licensed list: Output enumerated dependencies only.licensed cache: Cache licenses and metadata.licensed status: Check status of dependencies' cached licenses. For example:licensed version: Show current installed version of Licensed. Aliases:-v|--version
See the commands documentation for additional documentation, or run