Skip to content
Please note that GitHub no longer supports Internet Explorer.

We recommend upgrading to the latest Microsoft Edge, Google Chrome, or Firefox.

Learn more
A Ruby gem to cache and verify the licenses of dependencies
Branch: master
Clone or download
jonabc Merge pull request #149 from github/less-errors-again
Don't raise errors on empty dependency paths unless caching records
Latest commit 3780ceb Feb 18, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docker
docs port #134 Feb 9, 2019
exe v1.0.0 Feb 20, 2018
lib
script
test
.gitignore Merge branch 'master' into v2 Feb 9, 2019
.rubocop.yml
.ruby-version
.travis.yml
CHANGELOG.md
CODE_OF_CONDUCT.md
CONTRIBUTING.md
Gemfile v1.0.0 Feb 20, 2018
LICENSE
README.md
Rakefile move sources tests Oct 29, 2018
licensed.gemspec update licensee requirement Feb 13, 2019

README.md

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

Build 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:

$ bundle

As 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 list

For 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