gitlab-license-finder-6.14.2.1/0000755000175100017510000000000014172736724015135 5ustar pravipravigitlab-license-finder-6.14.2.1/.gitignore0000644000175100017510000000032014172736724017120 0ustar pravipravi.bundle .gradle/ .idea/ .pairs .rvmrc Gemfile.lock pkg/* tmp/ features/fixtures/maven-wrapper/target *~ features/fixtures/sbt/target features/fixtures/sbt/project/target features/fixtures/sbt/project/project gitlab-license-finder-6.14.2.1/Rakefile0000644000175100017510000000457514172736724016615 0ustar pravipravi# frozen_string_literal: true require 'bundler' Bundler::GemHelper.install_tasks require './lib/license_finder/platform' require 'rspec/core/rake_task' desc 'Run all specs in spec/' RSpec::Core::RakeTask.new(:spec) do |t| t.fail_on_error = true t.pattern = './spec/**/*_spec.rb' t.rspec_opts = %w[--color] end namespace :features do desc 'Run test tagged \'focus\'' RSpec::Core::RakeTask.new(:focus) do |t| t.fail_on_error = true t.pattern = './features/**/*_spec.rb' opts = %w[--color --format d --tag focus] opts += LicenseFinder::Platform.darwin? ? [] : %w[--tag ~ios] t.rspec_opts = opts end end desc 'Run all specs in features/' RSpec::Core::RakeTask.new(:features) do |t| t.fail_on_error = true t.pattern = './features/**/*_spec.rb' opts = %w[--color --format d] opts += LicenseFinder::Platform.darwin? ? [] : %w[--tag ~ios] t.rspec_opts = opts end desc 'Check for non-Ruby development dependencies.' task :check_dependencies do require './lib/license_finder' satisfied = true LicenseFinder::Scanner::PACKAGE_MANAGERS.each do |package_manager| satisfied = false unless package_manager.new(project_path: Pathname.new('')).installed?(LicenseFinder::Logger.new(LicenseFinder::Logger::MODE_INFO)) end STDOUT.flush exit 1 unless satisfied end desc 'Configure LF and LF PR pipeline' task :update_pipeline, [:slack_url, :slack_channel] do |_, args| slack_url = args[:slack_url] slack_channel = args[:slack_channel] unless slack_url || slack_channel puts 'Warning: skipping slack notifications setup' puts 'Warning: You should provide slack channel and url to receive slack notifications on build failures' end ruby_versions = %w[2.7.1 2.6.5 2.5.7 2.4.9 2.3.8 jruby-9.2.14.0] params = [] params << "ruby_versions=#{ruby_versions.join(',')}" params << "slack_url=#{slack_url}" if slack_url params << "slack_channel=#{slack_channel}" if slack_channel vars = params.join(' ') cmd = "bash -c \"fly -t osl set-pipeline -n -p LicenseFinder --config <(erb #{vars} ci/pipelines/release.yml.erb)\"" system(cmd) cmd = "bash -c \"fly -t osl set-pipeline -n -p LicenseFinder-pr --config <(erb #{vars} ci/pipelines/pull-request.yml.erb)\"" system(cmd) end task default: %i[spec features] task spec: :check_dependencies task features: :check_dependencies task 'spec:focus': :check_dependencies task 'features:focus': :check_dependencies gitlab-license-finder-6.14.2.1/CONTRIBUTING.md0000644000175100017510000001100514172736724017363 0ustar pravipravi# Contributing ## TL;DR * Fork the project from https://github.com/pivotal/LicenseFinder * Create a feature branch. * Make your feature addition or bug fix. Please make sure there is appropriate test coverage. * Rebase on top of master. * Send a pull request with commit messages tagged with an entry specified here: https://keepachangelog.com/en/1.0.0/. ## Running Tests You can use the [LicenseFinder docker image](https://hub.docker.com/r/licensefinder/license_finder/) to run the tests by using the `dlf` script. There are 2 sets of tests to run in order to confirm that License Finder is working as intended: ``` ./dlf rake spec ./dlf bundle exec rake features ``` The `spec` task runs all the unit test and the `features` task will run all the feature test. Note that the feature test needs to be wrapped in `bundle exec`, or else it will use the gem version installed inside the docker image. ## Useful Tips To build the docker image simply call `docker build .` or explicitly pass the `Dockerfile`. Prebuilt versions of the dockerfile can also be found on [Dockerhub](https://hub.docker.com/r/licensefinder/license_finder/tags/). To launch the docker image and interact with it via bash: ``` docker run -v $PWD:/scan -it licensefinder/license_finder /bin/bash -l ``` `-v $PWD:/scan` will mount the current working directory to the /scan path. ## Adding Package Managers There are a few steps to adding a new package manager. The main things which need to be implemented are mentioned in [Package Manager](https://github.com/pivotal/LicenseFinder/blob/master/lib/license_finder/package_manager.rb). [Here](https://github.com/pivotal/LicenseFinder/compare/v2.0.0...v2.0.1) is how support was added for `rebar`, an `erlang` package manager. There are feature tests and unit tests for each currently supported package manager. * [Feature test example](https://github.com/pivotal/LicenseFinder/blob/master/features/features/package_managers/gvt_spec.rb) * [Unit test example](https://github.com/pivotal/LicenseFinder/blob/master/spec/lib/license_finder/package_managers/gvt_spec.rb) ## Adding Licenses Add new licenses to `lib/license_finder/license/definitions.rb`. There are existing tools for matching licenses; see, for example, the MIT license, which can be detected in many different ways. ## Adding Reports If you need `license_finder` to output additional package data, consider submitting a pull request which adds new columns to `lib/license_finder/reports/csv_report.rb`. It is also possible to generate a custom report from an ERB template. Use this [example](https://github.com/pivotal/LicenseFinder/blob/master/examples/custom_erb_template.rb) as a starting point. These reports will have access to the helpers in [`LicenseFinder::ErbReport`](https://github.com/pivotal/LicenseFinder/blob/master/lib/license_finder/reports/erb_report.rb). If you need a report with more detailed data or in a different format, we recommend writing a custom ruby script. This [example](https://github.com/pivotal/LicenseFinder/blob/master/examples/extract_license_data.rb) will get you started. If you come up with something useful, consider posting it to the Google Group [license-finder@googlegroups.com](license-finder@googlegroups.com). ## Development Dependencies To successfully run the test suite, you will need the following installed: - NPM (requires Node) - Yarn (requires Node) - Bower (requires Node and NPM) - Maven (requires Java) - Gradle (requires Java) - Pip (requires python) - Rebar (requires erlang) - GoDep, GoWorkspace, govendor, Glide, Dep, and Gvt (requires golang) - CocoaPods (requires ruby) - Bundler (requires ruby) - Carthage (requires homebrew) - Mix (requires Elixir) - Conan - NuGet - dotnet - Conda (requires python) The [LicenseFinder docker image](https://hub.docker.com/r/licensefinder/license_finder/) already contains these dependencies. If you run `rake check_dependencies`, you'll see exactly which package managers you're missing. ### Python For the python dependency tests you will want to have virtualenv installed, to allow pip to work without sudo. For more details, see this [post on virtualenv][]. [post on virtualenv]: http://hackercodex.com/guide/python-development-environment-on-mac-osx/#virtualenv You'll need a pip version >= 6.0. ### JRuby If you're running the test suite with jruby, you're probably going to want to set up some environment variables: ``` JAVA_OPTS='-client -XX:+TieredCompilation -XX:TieredStopAtLevel=1' JRUBY_OPTS='-J-Djruby.launch.inproc=true' ``` ### Gradle You'll need a gradle version >= 1.8. gitlab-license-finder-6.14.2.1/release/0000755000175100017510000000000014172736724016555 5ustar pravipravigitlab-license-finder-6.14.2.1/release/instructions.md0000644000175100017510000000046114172736724021644 0ustar pravipravi## Release Releasing involves building a package, tagging its version on github and pushing it to http://rubygems.org. Like other gems, you can build, tag and release `license_finder` with `rake release`. You may want to run `rake -T` before releasing to confirm you are releasing the correct version. gitlab-license-finder-6.14.2.1/TODO.md0000644000175100017510000000035514172736724016227 0ustar pravipravi# immediate # architecture # renamings, etc. - classes under `package_managers` should be in a PackageManagers module - `license_names_from_standard_spec` should be the default instance method # docs - specify gradle version >= 1.8 gitlab-license-finder-6.14.2.1/VERSION0000644000175100017510000000001114172736724016175 0ustar pravipravi6.14.2.1 gitlab-license-finder-6.14.2.1/appveyor.yml0000644000175100017510000000070314172736724017525 0ustar pravipravienvironment: HOME: $(HOMEDRIVE)$(HOMEPATH) GOPATH: $(HOME)\go PATH: $(PATH);$(GOPATH)\bin;$(HOME)\rebar;$(HOME)\gradle\bin install: - bundle install build_script: - rake build # Prerequisites for running tests. before_test: - rake install - bash --login -c "ci/install_godep.sh" - bash --login -c "ci/install_bower.sh" - bash --login -c "ci/install_rebar.sh" - bash --login -c "ci/install_gradle.sh" test_script: - rake spec gitlab-license-finder-6.14.2.1/.force-build0000644000175100017510000000000014172736724017317 0ustar pravipravigitlab-license-finder-6.14.2.1/examples/0000755000175100017510000000000014172736724016753 5ustar pravipravigitlab-license-finder-6.14.2.1/examples/custom_erb_template.rb0000755000175100017510000000135014172736724023337 0ustar pravipravi#!/usr/bin/env ruby # frozen_string_literal: true require 'rubygems' require 'bundler/setup' # This is an example of how to programatically generate a report using a custom # ERB template. Run with # > bundle install # > ./custom_erb_template.rb require 'license_finder' # See lib/license_finder/core.rb for more configuration options. # A quiet logger is required when running reports... lf = LicenseFinder::Core.new(LicenseFinder::Configuration.with_optional_saved_config(logger: :quiet)) # Find many more examples of complex ERB templates in # lib/license_finder/reports/templates/ template = Pathname.new('./sample_template.erb') print LicenseFinder::ErbReport .new(lf.acknowledged, project_name: lf.project_name) .to_s(template) gitlab-license-finder-6.14.2.1/examples/extract_license_data.rb0000755000175100017510000000501314172736724023447 0ustar pravipravi#!/usr/bin/env ruby # frozen_string_literal: true require 'rubygems' require 'bundler/setup' # This is an example of how to programatically extract the information that # LicenseFinder has about packages and their licenses. # > bundle install # > ./extract_license_data.rb require 'license_finder' # See lib/license_finder/core.rb for more configuration options. # A quiet logger is required when running reports... lf = LicenseFinder::Core.new(LicenseFinder::Configuration.with_optional_saved_config(logger: :quiet)) # Groups of packages lf.acknowledged # All (non-ignored) packages license_finder is tracking lf.unapproved # The packages which have not been approved or permitted lf.restricted # The packages which have been restricted # Package details lf.acknowledged.each do |package| # Approvals package.approved? # Whether the package has been approved manually or permitted package.approved_manually? package.permitted? package.restricted? # Licensing # The set of licenses, each of which has a name and url, which # license_finder will report for this package. package.licenses # Additional information about how these licenses were chosen # (from decision, from spec, from files, or none-found). See # LicenseFinder::Licensing and LicenseFinder::Activation package.activations # The files that look like licenses, found in the package's # directory. Caveat: if a package's licenses were specified by a decision or # by the package's spec, the license_files will be ignored. That means, # package.licenses may report different licenses than those found in # license_files. package.license_files package.license_files.each do |file| # The license found in this file. file.license # The text of the file. Sometimes this will be an entire README file, # because license_finder has found the phrase "is released under the # MIT license" in it. file.text end package.licensing.activations_from_decisions # If license_finder only knew about decisions, what licenses would it report? package.licensing.activations_from_spec # If license_finder only knew about package specs, what licenses would it report? package.licensing.activations_from_files # If license_finder only knew about package files, what licenses would it report? package.licensing.activations_from_files.each do |activation| # Each activation groups together all files that point to the same license. # Each file contains its #license and #text. activation.license activation.files end end gitlab-license-finder-6.14.2.1/examples/Gemfile0000644000175100017510000000013614172736724020246 0ustar pravipravi# frozen_string_literal: true source 'https://rubygems.org' gem 'license_finder', path: '..' gitlab-license-finder-6.14.2.1/examples/sample_template.erb0000644000175100017510000000022614172736724022621 0ustar pravipraviLicenses <%= dependencies.size %> total <% grouped_dependencies.each do |license_name, group| -%> * <%= group.size %> <%= license_name %> <% end %> gitlab-license-finder-6.14.2.1/bin/0000755000175100017510000000000014172736724015705 5ustar pravipravigitlab-license-finder-6.14.2.1/bin/license_finder0000755000175100017510000000015414172736724020604 0ustar pravipravi#!/usr/bin/env ruby # frozen_string_literal: true require 'license_finder' LicenseFinder::CLI::Main.start gitlab-license-finder-6.14.2.1/bin/license_finder_pip.py0000755000175100017510000000245114172736724022105 0ustar pravipravi#!/usr/bin/env python import json import sys try: from pip._internal.req import parse_requirements except ImportError: from pip.req import parse_requirements try: # since pip 19.3 from pip._internal.network.session import PipSession except ImportError: try: # since pip 10 from pip._internal.download import PipSession except ImportError: from pip.download import PipSession from pip._vendor import pkg_resources from pip._vendor.six import print_ reqs = [] for req in parse_requirements(sys.argv[1], session=PipSession()): try: if req.req is not None and (req.markers is None or req.markers.evaluate()): reqs.append(pkg_resources.Requirement.parse(str(req.req))) except AttributeError: # Since pip 20.1 (pip now takes care of markers at the resolve step) if req.requirement is not None: reqs.append(pkg_resources.Requirement.parse(str(req.requirement))) transform = lambda dist: { 'name': dist.project_name, 'version': dist.version, 'location': dist.location, 'dependencies': list(map(lambda dependency: dependency.project_name, dist.requires())), } packages = [transform(dist) for dist in pkg_resources.working_set.resolve(reqs)] print_(json.dumps(packages)) gitlab-license-finder-6.14.2.1/CHANGELOG.md0000644000175100017510000012640714172736724016760 0ustar pravipravi# [6.14.2] / 2021-10-27 ### Added * Zlib License - [0f004b52](https://github.com/pivotal/LicenseFinder/commit/0f004b528d436b4d53db8bd373ede0594c07d9e8) - blooper05 # [6.14.1] / 2021-06-25 First two commit were supposed to show up in v6.14.0, but GPG bug prevented a correct build. Therefore, a follow up patch build was made to include the GPG fix. ### Changed * Upgrade Docker image to use Ubuntu Bionic [#178471230] [1c12588c](https://github.com/pivotal/LicenseFinder/commit/1c12588cceecb8b7350d090c85b519b24bcc6682) * Update the default timezone to GMT [#178471230] - [9fcab84](https://github.com/pivotal/LicenseFinder/commit/9fcab84605cda81e7f276d3c567d14409e371333) * Use local copy of Swift puglic GPG keys [#178674224] - [4db4b3e](https://github.com/pivotal/LicenseFinder/commit/4db4b3e5980ca52019549d74da574a2342a7846e) ### Added * Added --npm_options option to customize npm behavior. [b8457a62](https://github.com/pivotal/LicenseFinder/commit/b8457a62e7b531294934364d1e5f72cd78a7686a) - Alexander-Malott ### Security * Fix issue where commands could be injected running on Cocoapods projects. [b0a61a2d](https://github.com/pivotal/LicenseFinder/commit/b0a61a2d833921c714cc39cdda8ba80af3f33d04) Thanks to Joern SchneeweiszStaff Security Engineer, Security Research | GitLab for raising the issue # [6.13.0] / 2021-04-27 ### Fixed * Ignore packages with nil modules - [4eca0ec1](https://github.com/pivotal/LicenseFinder/commit/4eca0ec15dc6266afa48b74b3742278351246eb8) # [6.12.2] / 2021-04-14 ### Changed * exit when go mod list command fails - [fcf1f707](https://github.com/pivotal/LicenseFinder/commit/fcf1f7076dee2ff730e3c8b608381aca22de0e92) - Jeff Jun # [6.12.1] / 2021-04-12 # [6.12.0] / 2021-03-05 ### Added * Provide homepage information for GoDep and Go15Vendor package managers - [bae1bda9](https://github.com/pivotal/LicenseFinder/commit/bae1bda9d76cb922405d7efca9c67e2583db70d4) - Jeff Jun # [6.11.0] / 2021-03-04 ### Added * Add homepage for go_modules package manager - [912394a8](https://github.com/pivotal/LicenseFinder/commit/912394a8a6ab4c31b6918a21da9f37d5b368ed6b) # [6.10.1] / 2021-01-08 # [6.10.0] / 2020-11-27 # [6.9.0] / 2020-10-05 ### Changed * to recognize permitted licenses with AND in the name [#173997648] - [eab14250](https://github.com/pivotal/LicenseFinder/commit/eab14250d188153f8c2b0b5c0191fec19bcddf55) - Raymond Lee # [6.8.2] / 2020-09-08 # [6.8.1] / 2020-08-13 # [6.8.0] / 2020-08-06 # [6.7.0] / 2020-07-23 # [6.6.2] / 2020-07-09 ### Added * support for rebar3 - [b20e7444](https://github.com/pivotal/LicenseFinder/commit/b20e7444c147d8dbfa46eb4e8e549e03be751e02) - Jeff Jun * Support for Go modules projects outside of the current working directory - [56b3bec6](https://github.com/pivotal/LicenseFinder/commit/56b3bec632b3884ce4cad538742b4a13c55fd7c5) ### Changed * Change Go modules to only report imported packages (as with other Go package managers) - [34361fda](https://github.com/pivotal/LicenseFinder/commit/34361fdab2dc3f197f7aec6408175018dee3b453) and [dffae4ab](https://github.com/pivotal/LicenseFinder/commit/dffae4ab95e34115b6a54bf681fc0966a8611f01) * Detect Go modules based on `go.mod` (instead of `go.sum`) - [667f6be7](https://github.com/pivotal/LicenseFinder/commit/667f6be716504a53ccc2824daae08af085566546) ### Fixed * handle empty case for mix dependencies [#173637843] - [fc34b281](https://github.com/pivotal/LicenseFinder/commit/fc34b2813925a709addde675849e199b05fc4a23) - Jeff Jun ### Removed * support for rebar2 [#173637980] - [b20e7444](https://github.com/pivotal/LicenseFinder/commit/b20e7444c147d8dbfa46eb4e8e549e03be751e02) - Jeff Jun * Removed the unnecessary prepare command for Go modules - [284cc5c8](https://github.com/pivotal/LicenseFinder/commit/284cc5c821270a6e56275e32bac836a3e451f46b) # [6.6.1] / 2020-06-30 ### Changed * Handle multiple solution files for nuget [#173021333] - [040d9559](https://github.com/pivotal/LicenseFinder/commit/040d9559a4bda07490255cc34c1a7891081bc511) * matches license names from pypi api call with known licenses to avoid returning misformatted licenses [#173421573] - [6b96d746](https://github.com/pivotal/LicenseFinder/commit/6b96d74600034abcacee6ed2b322aa3abfaa0992) - Jeff Jun * Update Nuget Package Manager prepare command - [6ac07066](https://github.com/pivotal/LicenseFinder/commit/6ac070668955bc034da1647658440ce5bb0d9bd2) - Jason Smith # [6.6.0] / 2020-06-22 # [6.5.0] / 2020-06-01 ### Added * Support legacy nuget projects [#172950097] - [0cccbcf9](https://github.com/pivotal/LicenseFinder/commit/0cccbcf9aa92f4297ef0174242bdb19da1babc65) ### Changed * Upgrade to golang 1.14.3. Update dotnet-sdk to 3.1 - [0969e98f](https://github.com/pivotal/LicenseFinder/commit/0969e98fde4a82f8931601baa4dd96dc01300a14) # [6.4.0] / 2020-05-22 Big shout out to @forelabs for introducing many new features and improvements for this release. Thanks again!! ### Added * Introducing new inherited_decisions command - [3453feb](https://github.com/pivotal/LicenseFinder/commit/3453feb659a6c3c6e5aa444e3755ddd5d32f3664) - Sven Dunemann * Decision Applier: Merge manual and system packages - [c690532](https://github.com/pivotal/LicenseFinder/commit/c690532ec8addab16bef4edd390f05ceb353435f) - Sven Dunemann * Introduce package_url to packages - [18972f7](https://github.com/pivotal/LicenseFinder/commit/18972f7b3a04340e1b7bb560780130b68696b8a2) - Sven Dunemann * Add --write-headers option for csv exports - [18e01f8](https://github.com/pivotal/LicenseFinder/commit/18e01f8728a9dc525d7567292cc1e2f390ec854d) - Sven Dunemann * Yarn: Add authors & install_path - [08a0f67](https://github.com/pivotal/LicenseFinder/commit/08a0f67837a218231217767561f2282c1b3a890a) - Sven Dunemann * install path for nuget dependencies [#172251374] - [ad73c946](https://github.com/pivotal/LicenseFinder/commit/ad73c946113846f8f548adfc73542aebb3763175) - Jeff Jun * new Rubocop cops - [c4cc6b8b](https://github.com/pivotal/LicenseFinder/commit/c4cc6b8b13273db17b65cecaf24c9053e4989ea1) - Jeff Jun ### Fixed * Separate lines in license text with LF when exported to JSON - [baddb976](https://github.com/pivotal/LicenseFinder/commit/baddb976e7a8683c5cc320eddc8c2712dfb16c15) - Robert Huitl ### Changed * Go15VendorExperiment: Detect go only if vendor includes go files - [0f8e609](https://github.com/pivotal/LicenseFinder/commit/0f8e609f0921937c6187deccd80e4bc4b7d67ee4) - Sven Dunemann * Bump PHP version to 7.4 - [cbe45c5](https://github.com/pivotal/LicenseFinder/commit/cbe45c5cdb3ec200ea215086a3b3eb879e83222a) - Yivan * Significantly improve the license text matching file to be more dynamic - [acf5705](https://github.com/pivotal/LicenseFinder/commit/acf570573b4a2414d9c43212dea5d4ecb157319e) * Update Ruby version to 2.7.1 [#172295831] - [475e2948](https://github.com/pivotal/LicenseFinder/commit/475e2948ec1ad859aee59e77aa9ce2a51e1a5029) # [6.3.0] / 2020-05-06 ### Added * OFL License - [d475bbb1](https://github.com/pivotal/LicenseFinder/commit/d475bbb1380e217f154f262caaa73c12f5b9792b) - Sven Dunemann * WTFPL License - [ec629170](https://github.com/pivotal/LicenseFinder/commit/ec6291702c28789a33478041dbf6524d603c12ff) - Sven Dunemann * Find the install path for sbt, cargo and composer [#171649609] - [0d525cbf](https://github.com/pivotal/LicenseFinder/commit/0d525cbf5208db5a977f2f3d922d07b5ea6a8b16) ### Changed * Bump PHP version to 7.3 - [1c3c3271](https://github.com/pivotal/LicenseFinder/commit/1c3c3271b977a6c8d24e4159a6b8098a51086522) * Remove +compatible in Go package versions [#171754392] - [5cba5801](https://github.com/pivotal/LicenseFinder/commit/5cba5801f4f276482f01bfeea46fde0dbbcce7b1) ### Fixed * Fixed Maven Package manager Groups check - [5058d90](https://github.com/pivotal/LicenseFinder/commit/5058d90246a25ca15c72e0eed8e19ebbf7e39998) - Ravi Soni * GoModules: fix compute with vendor mod - [067eb19](https://github.com/pivotal/LicenseFinder/commit/067eb1916ce024039631bdbd4114ababa6c02c3a) - forelabs * Do not set Bundle path. Bundler will figure it out. - [6319a7a](https://github.com/pivotal/LicenseFinder/commit/6319a7a281bd9cc997c08c903674ab51fcc6545e) - mvz # [6.2.0] / 2020-04-07 ### Fixed * Break dependency of specs on released license_finder gem - [ef69fa00](https://github.com/pivotal/LicenseFinder/commit/ef69fa00deb7a8f8ebd74312afa9f130be2d9fda) - Matijs van Zuijlen * Replace toml parser with tomlrb - [8b9b34b4](https://github.com/pivotal/LicenseFinder/commit/8b9b34b48d5bdadc679c0d072117b092d080fb81) - Matijs van Zuijlen ### Changed * Run glide install in folder containing glide.lock - [cec3ff47](https://github.com/pivotal/LicenseFinder/commit/cec3ff4759f1c06df2cd0c39ac8004fcd156a6e6) - Jeff Jun * specify path for bundle install [#168042947] - [431355dc](https://github.com/pivotal/LicenseFinder/commit/431355dc1d0172c65444d2f4bcb5b4416fc52af7) # [6.1.2] / 2020-03-16 # [6.1.0] / 2020-02-21 ### Fixed * Testing dsl now correctly creates gem project - [6158d767](https://github.com/pivotal/LicenseFinder/commit/6158d76758f4232f3efd652729a83aa632a67dee) - Jeff Jun ### Changed * Upgrade golang version to 1.13.3 - [51ecbcbc](https://github.com/pivotal/LicenseFinder/commit/51ecbcbc7992366c1baed2e8b805a7f820f70160) * Uses correct package management command for pip based on options that are passed in - [3f4034ab](https://github.com/pivotal/LicenseFinder/commit/3f4034ab3479da23088174ad8cf56828b3cda9ad) # [6.0.0] / 2020-01-22 ### Added * License Finder now recognizes pip requirement markers - [99fbc184](https://github.com/pivotal/LicenseFinder/commit/99fbc18463ef45f920ad506a72dc0b3a93d0f5bf) - Jason Smith * Add ruby 2.7.0 and update to latest patch levels - [65efe96](https://github.com/pivotal/LicenseFinder/commit/65efe96aeef600a398f1465c01ed28b51bda456a) - mokhan * Add support for Pipfile.lock - [566fb39c](https://github.com/pivotal/LicenseFinder/commit/566fb39c4077fb5271707a94894998a585cde8dd) - mokhan ### Fixed * Bundler ignored groups failure - [bf2c03e3](https://github.com/pivotal/LicenseFinder/commit/bf2c03e375e91e8418967a593362313487f2f0d0) * No longer crashes when python package requirement is missing - [80e4b360](https://github.com/pivotal/LicenseFinder/commit/80e4b360b95de126e7dc139c25de56c948a01f1e) - Jason Smith * Longest common paths returning incorrect single directory [#169276334] - [f1d5423b](https://github.com/pivotal/LicenseFinder/commit/f1d5423b04f892d1d1e0595993c9bebb0a7c1b6d) * python 2 projects using incorrect CLI command - [5655f60e](https://github.com/pivotal/LicenseFinder/commit/5655f60e671dc4c247bb05138ed35b05cda9cdc7) ### Changed * Bump jdk version to 13 - [74c9aca6](https://github.com/pivotal/LicenseFinder/commit/74c9aca6358c9dd9262790edbba2e42e84b58bd9) - Debbie Chen * Bump sbt version to 1.3.3 with java 12 - [d825599a](https://github.com/pivotal/LicenseFinder/commit/d825599a9b1ac12d874eda66c17bc877bb9af555) - Debbie Chen * Bump to openjdk 11 - [499f8ab3](https://github.com/pivotal/LicenseFinder/commit/499f8ab3af7cd8ca37e429f2ed78323ad796d123) - Debbie Chen * Bump to openjdk 12 - [09c781a7](https://github.com/pivotal/LicenseFinder/commit/09c781a70787d9461722d5d03d1bc624b644311a) - Debbie Chen * Bundler prepare commands with now exclude dependencies in the ignored groups [#169611326] - [e58b2870](https://github.com/pivotal/LicenseFinder/commit/e58b2870b64d2c88be7027b152a423fdb921baca) * Change version to be required for dependency add and updated cli options [#168705017] - [b10383d3](https://github.com/pivotal/LicenseFinder/commit/b10383d3d1990b6ad0d608044511352f13924be3) - Debbie Chen * Ensure composer always installs the packages - [70b5e7a](https://github.com/pivotal/LicenseFinder/commit/70b5e7a42943c85bbd1d2825b2ffe94eec89020f) - kaystrobach * **BREAKING:** Replaced whitelist/blacklist terminology with permitted_licenses/restricted_licenses - [a40b22f](https://github.com/pivotal/LicenseFinder/commit/a40b22fda11b3a0efbb3c0a021381534bc998dd9) - grantbdev ### Deprecated * Remove support for jruby 9.1* [#169590215] - [81e75f8c](https://github.com/pivotal/LicenseFinder/commit/81e75f8cd61ca35e30562352dee2579b1b6c991e) # [5.11.1] / 2019-11-05 ### Fixed * Crash when gradle runs with project roots recursive [#169465210] - [08e0df85](https://github.com/pivotal/LicenseFinder/commit/08e0df857c7fa4273eb6e2e4a7c01bb46550a91f) ### Changed * Bump docker ruby version to 2.6.5 [#169539985] - [26b6d4b2](https://github.com/pivotal/LicenseFinder/commit/26b6d4b25133fa50dbf92265a20bed2350305245) * Gradle version updated to 5.6.4 - [9e32228f](https://github.com/pivotal/LicenseFinder/commit/9e32228fae3dacae38e7827946a0e0412a20ccb0) # [5.11.0] / 2019-10-24 ### Fixed * Fix crash in LF for null deps in godep - [aec335e5](https://github.com/pivotal/LicenseFinder/commit/aec335e574b65c1e9927787e88fb95f1296cdd26) ### Changed * Exclude Gradle subprojects from project roots - [4efea4c8](https://github.com/pivotal/LicenseFinder/commit/4efea4c8892f48c24ed6ec46a4be85cb06dc6672) - Jason Smith * project_roots will skip maven subprojects - [61b88513](https://github.com/pivotal/LicenseFinder/commit/61b885135bd02cf2b5c6be4bc1fba85020d42f6a) - Peter Tran # [5.10.2] / 2019-09-03 ### Added * Added bzr app to image - [8fd43f01](https://github.com/pivotal/LicenseFinder/commit/8fd43f01a5de575596c92bcfc38a5e9ba7bf6b3d) # [5.10.1] / 2019-08-28 ### Fixed * Mix bailing early when elixir is not installed - [13b120e](https://github.com/pivotal/LicenseFinder/commit/13b120ed7c121243be987f449cc29d00ec6e6450) # [5.10.0] / 2019-08-26 ### Changed * Dotnet projects only detected if csproj is at root level - [b9f810d](https://github.com/pivotal/LicenseFinder/commit/b9f810d96f92f458fcfe4855307fdddfb7f1082b) * sha for composer-setup.php - [64b782a](https://github.com/pivotal/LicenseFinder/commit/64b782a137a287980a317fcb48f595b6e93f85d0) - Debbie Chen # [5.9.2] / 2019-07-02 ### Changed * Bump ruby version to 2.6.3 - [dcdcc1c](https://github.com/pivotal/LicenseFinder/commit/dcdcc1c3e4fd29ec4d180a54fb67b2aa07e932de) # [5.9.1] / 2019-06-10 # [5.9.0] / 2019-06-10 ### Added * composer PHP support - [c671309](https://github.com/pivotal/LicenseFinder/commit/c671309d89c54a4dfac3ac40aab1bf70e3c3f6a2) * composer support - [13ecaab](https://github.com/pivotal/LicenseFinder/commit/13ecaab7ee55c95ca973b74950fb10c3daea0784) - Zachary Knight * --homepage option to `dependencies add` - [b7f7ef8](https://github.com/pivotal/LicenseFinder/commit/b7f7ef8b81d193b5535cb3c48b9244ecd446057f) ### Fixed * 'dotnet restore' failing - [dee1045](https://github.com/pivotal/LicenseFinder/commit/dee104517e0cf8ce769405910f46607a66017f40) * Reporting extra paths for gvt projects - [ba7d1bd](https://github.com/pivotal/LicenseFinder/commit/ba7d1bdd90282e7d127c3ddaf68b51f98b402000) ### Changed * Fix license definition tests - [15b524f](https://github.com/pivotal/LicenseFinder/commit/15b524fa52f63e04a82d160a7fc3d49c288d01e8) # [5.8.0] / 2019-05-22 ### Added * Trash Package Manager - [3a3d854](https://github.com/pivotal/LicenseFinder/commit/3a3d8541c4ea64607df6b120111aff324f93778d) ### Fixed * Prefer to use `origin` over `path` for govendor - [31c6041](https://github.com/pivotal/LicenseFinder/commit/31c6041926a27b61c35c05c6433a87d0af78c1e5) # [5.7.1] / 2019-03-08 # [5.7.0] / 2019-03-01 ### Added * Ruby 2.6.1 support - [8d60ed1](https://github.com/pivotal/LicenseFinder/commit/8d60ed13f99b830cc1352900f90e2b298105f518) ### Changed * Conan version is locked to 1.11.2 to avoid breaking changes - [72b766a](https://github.com/pivotal/LicenseFinder/commit/72b766a948be5b0f8eade75e716796f50ea9ebf3) # [5.6.2] / 2019-01-28 # [5.6.1] / 2019-01-25 ### Changed * Updated GOLANG to 1.11.4 in Docker image [#163424880] - [67e5e1f](https://github.com/pivotal/LicenseFinder/commit/67e5e1ffef19acf3a63cac55c5aa3626fb4c7491) # [5.6.0] / 2018-12-19 ### Added * Add support for JSON reports [#161595251] - [5a1f735](https://github.com/pivotal/LicenseFinder/commit/5a1f73515c83cbf8ce17275c4c9d1af43d0db772) * Removed the removal of nested projects - [6e1941c](https://github.com/pivotal/LicenseFinder/commit/6e1941c4d06676988ff8bdad81bd83a4bb5c17e9) * Show verbose errors from prepare commands [#161462746] - [2b14299](https://github.com/pivotal/LicenseFinder/commit/2b142995d06572f772104c39437d0b64f9569f79) * Support to find gradle.kts files [#161629958] - [f7cb587](https://github.com/pivotal/LicenseFinder/commit/f7cb587787f4de282c34afe66c0a2d0c1c72a84f) ### Fixed * Go modules reports incorrect install paths - [9ab5aa9](https://github.com/pivotal/LicenseFinder/commit/9ab5aa9aadc9432c5359ed2af2cb32e28fac277a) Revert "* Go modules reports incorrect install paths" - [fcead98](https://github.com/pivotal/LicenseFinder/commit/fcead980ae2cc24f7193a1f38944f4df60a8c3fc) * Fix install_paths for go mod now accurately report dependency installation directories [#161943322 finish] - [ea28c06](https://github.com/pivotal/LicenseFinder/commit/ea28c06898964043f5849b64b4043bde81a2d7cd) * Handle log file names created with whitespaces and slashes - [7d6f9da](https://github.com/pivotal/LicenseFinder/commit/7d6f9da5006e1e7bbb71f594188ab87ee76ddfbb) ### Changed * Updated go-lang to 1.11.2 in the Docker - [d720f9c](https://github.com/pivotal/LicenseFinder/commit/d720f9c16f82044b5024213bec41b8e9f34cf306) # [5.5.2] / 2018-10-17 ### Fixed * go mod prepare command being incorrect - [480c465](https://github.com/pivotal/LicenseFinder/commit/480c4654cde7342456318ed4e28b6cebd4a09e4b) # [5.5.1] / 2018-10-16 ### Added * Documentation for asterisks being added to license names [#158960018] - [154b727](https://github.com/pivotal/LicenseFinder/commit/154b7273b1c18e64afa48799b50588251f99e982) * Document the prepare option on the command line - [c283a38](https://github.com/pivotal/LicenseFinder/commit/c283a38d9e8b9feefc5afe32f1df55b357a33333) ### Fixed * Go modules are forced to be enabled on go mod package managers - [cf9123d](https://github.com/pivotal/LicenseFinder/commit/cf9123d654b98cdef872d3b21631e69960abe365) # [5.5.0] / 2018-10-11 ### Added * Go Module support - [8a20210](https://github.com/pivotal/LicenseFinder/commit/8a202109e942316434978befd33854aa985dd872) ### Changed * Lowering gemspec ruby requirement to support jruby 9.1.x - [279bd25](https://github.com/pivotal/LicenseFinder/commit/279bd25bbebbd3851dcc0062c3c47f7c7063dad8) * Bumps rubocop to 0.59.2 - [291d335](https://github.com/pivotal/LicenseFinder/commit/291d3358921dbb47bc612b77656353da07e71a2b) ### Fixed * 'dlf' with no-args should get a login shell - [2b019fb](https://github.com/pivotal/LicenseFinder/commit/2b019fb1126ec2fcb9cafa092cad6d27b875e5f9) - Kim Dykeman * Do not include godep dependencies with common paths - [23e951f](https://github.com/pivotal/LicenseFinder/commit/23e951fae56a43abde52ecefa73e8a5ff73bb688) * Remove uneeded bundle install in dlf [#160758436] - [f44c73f](https://github.com/pivotal/LicenseFinder/commit/f44c73f6c06838a29ff9a75932e08fb1445557ca) * dlf gemfile directory issues [#160758436 finish] - [2db3972](https://github.com/pivotal/LicenseFinder/commit/2db397261654bca89771e85984b4ae6819274e55) Revert "* dlf gemfile directory issues [#160758436 finish]" - [6b17ddc](https://github.com/pivotal/LicenseFinder/commit/6b17ddc4202518ffd167c8d38a2045a36eb00144) # [5.4.1] / 2018-09-18 ### Fixed * Extra dependencies showing up for some go projects [#160438065] - [dfb1367](https://github.com/pivotal/LicenseFinder/commit/dfb136724721843c1196e74a6b4c762538af62ba) * remove workspace-aggregator as a yarn dependency [#159612717 finish] - [4e0afd0](https://github.com/pivotal/LicenseFinder/commit/4e0afd0ba79623f5bb4c055d42a76ba77ce1c785) # [5.4.0] / 2018-08-20 ### Added * NuGet + mono installation to Dockerfile * Add An all caps version of the 'LICENCE' spelling as a candidate file ### Changed * Upgrades Dockerfile base to Xenial # [5.3.0] / 2018-06-05 ### Added * Experimental support for Rust dependencies with Cargo - [2ef3129](https://github.com/pivotal/LicenseFinder/commit/2ef31290f7abf51db5b7173302d1e535508bbd7a) * Add project roots command to list paths to scan - [b7a22ea](https://github.com/pivotal/LicenseFinder/commit/b7a22eacfac0e1b9334998de606df69ec3156f77) ### Removed * Remove HTTParty dependency - [c52d014](https://github.com/pivotal/LicenseFinder/commit/c52d014df1ca9cd3838d03c60daa6fad954c5579) # [5.2.3] / 2018-05-14 # [5.2.1] / 2018-05-14 ### Changed * Updated go-lang to 1.10.2 in the Docker * Updated Maven to 3.5.3 in the Docker - [1decf6a](https://github.com/pivotal/LicenseFinder/commit/1decf6ad27c9edf96b4f5cccd9a7ca0955fed9f2) - Mark Fioravanti # [5.2.0] / 2018-05-09 ### Fixed * Support for pip 10.0.1 - [286f679](https://github.com/pivotal/LicenseFinder/commit/286f6790dc71c97c0e93ecdfe0c6fddad75165cc) # [5.1.1] / 2018-05-08 ### Added * CC License detection ### Fixed * Yarn package manager now handles non-ASCII characters * in_umbrella: true dependencies for Mix * Pivotal Repo Renamed to pivotal # [5.1.0] / 2018-04-02 ### Added * Support for Ruby 2.5.1 - [9c82a84](https://github.com/pivotal/LicenseFinder/commit/9c82a84a3cff0765a45fa28dc2b05ab32880fb00) * Support for Scala build Tool (sbt ) - [2115ddf](https://github.com/pivotal/LicenseFinder/commit/2115ddfe9481d17e6b1d0ac63d6ae1c6143f370c) - Bradford D. Boyle * Condense gvt paths with identical shas into their common path - [9e1071d](https://github.com/pivotal/LicenseFinder/commit/9e1071d3c92405a8605727ad1164d6581dc50533) ### Fixed * Added back the pip prepare commands [#156376451 finish] - [fdd63fb](https://github.com/pivotal/LicenseFinder/commit/fdd63fb38332230e0cce0ee1b47aa5ccd0eebc36) * Govendor not consolidating common paths from the same SHA - [bdd23c9](https://github.com/pivotal/LicenseFinder/commit/bdd23c94ae6ff09a2466c8875e554de60db6603c) ### Deprecated * Support for Ruby 2.1 * Support for Ruby 2.2 * Support for jruby - [9c82a84](https://github.com/pivotal/LicenseFinder/commit/9c82a84a3cff0765a45fa28dc2b05ab32880fb00) # [5.0.3] / 2018-02-13 ### Changed * Add the -vendor-only flag to dep-ensure calls - [e305bd1](https://github.com/pivotal/LicenseFinder/commit/e305bd1d5b2d9653f828c3940b59a12903904699) * Update detected paths for Nuget - [3fe8995](https://github.com/pivotal/LicenseFinder/commit/3fe89955d82c3467628abbd2ca9ba159bfeb7df6) # [5.0.2] / 2018-02-06 ### Fixed * Add conditional production flag to npm - [533f9b8](https://github.com/pivotal/LicenseFinder/commit/533f9b8fda250655f3613444da49fdce60215237) * conan install & info commands - [322e64c](https://github.com/pivotal/LicenseFinder/commit/322e64c402f4e45d97c6f3bf67c3ffdaabbb359f) * Duplicate approvals in decisions file - [a8e6141](https://github.com/pivotal/LicenseFinder/commit/a8e6141cd7ac7ed2aa10b35c55954a48bacf3523) * log path issues - [9f1bae1](https://github.com/pivotal/LicenseFinder/commit/9f1bae12c88771229e0a919876f4de6bcad31677) * Fix yarn not working with --project_path option - [c6ed08d](https://github.com/pivotal/LicenseFinder/commit/c6ed08dd8342dec9fcc3e6377f88d5ef01600928) # [5.0.0] / 2018-01-15 ### Added * NPM prepare - [e7a0d30](https://github.com/pivotal/LicenseFinder/commit/e7a0d30cb77e5503b5a934b26dbd3dc272dc5605) * Specify log directory for prepare - [b9a5991](https://github.com/pivotal/LicenseFinder/commit/b9a599171f3fda2affa9381d998e2158a2bf7fac) * Added prepare step for elixir projects - [38b08ea](https://github.com/pivotal/LicenseFinder/commit/38b08eae23b6b0c2bbaa3aea7845ab6a8d9b028b) ### Fixed * Action_items resolves decisions file path - [c2a92ab](https://github.com/pivotal/LicenseFinder/commit/c2a92ab62203efb890dfeb1798d377c8d835feb6) * Bower prepare step - [bb11d7f](https://github.com/pivotal/LicenseFinder/commit/bb11d7f07cc5e436381f01245a46033af6bb2d3b) ### Changed * Package Manager will now log if prepare step fails. Instead of erroring out - [54da71e](https://github.com/pivotal/LicenseFinder/commit/54da71e98f14cd199c39dfd7b762030fcac60ccb) # [4.0.2] / 2017-11-16 ### Fixed * Fixed --quiet not being available on the report task * Fixed --recursive not being available on the action_items task # [4.0.1] / 2017-11-14 ### Fixed * Add missing toml dependency to gemspec # [4.0.0] / 2017-11-10 ### Changed * CLI output has been altered to be clear about active states and installed states. * option `--subprojects`have been renamed to `--aggregate_paths` in order to be clear about its functionality ### Fixed * Fixed issue where dangling symbolic link would cause License Finder to crash and not continue. Instead, License Finder will now warn about the issue and continue. # [3.1.0] / 2017-11-10 ### Added * Added support for [Carthage](https://github.com/Carthage/Carthage) * Added support for [gvt](https://github.com/FiloSottile/gvt) * Added support for [yarn](https://yarnpkg.com/en/) * Added support for [glide](https://github.com/Masterminds/glide) * Added support for [GoVendor](https://github.com/kardianos/govendor) * Added support for [Dep](https://github.com/golang/dep) * Added support for [Conan](https://conan.io/) * Added `--prepare` option * `--prepare`/`-p` is an option which can now be passed to the `action_items` or `report` task of `license_finder` * `prepare` will indicate to License Finder that it should attempt to prepare the project before running in a License scan. ### Changed * Upgrade `Gradle` in Dockerfile * Clean up some CLI interaction and documentation ### Fixed * `build-essential` was added back into the Dockerfile after accidentally being removed * Ignore leading prefixes such as 'The' when looking for licenses # [3.0.4] / 2017-09-14 ### Added * Added concourse pipeline file for Docker image process (#335, #337) * Add status checks to pull requests * Allow Custom Pip Requirements File Path (#328, thanks @sam-10e) ### Fixed * Fixed NPM stack too deep issue (#327, #329) # [3.0.3] / Skipped because of accidentally yanking gem # [3.0.2] / 2017-07-27: ### Added * Add CI status checks to pull requests (#321) ### Fixed * Support NPM packages providing a string for the licenses key (#317) * Use different env-var to indicate ruby version for tests (#303) * Resolve NPM circular dependencies (#306, #307, #311, #313, #314, #319, #322) # [3.0.1] / 2017-07-12: ### Added * Add --maven-options to allow options for maven scans (#305, thanks @jgielstra!) ### Fixed: * Restore the original GOPATH after modifying it (#287, thanks @sschuberth!) * LF doesn't recognize .NET projects using 'packages' directory (#290, #292, thanks @bspeck!) * Use glob for finding acknowledgements path for CocoaPods (#177, #288, thanks @aditya87!) * Fix some failing tests on Windows (#294, thanks @sschuberth!) * Add warning message if no dependencies are recognized (#293, thanks @bspeck!) * Switch to YAJL for parsing the json output from npm using a tmp file rather than an in-memory string (#301, #304) * Fix dockerfile by explicitly using rvm stable (#303) * Report multiple versions of the same NPM dependency (#310) # [3.0.0] / 2016-03-02 ### Added * Changed dependencies to be unique based on name _and_ version (#241) * Enable '--columns' option with text reports (#244, thanks @raimon49!) * Flag maven-include-groups adds group to maven depenency information (#219, #258, thanks @dgodd!) * Package managers determine their package management command (#250, Thanks @sschuberth!) * Support --ignored_groups for maven * Support `homepage` column for godeps dependencies, and dependencies from go workspaces using `.envrc` * Support `license_links` column for csv option (#281, Thanks @lbalceda!) * Added a Dockerfile for [licensefinder/license_finder](https://hub.docker.com/r/licensefinder/license_finder/) * Switched from Travis to Concourse ### Fixed * Gradle works in CI containers where TERM is not set (revert and fix of c15bdb7, which broke older versions of gradle) * Check for the correct Ruby Bundler command: `bundle` (#233. Thanks, @raimon49!) * Uses settings.gradle to determine the build file name (#248) * Fix detecting the Gradle wrapper if not scanning the current directory (#238, Thanks @sschuberth!) * Use maven wrapper if available on maven projects * Check golang package lists against standard packages instead of excluding short package paths (#243) * Update the project_sha method to return the sha of the dependency, not the parent project * Change Maven wrapper to call mvn.cmd and fall back on mvn.bat (#263, Thanks @sschuberth!) * Allow bower to run as root * Fix packaging errors scanning pip based projects * Add JSON lib attribute to handle deeply nested JSON (#269. Thanks, @antongurov!) * Use the fully qualified name of the license-maven-plugin (#284) # 2.1.2 / 2016-06-10 Bugfixes: * NuGet limits its recursive search for .nupkg packages to the `vendor` subdirectory. (#228) # 2.1.1 / 2016-06-09 Features: * GoWorkspace now detects some non-standard package names with only two path parts. (#226) Bugfixes: * NuGet now appropriately returns a Pathname from #package_path (previously was a String) (#227) * NuGet now correctly chooses a directory with vendored .nupkg packages # 2.1.0 / 2016-04-01 * Features * support a `groups` in reports (#210) (Thanks, Jon Wolski!) * GoVendor and GoWorkspace define a package management tool, so they won't try to run if you don't have `go` installed * PackageManagers are not activated if the underlying package management tool isn't installed * detect GO15VENDOREXPERIMENT as evidence of a go workspace project * provide path-to-dependency in recursive mode (#193) * dedup godep dependencies (#196) * add support for MPL2 detection * detect .envrc in a parent folder (go workspaces) (#199) * miscellaneous nuget support improvements (#200, #201, #202) * miscellaneous go support improvements (#203, #204) * add support for Golang 1.5 vendoring convention (#207) * return the package manager that detected the dependency (#206) * Add support for including maven/gradle GroupIds with `--gradle-include-groups` * Godep dependencies can display the full commit SHA with `--go-full-version` * specific versions of a dependency can be approved (#183, #185). (Thanks, @ipsi!) * improved "go workspace" support by looking at git submodules. (Thanks, @jvshahid and @aminjam!) * added an "install path" field to the report output. (Thanks, @jvshahid and @aminjam!) * Licenses can be blacklisted. Dependencies which only have licenses in the blacklist will not be approved, even if someone tries. * Initial support for the Nuget package manager for .NET projects * Experimental support for `godep` projects * Experimental support for "golang workspace" projects (with .envrc) * Improved support for multi-module `gradle` projects * Gradle 2.x support (experimental) * Experimental support for "composite" projects (multiple git submodules) * Experimental support for "license diffs" between directories * Bugfixes * `rubyzip` is now correctly a runtime dependency * deep npm dependency trees no longer result in some packages having no metadata (#211) * columns fixed in "recursive mode" (#191) * gradle's use of termcaps avoided (#194) # 2.0.4 / 2015-04-16 * Features * Allow project path to be set in a command line option (Thanks, @robertclancy!) # 2.0.3 / 2015-03-18 * Bugfixes * Ignoring subdirectories of a LICENSE directory. (#143) (Thanks, @pmeskers and @yuki24!) # 2.0.2 / 2015-03-14 * Features * Show requires/required-by relationships for pip projects * Expose homepage in CSV reports * Support GPLv3 * Bugfixes * license_finder works with Python 3; #140 * For pip projects, limit output to the distributions mentioned in requirements.txt, or their dependencies, instead of all installed distributions, which may include distributions from other projects. #119 # 2.0.1 / 2015-03-02 * Features * Support for rebar projects # 2.0.0 / 2015-03-02 * Features * Stores every decision that has been made about a project's dependencies, even if a decision was later reverted. These decisions are kept in an append-only YAML file which can be considered an audit log. * Stores timestamps and other optional transactional metadata (who, why) about every kind of decision. * When needed, applies those decisions to the list of packages currently reported by the package managers. * Removed dependencies on sqlite and sequel. * The CLI never writes HTML or CSV reports to the file system, only to STDOUT. So, users have more choice over which reports to generate, when to generate them, and where to put them. See `license_finder report`. If you would like to update reports automatically (e.g., in a rake task or git hook) see this gist: https://gist.github.com/mainej/1a4d61a92234c5cebeab. * The configuration YAML file is no longer required, though it can still be useful. Most of its functionality has been moved into the decisions infrastructure, and the remaining bits can be passed as arguments to the CLI. Most users will not need these arguments. If the file is present, the CLI arguments can be omitted. The CLI no longer updates this file. * Requires pip >= 6.0 * Bugfixes * `license_finder` does not write anything to the file system, #94, #114, #117 # 1.2.1 / unreleased * Features * Can list dependencies that were added manually # 1.2 / 2014-11-10 * Features * Adding support for CocoaPods >= 0.34. (#118) * For dependencies with multiple licenses, the name of each license is listed, and if any are whitelisted, the dependency is whitelisted * Added `--debug` option when scanning, to provide details on packages, dependencies and where each license was discovered. # 1.1.1 / 2014-07-29 * Bugfixes * Process incorrectly-defined dependencies. [Original issue.](https://github.com/pivotal/LicenseFinder/issues/108) * Allow license_finder to process incorrectly-defined dependencies. # 1.0.1 / 2014-05-28 * Features * For dependencies with multiple licenses, the dependency is listed as 'multiple licenses' along with the names of each license * Added 'ignore_dependencies' config option to allow specific dependencies to be excluded from reports. * Bugfixes * Dependency reports generate when license_finder.yml updates * Dependency reports generate when config is changed through the command line # 1.0.0.1 / 2014-05-23 * Bugfixes * LicenseFinder detects its own license # 1.0.0 / 2014-04-03 * Features * When approving a license, can specify who is approving, and why. * Remove `rake license_finder` task from Rails projects. Just include 'license_finder' as a development dependency, and run `license_finder` in the shell. # 0.9.5.1 / 2014-01-30 * Features * Adds homepage for Bower, NPM, and PIP packages # 0.9.5 / 2014-01-30 * Features * Add more aliases for known licenses * Drop support for ruby 1.9.2 * Large refactoring to simply things, and make it easier to add new package managers * Bugfixes * Make node dependency json parsing more robust * Clean up directories created during test runs # 0.9.4 / 2014-01-05 * Features * Add detailed csv report * Add markdown report * Add support for "licenses" => ["license"] (npn) * Add basic bower support * Allow adding/removing multiple licenses from whitelist * Bugfixes * Use all dependencies by default for npm as bundler does # 0.9.3 / 2013-10-01 * Features * New Apache 2.0 license alias * Bugfixes * Fix problem which prevented license finder from running in rails < 3.2 # 0.9.2 / 2013-08-17 * Features * Support for python and node.js projects * Bugfixes * Fix HTML output in firefox # 0.9.1 / 2013-07-30 * Features * Projects now have a title which can be configured from CLI * JRuby officially supported. Test suite works against jruby, removed warnings * Internal clean-up of database behavior * Updated documentation with breakdown of HTML report * Bugfixes * dependencies.db is no longer modified after license_finder runs and finds no changes * Fix more CLI grammar/syntax errors * HTML report now works when served over https (PR #36 - bwalding) * dependencies.txt is now dependencies.csv (It was always a csv in spirit) # 0.9.0 / 2013-07-16 * Features * Clarify CLI options and commands in help output * Can manage whitelisted licenses from command line * Improved New BSD license detection * Bugfixes * Fix CLI grammar errors * Using license_finder in a non-RVM environment now works (Issue #35) # 0.8.2 / 2013-07-09 * Features * Switch to thor for CLI, to support future additions to CLI * Restore ability to manage (add/remove) dependencies that Bundler can't find * Can maintain ignored bundler groups from command line * Bugfixes * Fix bug preventing manual approval of child dependencies (Issue #23) * Fix issue with database URI when the absolute path to the database file contains spaces. * Upgrading from 0.7.2 no longer removes non-gem dependencies (Issue #20) # 0.8.1 / 2013-04-14 * Features * JRuby version of the gem. * Official ruby 2.0 support. * CLI interface for moving dependencies.* files to `doc/`. * Bugfixes * Fix ruby 1.9.2 support. # 0.8.0 / 2013-04-03 * Features * Add spinner to show that the binary is actually doing something. * Add action items to dependencies.html. * Add generation timestamp to dependencies.html. * Default location for dependencies.* files is now `doc/`. * Temporarily remove non-bundler (e.g. JavaScript) dependencies. This will be readded in a more sustainable way soon. * Use sqlite, not YAML, for dependencies. * Officially deprecate rake tasks. * Bugfixes * Don't blow away manually set licenses when dependencies are rescanned. * Ignore empty `readme_files` section in dependencies.yml. * Clean up HTML generation for dependencies.html. * Add an option to silence the binary's spinner so as not to fill up log files. # 0.7.2 / 2013-02-18 * Features * Dependency cleanup. # 0.7.1 / 2013-02-18 * Features * Add variants to detectable licenses. * Remove README files from data persistence. # 0.7.0 / 2012-09-25 * Features * Dependencies can be approved via CLI. * Dependencies licenses can be set via CLI. # 0.6.0 / 2012-09-15 * Features * Create a dependencies.html containing a nicely formatted version of dependencies.txt, with lots of extra information. * All rake tasks, and the binary, run the init task automatically. * Simplify dependencies.txt file since more detail can now go into dependencies.html. * Promote binary to be the default, take first steps to deprecate rake task. * Bugfixes * Fix formatting of `rake license:action_items` output. # 0.5.0 / 2012-09-12 * Features * `rake license:action_items` exits with a non-zero status if there are non-approved dependencies. * New binary, eventual replacement for rake tasks. * Initial implementation of non-gem dependencies. * Support BSD, New BSD, and Simplified BSD licenses. * Improve ruby license detection. * Add dependency's bundler group to dependencies.txt output. * Add description and summary to dependencies.txt output. * Bugfixes * Create `config/` director if it doesn't exist, don't blow up. * Better support for non-US word spellings. # 0.4.5 / 2012-09-09 * Features * Allow dependencies.* files to be written to a custom directory. * Detect LGPL licenses * Detect ISC licenses * Bugfixes * Fix blow up if there's not `ignore_groups` setting in the config file. [Unreleased]: https://github.com/pivotal/LicenseFinder/compare/v4.0.2...HEAD [4.0.2]: https://github.com/pivotal/LicenseFinder/compare/v4.0.1...v4.0.2 [4.0.1]: https://github.com/pivotal/LicenseFinder/compare/v4.0.0...v4.0.1 [4.0.0]: https://github.com/pivotal/LicenseFinder/compare/v3.1.0...v4.0.0 [3.1.0]: https://github.com/pivotal/LicenseFinder/compare/v3.0.4...v3.1.0 [3.0.4]: https://github.com/pivotal/LicenseFinder/compare/v3.0.2...v3.0.4 [3.0.2]: https://github.com/pivotal/LicenseFinder/compare/v3.0.1...v3.0.2 [3.0.1]: https://github.com/pivotal/LicenseFinder/compare/v3.0.0...v3.0.1 [3.0.0]: https://github.com/pivotal/LicenseFinder/compare/v2.1.2...v3.0.0 [5.0.0]: https://github.com/pivotal/LicenseFinder/compare/v4.0.2...v5.0.0 [5.0.2]: https://github.com/pivotal/LicenseFinder/compare/v5.0.0...v5.0.2 [5.0.3]: https://github.com/pivotal/LicenseFinder/compare/v5.0.2...v5.0.3 [5.1.0]: https://github.com/pivotal/LicenseFinder/compare/v5.0.3...v5.1.0 [5.1.1]: https://github.com/pivotal/LicenseFinder/compare/v5.1.0...v5.1.1 [5.1.1]: https://github.com/pivotal/LicenseFinder/compare/v5.1.0...v5.1.1 [5.2.0]: https://github.com/pivotal/LicenseFinder/compare/v5.1.1...v5.2.0 [5.2.1]: https://github.com/pivotal/LicenseFinder/compare/v5.2.0...v5.2.1 [5.2.3]: https://github.com/pivotal/LicenseFinder/compare/v5.2.1...v5.2.3 [5.3.0]: https://github.com/pivotal/LicenseFinder/compare/v5.2.3...v5.3.0 [5.4.0]: https://github.com/pivotal/LicenseFinder/compare/v5.3.0...v5.4.0 [5.4.1]: https://github.com/pivotal/LicenseFinder/compare/v5.4.0...v5.4.1 [5.5.0]: https://github.com/pivotal/LicenseFinder/compare/v5.4.1...v5.5.0 [5.5.1]: https://github.com/pivotal/LicenseFinder/compare/v5.5.0...v5.5.1 [5.5.2]: https://github.com/pivotal/LicenseFinder/compare/v5.5.1...v5.5.2 [5.6.0]: https://github.com/pivotal/LicenseFinder/compare/v5.5.2...v5.6.0 [5.6.1]: https://github.com/pivotal/LicenseFinder/compare/v5.6.0...v5.6.1 [5.6.2]: https://github.com/pivotal/LicenseFinder/compare/v5.6.1...v5.6.2 [5.7.0]: https://github.com/pivotal/LicenseFinder/compare/v5.6.2...v5.7.0 [5.7.1]: https://github.com/pivotal/LicenseFinder/compare/v5.7.0...v5.7.1 [5.8.0]: https://github.com/pivotal/LicenseFinder/compare/v5.7.1...v5.8.0 [5.9.0]: https://github.com/pivotal/LicenseFinder/compare/v5.8.0...v5.9.0 [5.9.1]: https://github.com/pivotal/LicenseFinder/compare/v5.9.0...v5.9.1 [5.9.2]: https://github.com/pivotal/LicenseFinder/compare/v5.9.1...v5.9.2 [5.10.0]: https://github.com/pivotal/LicenseFinder/compare/v5.9.2...v5.10.0 [5.10.1]: https://github.com/pivotal/LicenseFinder/compare/v5.10.0...v5.10.1 [5.10.2]: https://github.com/pivotal/LicenseFinder/compare/v5.10.1...v5.10.2 [5.11.0]: https://github.com/pivotal/LicenseFinder/compare/v5.10.2...v5.11.0 [5.11.1]: https://github.com/pivotal/LicenseFinder/compare/v5.11.0...v5.11.1 [6.0.0]: https://github.com/pivotal/LicenseFinder/compare/v5.11.1...v6.0.0 [6.1.0]: https://github.com/pivotal/LicenseFinder/compare/v6.0.0...v6.1.0 [6.1.2]: https://github.com/pivotal/LicenseFinder/compare/v6.1.0...v6.1.2 [6.2.0]: https://github.com/pivotal/LicenseFinder/compare/v6.1.2...v6.2.0 [6.3.0]: https://github.com/pivotal/LicenseFinder/compare/v6.2.0...v6.3.0 [6.4.0]: https://github.com/pivotal/LicenseFinder/compare/v6.3.0...v6.4.0 [6.5.0]: https://github.com/pivotal/LicenseFinder/compare/v6.4.0...v6.5.0 [6.6.0]: https://github.com/pivotal/LicenseFinder/compare/v6.5.0...v6.6.0 [6.6.1]: https://github.com/pivotal/LicenseFinder/compare/v6.6.0...v6.6.1 [6.6.2]: https://github.com/pivotal/LicenseFinder/compare/v6.6.1...v6.6.2 [6.7.0]: https://github.com/pivotal/LicenseFinder/compare/v6.6.2...v6.7.0 [6.8.0]: https://github.com/pivotal/LicenseFinder/compare/v6.7.0...v6.8.0 [6.8.1]: https://github.com/pivotal/LicenseFinder/compare/v6.8.0...v6.8.1 [6.8.2]: https://github.com/pivotal/LicenseFinder/compare/v6.8.1...v6.8.2 [6.9.0]: https://github.com/pivotal/LicenseFinder/compare/v6.8.2...v6.9.0 [6.10.0]: https://github.com/pivotal/LicenseFinder/compare/v6.9.0...v6.10.0 [6.10.1]: https://github.com/pivotal/LicenseFinder/compare/v6.10.0...v6.10.1 [6.11.0]: https://github.com/pivotal/LicenseFinder/compare/v6.10.1...v6.11.0 [6.12.0]: https://github.com/pivotal/LicenseFinder/compare/v6.11.0...v6.12.0 [6.12.1]: https://github.com/pivotal/LicenseFinder/compare/v6.12.0...v6.12.1 [6.12.2]: https://github.com/pivotal/LicenseFinder/compare/v6.12.1...v6.12.2 [6.13.0]: https://github.com/pivotal/LicenseFinder/compare/v6.12.2...v6.13.0 [6.14.1]: https://github.com/pivotal/LicenseFinder/compare/v6.13.0...v6.14.1 [6.14.2]: https://github.com/pivotal/LicenseFinder/compare/v6.14.1...v6.14.2 gitlab-license-finder-6.14.2.1/lib/0000755000175100017510000000000014172736724015703 5ustar pravipravigitlab-license-finder-6.14.2.1/lib/license_finder/0000755000175100017510000000000014172736724020654 5ustar pravipravigitlab-license-finder-6.14.2.1/lib/license_finder/shared_helpers/0000755000175100017510000000000014172736724023644 5ustar pravipravigitlab-license-finder-6.14.2.1/lib/license_finder/shared_helpers/cmd.rb0000644000175100017510000000030214172736724024727 0ustar pravipravi# frozen_string_literal: true require 'open3' module LicenseFinder module SharedHelpers class Cmd def self.run(command) Open3.capture3(command) end end end end gitlab-license-finder-6.14.2.1/lib/license_finder/shared_helpers/common_path.rb0000644000175100017510000000210514172736724026473 0ustar pravipravi# frozen_string_literal: true module CommonPathHelper def self.longest_common_paths(paths) [].tap do |common_paths| # organize by matching root paths paths_with_roots = paths.group_by { |path| path.split('/').first } paths_with_roots.each do |common_root, full_paths| # use the shortest path as the 'template' shortest_path = full_paths.min_by { |path| path.split('/').length } longest_common_path = common_root # iterate through each subpath of the 'template' shortest_path.split('/').each_with_index do |subpath, i| potential_path = i.zero? ? longest_common_path : [longest_common_path, subpath].join('/') # check each for the existence of the subsequent subpath mismatch = full_paths.any? { |path| !path.start_with?(potential_path) } break if mismatch longest_common_path = potential_path end longest_common_path = full_paths if longest_common_path.split('/').length == 1 (common_paths << longest_common_path).flatten! end end end end gitlab-license-finder-6.14.2.1/lib/license_finder/project_finder.rb0000644000175100017510000000310614172736724024176 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class ProjectFinder def initialize(main_project_path, strict_matching = false) @package_managers = LicenseFinder::Scanner::PACKAGE_MANAGERS @strict_matching = strict_matching @main_project_path = main_project_path end def find_projects project_paths = [] all_paths = find_all_paths until all_paths.empty? project_paths << collect_project_path(all_paths) all_paths.shift end project_paths.compact end def collect_project_path(all_paths) potential_project_path = all_paths.first is_active_project = active_project?(potential_project_path) return unless is_active_project potential_project_path.to_s end private def find_all_paths Dir.glob("#{@main_project_path}/**/").map { |path| full_path(path) } end def remove_nested(pathname, paths) return if project_root?(pathname) paths.reject! { |path| nested_path?(path, pathname) } end def project_root?(pathname) full_path(@main_project_path).to_s == pathname.to_s end def active_project?(project_path) active_project = @package_managers.map do |pm_class| pm = pm_class.new(project_path: project_path, strict_matching: @strict_matching) pm.active? end active_project.include?(true) end def full_path(rel_path) Pathname.new(rel_path).expand_path end def nested_path?(path, pathname) path.to_s.start_with?(pathname.to_s) && path.to_s != pathname.to_s end end end gitlab-license-finder-6.14.2.1/lib/license_finder/configuration.rb0000644000175100017510000000701114172736724024047 0ustar pravipravi# frozen_string_literal: true require_relative 'platform' module LicenseFinder class Configuration def self.with_optional_saved_config(primary_config) project_path = Pathname(primary_config.fetch(:project_path, Pathname.pwd)).expand_path config_file = project_path.join('config', 'license_finder.yml') saved_config = config_file.exist? ? YAML.safe_load(config_file.read) : {} new(primary_config, saved_config) end def initialize(primary_config, saved_config) @primary_config = primary_config @saved_config = saved_config end def valid_project_path? return project_path.exist? if get(:project_path) true end def elixir_command get(:elixir_command) || 'elixir' end def mix_command get(:mix_command) || 'mix' end def merge(other_hash) dup_with other_hash end def rebar_deps_dir path = get(:rebar_deps_dir) || '_build/default/lib' project_path.join(path).expand_path end def mix_deps_dir path = get(:mix_deps_dir) || 'deps' project_path.join(path).expand_path end def decisions_file_path path = File.join(project_path, 'doc/dependency_decisions.yml') unless project_path.nil? path = get(:decisions_file) unless get(:decisions_file).nil? path = 'doc/dependency_decisions.yml' if path.nil? Pathname.new(path) end def log_directory path = get(:log_directory) || 'lf_logs' if (aggregate_paths || recursive) && project_path == '' Pathname(path).expand_path else project_path.join(path).expand_path end end def project_path Pathname(path_prefix).expand_path end def enabled_package_manager_ids get(:enabled_package_managers) end def logger_mode get(:logger) end def gradle_command get(:gradle_command) end def go_full_version get(:go_full_version) end def gradle_include_groups get(:gradle_include_groups) end def maven_include_groups get(:maven_include_groups) end def maven_options get(:maven_options) end def npm_options get(:npm_options) end def pip_requirements_path get(:pip_requirements_path) end def conda_bash_setup_script get(:conda_bash_setup_script) end def python_version get(:python_version) end def rebar_command get(:rebar_command) end def prepare get(:prepare) || prepare_no_fail end def prepare_no_fail get(:prepare_no_fail) end def write_headers get(:write_headers) end def save_file get(:save) end def aggregate_paths get(:aggregate_paths) end def recursive get(:recursive) end def format get(:format) end def columns get(:columns) end def sbt_include_groups get(:sbt_include_groups) end def composer_check_require_only get(:composer_check_require_only) end attr_writer :strict_matching attr_reader :strict_matching protected attr_accessor :primary_config def dup_with(other_hash) dup.tap do |dup| dup.primary_config.merge!(other_hash) end end private attr_reader :saved_config def get(key) @primary_config[key.to_sym] || @saved_config[key.to_s] end def initialize_copy(orig) super @primary_config = @primary_config.dup end def path_prefix get(:project_path) || '' end end end gitlab-license-finder-6.14.2.1/lib/license_finder/license/0000755000175100017510000000000014172736724022276 5ustar pravipravigitlab-license-finder-6.14.2.1/lib/license_finder/license/any_matcher.rb0000644000175100017510000000041714172736724025117 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class License class AnyMatcher def initialize(*matchers) @matchers = matchers end def matches_text?(text) @matchers.any? { |m| m.matches_text? text } end end end end gitlab-license-finder-6.14.2.1/lib/license_finder/license/header_matcher.rb0000644000175100017510000000061114172736724025554 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class License HeaderMatcher = Struct.new(:base_matcher, :first_n_lines) do def matches_text?(text) n = if first_n_lines.nil? 1 else first_n_lines end header = text.lines.first(n).join || '' base_matcher.matches_text?(header) end end end end gitlab-license-finder-6.14.2.1/lib/license_finder/license/matcher.rb0000644000175100017510000000101414172736724024242 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class License Matcher = Struct.new(:regexp) do def self.from_template(template) from_text(template.content) end def self.from_text(text) from_regex(Text.compile_to_regex(text)) end # an alias for Matcher.new, for uniformity of constructors def self.from_regex(regexp) new(regexp) end def matches_text?(text) !!(Text.normalize_punctuation(text) =~ regexp) end end end end gitlab-license-finder-6.14.2.1/lib/license_finder/license/text.rb0000644000175100017510000000311114172736724023603 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class License module Text SPACES = /\s+/.freeze QUOTES = /['`"]{1,2}/.freeze YEAR_PLACEHOLDERS = //.freeze PLACEHOLDERS = /<[^<>]+>/.freeze SPECIAL_SINGLE_QUOTES = /[‘’]/.freeze SPECIAL_DOUBLE_QUOTES = /[“”„«»]/.freeze ALPHABET_ORDERED_LIST = /\\\([a-z]\\\)\\\s/.freeze ALPHABET_ORDERED_LIST_OPTIONAL = '(\([a-z]\)\s)?' LIST_BULLETS = /(\d{1,2}\\\.|\\\*|\\\-)\\\s/.freeze LIST_BULLETS_OPTIONAL = '(\d{1,2}.|\*|\-)?\s*' NEWLINE_CHARACTER = /\n+/.freeze QUOTE_COMMENT_CHARACTER = /^\s*\>+/.freeze ESCAPED_QUOTES = /\\\"/.freeze def self.normalize_punctuation(text) text.dup.force_encoding('UTF-8') .gsub(SPECIAL_DOUBLE_QUOTES, '"') .gsub(SPECIAL_SINGLE_QUOTES, "'") .gsub(QUOTE_COMMENT_CHARACTER, '') .gsub(SPACES, ' ') .gsub(NEWLINE_CHARACTER, ' ') .gsub(ESCAPED_QUOTES, '"') .gsub(QUOTES, '"') .strip rescue ArgumentError => _e text end def self.compile_to_regex(text) Regexp.new(Regexp.escape(normalize_punctuation(text)) .gsub(YEAR_PLACEHOLDERS, '(\S*)') .gsub(PLACEHOLDERS, '(.*)') .gsub(',', '(,)?') .gsub('HOLDER', '(HOLDER|OWNER)') .gsub(ALPHABET_ORDERED_LIST, ALPHABET_ORDERED_LIST_OPTIONAL) .gsub(LIST_BULLETS, LIST_BULLETS_OPTIONAL)) end end end end gitlab-license-finder-6.14.2.1/lib/license_finder/license/template.rb0000644000175100017510000000060314172736724024435 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class License class Template TEMPLATE_PATH = ROOT_PATH.join('license', 'templates') def self.named(name) new TEMPLATE_PATH.join("#{name}.txt").read end attr_reader :content def initialize(raw_content) @content = Text.normalize_punctuation(raw_content) end end end end gitlab-license-finder-6.14.2.1/lib/license_finder/license/templates/0000755000175100017510000000000014172736724024274 5ustar pravipravigitlab-license-finder-6.14.2.1/lib/license_finder/license/templates/OFL.txt0000644000175100017510000001031514172736724025455 0ustar pravipraviThis Font Software is licensed under the SIL Open Font License, Version 1.1. This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL ----------------------------------------------------------- SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 ----------------------------------------------------------- PREAMBLE The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others. The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives. DEFINITIONS "Font Software" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation. "Reserved Font Name" refers to any names specified as such after the copyright statement(s). "Original Version" refers to the collection of Font Software components as distributed by the Copyright Holder(s). "Modified Version" refers to any derivative made by adding to, deleting, or substituting -- in part or in whole -- any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment. "Author" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software. PERMISSION & CONDITIONS Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions: 1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself. 2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user. 3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users. 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission. 5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software. TERMINATION This license becomes null and void if any of the above conditions are not met. DISCLAIMER THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. gitlab-license-finder-6.14.2.1/lib/license_finder/license/templates/MIT.txt0000644000175100017510000000106114172736724025464 0ustar pravipraviPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. gitlab-license-finder-6.14.2.1/lib/license_finder/license/templates/EPL1.txt0000644000175100017510000002575714172736724025556 0ustar pravipraviEclipse Public License - v 1.0 THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT. 1. DEFINITIONS "Contribution" means: a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and b) in the case of each subsequent Contributor: i) changes to the Program, and ii) additions to the Program; where such changes and/or additions to the Program originate from and are distributed by that particular Contributor. A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include additions to the Program which: (i) are separate modules of software distributed in conjunction with the Program under their own license agreement, and (ii) are not derivative works of the Program. "Contributor" means any person or entity that distributes the Program. "Licensed Patents" mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program. "Program" means the Contributions distributed in accordance with this Agreement. "Recipient" means anyone who receives the Program under this Agreement, including all Contributors. 2. GRANT OF RIGHTS a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source code and object code form. b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contribution causes such combination to be covered by the Licensed Patents. The patent license shall not apply to any other combinations which include the Contribution. No hardware per se is licensed hereunder. c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program. d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement. 3. REQUIREMENTS A Contributor may choose to distribute the Program in object code form under its own license agreement, provided that: a) it complies with the terms and conditions of this Agreement; and b) its license agreement: i) effectively disclaims on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose; ii) effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits; iii) states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange. When the Program is made available in source code form: a) it must be made available under this Agreement; and b) a copy of this Agreement must be included with each copy of the Program. Contributors may not remove or alter any copyright notices contained within the Program. Each Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution. 4. COMMERCIAL DISTRIBUTION Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor ("Commercial Contributor") hereby agrees to defend and indemnify every other Contributor ("Indemnified Contributor") against any losses, damages and costs (collectively "Losses") arising from claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control, and cooperate with the Commercial Contributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim at its own expense. For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay any damages as a result, the Commercial Contributor must pay those damages. 5. NO WARRANTY EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with its exercise of rights under this Agreement , including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and unavailability or interruption of operations. 6. DISCLAIMER OF LIABILITY EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 7. GENERAL If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable. If Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed. All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive. Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. The Eclipse Foundation is the initial Agreement Steward. The Eclipse Foundation may assign the responsibility to serve as the Agreement Steward to a suitable separate entity. Each new version of the Agreement will be given a distinguishing version number. The Program (including Contributions) may always be distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to distribute the Program (including its Contributions) under the new version. Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved. This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation.gitlab-license-finder-6.14.2.1/lib/license_finder/license/templates/CC01.txt0000644000175100017510000001536514172736724025475 0ustar pravipraviCREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER. Statement of Purpose The laws of most jurisdictions throughout the world automatically confer exclusive Copyright and Related Rights (defined below) upon the creator and subsequent owner(s) (each and all, an "owner") of an original work of authorship and/or a database (each, a "Work"). Certain owners wish to permanently relinquish those rights to a Work for the purpose of contributing to a commons of creative, cultural and scientific works ("Commons") that the public can reliably and without fear of later claims of infringement build upon, modify, incorporate in other works, reuse and redistribute as freely as possible in any form whatsoever and for any purposes, including without limitation commercial purposes. These owners may contribute to the Commons to promote the ideal of a free culture and the further production of creative, cultural and scientific works, or to gain reputation or greater distribution for their Work in part through the use and efforts of others. For these and/or other purposes and motivations, and without any expectation of additional consideration or compensation, the person associating CC0 with a Work (the "Affirmer"), to the extent that he or she is an owner of Copyright and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and publicly distribute the Work under its terms, with knowledge of his or her Copyright and Related Rights in the Work and the meaning and intended legal effect of CC0 on those rights. 1. Copyright and Related Rights. A Work made available under CC0 may be protected by copyright and related or neighboring rights ("Copyright and Related Rights"). Copyright and Related Rights include, but are not limited to, the following: i. the right to reproduce, adapt, distribute, perform, display, communicate, and translate a Work; ii. moral rights retained by the original author(s) and/or performer(s); iii. publicity and privacy rights pertaining to a person's image or likeness depicted in a Work; iv. rights protecting against unfair competition in regards to a Work, subject to the limitations in paragraph 4(a), below; v. rights protecting the extraction, dissemination, use and reuse of data in a Work; vi. database rights (such as those arising under Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, and under any national implementation thereof, including any amended or successor version of such directive); and vii. other similar, equivalent or corresponding rights throughout the world based on applicable law or treaty, and any national implementations thereof. 2. Waiver. To the greatest extent permitted by, but not in contravention of, applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and unconditionally waives, abandons, and surrenders all of Affirmer's Copyright and Related Rights and associated claims and causes of action, whether now known or unknown (including existing as well as future claims and causes of action), in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each member of the public at large and to the detriment of Affirmer's heirs and successors, fully intending that such Waiver shall not be subject to revocation, rescission, cancellation, termination, or any other legal or equitable action to disrupt the quiet enjoyment of the Work by the public as contemplated by Affirmer's express Statement of Purpose. 3. Public License Fallback. Should any part of the Waiver for any reason be judged legally invalid or ineffective under applicable law, then the Waiver shall be preserved to the maximum extent permitted taking into account Affirmer's express Statement of Purpose. In addition, to the extent the Waiver is so judged Affirmer hereby grants to each affected person a royalty-free, non transferable, non sublicensable, non exclusive, irrevocable and unconditional license to exercise Affirmer's Copyright and Related Rights in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "License"). The License shall be deemed effective as of the date CC0 was applied by Affirmer to the Work. Should any part of the License for any reason be judged legally invalid or ineffective under applicable law, such partial invalidity or ineffectiveness shall not invalidate the remainder of the License, and in such case Affirmer hereby affirms that he or she will not (i) exercise any of his or her remaining Copyright and Related Rights in the Work or (ii) assert any associated claims and causes of action with respect to the Work, in either case contrary to Affirmer's express Statement of Purpose. 4. Limitations and Disclaimers. a. No trademark or patent rights held by Affirmer are waived, abandoned, surrendered, licensed or otherwise affected by this document. b. Affirmer offers the Work as-is and makes no representations or warranties of any kind concerning the Work, express, implied, statutory or otherwise, including without limitation warranties of title, merchantability, fitness for a particular purpose, non infringement, or the absence of latent or other defects, accuracy, or the present or absence of errors, whether or not discoverable, all to the greatest extent permissible under applicable law. c. Affirmer disclaims responsibility for clearing rights of other persons that may apply to the Work or any use thereof, including without limitation any person's Copyright and Related Rights in the Work. Further, Affirmer disclaims responsibility for obtaining any necessary consents, permissions or other rights required for any use of the Work. d. Affirmer understands and acknowledges that Creative Commons is not a party to this document and has no duty or obligation with respect to this CC0 or use of the Work.gitlab-license-finder-6.14.2.1/lib/license_finder/license/templates/Apache2.txt0000644000175100017510000002343714172736724026311 0ustar pravipravi TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS gitlab-license-finder-6.14.2.1/lib/license_finder/license/templates/MPL1_1.txt0000644000175100017510000006223314172736724025774 0ustar pravipravi MOZILLA PUBLIC LICENSE Version 1.1 --------------- 1. Definitions. 1.0.1. "Commercial Use" means distribution or otherwise making the Covered Code available to a third party. 1.1. "Contributor" means each entity that creates or contributes to the creation of Modifications. 1.2. "Contributor Version" means the combination of the Original Code, prior Modifications used by a Contributor, and the Modifications made by that particular Contributor. 1.3. "Covered Code" means the Original Code or Modifications or the combination of the Original Code and Modifications, in each case including portions thereof. 1.4. "Electronic Distribution Mechanism" means a mechanism generally accepted in the software development community for the electronic transfer of data. 1.5. "Executable" means Covered Code in any form other than Source Code. 1.6. "Initial Developer" means the individual or entity identified as the Initial Developer in the Source Code notice required by Exhibit A. 1.7. "Larger Work" means a work which combines Covered Code or portions thereof with code not governed by the terms of this License. 1.8. "License" means this document. 1.8.1. "Licensable" means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently acquired, any and all of the rights conveyed herein. 1.9. "Modifications" means any addition to or deletion from the substance or structure of either the Original Code or any previous Modifications. When Covered Code is released as a series of files, a Modification is: A. Any addition to or deletion from the contents of a file containing Original Code or previous Modifications. B. Any new file that contains any part of the Original Code or previous Modifications. 1.10. "Original Code" means Source Code of computer software code which is described in the Source Code notice required by Exhibit A as Original Code, and which, at the time of its release under this License is not already Covered Code governed by this License. 1.10.1. "Patent Claims" means any patent claim(s), now owned or hereafter acquired, including without limitation, method, process, and apparatus claims, in any patent Licensable by grantor. 1.11. "Source Code" means the preferred form of the Covered Code for making modifications to it, including all modules it contains, plus any associated interface definition files, scripts used to control compilation and installation of an Executable, or source code differential comparisons against either the Original Code or another well known, available Covered Code of the Contributor's choice. The Source Code can be in a compressed or archival form, provided the appropriate decompression or de-archiving software is widely available for no charge. 1.12. "You" (or "Your") means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License or a future version of this License issued under Section 6.1. For legal entities, "You" includes any entity which controls, is controlled by, or is under common control with You. For purposes of this definition, "control" means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity. 2. Source Code License. 2.1. The Initial Developer Grant. The Initial Developer hereby grants You a world-wide, royalty-free, non-exclusive license, subject to third party intellectual property claims: (a) under intellectual property rights (other than patent or trademark) Licensable by Initial Developer to use, reproduce, modify, display, perform, sublicense and distribute the Original Code (or portions thereof) with or without Modifications, and/or as part of a Larger Work; and (b) under Patents Claims infringed by the making, using or selling of Original Code, to make, have made, use, practice, sell, and offer for sale, and/or otherwise dispose of the Original Code (or portions thereof). (c) the licenses granted in this Section 2.1(a) and (b) are effective on the date Initial Developer first distributes Original Code under the terms of this License. (d) Notwithstanding Section 2.1(b) above, no patent license is granted: 1) for code that You delete from the Original Code; 2) separate from the Original Code; or 3) for infringements caused by: i) the modification of the Original Code or ii) the combination of the Original Code with other software or devices. 2.2. Contributor Grant. Subject to third party intellectual property claims, each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license (a) under intellectual property rights (other than patent or trademark) Licensable by Contributor, to use, reproduce, modify, display, perform, sublicense and distribute the Modifications created by such Contributor (or portions thereof) either on an unmodified basis, with other Modifications, as Covered Code and/or as part of a Larger Work; and (b) under Patent Claims infringed by the making, using, or selling of Modifications made by that Contributor either alone and/or in combination with its Contributor Version (or portions of such combination), to make, use, sell, offer for sale, have made, and/or otherwise dispose of: 1) Modifications made by that Contributor (or portions thereof); and 2) the combination of Modifications made by that Contributor with its Contributor Version (or portions of such combination). (c) the licenses granted in Sections 2.2(a) and 2.2(b) are effective on the date Contributor first makes Commercial Use of the Covered Code. (d) Notwithstanding Section 2.2(b) above, no patent license is granted: 1) for any code that Contributor has deleted from the Contributor Version; 2) separate from the Contributor Version; 3) for infringements caused by: i) third party modifications of Contributor Version or ii) the combination of Modifications made by that Contributor with other software (except as part of the Contributor Version) or other devices; or 4) under Patent Claims infringed by Covered Code in the absence of Modifications made by that Contributor. 3. Distribution Obligations. 3.1. Application of License. The Modifications which You create or to which You contribute are governed by the terms of this License, including without limitation Section 2.2. The Source Code version of Covered Code may be distributed only under the terms of this License or a future version of this License released under Section 6.1, and You must include a copy of this License with every copy of the Source Code You distribute. You may not offer or impose any terms on any Source Code version that alters or restricts the applicable version of this License or the recipients' rights hereunder. However, You may include an additional document offering the additional rights described in Section 3.5. 3.2. Availability of Source Code. Any Modification which You create or to which You contribute must be made available in Source Code form under the terms of this License either on the same media as an Executable version or via an accepted Electronic Distribution Mechanism to anyone to whom you made an Executable version available; and if made available via Electronic Distribution Mechanism, must remain available for at least twelve (12) months after the date it initially became available, or at least six (6) months after a subsequent version of that particular Modification has been made available to such recipients. You are responsible for ensuring that the Source Code version remains available even if the Electronic Distribution Mechanism is maintained by a third party. 3.3. Description of Modifications. You must cause all Covered Code to which You contribute to contain a file documenting the changes You made to create that Covered Code and the date of any change. You must include a prominent statement that the Modification is derived, directly or indirectly, from Original Code provided by the Initial Developer and including the name of the Initial Developer in (a) the Source Code, and (b) in any notice in an Executable version or related documentation in which You describe the origin or ownership of the Covered Code. 3.4. Intellectual Property Matters (a) Third Party Claims. If Contributor has knowledge that a license under a third party's intellectual property rights is required to exercise the rights granted by such Contributor under Sections 2.1 or 2.2, Contributor must include a text file with the Source Code distribution titled "LEGAL" which describes the claim and the party making the claim in sufficient detail that a recipient will know whom to contact. If Contributor obtains such knowledge after the Modification is made available as described in Section 3.2, Contributor shall promptly modify the LEGAL file in all copies Contributor makes available thereafter and shall take other steps (such as notifying appropriate mailing lists or newsgroups) reasonably calculated to inform those who received the Covered Code that new knowledge has been obtained. (b) Contributor APIs. If Contributor's Modifications include an application programming interface and Contributor has knowledge of patent licenses which are reasonably necessary to implement that API, Contributor must also include this information in the LEGAL file. (c) Representations. Contributor represents that, except as disclosed pursuant to Section 3.4(a) above, Contributor believes that Contributor's Modifications are Contributor's original creation(s) and/or Contributor has sufficient rights to grant the rights conveyed by this License. 3.5. Required Notices. You must duplicate the notice in Exhibit A in each file of the Source Code. If it is not possible to put such notice in a particular Source Code file due to its structure, then You must include such notice in a location (such as a relevant directory) where a user would be likely to look for such a notice. If You created one or more Modification(s) You may add your name as a Contributor to the notice described in Exhibit A. You must also duplicate this License in any documentation for the Source Code where You describe recipients' rights or ownership rights relating to Covered Code. You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Code. However, You may do so only on Your own behalf, and not on behalf of the Initial Developer or any Contributor. You must make it absolutely clear than any such warranty, support, indemnity or liability obligation is offered by You alone, and You hereby agree to indemnify the Initial Developer and every Contributor for any liability incurred by the Initial Developer or such Contributor as a result of warranty, support, indemnity or liability terms You offer. 3.6. Distribution of Executable Versions. You may distribute Covered Code in Executable form only if the requirements of Section 3.1-3.5 have been met for that Covered Code, and if You include a notice stating that the Source Code version of the Covered Code is available under the terms of this License, including a description of how and where You have fulfilled the obligations of Section 3.2. The notice must be conspicuously included in any notice in an Executable version, related documentation or collateral in which You describe recipients' rights relating to the Covered Code. You may distribute the Executable version of Covered Code or ownership rights under a license of Your choice, which may contain terms different from this License, provided that You are in compliance with the terms of this License and that the license for the Executable version does not attempt to limit or alter the recipient's rights in the Source Code version from the rights set forth in this License. If You distribute the Executable version under a different license You must make it absolutely clear that any terms which differ from this License are offered by You alone, not by the Initial Developer or any Contributor. You hereby agree to indemnify the Initial Developer and every Contributor for any liability incurred by the Initial Developer or such Contributor as a result of any such terms You offer. 3.7. Larger Works. You may create a Larger Work by combining Covered Code with other code not governed by the terms of this License and distribute the Larger Work as a single product. In such a case, You must make sure the requirements of this License are fulfilled for the Covered Code. 4. Inability to Comply Due to Statute or Regulation. If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Code due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be included in the LEGAL file described in Section 3.4 and must be included with all distributions of the Source Code. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it. 5. Application of this License. This License applies to code to which the Initial Developer has attached the notice in Exhibit A and to related Covered Code. 6. Versions of the License. 6.1. New Versions. Netscape Communications Corporation ("Netscape") may publish revised and/or new versions of the License from time to time. Each version will be given a distinguishing version number. 6.2. Effect of New Versions. Once Covered Code has been published under a particular version of the License, You may always continue to use it under the terms of that version. You may also choose to use such Covered Code under the terms of any subsequent version of the License published by Netscape. No one other than Netscape has the right to modify the terms applicable to Covered Code created under this License. 6.3. Derivative Works. If You create or use a modified version of this License (which you may only do in order to apply it to code which is not already Covered Code governed by this License), You must (a) rename Your license so that the phrases "Mozilla", "MOZILLAPL", "MOZPL", "Netscape", "MPL", "NPL" or any confusingly similar phrase do not appear in your license (except to note that your license differs from this License) and (b) otherwise make it clear that Your version of the license contains terms which differ from the Mozilla Public License and Netscape Public License. (Filling in the name of the Initial Developer, Original Code or Contributor in the notice described in Exhibit A shall not of themselves be deemed to be modifications of this License.) 7. DISCLAIMER OF WARRANTY. COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED CODE IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER. 8. TERMINATION. 8.1. This License and the rights granted hereunder will terminate automatically if You fail to comply with terms herein and fail to cure such breach within 30 days of becoming aware of the breach. All sublicenses to the Covered Code which are properly granted shall survive any termination of this License. Provisions which, by their nature, must remain in effect beyond the termination of this License shall survive. 8.2. If You initiate litigation by asserting a patent infringement claim (excluding declatory judgment actions) against Initial Developer or a Contributor (the Initial Developer or Contributor against whom You file such action is referred to as "Participant") alleging that: (a) such Participant's Contributor Version directly or indirectly infringes any patent, then any and all rights granted by such Participant to You under Sections 2.1 and/or 2.2 of this License shall, upon 60 days notice from Participant terminate prospectively, unless if within 60 days after receipt of notice You either: (i) agree in writing to pay Participant a mutually agreeable reasonable royalty for Your past and future use of Modifications made by such Participant, or (ii) withdraw Your litigation claim with respect to the Contributor Version against such Participant. If within 60 days of notice, a reasonable royalty and payment arrangement are not mutually agreed upon in writing by the parties or the litigation claim is not withdrawn, the rights granted by Participant to You under Sections 2.1 and/or 2.2 automatically terminate at the expiration of the 60 day notice period specified above. (b) any software, hardware, or device, other than such Participant's Contributor Version, directly or indirectly infringes any patent, then any rights granted to You by such Participant under Sections 2.1(b) and 2.2(b) are revoked effective as of the date You first made, used, sold, distributed, or had made, Modifications made by that Participant. 8.3. If You assert a patent infringement claim against Participant alleging that such Participant's Contributor Version directly or indirectly infringes any patent where such claim is resolved (such as by license or settlement) prior to the initiation of patent infringement litigation, then the reasonable value of the licenses granted by such Participant under Sections 2.1 or 2.2 shall be taken into account in determining the amount or value of any payment or license. 8.4. In the event of termination under Sections 8.1 or 8.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or any distributor hereunder prior to termination shall survive termination. 9. LIMITATION OF LIABILITY. UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED CODE, OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE LAW PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THIS EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU. 10. U.S. GOVERNMENT END USERS. The Covered Code is a "commercial item," as that term is defined in 48 C.F.R. 2.101 (Oct. 1995), consisting of "commercial computer software" and "commercial computer software documentation," as such terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent with 48 C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995), all U.S. Government End Users acquire Covered Code with only those rights set forth herein. 11. MISCELLANEOUS. This License represents the complete agreement concerning subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. This License shall be governed by California law provisions (except to the extent applicable law, if any, provides otherwise), excluding its conflict-of-law provisions. With respect to disputes in which at least one party is a citizen of, or an entity chartered or registered to do business in the United States of America, any litigation relating to this License shall be subject to the jurisdiction of the Federal Courts of the Northern District of California, with venue lying in Santa Clara County, California, with the losing party responsible for costs, including without limitation, court costs and reasonable attorneys' fees and expenses. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not apply to this License. 12. RESPONSIBILITY FOR CLAIMS. As between Initial Developer and the Contributors, each party is responsible for claims and damages arising, directly or indirectly, out of its utilization of rights under this License and You agree to work with Initial Developer and Contributors to distribute such responsibility on an equitable basis. Nothing herein is intended or shall be deemed to constitute any admission of liability. 13. MULTIPLE-LICENSED CODE. Initial Developer may designate portions of the Covered Code as "Multiple-Licensed". "Multiple-Licensed" means that the Initial Developer permits you to utilize portions of the Covered Code under Your choice of the MPL or the alternative licenses, if any, specified by the Initial Developer in the file described in Exhibit A. EXHIBIT A -Mozilla Public License. ``The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.mozilla.org/MPL/ Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. The Original Code is ______________________________________. The Initial Developer of the Original Code is ________________________. Portions created by ______________________ are Copyright (C) ______ _______________________. All Rights Reserved. Contributor(s): ______________________________________. Alternatively, the contents of this file may be used under the terms of the _____ license (the "[___] License"), in which case the provisions of [______] License are applicable instead of those above. If you wish to allow use of your version of this file only under the terms of the [____] License and not to allow others to use your version of this file under the MPL, indicate your decision by deleting the provisions above and replace them with the notice and other provisions required by the [___] License. If you do not delete the provisions above, a recipient may use your version of this file under either the MPL or the [___] License." [NOTE: The text of this Exhibit A may differ slightly from the text of the notices in the Source Code files of the Original Code. You should use the text of this Exhibit A rather than the text found in the Original Code Source Code for Your Modifications.] gitlab-license-finder-6.14.2.1/lib/license_finder/license/templates/ISC.txt0000644000175100017510000000032214172736724025450 0ustar pravipraviPermission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. gitlab-license-finder-6.14.2.1/lib/license_finder/license/templates/SimplifiedBSD.txt0000644000175100017510000000233414172736724027455 0ustar pravipraviRedistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. gitlab-license-finder-6.14.2.1/lib/license_finder/license/templates/GPLv3.txt0000644000175100017510000010451214172736724025733 0ustar pravipravi GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read .gitlab-license-finder-6.14.2.1/lib/license_finder/license/templates/GPLv2.txt0000644000175100017510000004325314172736724025736 0ustar pravipravi GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License.gitlab-license-finder-6.14.2.1/lib/license_finder/license/templates/BSD.txt0000644000175100017510000000305514172736724025450 0ustar pravipraviRedistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. All advertising materials mentioning features or use of this software must display the following acknowledgement: This product includes software developed by . 4. Neither the name of nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. gitlab-license-finder-6.14.2.1/lib/license_finder/license/templates/LGPL2_1.txt0000644000175100017510000006241614172736724026106 0ustar pravipraviGNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 Copyright (C) 1991, 1999 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. [This is the first released version of the Lesser GPL. It also counts as the successor of the GNU Library Public License, version 2, hence the version number 2.1.] Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below. When we speak of free software, we are referring to freedom of use, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish); that you receive source code or can get it if you want it; that you can change the software and use pieces of it in new free programs; and that you are informed that you can do these things. To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it. For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights. We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library. To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original author's reputation will not be affected by problems that might be introduced by others. Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license. Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs. When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library. We call this license the "Lesser" General Public License because it does Less to protect the user's freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances. For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License. In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system. Although the Lesser General Public License is Less protective of the users' freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library. The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined with the library in order to run. TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is addressed as "you". A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables. The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".) "Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library. Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does. 1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) The modified work must itself be a software library. b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change. c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License. d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful. (For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library. In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices. Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy. This option is useful when you wish to copy part of the code of the Library into a program that is not a library. 4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange. If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code. 5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License. However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables. When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law. If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.) Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself. 6. As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications. You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things: a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.) b) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with. c) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution. d) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place. e) Verify that the user has already received a copy of these materials or that you have already sent this user a copy. For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute. 7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above. b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 9. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it. 10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License. 11. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 13. The Free Software Foundation may publish revised and/or new versions of the Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation. 14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Libraries If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License). To apply these terms, attach the following notices to the library. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. one line to give the library's name and an idea of what it does. Copyright (C) year name of author This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the library, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the library `Frob' (a library for tweaking knobs) written by James Random Hacker. signature of Ty Coon, 1 April 1990 Ty Coon, President of Vice That's all there is to it!gitlab-license-finder-6.14.2.1/lib/license_finder/license/templates/Apache1_1.txt0000644000175100017510000000474114172736724026525 0ustar pravipraviThe Apache Software License, Version 1.1 Copyright (c) 2000 The Apache Software Foundation. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The end-user documentation included with the redistribution, if any, must include the following acknowledgment: "This product includes software developed by the Apache Software Foundation (http://www.apache.org/)." Alternately, this acknowledgment may appear in the software itself, if and wherever such third-party acknowledgments normally appear. 4. The name "Apache" and "Apache Software Foundation" must not be used to endorse or promote products derived from this software without prior written permission. For written permission, please contact apache@apache.org. 5. Products derived from this software may not be called "Apache" [ex. "Jakarta," "Apache," or "Apache Commons,"] nor may "Apache" [ex. the names] appear in their name, without prior written permission of the Apache Software Foundation. THIS SOFTWARE IS PROVIDED ''AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. This software consists of voluntary contributions made by many individuals on behalf of the Apache Software Foundation. For more information on the Apache Software Foundation, please see http://www.apache.org/. Portions of this software are based upon public domain software originally written at the National Center for Supercomputing Applications, University of Illinois, Urbana-Champaign.gitlab-license-finder-6.14.2.1/lib/license_finder/license/templates/WTFPL.txt0000644000175100017510000000074414172736724025736 0ustar pravipravi DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004 Copyright (C) 2004 Sam Hocevar Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed. DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. You just DO WHAT THE FUCK YOU WANT TO. gitlab-license-finder-6.14.2.1/lib/license_finder/license/templates/CDDL1.txt0000644000175100017510000003776414172736724025645 0ustar pravipraviCOMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 1. Definitions. 1.1. "Contributor" means each individual or entity that creates or contributes to the creation of Modifications. 1.2. "Contributor Version" means the combination of the Original Software, prior Modifications used by a Contributor (if any), and the Modifications made by that particular Contributor. 1.3. "Covered Software" means (a) the Original Software, or (b) Modifications, or (c) the combination of files containing Original Software with files containing Modifications, in each case including portions thereof. 1.4. "Executable" means the Covered Software in any form other than Source Code. 1.5. "Initial Developer" means the individual or entity that first makes Original Software available under this License. 1.6. "Larger Work" means a work which combines Covered Software or portions thereof with code not governed by the terms of this License. 1.7. "License" means this document. 1.8. "Licensable" means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently acquired, any and all of the rights conveyed herein. 1.9. "Modifications" means the Source Code and Executable form of any of the following: A. Any file that results from an addition to, deletion from or modification of the contents of a file containing Original Software or previous Modifications; B. Any new file that contains any part of the Original Software or previous Modification; or C. Any new file that is contributed or otherwise made available under the terms of this License. 1.10. "Original Software" means the Source Code and Executable form of computer software code that is originally released under this License. 1.11. "Patent Claims" means any patent claim(s), now owned or hereafter acquired, including without limitation, method, process, and apparatus claims, in any patent Licensable by grantor. 1.12. "Source Code" means (a) the common form of computer software code in which modifications are made and (b) associated documentation included in or with such code. 1.13. "You" (or "Your") means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License. For legal entities, "You" includes any entity which controls, is controlled by, or is under common control with You. For purposes of this definition, "control" means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity. 2. License Grants. 2.1. The Initial Developer Grant. Conditioned upon Your compliance with Section 3.1 below and subject to third party intellectual property claims, the Initial Developer hereby grants You a world-wide, royalty-free, non-exclusive license: (a) under intellectual property rights (other than patent or trademark) Licensable by Initial Developer, to use, reproduce, modify, display, perform, sublicense and distribute the Original Software (or portions thereof), with or without Modifications, and/or as part of a Larger Work; and (b) under Patent Claims infringed by the making, using or selling of Original Software, to make, have made, use, practice, sell, and offer for sale, and/or otherwise dispose of the Original Software (or portions thereof). (c) The licenses granted in Sections 2.1(a) and (b) are effective on the date Initial Developer first distributes or otherwise makes the Original Software available to a third party under the terms of this License. (d) Notwithstanding Section 2.1(b) above, no patent license is granted: (1) for code that You delete from the Original Software, or (2) for infringements caused by: (i) the modification of the Original Software, or (ii) the combination of the Original Software with other software or devices. 2.2. Contributor Grant. Conditioned upon Your compliance with Section 3.1 below and subject to third party intellectual property claims, each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license: (a) under intellectual property rights (other than patent or trademark) Licensable by Contributor to use, reproduce, modify, display, perform, sublicense and distribute the Modifications created by such Contributor (or portions thereof), either on an unmodified basis, with other Modifications, as Covered Software and/or as part of a Larger Work; and (b) under Patent Claims infringed by the making, using, or selling of Modifications made by that Contributor either alone and/or in combination with its Contributor Version (or portions of such combination), to make, use, sell, offer for sale, have made, and/or otherwise dispose of: (1) Modifications made by that Contributor (or portions thereof); and (2) the combination of Modifications made by that Contributor with its Contributor Version (or portions of such combination). (c) The licenses granted in Sections 2.2(a) and 2.2(b) are effective on the date Contributor first distributes or otherwise makes the Modifications available to a third party. (d) Notwithstanding Section 2.2(b) above, no patent license is granted: (1) for any code that Contributor has deleted from the Contributor Version; (2) for infringements caused by: (i) third party modifications of Contributor Version, or (ii) the combination of Modifications made by that Contributor with other software (except as part of the Contributor Version) or other devices; or (3) under Patent Claims infringed by Covered Software in the absence of Modifications made by that Contributor. 3. Distribution Obligations. 3.1. Availability of Source Code. Any Covered Software that You distribute or otherwise make available in Executable form must also be made available in Source Code form and that Source Code form must be distributed only under the terms of this License. You must include a copy of this License with every copy of the Source Code form of the Covered Software You distribute or otherwise make available. You must inform recipients of any such Covered Software in Executable form as to how they can obtain such Covered Software in Source Code form in a reasonable manner on or through a medium customarily used for software exchange. 3.2. Modifications. The Modifications that You create or to which You contribute are governed by the terms of this License. You represent that You believe Your Modifications are Your original creation(s) and/or You have sufficient rights to grant the rights conveyed by this License. 3.3. Required Notices. You must include a notice in each of Your Modifications that identifies You as the Contributor of the Modification. You may not remove or alter any copyright, patent or trademark notices contained within the Covered Software, or any notices of licensing or any descriptive text giving attribution to any Contributor or the Initial Developer. 3.4. Application of Additional Terms. You may not offer or impose any terms on any Covered Software in Source Code form that alters or restricts the applicable version of this License or the recipients' rights hereunder. You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, you may do so only on Your own behalf, and not on behalf of the Initial Developer or any Contributor. You must make it absolutely clear that any such warranty, support, indemnity or liability obligation is offered by You alone, and You hereby agree to indemnify the Initial Developer and every Contributor for any liability incurred by the Initial Developer or such Contributor as a result of warranty, support, indemnity or liability terms You offer. 3.5. Distribution of Executable Versions. You may distribute the Executable form of the Covered Software under the terms of this License or under the terms of a license of Your choice, which may contain terms different from this License, provided that You are in compliance with the terms of this License and that the license for the Executable form does not attempt to limit or alter the recipient's rights in the Source Code form from the rights set forth in this License. If You distribute the Covered Software in Executable form under a different license, You must make it absolutely clear that any terms which differ from this License are offered by You alone, not by the Initial Developer or Contributor. You hereby agree to indemnify the Initial Developer and every Contributor for any liability incurred by the Initial Developer or such Contributor as a result of any such terms You offer. 3.6. Larger Works. You may create a Larger Work by combining Covered Software with other code not governed by the terms of this License and distribute the Larger Work as a single product. In such a case, You must make sure the requirements of this License are fulfilled for the Covered Software. 4. Versions of the License. 4.1. New Versions. Sun Microsystems, Inc. is the initial license steward and may publish revised and/or new versions of this License from time to time. Each version will be given a distinguishing version number. Except as provided in Section 4.3, no one other than the license steward has the right to modify this License. 4.2. Effect of New Versions. You may always continue to use, distribute or otherwise make the Covered Software available under the terms of the version of the License under which You originally received the Covered Software. If the Initial Developer includes a notice in the Original Software prohibiting it from being distributed or otherwise made available under any subsequent version of the License, You must distribute and make the Covered Software available under the terms of the version of the License under which You originally received the Covered Software. Otherwise, You may also choose to use, distribute or otherwise make the Covered Software available under the terms of any subsequent version of the License published by the license steward. 4.3. Modified Versions. When You are an Initial Developer and You want to create a new license for Your Original Software, You may create and use a modified version of this License if You: (a) rename the license and remove any references to the name of the license steward (except to note that the license differs from this License); and (b) otherwise make it clear that the license contains terms which differ from this License. 5. DISCLAIMER OF WARRANTY. COVERED SOFTWARE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT THE COVERED SOFTWARE IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED SOFTWARE IS WITH YOU. SHOULD ANY COVERED SOFTWARE PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY COVERED SOFTWARE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER. 6. TERMINATION. 6.1. This License and the rights granted hereunder will terminate automatically if You fail to comply with terms herein and fail to cure such breach within 30 days of becoming aware of the breach. Provisions which, by their nature, must remain in effect beyond the termination of this License shall survive. 6.2. If You assert a patent infringement claim (excluding declaratory judgment actions) against Initial Developer or a Contributor (the Initial Developer or Contributor against whom You assert such claim is referred to as "Participant") alleging that the Participant Software (meaning the Contributor Version where the Participant is a Contributor or the Original Software where the Participant is the Initial Developer) directly or indirectly infringes any patent, then any and all rights granted directly or indirectly to You by such Participant, the Initial Developer (if the Initial Developer is not the Participant) and all Contributors under Sections 2.1 and/or 2.2 of this License shall, upon 60 days notice from Participant terminate prospectively and automatically at the expiration of such 60 day notice period, unless if within such 60 day period You withdraw Your claim with respect to the Participant Software against such Participant either unilaterally or pursuant to a written agreement with Participant. 6.3. In the event of termination under Sections 6.1 or 6.2 above, all end user licenses that have been validly granted by You or any distributor hereunder prior to termination (excluding licenses granted to You by any distributor) shall survive termination. 7. LIMITATION OF LIABILITY. UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED SOFTWARE, OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOST PROFITS, LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE LAW PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THIS EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU. 8. U.S. GOVERNMENT END USERS. The Covered Software is a "commercial item," as that term is defined in 48 C.F.R. 2.101 (Oct. 1995), consisting of "commercial computer software" (as that term is defined at 48 C.F.R. 252.227-7014(a)(1)) and "commercial computer software documentation" as such terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent with 48 C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995), all U.S. Government End Users acquire Covered Software with only those rights set forth herein. This U.S. Government Rights clause is in lieu of, and supersedes, any other FAR, DFAR, or other clause or provision that addresses Government rights in computer software under this License. 9. MISCELLANEOUS. This License represents the complete agreement concerning subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. This License shall be governed by the law of the jurisdiction specified in a notice contained within the Original Software (except to the extent applicable law, if any, provides otherwise), excluding such jurisdiction's conflict-of-law provisions. Any litigation relating to this License shall be subject to the jurisdiction of the courts located in the jurisdiction and venue specified in a notice contained within the Original Software, with the losing party responsible for costs, including, without limitation, court costs and reasonable attorneys' fees and expenses. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not apply to this License. You agree that You alone are responsible for compliance with the United States export administration regulations (and the export control laws and regulation of any other countries) when You use, distribute or otherwise make available any Covered Software. 10. RESPONSIBILITY FOR CLAIMS. As between Initial Developer and the Contributors, each party is responsible for claims and damages arising, directly or indirectly, out of its utilization of rights under this License and You agree to work with Initial Developer and Contributors to distribute such responsibility on an equitable basis. Nothing herein is intended or shall be deemed to constitute any admission of liability. gitlab-license-finder-6.14.2.1/lib/license_finder/license/templates/NewBSD.txt0000644000175100017510000000264014172736724026121 0ustar pravipraviRedistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. gitlab-license-finder-6.14.2.1/lib/license_finder/license/templates/Python.txt0000644000175100017510000000460314172736724026321 0ustar pravipraviPYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 -------------------------------------------- 1. This LICENSE AGREEMENT is between the Python Software Foundation ("PSF"), and the Individual or Organization ("Licensee") accessing and otherwise using this software ("Python") in source or binary form and its associated documentation. 2. Subject to the terms and conditions of this License Agreement, PSF hereby grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, analyze, test, perform and/or display publicly, prepare derivative works, distribute, and otherwise use Python alone or in any derivative version, provided, however, that PSF's License Agreement and PSF's notice of copyright, i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Python Software Foundation; All Rights Reserved" are retained in Python alone or in any derivative version prepared by Licensee. 3. In the event Licensee prepares a derivative work that is based on or incorporates Python or any part thereof, and wants to make the derivative work available to others as provided herein, then Licensee hereby agrees to include in any such work a brief summary of the changes made to Python. 4. PSF is making Python available to Licensee on an "AS IS" basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT INFRINGE ANY THIRD PARTY RIGHTS. 5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. 6. This License Agreement will automatically terminate upon a material breach of its terms and conditions. 7. Nothing in this License Agreement shall be deemed to create any relationship of agency, partnership, or joint venture between PSF and Licensee. This License Agreement does not grant permission to use PSF trademarks or trade name in a trademark sense to endorse or promote products or services of Licensee, or any third party. 8. By copying, installing or otherwise using Python, Licensee agrees to be bound by the terms and conditions of this License Agreement.gitlab-license-finder-6.14.2.1/lib/license_finder/license/templates/MPL2.txt0000644000175100017510000004052614172736724025556 0ustar pravipraviMozilla Public License Version 2.0 ================================== 1. Definitions -------------- 1.1. "Contributor" means each individual or legal entity that creates, contributes to the creation of, or owns Covered Software. 1.2. "Contributor Version" means the combination of the Contributions of others (if any) used by a Contributor and that particular Contributor's Contribution. 1.3. "Contribution" means Covered Software of a particular Contributor. 1.4. "Covered Software" means Source Code Form to which the initial Contributor has attached the notice in Exhibit A, the Executable Form of such Source Code Form, and Modifications of such Source Code Form, in each case including portions thereof. 1.5. "Incompatible With Secondary Licenses" means (a) that the initial Contributor has attached the notice described in Exhibit B to the Covered Software; or (b) that the Covered Software was made available under the terms of version 1.1 or earlier of the License, but not also under the terms of a Secondary License. 1.6. "Executable Form" means any form of the work other than Source Code Form. 1.7. "Larger Work" means a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software. 1.8. "License" means this document. 1.9. "Licensable" means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently, any and all of the rights conveyed by this License. 1.10. "Modifications" means any of the following: (a) any file in Source Code Form that results from an addition to, deletion from, or modification of the contents of Covered Software; or (b) any new file in Source Code Form that contains any Covered Software. 1.11. "Patent Claims" of a Contributor means any patent claim(s), including without limitation, method, process, and apparatus claims, in any patent Licensable by such Contributor that would be infringed, but for the grant of the License, by the making, using, selling, offering for sale, having made, import, or transfer of either its Contributions or its Contributor Version. 1.12. "Secondary License" means either the GNU General Public License, Version 2.0, the GNU Lesser General Public License, Version 2.1, the GNU Affero General Public License, Version 3.0, or any later versions of those licenses. 1.13. "Source Code Form" means the form of the work preferred for making modifications. 1.14. "You" (or "Your") means an individual or a legal entity exercising rights under this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with You. For purposes of this definition, "control" means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity. 2. License Grants and Conditions -------------------------------- 2.1. Grants Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license: (a) under intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, and otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and (b) under Patent Claims of such Contributor to make, use, sell, offer for sale, have made, import, and otherwise transfer either its Contributions or its Contributor Version. 2.2. Effective Date The licenses granted in Section 2.1 with respect to any Contribution become effective for each Contribution on the date the Contributor first distributes such Contribution. 2.3. Limitations on Grant Scope The licenses granted in this Section 2 are the only rights granted under this License. No additional rights or licenses will be implied from the distribution or licensing of Covered Software under this License. Notwithstanding Section 2.1(b) above, no patent license is granted by a Contributor: (a) for any code that a Contributor has removed from Covered Software; or (b) for infringements caused by: (i) Your and any other third party's modifications of Covered Software, or (ii) the combination of its Contributions with other software (except as part of its Contributor Version); or (c) under Patent Claims infringed by Covered Software in the absence of its Contributions. This License does not grant any rights in the trademarks, service marks, or logos of any Contributor (except as may be necessary to comply with the notice requirements in Section 3.4). 2.4. Subsequent Licenses No Contributor makes additional grants as a result of Your choice to distribute the Covered Software under a subsequent version of this License (see Section 10.2) or under the terms of a Secondary License (if permitted under the terms of Section 3.3). 2.5. Representation Each Contributor represents that the Contributor believes its Contributions are its original creation(s) or it has sufficient rights to grant the rights to its Contributions conveyed by this License. 2.6. Fair Use This License is not intended to limit any rights You have under applicable copyright doctrines of fair use, fair dealing, or other equivalents. 2.7. Conditions Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in Section 2.1. 3. Responsibilities ------------------- 3.1. Distribution of Source Form All distribution of Covered Software in Source Code Form, including any Modifications that You create or to which You contribute, must be under the terms of this License. You must inform recipients that the Source Code Form of the Covered Software is governed by the terms of this License, and how they can obtain a copy of this License. You may not attempt to alter or restrict the recipients' rights in the Source Code Form. 3.2. Distribution of Executable Form If You distribute Covered Software in Executable Form then: (a) such Covered Software must also be made available in Source Code Form, as described in Section 3.1, and You must inform recipients of the Executable Form how they can obtain a copy of such Source Code Form by reasonable means in a timely manner, at a charge no more than the cost of distribution to the recipient; and (b) You may distribute such Executable Form under the terms of this License, or sublicense it under different terms, provided that the license for the Executable Form does not attempt to limit or alter the recipients' rights in the Source Code Form under this License. 3.3. Distribution of a Larger Work You may create and distribute a Larger Work under terms of Your choice, provided that You also comply with the requirements of this License for the Covered Software. If the Larger Work is a combination of Covered Software with a work governed by one or more Secondary Licenses, and the Covered Software is not Incompatible With Secondary Licenses, this License permits You to additionally distribute such Covered Software under the terms of such Secondary License(s), so that the recipient of the Larger Work may, at their option, further distribute the Covered Software under the terms of either this License or such Secondary License(s). 3.4. Notices You may not remove or alter the substance of any license notices (including copyright notices, patent notices, disclaimers of warranty, or limitations of liability) contained within the Source Code Form of the Covered Software, except that You may alter any license notices to the extent required to remedy known factual inaccuracies. 3.5. Application of Additional Terms You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, You may do so only on Your own behalf, and not on behalf of any Contributor. You must make it absolutely clear that any such warranty, support, indemnity, or liability obligation is offered by You alone, and You hereby agree to indemnify every Contributor for any liability incurred by such Contributor as a result of warranty, support, indemnity or liability terms You offer. You may include additional disclaimers of warranty and limitations of liability specific to any jurisdiction. 4. Inability to Comply Due to Statute or Regulation --------------------------------------------------- If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Software due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be placed in a text file included with all distributions of the Covered Software under this License. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it. 5. Termination -------------- 5.1. The rights granted under this License will terminate automatically if You fail to comply with any of its terms. However, if You become compliant, then the rights granted under this License from a particular Contributor are reinstated (a) provisionally, unless and until such Contributor explicitly and finally terminates Your grants, and (b) on an ongoing basis, if such Contributor fails to notify You of the non-compliance by some reasonable means prior to 60 days after You have come back into compliance. Moreover, Your grants from a particular Contributor are reinstated on an ongoing basis if such Contributor notifies You of the non-compliance by some reasonable means, this is the first time You have received notice of non-compliance with this License from such Contributor, and You become compliant prior to 30 days after Your receipt of the notice. 5.2. If You initiate litigation against any entity by asserting a patent infringement claim (excluding declaratory judgment actions, counter-claims, and cross-claims) alleging that a Contributor Version directly or indirectly infringes any patent, then the rights granted to You by any and all Contributors for the Covered Software under Section 2.1 of this License shall terminate. 5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or Your distributors under this License prior to termination shall survive termination. ************************************************************************ * * * 6. Disclaimer of Warranty * * ------------------------- * * * * Covered Software is provided under this License on an "as is" * * basis, without warranty of any kind, either expressed, implied, or * * statutory, including, without limitation, warranties that the * * Covered Software is free of defects, merchantable, fit for a * * particular purpose or non-infringing. The entire risk as to the * * quality and performance of the Covered Software is with You. * * Should any Covered Software prove defective in any respect, You * * (not any Contributor) assume the cost of any necessary servicing, * * repair, or correction. This disclaimer of warranty constitutes an * * essential part of this License. No use of any Covered Software is * * authorized under this License except under this disclaimer. * * * ************************************************************************ ************************************************************************ * * * 7. Limitation of Liability * * -------------------------- * * * * Under no circumstances and under no legal theory, whether tort * * (including negligence), contract, or otherwise, shall any * * Contributor, or anyone who distributes Covered Software as * * permitted above, be liable to You for any direct, indirect, * * special, incidental, or consequential damages of any character * * including, without limitation, damages for lost profits, loss of * * goodwill, work stoppage, computer failure or malfunction, or any * * and all other commercial damages or losses, even if such party * * shall have been informed of the possibility of such damages. This * * limitation of liability shall not apply to liability for death or * * personal injury resulting from such party's negligence to the * * extent applicable law prohibits such limitation. Some * * jurisdictions do not allow the exclusion or limitation of * * incidental or consequential damages, so this exclusion and * * limitation may not apply to You. * * * ************************************************************************ 8. Litigation ------------- Any litigation relating to this License may be brought only in the courts of a jurisdiction where the defendant maintains its principal place of business and such litigation shall be governed by laws of that jurisdiction, without reference to its conflict-of-law provisions. Nothing in this Section shall prevent a party's ability to bring cross-claims or counter-claims. 9. Miscellaneous ---------------- This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not be used to construe this License against a Contributor. 10. Versions of the License --------------------------- 10.1. New Versions Mozilla Foundation is the license steward. Except as provided in Section 10.3, no one other than the license steward has the right to modify or publish new versions of this License. Each version will be given a distinguishing version number. 10.2. Effect of New Versions You may distribute the Covered Software under the terms of the version of the License under which You originally received the Covered Software, or under the terms of any subsequent version published by the license steward. 10.3. Modified Versions If you create software not governed by this License, and you want to create a new license for such software, you may create and use a modified version of this License if you rename the license and remove any references to the name of the license steward (except to note that such modified license differs from this License). 10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses If You choose to distribute Source Code Form that is Incompatible With Secondary Licenses under the terms of this version of the License, the notice described in Exhibit B of this License must be attached. Exhibit A - Source Code Form License Notice ------------------------------------------- This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice. You may add additional accurate notices of copyright ownership. Exhibit B - "Incompatible With Secondary Licenses" Notice --------------------------------------------------------- This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0. gitlab-license-finder-6.14.2.1/lib/license_finder/license/templates/0BSD.txt0000644000175100017510000000113714172736724025527 0ustar pravipraviPermission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. gitlab-license-finder-6.14.2.1/lib/license_finder/license/templates/Zlib.txt0000644000175100017510000000153414172736724025740 0ustar pravipraviCopyright (c) This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. gitlab-license-finder-6.14.2.1/lib/license_finder/license/templates/Ruby.txt0000644000175100017510000000437514172736724025767 0ustar pravipravi 1. You may make and give away verbatim copies of the source form of the software without restriction, provided that you duplicate all of the original copyright notices and associated disclaimers. 2. You may modify your copy of the software in any way, provided that you do at least ONE of the following: a) place your modifications in the Public Domain or otherwise make them Freely Available, such as by posting said modifications to Usenet or an equivalent medium, or by allowing the author to include your modifications in the software. b) use the modified software only within your corporation or organization. c) give non-standard binaries non-standard names, with instructions on where to get the original software distribution. d) make other distribution arrangements with the author. 3. You may distribute the software in object code or binary form, provided that you do at least ONE of the following: a) distribute the binaries and library files of the software, together with instructions (in the manual page or equivalent) on where to get the original distribution. b) accompany the distribution with the machine-readable source of the software. c) give non-standard binaries non-standard names, with instructions on where to get the original software distribution. d) make other distribution arrangements with the author. 4. You may modify and include the part of the software into any other software (possibly commercial). But some files in the distribution are not written by the author, so that they are not under these terms. For the list of those files and their copying conditions, see the file LEGAL. 5. The scripts and library files supplied as input to or produced as output from the software do not automatically fall under the copyright of the software, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this software. 6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. gitlab-license-finder-6.14.2.1/lib/license_finder/license/templates/LGPL.txt0000644000175100017510000001674214172736724025605 0ustar pravipravi GNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below. 0. Additional Definitions. As used herein, "this License" refers to version 3 of the GNU Lesser General Public License, and the "GNU GPL" refers to version 3 of the GNU General Public License. "The Library" refers to a covered work governed by this License, other than an Application or a Combined Work as defined below. An "Application" is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library. A "Combined Work" is a work produced by combining or linking an Application with the Library. The particular version of the Library with which the Combined Work was made is also called the "Linked Version". The "Minimal Corresponding Source" for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version. The "Corresponding Application Code" for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work. 1. Exception to Section 3 of the GNU GPL. You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL. 2. Conveying Modified Versions. If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version: a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy. 3. Object Code Incorporating Material from Library Header Files. The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following: a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the object code with a copy of the GNU GPL and this license document. 4. Combined Works. You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following: a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the Combined Work with a copy of the GNU GPL and this license document. c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document. d) Do one of the following: 0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source. 1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version. e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.) 5. Combined Libraries. You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License. b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 6. Revised Versions of the GNU Lesser General Public License. The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation. If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library.gitlab-license-finder-6.14.2.1/lib/license_finder/license/none_matcher.rb0000644000175100017510000000024314172736724025264 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class License class NoneMatcher def matches_text?(_text) false end end end end gitlab-license-finder-6.14.2.1/lib/license_finder/license/definitions.rb0000644000175100017510000002331314172736724025140 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class License module Definitions extend self def all [ apache1_1, apache2, bsd, cc01, cddl1, eclipse1, gplv2, gplv3, isc, lgpl, lgpl2_1, mit, mpl1_1, mpl2, newbsd, ofl, python, ruby, simplifiedbsd, wtfpl, zerobsd, zlib ] end def build_unrecognized(name) License.new( short_name: name, url: nil, matcher: NoneMatcher.new ) end private def apache1_1 License.new( short_name: 'Apache1_1', pretty_name: 'Apache 1.1', other_names: [ 'Apache-1.1', 'The Apache Software License, Version 1.1' ], url: 'http://www.apache.org/licenses/LICENSE-1.1.txt' ) end def apache2 License.new( short_name: 'Apache2', pretty_name: 'Apache 2.0', other_names: [ 'Apache-2.0', 'Apache Software License', 'Apache License 2.0', 'Apache License Version 2.0', 'Apache Public License 2.0', 'Apache Software License, Version 2.0', 'Apache Software License - Version 2.0', 'Apache 2', 'Apache License', 'Apache License, Version 2.0', 'ASL 2.0', 'ASF 2.0' ], url: 'http://www.apache.org/licenses/LICENSE-2.0.txt' ) end def bsd License.new( short_name: 'BSD', other_names: ['BSD4', 'bsd-old', '4-clause BSD', 'BSD-4-Clause', 'BSD 4-Clause', 'BSD License'], url: 'http://en.wikipedia.org/wiki/BSD_licenses#4-clause_license_.28original_.22BSD_License.22.29' ) end def cc01 License.new( short_name: 'CC01', pretty_name: 'CC0 1.0 Universal', other_names: ['CC0 1.0'], url: 'http://creativecommons.org/publicdomain/zero/1.0' ) end def cddl1 License.new( short_name: 'CDDL1', pretty_name: 'Common Development and Distribution License 1.0', other_names: [ 'CDDL-1.0', 'Common Development and Distribution License (CDDL) v1.0', 'COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0' ], url: 'https://spdx.org/licenses/CDDL-1.0.html' ) end def eclipse1 License.new( short_name: 'EPL1', pretty_name: 'Eclipse Public License 1.0', other_names: [ 'EPL-1.0', 'EPL 1.0', 'Eclipse Public License - v 1.0' ], url: 'https://www.eclipse.org/legal/epl-v10.html' ) end def gplv2 License.new( short_name: 'GPLv2', other_names: ['GPL V2', 'gpl-v2', 'GNU GENERAL PUBLIC LICENSE Version 2'], url: 'http://www.gnu.org/licenses/gpl-2.0.txt' ) end def gplv3 License.new( short_name: 'GPLv3', other_names: ['GPL V3', 'gpl-v3', 'GNU GENERAL PUBLIC LICENSE Version 3'], url: 'http://www.gnu.org/licenses/gpl-3.0.txt' ) end def isc License.new( short_name: 'ISC', url: 'http://en.wikipedia.org/wiki/ISC_license' ) end def lgpl License.new( short_name: 'LGPL', other_names: ['LGPL-3', 'LGPLv3', 'LGPL-3.0'], url: 'http://www.gnu.org/licenses/lgpl.txt' ) end def lgpl2_1 License.new( short_name: 'LGPL2_1', pretty_name: 'GNU Lesser General Public License version 2.1', other_names: [ 'LGPL-2.1-only', 'LGPL 2.1', 'LGPL v2.1', 'GNU Lesser General Public License 2.1' ], url: 'https://opensource.org/licenses/LGPL-2.1' ) end def mit url_regexp = %r{MIT Licen[sc]e.*http://(?:www\.)?opensource\.org/licenses/mit-license} header_regexp = /The MIT Licen[sc]e/ one_liner_regexp = /is released under the MIT licen[sc]e/ matcher = AnyMatcher.new( Matcher.from_template(Template.named('MIT')), Matcher.from_regex(url_regexp), HeaderMatcher.new(Matcher.from_regex(header_regexp)), Matcher.from_regex(one_liner_regexp) ) License.new( short_name: 'MIT', other_names: ['Expat', 'MIT license', 'MIT License', 'The MIT License (MIT)'], url: 'http://opensource.org/licenses/mit-license', matcher: matcher ) end def mpl1_1 header_regexp = /Mozilla Public Licen[sc]e.*Version 1\.1/im header_regexp_matcher = Matcher.from_regex(header_regexp) mpl1_1_tmpl = Template.named('MPL1_1') matcher = AnyMatcher.new( HeaderMatcher.new(header_regexp_matcher, 2), Matcher.from_template(mpl1_1_tmpl) ) License.new( short_name: 'MPL1_1', pretty_name: 'Mozilla Public License 1.1', other_names: [ 'MPL-1.1', 'Mozilla Public License, Version 1.1', 'Mozilla Public License version 1.1' ], url: 'https://www.mozilla.org/media/MPL/1.1/index.0c5913925d40.txt', matcher: matcher ) end def mpl2 header_regexp = /Mozilla Public Licen[sc]e, version 2\.0/ matcher = AnyMatcher.new( Matcher.from_template(Template.named('MPL2')), HeaderMatcher.new(Matcher.from_regex(header_regexp)) ) License.new( short_name: 'MPL2', pretty_name: 'Mozilla Public License 2.0', other_names: [ 'MPL-2.0', 'Mozilla Public License, Version 2.0', 'Mozilla Public License version 2.0' ], url: 'https://www.mozilla.org/media/MPL/2.0/index.815ca599c9df.txt', matcher: matcher ) end def newbsd template = Template.named('NewBSD') alternate_content = template.content.gsub( 'Neither the name of nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.', 'The names of its contributors may not be used to endorse or promote products derived from this software without specific prior written permission.' ) matcher = AnyMatcher.new( Matcher.from_template(template), Matcher.from_text(alternate_content) ) License.new( short_name: 'NewBSD', pretty_name: 'New BSD', other_names: [ 'Modified BSD', 'BSD3', 'BSD 3', 'BSD-3', '3-clause BSD', 'BSD-3-Clause', 'BSD 3-Clause License', 'The 3-Clause BSD License', 'BSD 3-clause New License', 'New BSD License', 'BSD New license', 'BSD Licence 3' ], url: 'http://opensource.org/licenses/BSD-3-Clause', matcher: matcher ) end def ofl License.new( short_name: 'OFL', pretty_name: 'SIL OPEN FONT LICENSE Version 1.1', other_names: [ 'OPEN FONT LICENSE Version 1.1' ], url: 'https://opensource.org/licenses/OFL-1.1' ) end def python License.new( short_name: 'Python', pretty_name: 'Python Software Foundation License', other_names: [ 'PSF', 'PSFL', 'PSF License' ], url: 'http://hg.python.org/cpython/raw-file/89ce323357db/LICENSE' ) end def ruby url = 'http://www.ruby-lang.org/en/LICENSE.txt' matcher = AnyMatcher.new( Matcher.from_template(Template.named('Ruby')), Matcher.from_text(url) ) License.new( short_name: 'Ruby', pretty_name: 'ruby', url: url, matcher: matcher ) end def simplifiedbsd License.new( short_name: 'SimplifiedBSD', pretty_name: 'Simplified BSD', other_names: [ 'FreeBSD', '2-clause BSD', 'BSD-2-Clause', 'BSD 2-Clause', 'The BSD 2-Clause License' ], url: 'http://opensource.org/licenses/bsd-license' ) end def wtfpl License.new( short_name: 'WTFPL', pretty_name: 'WTFPL', other_names: [ 'WTFPL V2', 'Do What The Fuck You Want To Public License' ], url: 'http://www.wtfpl.net/' ) end def zerobsd matcher = AnyMatcher.new( Matcher.from_template(Template.named('0BSD')) ) License.new( short_name: '0BSD', pretty_name: 'BSD Zero Clause License', other_names: [ '0-Clause BSD', 'Zero-Clause BSD', 'BSD-0-Clause', 'BSD-Zero-Clause', 'BSD 0-Clause', 'BSD Zero-Clause' ], url: 'https://opensource.org/licenses/0BSD', matcher: matcher ) end def zlib License.new( short_name: 'Zlib', pretty_name: 'zlib/libpng license', other_names: [ 'zlib License' ], url: 'https://opensource.org/licenses/Zlib' ) end end end end gitlab-license-finder-6.14.2.1/lib/license_finder/decision_applier.rb0000644000175100017510000000333114172736724024512 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class DecisionApplier def initialize(options) @decisions = options.fetch(:decisions) @all_packages = options.fetch(:packages).to_set + @decisions.packages.to_set @acknowledged = apply_decisions end attr_reader :acknowledged def unapproved acknowledged.reject(&:approved?) end def restricted acknowledged.select(&:restricted?) end def any_packages? all_packages.any? end private attr_reader :decisions, :all_packages def apply_decisions all_packages .reject { |package| ignored?(package) } .map do |package| with_homepage( with_approval( with_decided_licenses(package) ) ) end end def ignored?(package) decisions.ignored?(package.name) || (package.groups.any? && package.groups.all? { |group| decisions.ignored_group?(group) }) end def with_decided_licenses(package) decisions.licenses_of(package.name).each do |license| package.decide_on_license license end package end def with_homepage(package) homepage = decisions.homepage_of(package.name) package.homepage = homepage if homepage package end def with_approval(package) if package.licenses.all? { |license| decisions.restricted?(license) } package.restricted! elsif decisions.approved?(package.name, package.version) package.approved_manually!(decisions.approval_of(package.name, package.version)) elsif package.licenses.any? { |license| decisions.permitted?(license) } package.permitted! end package end end end gitlab-license-finder-6.14.2.1/lib/license_finder/package.rb0000644000175100017510000001302014172736724022570 0ustar pravipravi# frozen_string_literal: true require 'license_finder/package_utils/licensing' require 'license_finder/package_utils/license_files' require 'license_finder/package_utils/notice_files' module LicenseFinder # Super-class that adapts data from different package management # systems (gems, npm, pip, etc.) to a common interface. # # Guidance on adding a new system # # - subclass Package, and initialize based on the data you receive from the # package manager # - if the package specs will report license names, pass :spec_licenses in the # constructor options # - if the package's files can be searched for licenses pass :install_path in # the constructor options # - otherwise, override #licenses_from_spec or #license_files class Package attr_reader :logger def self.license_names_from_standard_spec(spec) licenses = spec['licenses'] || [spec['license']].compact licenses = [licenses] unless licenses.is_a?(Array) licenses = licenses.flatten licenses.map do |license| if license.is_a? Hash license['type'] else license end end end def initialize(name, version = nil, options = {}) @logger = options[:logger] || Core.default_logger ## DESCRIPTION @name = name @version = version || '' @authors = options[:authors] || '' @summary = options[:summary] || '' @description = options[:description] || '' @homepage = options[:homepage] || '' @package_url = options[:package_url].to_s @children = options[:children] || [] @parents = Set.new # will be figured out later by package manager @groups = options[:groups] || [] ## APPROVAL @permitted = false @restricted = false @manual_approval = nil ## LICENSING @license_names_from_spec = options[:spec_licenses] || [] @install_path = options[:install_path] @missing = options[:missing] || false @decided_licenses = Set.new end ## DESCRIPTION attr_accessor :homepage, :package_url attr_reader :name, :version, :authors, :summary, :description, :children, :parents, :groups ## APPROVAL def approved_manually!(approval) @manual_approval = approval end def approved_manually? !@manual_approval.nil? end def approved? # Question: is `!restricted?` redundant? # DecisionApplier does not call `permitted!` or `approved_manually!` # if a Package has been restricted. (approved_manually? || permitted?) && !restricted? end def permitted! @permitted = true end def permitted? @permitted end def restricted! @restricted = true end def restricted? @restricted end attr_reader :manual_approval ## EQUALITY def <=>(other) eq_name = name <=> other.name return eq_name unless eq_name.zero? version <=> other.version end def eql?(other) name == other.name && version == other.version end def hash [name, version].hash end ## LICENSING attr_reader :license_names_from_spec # stubbed in tests, otherwise private attr_reader :install_path # checked in tests, otherwise private def licenses @licenses ||= activations.map(&:license).sort_by(&:name).to_set end def activations licensing.activations.tap do |activations| activations.each { |activation| log_activation activation } end end def licensing Licensing.new(self, @decided_licenses, licenses_from_spec, license_files) end def decide_on_license(license) @decided_licenses << license end def licenses_from_spec license_names_from_spec .map { |name| License.find_by_name(name) } .to_set end def license_files LicenseFiles.find(install_path, logger: logger) end def notice_files NoticeFiles.find(install_path, logger: logger) end def package_manager 'unknown' end def missing? @missing end def log_activation(activation) preamble = format('package %s:', activation.package.name) if activation.sources.empty? logger.debug activation.package.class, format('%s no licenses found', preamble) else activation.sources.each do |source| logger.debug activation.package.class, format("%s found license '%s' %s", preamble, activation.license.name, source) end end end end end require 'license_finder/packages/manual_package' require 'license_finder/packages/bower_package' require 'license_finder/packages/go_package' require 'license_finder/packages/bundler_package' require 'license_finder/packages/pip_package' require 'license_finder/packages/npm_package' require 'license_finder/packages/maven_package' require 'license_finder/packages/gradle_package' require 'license_finder/packages/cocoa_pods_package' require 'license_finder/packages/carthage_package' require 'license_finder/packages/spm_package' require 'license_finder/packages/rebar_package' require 'license_finder/packages/erlangmk_package' require 'license_finder/packages/mix_package' require 'license_finder/packages/merged_package' require 'license_finder/packages/nuget_package' require 'license_finder/packages/conan_package' require 'license_finder/packages/yarn_package' require 'license_finder/packages/sbt_package' require 'license_finder/packages/cargo_package' require 'license_finder/packages/composer_package' require 'license_finder/packages/conda_package' gitlab-license-finder-6.14.2.1/lib/license_finder/decisions.rb0000644000175100017510000001705614172736724023172 0ustar pravipravi# frozen_string_literal: true require 'open-uri' require 'license_finder/license' module LicenseFinder class Decisions ###### # READ ###### attr_reader :packages, :permitted, :restricted, :ignored, :ignored_groups, :project_name, :inherited_decisions def licenses_of(name) @licenses[name] end def homepage_of(name) @homepages[name] end def approval_of(name, version = nil) if !@approvals.key?(name) nil elsif !version.nil? @approvals[name] if @approvals[name][:safe_versions].empty? || @approvals[name][:safe_versions].include?(version) elsif @approvals[name][:safe_versions].empty? @approvals[name] end end def approved?(name, version = nil) if !@approvals.key?(name) nil elsif !version.nil? @approvals.key?(name) && @approvals[name][:safe_versions].empty? || @approvals[name][:safe_versions].include?(version) else @approvals.key?(name) end end def permitted?(lic) if @permitted.include?(lic) true elsif lic.is_a?(OrLicense) lic.sub_licenses.any? { |sub_lic| @permitted.include?(sub_lic) } elsif lic.is_a?(AndLicense) lic.sub_licenses.all? { |sub_lic| @permitted.include?(sub_lic) } else false end end def restricted?(lic) @restricted.include?(lic) end def ignored?(name) @ignored.include?(name) end def ignored_group?(name) @ignored_groups.include?(name) end ####### # WRITE ####### TXN = Struct.new(:who, :why, :safe_when, :safe_versions) do def self.from_hash(txn, versions) new(txn[:who], txn[:why], txn[:when], versions || []) end end def initialize @decisions = [] @packages = Set.new @licenses = Hash.new { |h, k| h[k] = Set.new } @homepages = {} @approvals = {} @permitted = Set.new @restricted = Set.new @ignored = Set.new @ignored_groups = Set.new @inherited_decisions = Set.new end def add_package(name, version, txn = {}) add_decision [:add_package, name, version, txn] @packages << ManualPackage.new(name, version) self end def remove_package(name, txn = {}) add_decision [:remove_package, name, txn] @packages.delete(ManualPackage.new(name)) self end def license(name, lic, txn = {}) add_decision [:license, name, lic, txn] @licenses[name] << License.find_by_name(lic) self end def unlicense(name, lic, txn = {}) add_decision [:unlicense, name, lic, txn] @licenses[name].delete(License.find_by_name(lic)) self end def homepage(name, homepage, txn = {}) add_decision [:homepage, name, homepage, txn] @homepages[name] = homepage self end def approve(name, txn = {}) add_decision [:approve, name, txn] versions = [] versions = @approvals[name][:safe_versions] if @approvals.key?(name) @approvals[name] = TXN.from_hash(txn, versions) @approvals[name][:safe_versions].concat(txn[:versions]) unless txn[:versions].nil? self end def unapprove(name, txn = {}) add_decision [:unapprove, name, txn] @approvals.delete(name) self end def permit(lic, txn = {}) add_decision [:permit, lic, txn] @permitted << License.find_by_name(lic) self end def unpermit(lic, txn = {}) add_decision [:unpermit, lic, txn] @permitted.delete(License.find_by_name(lic)) self end def restrict(lic, txn = {}) add_decision [:restrict, lic, txn] @restricted << License.find_by_name(lic) self end def unrestrict(lic, txn = {}) add_decision [:unrestrict, lic, txn] @restricted.delete(License.find_by_name(lic)) self end def ignore(name, txn = {}) add_decision [:ignore, name, txn] @ignored << name self end def heed(name, txn = {}) add_decision [:heed, name, txn] @ignored.delete(name) self end def ignore_group(name, txn = {}) add_decision [:ignore_group, name, txn] @ignored_groups << name self end def heed_group(name, txn = {}) add_decision [:heed_group, name, txn] @ignored_groups.delete(name) self end def name_project(name, txn = {}) add_decision [:name_project, name, txn] @project_name = name self end def unname_project(txn = {}) add_decision [:unname_project, txn] @project_name = nil self end def inherit_from(filepath_info) decisions = if filepath_info.is_a?(Hash) resolve_inheritance(filepath_info) elsif filepath_info =~ %r{^https?://} open_uri(filepath_info).read else Pathname(filepath_info).read end add_decision [:inherit_from, filepath_info] @inherited_decisions << filepath_info restore_inheritance(decisions) end def resolve_inheritance(filepath_info) if (gem_name = filepath_info['gem']) Pathname(gem_config_path(gem_name, filepath_info['path'])).read else open_uri(filepath_info['url'], filepath_info['authorization']).read end end def gem_config_path(gem_name, relative_config_path) spec = Gem::Specification.find_by_name(gem_name) File.join(spec.gem_dir, relative_config_path) rescue Gem::LoadError => e raise Gem::LoadError, "Unable to find gem #{gem_name}; is the gem installed? #{e}" end def remove_inheritance(filepath) @decisions -= [[:inherit_from, filepath]] @inherited_decisions.delete(filepath) self end def add_decision(decision) @decisions << decision unless @inherited end def restore_inheritance(decisions) @inherited = true self.class.restore(decisions, self) @inherited = false self end def open_uri(uri, auth = nil) header = {} auth_header = resolve_authorization(auth) header['Authorization'] = auth_header if auth_header # ruby < 2.5.0 URI.open is private if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.5.0') # rubocop:disable Security/Open open(uri, header) # rubocop:enable Security/Open else URI.open(uri, header) end end def resolve_authorization(auth) return unless auth token_env = auth.match(/\$(\S.*)/) return auth unless token_env token = ENV[token_env[1]] auth.sub(token_env[0], token) end ######### # PERSIST ######### def self.fetch_saved(file) restore(read!(file)) end def save!(file) write!(persist, file) end def self.restore(persisted, result = new) return result unless persisted actions = YAML.load(persisted) list_of_actions = (actions || []).map(&:first) if (list_of_actions & %i[whitelist blacklist]).any? raise 'The decisions file seems to have whitelist/blacklist keys which are deprecated. Please replace them with permit/restrict respectively and try again! More info - https://github.com/pivotal/LicenseFinder/commit/a40b22fda11b3a0efbb3c0a021381534bc998dd9' end (actions || []).each do |action, *args| result.send(action, *args) end result end def persist YAML.dump(@decisions) end def self.read!(file) file.read if file.exist? end def write!(value, file) file.dirname.mkpath file.open('w+') do |f| f.print value end end end end gitlab-license-finder-6.14.2.1/lib/license_finder/cli/0000755000175100017510000000000014172736724021423 5ustar pravipravigitlab-license-finder-6.14.2.1/lib/license_finder/cli/permitted_licenses.rb0000644000175100017510000000170414172736724025634 0ustar pravipravi# frozen_string_literal: true module LicenseFinder module CLI class PermittedLicenses < Base extend Subcommand include MakesDecisions desc 'list', 'List all the permitted licenses' def list say 'Permitted Licenses:', :blue say_each(decisions.permitted, &:name) end auditable desc 'add LICENSE...', 'Add one or more licenses to the permitted licenses' def add(*licenses) assert_some licenses modifying { licenses.each { |l| decisions.permit(l, txn) } } say "Added #{licenses.join(', ')} to the permitted licenses" end auditable desc 'remove LICENSE...', 'Remove one or more licenses from the permitted licenses' def remove(*licenses) assert_some licenses modifying { licenses.each { |l| decisions.unpermit(l, txn) } } say "Removed #{licenses.join(', ')} from the license permitted licenses" end end end end gitlab-license-finder-6.14.2.1/lib/license_finder/cli/dependencies.rb0000644000175100017510000000273114172736724024401 0ustar pravipravi# frozen_string_literal: true module LicenseFinder module CLI class Dependencies < Base extend Subcommand include MakesDecisions method_option :approve, type: :boolean, desc: 'Approve the added dependency' method_option :homepage, type: :string, desc: 'Source of the added dependency' auditable desc 'add DEPENDENCY LICENSE VERSION [--homepage=HOMEPAGE] [--approve]', 'Add a dependency that is not managed by a package manager, optionally approving it at the same time' def add(name, license, version) modifying do decisions .add_package(name, version, txn) .license(name, license, txn) decisions.homepage(name, options[:homepage], txn) if options[:homepage] decisions.approve(name, txn) if options[:approve] end if options[:approve] say "The #{name} dependency has been added and approved!", :green else say "The #{name} dependency has been added!", :green end end auditable desc 'remove DEPENDENCY', 'Remove a dependency that is not managed by a package manager' def remove(name) modifying { decisions.remove_package(name, txn) } say "The #{name} dependency has been removed.", :green end desc 'list', 'List manually added dependencies' def list say 'Manually Added Dependencies:', :blue say_each(decisions.packages, &:name) end end end end gitlab-license-finder-6.14.2.1/lib/license_finder/cli/licenses.rb0000644000175100017510000000133114172736724023553 0ustar pravipravi# frozen_string_literal: true module LicenseFinder module CLI class Licenses < Base extend Subcommand include MakesDecisions auditable desc 'add DEPENDENCY LICENSE', "Set a dependency's licenses, overwriting any license_finder has found" def add(name, license) modifying { decisions.license(name, license, txn) } say "The #{name} dependency has been marked as using #{license} license!", :green end auditable desc 'remove DEPENDENCY LICENSE', 'Remove a manually set license' def remove(dep, lic) modifying { decisions.unlicense(dep, lic, txn) } say "The dependency #{dep} no longer has a manual license" end end end end gitlab-license-finder-6.14.2.1/lib/license_finder/cli/inherited_decisions.rb0000644000175100017510000000362514172736724025771 0ustar pravipravi# frozen_string_literal: true module LicenseFinder module CLI class InheritedDecisions < Base extend Subcommand include MakesDecisions desc 'list', 'List all the inherited decision files' def list say 'Inherited Decision Files:', :blue say_each(decisions.inherited_decisions) end auditable desc 'add DECISION_FILE...', 'Add one or more decision files to the inherited decisions' def add(*decision_files) assert_some decision_files modifying { decision_files.each { |filepath| decisions.inherit_from(filepath) } } say "Added #{decision_files.join(', ')} to the inherited decisions" end auditable desc 'add_with_auth URL AUTH_TYPE TOKEN_OR_ENV', 'Add a remote decision file that needs authentication' def add_with_auth(*params) url, auth_type, token_or_env = params auth_info = { 'url' => url, 'authorization' => "#{auth_type} #{token_or_env}" } modifying { decisions.add_decision [:inherit_from, auth_info] } say "Added #{url} to the inherited decisions" end auditable desc 'remove DECISION_FILE...', 'Remove one or more decision files from the inherited decisions' def remove(*decision_files) assert_some decision_files modifying { decision_files.each { |filepath| decisions.remove_inheritance(filepath) } } say "Removed #{decision_files.join(', ')} from the inherited decisions" end auditable desc 'remove_with_auth URL AUTH_TYPE TOKEN_OR_ENV', 'Add a remote decision file that needs authentication' def remove_with_auth(*params) url, auth_type, token_or_env = params auth_info = { 'url' => url, 'authorization' => "#{auth_type} #{token_or_env}" } modifying { decisions.remove_inheritance(auth_info) } say "Removed #{url} from the inherited decisions" end end end end gitlab-license-finder-6.14.2.1/lib/license_finder/cli/ignored_groups.rb0000644000175100017510000000137114172736724025000 0ustar pravipravi# frozen_string_literal: true module LicenseFinder module CLI class IgnoredGroups < Base extend Subcommand include MakesDecisions desc 'list', 'List all the ignored groups' def list say 'Ignored Groups:', :blue say_each(decisions.ignored_groups) end auditable desc 'add GROUP', 'Add a group to be ignored' def add(group) modifying { decisions.ignore_group(group, txn) } say "Added #{group} to the ignored groups" end auditable desc 'remove GROUP', 'Remove a group from the ignored groups' def remove(group) modifying { decisions.heed_group(group, txn) } say "Removed #{group} from the ignored groups" end end end end gitlab-license-finder-6.14.2.1/lib/license_finder/cli/makes_decisions.rb0000644000175100017510000000150014172736724025104 0ustar pravipravi# frozen_string_literal: true module LicenseFinder module CLI module MakesDecisions def self.included(mod) mod.extend(ClassMethods) end module ClassMethods def auditable method_option :who, desc: 'The person making this decision' method_option :why, desc: 'The reason for making this decision' end def approvable method_option :version, desc: 'The version that will be approved' end end private def txn @txn ||= { who: options[:who], why: options[:why], versions: options[:version] ? [options[:version]] : [], when: Time.now.getutc } end def modifying yield decisions.save!(config.decisions_file_path) end end end end gitlab-license-finder-6.14.2.1/lib/license_finder/cli/restricted_licenses.rb0000644000175100017510000000171014172736724026004 0ustar pravipravi# frozen_string_literal: true module LicenseFinder module CLI class RestrictedLicenses < Base extend Subcommand include MakesDecisions desc 'list', 'List all the restricted licenses' def list say 'Restricted Licenses:', :blue say_each(decisions.restricted, &:name) end auditable desc 'add LICENSE...', 'Add one or more licenses to the restricted licenses' def add(*licenses) assert_some licenses modifying { licenses.each { |l| decisions.restrict(l, txn) } } say "Added #{licenses.join(', ')} to the restricted licenses" end auditable desc 'remove LICENSE...', 'Remove one or more licenses from the restricted licenses' def remove(*licenses) assert_some licenses modifying { licenses.each { |l| decisions.unrestrict(l, txn) } } say "Removed #{licenses.join(', ')} from the restricted licenses" end end end end gitlab-license-finder-6.14.2.1/lib/license_finder/cli/project_name.rb0000644000175100017510000000126314172736724024420 0ustar pravipravi# frozen_string_literal: true module LicenseFinder module CLI class ProjectName < Base extend Subcommand include MakesDecisions desc 'show', 'Show the project name' def show say 'Project Name:', :blue say decisions.project_name end auditable desc 'add NAME', 'Set the project name' def add(name) modifying { decisions.name_project(name, txn) } say "Set the project name to #{name}", :green end auditable desc 'remove', 'Remove the project name' def remove modifying { decisions.unname_project(txn) } say 'Removed the project name' end end end end gitlab-license-finder-6.14.2.1/lib/license_finder/cli/approvals.rb0000644000175100017510000000130314172736724023754 0ustar pravipravi# frozen_string_literal: true module LicenseFinder module CLI class Approvals < Base extend Subcommand include MakesDecisions auditable approvable desc 'add DEPENDENCY...', 'Approve one or more dependencies by name' def add(*names) assert_some names modifying { names.each { |name| decisions.approve(name, txn) } } say "The #{names.join(', ')} dependency has been approved!", :green end auditable desc 'remove DEPENDENCY', 'Unapprove a dependency' def remove(dep) modifying { decisions.unapprove(dep, txn) } say "The dependency #{dep} no longer has a manual approval" end end end end gitlab-license-finder-6.14.2.1/lib/license_finder/cli/main.rb0000644000175100017510000002410014172736724022671 0ustar pravipravi# frozen_string_literal: true require 'license_finder/report' require 'license_finder/version' require 'license_finder/diff' require 'license_finder/package_delta' require 'license_finder/license_aggregator' require 'license_finder/project_finder' require 'license_finder/logger' module LicenseFinder module CLI class Main < Base extend Rootcommand FORMATS = { 'text' => TextReport, 'html' => HtmlReport, 'markdown' => MarkdownReport, 'csv' => CsvReport, 'xml' => XmlReport, 'json' => JsonReport, 'junit' => JunitReport }.freeze class_option :go_full_version, desc: 'Whether dependency version should include full version. Only meaningful if used with a Go project. Defaults to false.' class_option :gradle_include_groups, desc: 'Whether dependency name should include group id. Only meaningful if used with a Java/gradle project. Defaults to false.' class_option :gradle_command, desc: "Command to use when fetching gradle packages. Only meaningful if used with a Java/gradle project. Defaults to 'gradlew' / 'gradlew.bat' if the wrapper is present, otherwise to 'gradle'." class_option :maven_include_groups, desc: 'Whether dependency name should include group id. Only meaningful if used with a Java/maven project. Defaults to false.' class_option :maven_options, desc: 'Maven options to append to command. Defaults to empty.' class_option :npm_options, desc: 'npm options to append to command. Defaults to empty.' class_option :pip_requirements_path, desc: 'Path to python requirements file. Defaults to requirements.txt.' class_option :python_version, desc: 'Python version to invoke pip with. Valid versions: 2 or 3. Default: 2' class_option :rebar_command, desc: "Command to use when fetching rebar packages. Only meaningful if used with a Erlang/rebar project. Defaults to 'rebar'." class_option :rebar_deps_dir, desc: "Path to rebar dependencies directory. Only meaningful if used with a Erlang/rebar project. Defaults to 'deps'." class_option :elixir_command, desc: "Command to use when parsing package metadata for Mix. Only meaningful if used with a Mix project (i.e., Elixir or Erlang). Defaults to 'elixir'." class_option :mix_command, desc: "Command to use when fetching packages through Mix. Only meaningful if used with a Mix project (i.e., Elixir or Erlang). Defaults to 'mix'." class_option :mix_deps_dir, desc: "Path to Mix dependencies directory. Only meaningful if used with a Mix project (i.e., Elixir or Erlang). Defaults to 'deps'." class_option :sbt_include_groups, desc: 'Whether dependency name should include group id. Only meaningful if used with a Scala/sbt project. Defaults to false.' class_option :conda_bash_setup_script, desc: "Path to conda.sh script. Only meaningful if used with a Conda project. Defaults to '~/miniconda3/etc/profile.d/conda.sh'." class_option :composer_check_require_only, desc: "Whether to only check for licenses from dependencies on the 'require' section. Only meaningful if used with a Composer project. Defaults to false." # Method options which are shared between report and action_item def self.format_option method_option :format, desc: 'Emit detailed info about what LicenseFinder is doing', default: 'text', enum: FORMATS.keys end def self.shared_options method_option :debug, aliases: '-d', type: :boolean, desc: 'Emit detailed info about what LicenseFinder is doing' method_option :prepare, aliases: '-p', type: :boolean, desc: 'Prepares the project first for license_finder', default: false, required: false method_option :prepare_no_fail, type: :boolean, desc: 'Prepares the project first for license_finder but carries on despite any potential failures', default: false, required: false method_option :recursive, aliases: '-r', type: :boolean, default: false, desc: 'Recursively runs License Finder on all sub-projects' method_option :aggregate_paths, aliases: '-a', type: :array, desc: "Generate a single report for multiple projects. Ex: --aggregate_paths='path/to/project1' 'path/to/project2'" method_option :quiet, aliases: '-q', type: :boolean, desc: 'Silences progress report', required: false method_option :columns, desc: "For text or CSV reports, which columns to print. Pick from: #{CsvReport::AVAILABLE_COLUMNS}", type: :array end desc 'project_roots', 'List project directories to be scanned' shared_options def project_roots config.strict_matching = true project_path = config.project_path.to_s || Pathname.pwd.to_s paths = aggregate_paths filtered_project_roots = Scanner.remove_subprojects(paths) filtered_project_roots << project_path if aggregate_paths.include?(project_path) && !filtered_project_roots.include?(project_path) say(filtered_project_roots) end desc 'action_items', 'List unapproved dependencies (the default action for `license_finder`)' shared_options format_option def action_items finder = LicenseAggregator.new(config, aggregate_paths) any_packages = finder.any_packages? unapproved = finder.unapproved restricted = finder.restricted # Ensure to start output on a new line even with dot progress indicators. say "\n" unless any_packages say 'No dependencies recognized!', :red exit 0 end if unapproved.empty? say 'All dependencies are approved for use', :green else unless restricted.empty? say 'Restricted dependencies:', :red say report_of(restricted) end other_unapproved = unapproved - restricted unless other_unapproved.empty? say 'Dependencies that need approval:', :yellow say report_of(other_unapproved) end exit 1 end end default_task :action_items desc 'report', "Print a report of the project's dependencies to stdout" shared_options format_option method_option :write_headers, type: :boolean, desc: 'Write exported columns as header row (csv).', default: false, required: false method_option :save, desc: "Save report to a file. Default: 'license_report.csv' in project root.", lazy_default: 'license_report' def report finder = LicenseAggregator.new(config, aggregate_paths) report = report_of(finder.dependencies) save? ? save_report(report, config.save_file) : say(report) end desc 'version', 'Print the version of LicenseFinder' def version puts LicenseFinder::VERSION end desc 'diff OLDFILE NEWFILE', 'Command to view the differences between two generated reports (csv).' format_option method_option :save, desc: "Save report to a file. Default: 'license_report.csv' in project root.", lazy_default: 'license_report' def diff(file1, file2) f1 = IO.read(file1) f2 = IO.read(file2) report = DiffReport.new(Diff.compare(f1, f2)) save? ? save_report(report, config.save_file) : say(report) end subcommand 'dependencies', Dependencies, 'Add or remove dependencies that your package managers are not aware of' subcommand 'licenses', Licenses, "Set a dependency's licenses, if the licenses found by license_finder are missing or wrong" subcommand 'approvals', Approvals, 'Manually approve dependencies, even if their licenses are not permitted' subcommand 'ignored_groups', IgnoredGroups, 'Exclude test and development dependencies from action items and reports' subcommand 'ignored_dependencies', IgnoredDependencies, 'Exclude individual dependencies from action items and reports' subcommand 'permitted_licenses', PermittedLicenses, 'Automatically approve any dependency that has a permitted license' subcommand 'restricted_licenses', RestrictedLicenses, 'Forbid approval of any dependency whose licenses are all restricted' subcommand 'project_name', ProjectName, 'Set the project name, for display in reports' subcommand 'inherited_decisions', InheritedDecisions, 'Add or remove decision files you want to inherit from' private def check_valid_project_path raise "Project path '#{config.project_path}' does not exist!" unless config.valid_project_path? end def aggregate_paths check_valid_project_path aggregate_paths = config.aggregate_paths project_path = config.project_path.to_s || Pathname.pwd.to_s aggregate_paths = ProjectFinder.new(project_path, config.strict_matching).find_projects if config.recursive if aggregate_paths.nil? || aggregate_paths.empty? [project_path] else aggregate_paths end end def save_report(content, file_name) dir = File.dirname(file_name) FileUtils.mkdir_p(dir) unless Dir.exist?(dir) File.open(file_name, 'w') do |f| f.write(content) end end def report_of(content) report = FORMATS[config.format] || FORMATS['text'] report = MergedReport if report == CsvReport && config.aggregate_paths report.of(content, columns: config.columns, project_name: decisions.project_name || config.project_path.basename.to_s, write_headers: config.write_headers) end def save? !!config.save_file end end end end gitlab-license-finder-6.14.2.1/lib/license_finder/cli/base.rb0000644000175100017510000000552014172736724022664 0ustar pravipravi# frozen_string_literal: true require 'thor' module LicenseFinder module CLI class Base < Thor class_option :project_path, desc: 'Path to the project. Defaults to current working directory.' class_option :decisions_file, desc: 'Where decisions are saved. Defaults to doc/dependency_decisions.yml.' class_option :log_directory, desc: 'Where logs are saved. Defaults to ./lf_logs/$PROJECT/prepare_$PACKAGE_MANAGER.log' class_option :enabled_package_managers, desc: 'List of package managers to be enabled. Defaults to all supported package managers.', type: :array, enum: LicenseFinder::Scanner.supported_package_manager_ids no_commands do def decisions @decisions ||= DecisionsFactory.decisions(config.decisions_file_path) end def config @config ||= Configuration.with_optional_saved_config(license_finder_config) end end private def fail(message) say(message) && exit(1) end def license_finder_config extract_options( :project_path, :decisions_file, :enabled_package_managers, :go_full_version, :gradle_command, :gradle_include_groups, :maven_include_groups, :maven_options, :npm_options, :pip_requirements_path, :python_version, :rebar_command, :rebar_deps_dir, :elixir_command, :mix_command, :mix_deps_dir, :write_headers, :save, :prepare, :prepare_no_fail, :log_directory, :format, :columns, :aggregate_paths, :recursive, :sbt_include_groups, :conda_bash_setup_script, :composer_check_require_only ).merge( logger: logger_mode ) end def logger_mode quiet = LicenseFinder::Logger::MODE_QUIET debug = LicenseFinder::Logger::MODE_DEBUG info = LicenseFinder::Logger::MODE_INFO mode = extract_options(quiet, debug) if mode[quiet] quiet elsif mode[debug] debug else info end end def say_each(coll) if coll.any? coll.each do |item| say(block_given? ? yield(item) : item) end else say '(none)' end end def assert_some(things) raise ArgumentError, 'wrong number of arguments (0 for 1+)', caller unless things.any? end def extract_options(*keys) result = {} keys.each do |key| result[key.to_sym] = options[key.to_s] if options.key? key.to_s end result end end end end gitlab-license-finder-6.14.2.1/lib/license_finder/cli/patched_thor.rb0000644000175100017510000000214414172736724024415 0ustar pravipravi# frozen_string_literal: true module LicenseFinder module CLI module Rootcommand # Helper to auto-generate the documentation for a group of commands def subcommand(namespace, klass, namespace_description) description = "#{namespace} [#{(klass.tasks.keys - ['help']).join('|')}]" desc description, "#{namespace_description} - see `license_finder #{namespace} help` for more information" super namespace, klass end end # Thor fix for `license_finder help ` module Subcommand # Hack to override the help message produced by Thor. # https://github.com/wycats/thor/issues/261#issuecomment-16880836 def banner(command, _namespace = nil, _subcommand = nil) "#{basename} #{underscore_name(name)} #{command.usage}" end protected def underscore_name(name) underscored = name.split('::').last underscored.gsub!(/([A-Z]+)([A-Z][a-z])/, '\1_\2') underscored.gsub!(/([a-z\d])([A-Z])/, '\1_\2') underscored.tr!('-', '_') underscored.downcase end end end end gitlab-license-finder-6.14.2.1/lib/license_finder/cli/ignored_dependencies.rb0000644000175100017510000000142214172736724026104 0ustar pravipravi# frozen_string_literal: true module LicenseFinder module CLI class IgnoredDependencies < Base extend Subcommand include MakesDecisions desc 'list', 'List all the ignored dependencies' def list say 'Ignored Dependencies:', :blue say_each(decisions.ignored) end auditable desc 'add DEPENDENCY', 'Add a dependency to be ignored' def add(dep) modifying { decisions.ignore(dep, txn) } say "Added #{dep} to the ignored dependencies" end auditable desc 'remove DEPENDENCY', 'Remove a dependency from the ignored dependencies' def remove(dep) modifying { decisions.heed(dep, txn) } say "Removed #{dep} from the ignored dependencies" end end end end gitlab-license-finder-6.14.2.1/lib/license_finder/core.rb0000644000175100017510000000702714172736724022137 0ustar pravipravi# frozen_string_literal: true require 'forwardable' require 'license_finder/logger' require 'license_finder/license' require 'license_finder/configuration' require 'license_finder/package_manager' require 'license_finder/decisions' require 'license_finder/decisions_factory' require 'license_finder/decision_applier' require 'license_finder/scanner' module LicenseFinder # Coordinates setup class Core attr_reader :config def self.default_logger Logger.new end # Default +options+: # { # project_path: Pathname.pwd # logger: nil, # can be :quiet or :debug # decisions_file: "doc/dependency_decisions.yml", # gradle_command: "gradle", # rebar_command: "rebar", # rebar_deps_dir: "deps", # } def initialize(configuration) @logger = Logger.new(configuration.logger_mode) @config = configuration @scanner = Scanner.new(options) end def modifying yield decisions.save!(config.decisions_file_path) end extend Forwardable def_delegators :decision_applier, :acknowledged, :unapproved, :restricted, :any_packages? def project_name decisions.project_name || config.project_path.basename.to_s end def project_path config.project_path end def decisions @decisions ||= DecisionsFactory.decisions(config.decisions_file_path) end def prepare_projects clear_logs package_managers = @scanner.active_package_managers package_managers.each do |manager| logger.debug manager.class, 'Running prepare on project' manager.prepare logger.debug manager.class, 'Finished prepare on project', color: :green end end private attr_reader :logger # The core of the system. The saved decisions are applied to the current # packages. def decision_applier # lazy, do not move to `initialize` # Needs to be lazy loaded to prvent multiple decision appliers being created each time @decision_applier ||= DecisionApplier.new(decisions: decisions, packages: current_packages) end def current_packages # lazy, do not move to `initialize` @scanner.active_packages end def clear_logs FileUtils.rmtree config.log_directory, secure: true if File.directory? config.log_directory end def options # rubocop:disable Metrics/AbcSize { logger: logger, project_path: config.project_path, log_directory: File.join(config.log_directory, project_name), ignored_groups: decisions.ignored_groups, enabled_package_manager_ids: config.enabled_package_manager_ids, go_full_version: config.go_full_version, gradle_command: config.gradle_command, gradle_include_groups: config.gradle_include_groups, maven_include_groups: config.maven_include_groups, maven_options: config.maven_options, npm_options: config.npm_options, pip_requirements_path: config.pip_requirements_path, python_version: config.python_version, rebar_command: config.rebar_command, rebar_deps_dir: config.rebar_deps_dir, elixir_command: config.elixir_command, mix_command: config.mix_command, mix_deps_dir: config.mix_deps_dir, prepare: config.prepare, prepare_no_fail: config.prepare_no_fail, sbt_include_groups: config.sbt_include_groups, conda_bash_setup_script: config.conda_bash_setup_script, composer_check_require_only: config.composer_check_require_only } end end end gitlab-license-finder-6.14.2.1/lib/license_finder/package_utils/0000755000175100017510000000000014172736724023467 5ustar pravipravigitlab-license-finder-6.14.2.1/lib/license_finder/package_utils/activation.rb0000644000175100017510000000137014172736724026156 0ustar pravipravi# frozen_string_literal: true module LicenseFinder module Activation # An Activation reports that a license has been activated for a package, and # tracks the source of that information Basic = Struct.new(:package, :license) class FromDecision < Basic def sources ['from decision'] end end class FromSpec < Basic def sources ['from spec'] end end class FromFiles < Basic def initialize(package, license, files) super(package, license) @files = files end attr_reader :files def sources files.map { |file| "from file '#{file.path}'" } end end class None < Basic def sources [] end end end end gitlab-license-finder-6.14.2.1/lib/license_finder/package_utils/licensing.rb0000644000175100017510000000261514172736724025773 0ustar pravipravi# frozen_string_literal: true require 'license_finder/package_utils/activation' module LicenseFinder Licensing = Struct.new(:package, :decided_licenses, :licenses_from_spec, :license_files) do # Implements the algorithm for choosing the right set of licenses from # among the various sources of licenses we know about. In order of # priority, licenses come from decisions, package specs, or package files. def activations if activations_from_decisions.any? then activations_from_decisions elsif activations_from_spec.any? then activations_from_spec elsif activations_from_files.any? then activations_from_files else [default_activation] end end def activations_from_decisions @activations_from_decisions ||= decided_licenses .map { |license| Activation::FromDecision.new(package, license) } end def activations_from_spec @activations_from_spec ||= licenses_from_spec .map { |license| Activation::FromSpec.new(package, license) } end def activations_from_files @activations_from_files ||= license_files .group_by(&:license) .map { |license, files| Activation::FromFiles.new(package, license, files) } end def default_activation default_license = License.find_by_name nil Activation::None.new(package, default_license) end end end gitlab-license-finder-6.14.2.1/lib/license_finder/package_utils/notice_files.rb0000644000175100017510000000202514172736724026456 0ustar pravipravi# frozen_string_literal: true require 'license_finder/package_utils/possible_license_file' module LicenseFinder class NoticeFiles CANDIDATE_FILE_NAMES = %w[NOTICE Notice].freeze CANDIDATE_PATH_WILDCARD = "*{#{CANDIDATE_FILE_NAMES.join(',')}}*" def self.find(install_path, options = {}) new(install_path).find(options) end def initialize(install_path) @install_path = install_path ? Pathname(install_path) : nil end def find(options = {}) paths_of_candidate_files .map { |path| PossibleLicenseFile.new(path, options) } # Not really possible license files, but that class has all we need. end private attr_reader :install_path def paths_of_candidate_files candidate_files_and_dirs .flat_map { |path| path.directory? ? path.children : path } .reject(&:directory?) .uniq end def candidate_files_and_dirs return [] if install_path.nil? Pathname.glob(install_path.join('**', CANDIDATE_PATH_WILDCARD)) end end end gitlab-license-finder-6.14.2.1/lib/license_finder/package_utils/gradle_dependency_finder.rb0000644000175100017510000000045514172736724031003 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class GradleDependencyFinder def initialize(project_path) @project_path = project_path end def dependencies Pathname .glob(@project_path.join('**', 'dependency-license.xml')) .map(&:read) end end end gitlab-license-finder-6.14.2.1/lib/license_finder/package_utils/pypi.rb0000644000175100017510000000206614172736724025001 0ustar pravipravi# frozen_string_literal: true require 'net/http' require 'openssl' module LicenseFinder class PyPI CONNECTION_ERRORS = [ EOFError, Errno::ECONNREFUSED, Errno::ECONNRESET, Errno::ECONNRESET, Errno::EHOSTUNREACH, Errno::EINVAL, Net::OpenTimeout, Net::ProtocolError, Net::ReadTimeout, OpenSSL::OpenSSLError, OpenSSL::SSL::SSLError, SocketError, Timeout::Error ].freeze class << self def definition(name, version) response = request("https://pypi.org/pypi/#{name}/#{version}/json") response.is_a?(Net::HTTPSuccess) ? JSON.parse(response.body).fetch('info', {}) : {} rescue *CONNECTION_ERRORS {} end def request(location, limit = 10) uri = URI(location) http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = true response = http.get(uri.request_uri).response response.is_a?(Net::HTTPRedirection) && limit.positive? ? request(response['location'], limit - 1) : response end end end end gitlab-license-finder-6.14.2.1/lib/license_finder/package_utils/conan_info_parser.rb0000644000175100017510000000357614172736724027514 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class ConanInfoParser def parse(info) @lines = info.lines.map(&:chomp) @state = :project_level # state of the state machine @projects = [] # list of projects @current_project = nil # current project being populated in the SM @current_vals = [] # current val list being populate in the SM @current_key = nil # current key to be associated with the current val while (line = @lines.shift) next if line == '' case @state when :project_level @current_project = {} @current_project['name'] = line.strip @state = :key_val when :key_val parse_key_val(line) when :val_list parse_val_list(line) end end wrap_up end private def parse_key_val(line) key, val = key_val(line) if val @current_project[key] = val elsif line.start_with?(' ') @current_key = key @current_vals = [] @state = :val_list else change_to_new_project_state line end end def parse_val_list(line) if val_list_level(line) @current_vals << line.strip else @current_project[@current_key] = @current_vals if line.start_with?(' ') @state = :key_val @lines.unshift(line) else change_to_new_project_state line end end end def wrap_up @current_project[@current_key] = @current_vals if @current_vals.count && @current_key @projects << @current_project end def val_list_level(line) line.start_with?(' ') end def change_to_new_project_state(line) @state = :project_level @projects << @current_project @lines.unshift(line) end def key_val(info) info.split(':', 2).map(&:strip!) end end end gitlab-license-finder-6.14.2.1/lib/license_finder/package_utils/possible_license_file.rb0000644000175100017510000000101014172736724030325 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class PossibleLicenseFile def initialize(path, options = {}) @path = Pathname(path) @logger = options[:logger] end def path @path.to_s end def license License.find_by_text(text) end def text if @path.exist? @text ||= (@path.respond_to?(:binread) ? @path.binread : @path.read) else @logger.info('ERROR', "#{@path} does not exists", color: :red) '' end end end end gitlab-license-finder-6.14.2.1/lib/license_finder/package_utils/sbt_dependency_finder.rb0000644000175100017510000000046614172736724030337 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class SbtDependencyFinder def initialize(project_path) @project_path = project_path end def dependencies Pathname .glob(@project_path.join('**', 'target', 'license-reports', '*.csv')) .map(&:read) end end end gitlab-license-finder-6.14.2.1/lib/license_finder/package_utils/maven_dependency_finder.rb0000644000175100017510000000050314172736724030645 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class MavenDependencyFinder def initialize(project_path) @project_path = project_path end def dependencies Pathname .glob(@project_path.join('**', 'target', 'generated-resources', 'licenses.xml')) .map(&:read) end end end gitlab-license-finder-6.14.2.1/lib/license_finder/package_utils/license_files.rb0000644000175100017510000000204314172736724026617 0ustar pravipravi# frozen_string_literal: true require 'license_finder/package_utils/possible_license_file' module LicenseFinder class LicenseFiles CANDIDATE_FILE_NAMES = %w[License Licence COPYING README].freeze CANDIDATE_PATH_WILDCARD = "*{#{CANDIDATE_FILE_NAMES.join(',')}}*" def self.find(install_path, options = {}) new(install_path).find(options) end def initialize(install_path) @install_path = install_path ? Pathname(install_path) : nil end def find(options = {}) paths_of_candidate_files .map { |path| PossibleLicenseFile.new(path, options) } .reject { |file| file.license.nil? } end private attr_reader :install_path def paths_of_candidate_files candidate_files_and_dirs .flat_map { |path| path.directory? ? path.children : path } .reject(&:directory?) .uniq end def candidate_files_and_dirs return [] if install_path.nil? Pathname.glob(install_path.join('**', CANDIDATE_PATH_WILDCARD), File::FNM_CASEFOLD) end end end gitlab-license-finder-6.14.2.1/lib/license_finder/scanner.rb0000644000175100017510000000513414172736724022635 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class Scanner PACKAGE_MANAGERS = [ GoModules, GoDep, GoWorkspace, Go15VendorExperiment, Glide, Gvt, Govendor, Trash, Dep, Bundler, NPM, Pip, Yarn, Bower, Maven, Gradle, CocoaPods, Rebar, Erlangmk, Nuget, Carthage, Mix, Conan, Sbt, Cargo, Dotnet, Composer, Pipenv, Conda, Spm ].freeze class << self def remove_subprojects(paths) paths.reject { |path| subproject?(Pathname(path)) } end def supported_package_manager_ids PACKAGE_MANAGERS.map(&:id) end private def subproject?(path) subproject = true PACKAGE_MANAGERS.each do |package_manager_class| package_manager = package_manager_class.new(project_path: path) subproject &&= !package_manager.project_root? end subproject end end def initialize(config = { project_path: Pathname.new('') }) @config = config @project_path = @config[:project_path] @logger = @config[:logger] @enabled_package_manager_ids = @config[:enabled_package_manager_ids] end def active_packages package_managers = active_package_managers installed_package_managers = package_managers.select { |pm| pm.installed?(@logger) } installed_package_managers.flat_map(&:current_packages_with_relations) end def active_package_managers return @package_managers if @package_managers active_pm_classes = [] enabled_package_managers.each do |pm_class| active = pm_class.new(@config).active? if active @logger.info pm_class, 'is active', color: :green active_pm_classes << pm_class else @logger.debug pm_class, 'is not active', color: :red end end @logger.info 'License Finder', 'No active and installed package managers found for project.', color: :red if active_pm_classes.empty? active_pm_classes -= active_pm_classes.map(&:takes_priority_over) @package_managers = active_pm_classes.map { |pm_class| pm_class.new(@config) } end private def enabled_package_managers enabled_pm_ids = @enabled_package_manager_ids return PACKAGE_MANAGERS unless enabled_pm_ids enabled_pm_classes = PACKAGE_MANAGERS.select { |pm_class| enabled_pm_ids.include?(pm_class.id) } if enabled_pm_classes.length != enabled_pm_ids.length unsupported_pm_ids = enabled_pm_ids - self.class.supported_package_manager_ids raise "Unsupported package manager: #{unsupported_pm_ids.join(', ')}" end enabled_pm_classes end end end gitlab-license-finder-6.14.2.1/lib/license_finder/version.rb0000644000175100017510000000022614172736724022666 0ustar pravipravi# frozen_string_literal: true module LicenseFinder root = File.expand_path('../..', __dir__) VERSION = File.read("#{root}/VERSION").strip end gitlab-license-finder-6.14.2.1/lib/license_finder/package_manager.rb0000644000175100017510000001305314172736724024270 0ustar pravipravi# frozen_string_literal: false module LicenseFinder # Super-class for the different package managers # (Bundler, NPM, Pip, etc.) # # For guidance on adding a new package manager use the shared behavior # # it_behaves_like "a PackageManager" # # Additional guidelines are: # # - implement #current_packages, to return a list of `Package`s this package manager is tracking # - implement #possible_package_paths, an array of `Pathname`s which are the possible locations which contain a configuration file/folder indicating the package manager is in use. # - implement(Optional) #package_management_command, string for invoking the package manager # - implement(Optional) #prepare_command, string for fetching dependencies for package manager (runs when the --prepare flag is passed to license_finder) class PackageManager include LicenseFinder::SharedHelpers class << self def takes_priority_over nil end def id name.split('::').last.downcase end end def installed?(logger = Core.default_logger) if package_management_command.nil? logger.debug self.class, 'no command defined' # TODO: comment me out true elsif command_exists?(package_management_command) logger.debug self.class, 'is installed', color: :green true else logger.info self.class, 'is not installed', color: :red false end end # see class description def package_management_command nil end # see class description def prepare_command nil end def command_exists?(command) _stdout, _stderr, status = if LicenseFinder::Platform.windows? Cmd.run("where #{command}") else Cmd.run("which #{command}") end status.success? end def initialize(options = {}) @prepare_no_fail = options[:prepare_no_fail] @logger = options[:logger] || Core.default_logger @project_path = options[:project_path] @log_directory = options[:log_directory] @ignored_groups = options[:ignored_groups] end def active? path = detected_package_path path&.exist? end def project_root? active? end def detected_package_path possible_package_paths.find(&:exist?) end def prepare if prepare_command stdout, stderr, status = Dir.chdir(project_path) { Cmd.run(prepare_command) } unless status.success? log_errors stderr error_message = "Prepare command '#{prepare_command}' failed\n#{stderr}" error_message == error_message.concat("\n#{stdout}\n") if !stdout.nil? && !stdout.empty? raise error_message unless @prepare_no_fail end else logger.debug self.class, 'no prepare step provided', color: :red end end def current_packages_with_relations begin packages = current_packages rescue StandardError => e raise e unless @prepare_no_fail packages = [] end packages.each do |parent| parent.children.each do |child_name| child = packages.detect { |child_package| child_package.name == child_name } child.parents << parent.name if child end end packages end private attr_reader :logger, :project_path def log_errors(stderr) log_errors_with_cmd(prepare_command, stderr) end def log_errors_with_cmd(prep_cmd, stderr) logger.info(prep_cmd, 'did not succeed.', color: :red) logger.info(prep_cmd, stderr, color: :red) log_to_file(prep_cmd, stderr) end def log_to_file(prep_cmd, contents) FileUtils.mkdir_p @log_directory # replace whitespace with underscores and remove slashes log_file_name = package_management_command&.gsub(/\s/, '_')&.gsub(%r{/}, '') log_file = File.join(@log_directory, "prepare_#{log_file_name || 'errors'}.log") File.open(log_file, 'w') do |f| f.write("Prepare command \"#{prep_cmd}\" failed with:\n") f.write("#{contents}\n\n") end end end end require 'license_finder/package_managers/bower' require 'license_finder/package_managers/go_workspace' require 'license_finder/package_managers/go_15vendorexperiment' require 'license_finder/package_managers/go_dep' require 'license_finder/package_managers/gvt' require 'license_finder/package_managers/glide' require 'license_finder/package_managers/govendor' require 'license_finder/package_managers/go_modules' require 'license_finder/package_managers/trash' require 'license_finder/package_managers/bundler' require 'license_finder/package_managers/npm' require 'license_finder/package_managers/yarn' require 'license_finder/package_managers/pip' require 'license_finder/package_managers/pipenv' require 'license_finder/package_managers/maven' require 'license_finder/package_managers/mix' require 'license_finder/package_managers/cocoa_pods' require 'license_finder/package_managers/carthage' require 'license_finder/package_managers/spm' require 'license_finder/package_managers/gradle' require 'license_finder/package_managers/rebar' require 'license_finder/package_managers/erlangmk' require 'license_finder/package_managers/nuget' require 'license_finder/package_managers/dotnet' require 'license_finder/package_managers/dep' require 'license_finder/package_managers/conan' require 'license_finder/package_managers/sbt' require 'license_finder/package_managers/cargo' require 'license_finder/package_managers/composer' require 'license_finder/package_managers/conda' require 'license_finder/package' gitlab-license-finder-6.14.2.1/lib/license_finder/license.rb0000644000175100017510000000506014172736724022624 0ustar pravipravi# frozen_string_literal: true require 'license_finder/license/text' require 'license_finder/license/template' require 'license_finder/license/matcher' require 'license_finder/license/header_matcher' require 'license_finder/license/any_matcher' require 'license_finder/license/none_matcher' require 'license_finder/license/definitions' module LicenseFinder class License class << self def all @all ||= Definitions.all end def find_by_name(name) name ||= 'unknown' license = all.detect { |l| l.matches_name? l.stripped_name(name) } if license license elsif name.include?(OrLicense.operator) OrLicense.new(name) elsif name.include?(AndLicense.operator) AndLicense.new(name) else Definitions.build_unrecognized(name) end end def find_by_text(text) all.detect { |l| l.matches_text? text } end end def initialize(settings) @short_name = settings.fetch(:short_name) @pretty_name = settings.fetch(:pretty_name, short_name) @other_names = settings.fetch(:other_names, []) @url = settings.fetch(:url) @matcher = settings.fetch(:matcher) { Matcher.from_template(Template.named(short_name)) } end attr_reader :url def name pretty_name end def stripped_name(name) name.sub(/^The /i, '') end def matches_name?(name) names.map(&:downcase).include? name.to_s.downcase end def matches_text?(text) matcher.matches_text?(text) end def eql?(other) name == other.name end def hash name.hash end def unrecognized_matcher? matcher.is_a?(NoneMatcher) end private attr_reader :short_name, :pretty_name, :other_names attr_reader :matcher def names ([short_name, pretty_name] + other_names).uniq end end class AndLicense < License def self.operator ' AND ' end def initialize(name, operator = AndLicense.operator) @short_name = name @pretty_name = name @url = nil @matcher = NoneMatcher.new # removes heading and trailing parentesis and splits name = name[1..-2] if name.start_with?('(') names = name.split(operator) @sub_licenses = names.map do |sub_name| License.find_by_name(sub_name) end end attr_reader :sub_licenses end class OrLicense < AndLicense def self.operator ' OR ' end def initialize(name) super(name, OrLicense.operator) end end end gitlab-license-finder-6.14.2.1/lib/license_finder/packages/0000755000175100017510000000000014172736724022432 5ustar pravipravigitlab-license-finder-6.14.2.1/lib/license_finder/packages/mix_package.rb0000644000175100017510000000035714172736724025234 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class MixPackage < Package def package_manager 'Mix' end def package_url "https://hex.pm/packages/#{CGI.escape(name)}/#{CGI.escape(version)}" end end end gitlab-license-finder-6.14.2.1/lib/license_finder/packages/composer_package.rb0000644000175100017510000000040014172736724026253 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class ComposerPackage < Package def package_manager 'Composer' end def package_url "https://packagist.org/packages/#{CGI.escape(name)}##{CGI.escape(version)}" end end end gitlab-license-finder-6.14.2.1/lib/license_finder/packages/sbt_package.rb0000644000175100017510000000070214172736724025221 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class SbtPackage < Package def initialize(spec, options = {}) name = spec['artifactId'] name = "#{spec['groupId']}:#{name}" if options[:include_groups] super( name, spec['version'], options.merge( spec_licenses: Array(spec['licenses']).map { |l| l['name'] } ) ) end def package_manager 'Sbt' end end end gitlab-license-finder-6.14.2.1/lib/license_finder/packages/conda_package.rb0000644000175100017510000000300114172736724025510 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class CondaPackage < Package attr_accessor :identifier, :json def initialize(conda_json) @json = conda_json @identifier = Identifier.from_hash(conda_json) super(@identifier.name, @identifier.version, spec_licenses: Package.license_names_from_standard_spec(conda_json), children: children) end def ==(other) other.is_a?(CondaPackage) && @identifier == other.identifier end def to_s @identifier.to_s end def package_manager 'Conda' end def package_url @json['url'] end def children @json.fetch('depends', []).map { |constraint| constraint.split.first } end class Identifier attr_accessor :name, :version def initialize(name, version) @name = name @version = version end def self.from_hash(hash) name = hash['name'] version = hash['version'] return nil if name.nil? || version.nil? Identifier.new(name, version) end def ==(other) other.is_a?(Identifier) && @name == other.name && @version == other.version end def eql?(other) self == other end def hash [@name, @version].hash end def <=>(other) sort_name = @name <=> other.name sort_name.zero? ? @version <=> other.version : sort_name end def to_s "#{@name} - #{@version}" end end end end gitlab-license-finder-6.14.2.1/lib/license_finder/packages/npm_package.rb0000644000175100017510000001113014172736724025220 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class NpmPackage < Package attr_accessor :identifier, :dependencies, :groups, :json class << self def packages_from_json(npm_json, package_path) @packages = flattened_dependencies(npm_json) package_json = PackageJson.new(package_path) populate_groups(package_json) @packages.reject! do |_identifier, package| package.name.empty? && package.version.empty? && package.licenses.length == 1 && package.licenses.first.name == 'unknown' end @packages.values end private def flattened_dependencies(npm_json, existing_packages = {}) identifier = Identifier.from_hash npm_json if existing_packages[identifier].nil? existing_packages[identifier] = NpmPackage.new(npm_json) if identifier npm_json.fetch('dependencies', {}).values.map do |d| flattened_dependencies(d, existing_packages) end else duplicate_package = NpmPackage.new(npm_json) unless existing_packages[identifier].dependencies.include?(duplicate_package.dependencies) existing_packages[identifier].dependencies |= duplicate_package.dependencies npm_json.fetch('dependencies', {}).values.map do |d| flattened_dependencies(d, existing_packages) end end end existing_packages end def populate_groups(package_json) package_json.groups.each do |group| group.package_names.each do |package_name| @packages.each_key do |identifier| next unless identifier.name == package_name dependency = @packages[identifier] dependency.groups |= [group.name] populate_child_groups(dependency, @packages) end end end end def populate_child_groups(dependency, packages, populated_ids = []) dependency.dependencies.each do |id| next if populated_ids.include? id populated_ids.push id packages[id].groups |= dependency.groups populate_child_groups(packages[id], packages, populated_ids) end end end def initialize(npm_json) @json = npm_json @identifier = Identifier.from_hash(npm_json) @dependencies = deps_from_json super(@identifier.name, @identifier.version, description: npm_json['description'], homepage: npm_json['homepage'], spec_licenses: Package.license_names_from_standard_spec(npm_json), install_path: npm_json['path'], children: @dependencies.map(&:name)) end def ==(other) other.is_a?(NpmPackage) && @identifier == other.identifier end def to_s @identifier.to_s end def package_manager 'Npm' end def package_url "https://www.npmjs.com/package/#{CGI.escape(name)}/v/#{CGI.escape(version)}" end private def deps_from_json @json.fetch('dependencies', {}).values.map { |dep| Identifier.from_hash(dep) }.compact end class Identifier attr_accessor :name, :version def initialize(name, version) @name = name @version = version end def self.from_hash(hash) name = hash['name'] version = hash['version'] return nil if name.nil? || version.nil? Identifier.new(name, version) end def ==(other) other.is_a?(Identifier) && @name == other.name && @version == other.version end def eql?(other) self == other end def hash [@name, @version].hash end def <=>(other) sort_name = @name <=> other.name sort_name.zero? ? @version <=> other.version : sort_name end def to_s "#{@name} - #{@version}" end end class Group attr_accessor :name, :package_names def initialize(name, hash) @name = name @package_names = hash.keys end def include?(identifier) @package_names.include? identifier.name end def to_s @name end end class PackageJson attr_reader :groups DEPENDENCY_GROUPS = %w[dependencies devDependencies].freeze def initialize(path) json = JSON.parse(File.read(path), max_nesting: false) @groups = DEPENDENCY_GROUPS.map { |name| Group.new(name, json.fetch(name, {})) } end def groups_for(identifier) @groups.select { |g| g.include? identifier }.map(&:name) end end end end gitlab-license-finder-6.14.2.1/lib/license_finder/packages/bower_package.rb0000644000175100017510000000175314172736724025556 0ustar pravipravi# frozen_string_literal: true require 'open-uri' module LicenseFinder class BowerPackage < Package def initialize(bower_module, options = {}) spec = bower_module.fetch('pkgMeta', {}) if spec.empty? endpoint = bower_module.fetch('endpoint', {}) name = endpoint['name'] version = endpoint['target'] else name = spec['name'] version = spec['version'] end super( name, version, options.merge( summary: spec['description'], description: spec['readme'], homepage: spec['homepage'], spec_licenses: Package.license_names_from_standard_spec(spec), install_path: bower_module['canonicalDir'], missing: bower_module['missing'] ) ) end def package_manager 'Bower' end def package_url meta = JSON.parse(open("https://registry.bower.io/packages/#{CGI.escape(name)}").read) meta['url'] end end end gitlab-license-finder-6.14.2.1/lib/license_finder/packages/spm_package.rb0000644000175100017510000000055014172736724025231 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class SpmPackage < Package def initialize(name, version, license_text, options = {}) super(name, version, options) @license = License.find_by_text(license_text.to_s) end def licenses_from_spec [@license].compact end def package_manager 'Spm' end end end gitlab-license-finder-6.14.2.1/lib/license_finder/packages/manual_package.rb0000644000175100017510000000052714172736724025713 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class ManualPackage < Package def ==(other) eql? other end def eql?(other) name == other.name end def hash name.hash end private def licenses_from_spec Set.new end def licenses_from_files Set.new end end end gitlab-license-finder-6.14.2.1/lib/license_finder/packages/nuget_package.rb0000644000175100017510000000037214172736724025556 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class NugetPackage < Package def package_manager 'Nuget' end def package_url "https://www.nuget.org/packages/#{CGI.escape(name)}/#{CGI.escape(version)}" end end end gitlab-license-finder-6.14.2.1/lib/license_finder/packages/conan_package.rb0000644000175100017510000000075714172736724025541 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class ConanPackage < Package def initialize(name, version, license_text, url, options = {}) super(name, version, options) @license = License.find_by_text(license_text.to_s) @homepage = url end def licenses_from_spec [@license].compact end def package_manager 'Conan' end def package_url "https://conan.io/center/#{CGI.escape(name)}/#{CGI.escape(version)}" end end end gitlab-license-finder-6.14.2.1/lib/license_finder/packages/go_package.rb0000644000175100017510000000145114172736724025040 0ustar pravipravi# frozen_string_literal: true require 'license_finder/package' module LicenseFinder class GoPackage < Package def package_manager 'Go' end def package_url "https://pkg.go.dev/#{CGI.escape(name)}@#{CGI.escape(version)}" end class << self def from_dependency(hash, prefix, full_version) name = hash['ImportPath'] install_path = hash['InstallPath'] install_path ||= install_path(prefix.join(name)) version = full_version ? hash['Rev'].gsub('+incompatible', '') : hash['Rev'][0..6] homepage = hash['Homepage'] new(name, version, install_path: install_path, package_manager: 'Go', homepage: homepage) end private def install_path(path) Pathname(path).cleanpath.to_s end end end end gitlab-license-finder-6.14.2.1/lib/license_finder/packages/cargo_package.rb0000644000175100017510000000130314172736724025522 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class CargoPackage < Package def initialize(crate, options = {}) crate = crate.reject { |_, v| v.nil? || v == '' } children = crate.fetch('dependencies', []).map { |p| p['name'] } licenses = crate.fetch('license', '').split('/') super( crate['name'], crate['version'], options.merge( summary: crate.fetch('description', '').strip, spec_licenses: licenses.compact, children: children ) ) end def package_manager 'Cargo' end def package_url "https://crates.io/crates/#{CGI.escape(name)}/#{CGI.escape(version)}" end end end gitlab-license-finder-6.14.2.1/lib/license_finder/packages/yarn_package.rb0000644000175100017510000000032214172736724025400 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class YarnPackage < Package def package_manager 'Yarn' end def package_url "https://yarn.pm/#{CGI.escape(name)}" end end end gitlab-license-finder-6.14.2.1/lib/license_finder/packages/rebar_package.rb0000644000175100017510000000036314172736724025527 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class RebarPackage < Package def package_manager 'Rebar' end def package_url "https://hex.pm/packages/#{CGI.escape(name)}/#{CGI.escape(version)}" end end end gitlab-license-finder-6.14.2.1/lib/license_finder/packages/carthage_package.rb0000644000175100017510000000056214172736724026213 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class CarthagePackage < Package def initialize(name, version, license_text, options = {}) super(name, version, options) @license = License.find_by_text(license_text.to_s) end def licenses_from_spec [@license].compact end def package_manager 'Carthage' end end end gitlab-license-finder-6.14.2.1/lib/license_finder/packages/gradle_package.rb0000644000175100017510000000136014172736724025670 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class GradlePackage < Package def initialize(spec, options = {}) name = spec['name'] if name.scan(':').size >= 1 group, name, version = name.split(':') else version = 'unknown' end name = options[:include_groups] ? "#{group}:#{name}" : name licenses = Array(spec['license']) .map { |l| l['name'] } .reject { |reject_name| reject_name == 'No license found' } super(name, version, options.merge(spec_licenses: licenses)) end def package_manager 'Gradle' end def package_url "https://plugins.gradle.org/plugin/#{CGI.escape(name)}/#{CGI.escape(version)}" end end end gitlab-license-finder-6.14.2.1/lib/license_finder/packages/merged_package.rb0000644000175100017510000000257014172736724025701 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class MergedPackage < Package extend Forwardable attr_reader :dependency def initialize(package, aggregate_paths) @dependency = package @aggregate_paths = aggregate_paths.map { |p| Pathname(p) } super(package.name, package.version) end def_delegators :@dependency, :name, :version, :authors, :summary, :description, :homepage, :package_url, :children, :parents, :groups, :permitted, :restricted, :manual_approval, :install_path, :licenses, :approved_manually?, :approved_manually!, :approved?, :permitted!, :permitted?, :restricted!, :restricted?, :hash, :activations, :missing, :license_names_from_spec, :decided_licenses, :licensing, :decide_on_license, :license_files, :package_manager, :missing?, :log_activation, :notice_files def aggregate_paths @aggregate_paths.map { |p| p.expand_path.to_s } end def <=>(other) dependency <=> other.dependency end def eql?(other) if other.instance_of? MergedPackage other.dependency.eql?(dependency) else dependency.eql?(other) end end def ==(other) dependency.eql?(other.dependency) && aggregate_paths.eql?(other.aggregate_paths) end def method_missing(_method_name) nil end end end gitlab-license-finder-6.14.2.1/lib/license_finder/packages/maven_package.rb0000644000175100017510000000122214172736724025535 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class MavenPackage < Package def initialize(spec, options = {}) name = spec['artifactId'] name = "#{spec['groupId']}:#{name}" if options[:include_groups] super( name, spec['version'], options.merge( spec_licenses: Array(spec['licenses']).map { |l| l['name'] }, groups: Array(spec['groupId']) ) ) end def package_manager 'Maven' end def package_url "https://search.maven.org/artifact/#{CGI.escape(groups.first)}/#{CGI.escape(name.split(':').last)}/#{CGI.escape(version)}/jar" end end end gitlab-license-finder-6.14.2.1/lib/license_finder/packages/erlangmk_package.rb0000644000175100017510000000514414172736724026236 0ustar pravipravi# frozen_string_literal: true require 'rubygems' class InvalidErlangmkPackageError < ArgumentError end module LicenseFinder class ErlangmkPackage < Package attr_reader :dep_parent, :dep_name, :dep_fetch_method, :dep_repo_unformatted, :dep_version_unformatted, :dep_absolute_path def initialize(dep_string_from_query_deps) @dep_parent, @dep_name, @dep_fetch_method, @dep_repo_unformatted, @dep_version_unformatted, @dep_absolute_path = dep_string_from_query_deps.split raise_invalid(dep_string_from_query_deps) unless all_parts_valid? super( dep_name, dep_version, homepage: dep_repo, install_path: dep_absolute_path ) end def package_manager 'Erlangmk' end def dep_version @dep_version ||= begin dep_version_unformatted.sub(version_prefix_re, '') end end def dep_repo @dep_repo ||= dep_repo_unformatted .chomp('.git') .sub('git@github.com:', 'https://github.com/') end def raise_invalid(dep_string) invalid_dep_message = "'#{dep_string}' does not look like a valid Erlank.mk dependency" valid_dep_example = "A valid dependency example: 'lager: goldrush git https://github.com/DeadZen/goldrush.git 0.1.9 /absolute/path/to/dep'" raise(InvalidErlangmkPackageError, "#{invalid_dep_message}. #{valid_dep_example}") end def all_parts_valid? dep_part_valid?(dep_parent) && dep_part_valid?(dep_name) && set?(dep_fetch_method) && dep_repo_valid? && dep_version_valid? && set?(dep_absolute_path) end private def dep_part_valid?(dep_part) set?(dep_part) && word?(dep_part) end def set?(dep_part) !dep_part.nil? && !dep_part.empty? end def word?(dep_part) dep = dep_part.chomp(':') dep =~ word_re end def dep_repo_valid? set?(dep_repo_unformatted) && URI.parse(dep_repo) end def dep_version_valid? return false unless set?(dep_version_unformatted) if dep_version =~ version_re Gem::Version.correct?(dep_version) else dep_version =~ word_dot_re end end def version_re @version_re ||= Regexp.new('\d+\.\d+\.\d+') end def version_prefix_re @version_prefix_re ||= Regexp.new('^v') end def word_re @word_re ||= Regexp.new('^\w+$') end def word_dot_re @word_dot_re ||= Regexp.new('^[.\w]+$') end end end gitlab-license-finder-6.14.2.1/lib/license_finder/packages/bundler_package.rb0000644000175100017510000000150214172736724026063 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class BundlerPackage < Package def initialize(spec, bundler_def, options = {}) children = spec.dependencies.map(&:name) groups = Array(bundler_def && bundler_def.groups).map(&:to_s) super( spec.name, spec.version.to_s, options.merge( authors: Array(spec.authors).join(', '), summary: spec.summary, description: spec.description, homepage: spec.homepage, children: children, groups: groups, spec_licenses: spec.licenses, install_path: spec.full_gem_path ) ) end def package_manager 'Bundler' end def package_url "https://rubygems.org/gems/#{CGI.escape(name)}/versions/#{CGI.escape(version)}" end end end gitlab-license-finder-6.14.2.1/lib/license_finder/packages/cocoa_pods_package.rb0000644000175100017510000000071014172736724026541 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class CocoaPodsPackage < Package def initialize(name, version, license_text, options = {}) super(name, version, options) @license = License.find_by_text(license_text.to_s) end def licenses_from_spec [@license].compact end def package_manager 'CocoaPods' end def package_url "https://cocoapods.org/pods/#{CGI.escape(name)}" end end end gitlab-license-finder-6.14.2.1/lib/license_finder/packages/pip_package.rb0000644000175100017510000000237714172736724025233 0ustar pravipravi# frozen_string_literal: true require 'set' module LicenseFinder class PipPackage < Package LICENSE_FORMAT = /^License.*::\s*(.*)$/.freeze INVALID_LICENSES = ['', 'UNKNOWN'].to_set def self.license_names_from_spec(spec) license_names = spec['license'].to_s.strip.split(' or ') has_unrecognized_license = false license_names.each do |license_name| license = License.find_by_name(license_name.strip) has_unrecognized_license ||= license.unrecognized_matcher? end return license_names if !license_names.empty? && !has_unrecognized_license spec .fetch('classifiers', []) .select { |c| c =~ LICENSE_FORMAT } .map { |c| c.gsub(LICENSE_FORMAT, '\1') } end def initialize(name, version, spec, options = {}) super( name, version, options.merge( authors: spec['author'], summary: spec['summary'], description: spec['description'], homepage: spec['home_page'], spec_licenses: self.class.license_names_from_spec(spec) ) ) end def package_manager 'Pip' end def package_url "https://pypi.org/project/#{CGI.escape(name)}/#{CGI.escape(version)}/" end end end gitlab-license-finder-6.14.2.1/lib/license_finder/cli.rb0000644000175100017510000000117014172736724021747 0ustar pravipravi# frozen_string_literal: true module LicenseFinder module CLI end end require 'license_finder/cli/patched_thor' require 'license_finder/cli/base' require 'license_finder/cli/makes_decisions' require 'license_finder/cli/inherited_decisions' require 'license_finder/cli/permitted_licenses' require 'license_finder/cli/restricted_licenses' require 'license_finder/cli/dependencies' require 'license_finder/cli/licenses' require 'license_finder/cli/approvals' require 'license_finder/cli/ignored_groups' require 'license_finder/cli/ignored_dependencies' require 'license_finder/cli/project_name' require 'license_finder/cli/main' gitlab-license-finder-6.14.2.1/lib/license_finder/report.rb0000644000175100017510000000154414172736724022520 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class Report def self.of(dependencies, options) new(dependencies, options).to_s end def initialize(dependencies, options) @dependencies = dependencies @project_name = options[:project_name] end private attr_reader :dependencies, :project_name def sorted_dependencies dependencies.sort end end end require 'license_finder/reports/erb_report' require 'license_finder/reports/csv_report' require 'license_finder/reports/text_report' require 'license_finder/reports/diff_report' require 'license_finder/reports/merged_report' require 'license_finder/reports/html_report' require 'license_finder/reports/markdown_report' require 'license_finder/reports/xml_report' require 'license_finder/reports/json_report' require 'license_finder/reports/junit_report' gitlab-license-finder-6.14.2.1/lib/license_finder/license_aggregator.rb0000644000175100017510000000337014172736724025030 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class LicenseAggregator def initialize(config, aggregate_paths) @config = config @aggregate_paths = aggregate_paths end def dependencies aggregate_packages end def any_packages? finders.map do |finder| finder.prepare_projects if @config.prepare finder.any_packages? end.reduce(:|) end def unapproved aggregate_packages.reject(&:approved?) end def restricted aggregate_packages.select(&:restricted?) end private def finders return @finders unless @finders.nil? @finders = if @aggregate_paths.nil? [LicenseFinder::Core.new(@config)] else @aggregate_paths.map do |path| # Passing file paths as values instead of allowing them to evaluate in config LicenseFinder::Core.new(@config.merge(project_path: path, log_directory: @config.log_directory || @config.project_path, decisions_file: @config.decisions_file_path)) end end end def aggregate_packages return @packages unless @packages.nil? all_packages = finders.flat_map do |finder| finder.prepare_projects if @config.prepare finder.acknowledged.map { |dep| MergedPackage.new(dep, [finder.project_path]) } end @packages = all_packages.group_by { |package| [package.name, package.version] } .map do |_, packages| MergedPackage.new(packages[0].dependency, packages.flat_map(&:aggregate_paths)) end end end end gitlab-license-finder-6.14.2.1/lib/license_finder/reports/0000755000175100017510000000000014172736724022352 5ustar pravipravigitlab-license-finder-6.14.2.1/lib/license_finder/reports/html_report.rb0000644000175100017510000000030714172736724025236 0ustar pravipravimodule LicenseFinder class HtmlReport < ErbReport private def template_name 'html_report' end def bootstrap TEMPLATE_PATH.join('bootstrap.css').read end end end gitlab-license-finder-6.14.2.1/lib/license_finder/reports/diff_report.rb0000644000175100017510000000127214172736724025204 0ustar pravipravimodule LicenseFinder class DiffReport < CsvReport AVAILABLE_COLUMNS = AVAILABLE_COLUMNS + %w[status current_version previous_version project_paths] def initialize(dependencies, options = {}) super(dependencies, options.merge(columns: build_columns(dependencies))) end def format_status(dep) dep.status end def format_version(dep) dep.version end def format_project_paths(dep) dep.aggregate_paths.join(self.class::COMMA_SEP) end private def build_columns(dependencies) columns = %w[status name version licenses] columns << 'project_paths' if dependencies.all?(&:merged_package?) columns end end end gitlab-license-finder-6.14.2.1/lib/license_finder/reports/markdown_report.rb0000644000175100017510000000020514172736724026111 0ustar pravipravimodule LicenseFinder class MarkdownReport < ErbReport private def template_name 'markdown_report' end end end gitlab-license-finder-6.14.2.1/lib/license_finder/reports/csv_report.rb0000644000175100017510000000463114172736724025071 0ustar pravipravirequire 'csv' module LicenseFinder class CsvReport < Report COMMA_SEP = ','.freeze NEWLINE_SEP = '\@NL'.freeze AVAILABLE_COLUMNS = %w[name version authors licenses license_links approved summary description homepage install_path package_manager groups texts notice].freeze MISSING_DEPENDENCY_TEXT = 'This package is not installed. Please install to determine licenses.'.freeze def initialize(dependencies, options) super options[:columns] ||= %w[name version licenses] @columns = Array(options[:columns]) & self.class::AVAILABLE_COLUMNS @write_headers = options[:write_headers] || false end def to_s CSV.generate(col_sep: self.class::COMMA_SEP, headers: @columns, write_headers: @write_headers) do |csv| sorted_dependencies.each do |s| csv << format_dependency(s) end end end private def format_dependency(dep) @columns.map do |column| send("format_#{column}", dep) end end def format_texts(dep) dep.license_files.map { |file| file.text.split(/[\n\r]+/).join(self.class::NEWLINE_SEP) } .join(self.class::NEWLINE_SEP).force_encoding("ISO-8859-1").encode("UTF-8") end def format_notice(dep) dep.notice_files.map { |file| file.text.split(/[\n\r]+/).join(self.class::NEWLINE_SEP) } .join(self.class::NEWLINE_SEP).force_encoding("ISO-8859-1").encode("UTF-8") end def format_name(dep) dep.name end def format_version(dep) dep.version end def format_authors(dep) dep.authors.to_s.strip end def format_homepage(dep) dep.homepage end def format_licenses(dep) if dep.missing? MISSING_DEPENDENCY_TEXT else dep.licenses.map(&:name).join(self.class::COMMA_SEP) end end def format_license_links(dep) dep.licenses.map(&:url).join(self.class::COMMA_SEP) end def format_approved(dep) dep.approved? ? 'Approved' : 'Not approved' end def format_summary(dep) dep.summary.to_s.strip end def format_description(dep) dep.description.to_s.strip end def format_install_path(dep) dep.install_path end def format_package_manager(dep) dep.package_manager end def format_groups(dep) if dep.groups.nil? '' else dep.groups.join(self.class::COMMA_SEP) end end end end gitlab-license-finder-6.14.2.1/lib/license_finder/reports/erb_report.rb0000644000175100017510000000246314172736724025047 0ustar pravipravirequire 'erb' module LicenseFinder class ErbReport < Report TEMPLATE_PATH = ROOT_PATH.join('reports', 'templates') def to_s(filename = TEMPLATE_PATH.join("#{template_name}.erb")) template = ERB.new(filename.read, nil, '-') template.result(binding) end private def unapproved_dependencies dependencies.reject(&:approved?) end def grouped_dependencies dependencies .group_by { |dep| license_names(dep) } .sort_by { |_, group| -group.size } end def link_to_license(license) link_to_maybe license.name, license.url end def link_to_dependency(dependency) link_to_maybe dependency.name, dependency.homepage end def link_to_maybe(text, link) if link && !link.empty? link_to(text, link) else text end end def link_to(text, link = "##{text}") %(#{text}) end def license_names(dependency) dependency.licenses.map(&:name).sort.join ', ' end def license_links(dependency) dependency.licenses.map { |l| link_to_license(l) }.join(', ') end def version_groups(dependency) result = "v#{dependency.version}" result << " (#{dependency.groups.join(', ')})" if dependency.groups.any? result end end end gitlab-license-finder-6.14.2.1/lib/license_finder/reports/merged_report.rb0000644000175100017510000000065514172736724025543 0ustar pravipravimodule LicenseFinder class MergedReport < CsvReport AVAILABLE_COLUMNS = AVAILABLE_COLUMNS + ['aggregate_paths'] def initialize(dependencies, options = {}) options=options.dup options[:columns] ||= %w[name version licenses aggregate_paths] super(dependencies, options) end def format_aggregate_paths(merged_dep) merged_dep.aggregate_paths.join(self.class::COMMA_SEP) end end end gitlab-license-finder-6.14.2.1/lib/license_finder/reports/templates/0000755000175100017510000000000014172736724024350 5ustar pravipravigitlab-license-finder-6.14.2.1/lib/license_finder/reports/templates/markdown_report.erb0000644000175100017510000000252414172736724030262 0ustar pravipravi# <%= project_name %> As of <%= Time.now.strftime("%B %e, %Y %l:%M%P") %>. <%= dependencies.size %> total ## Summary <% grouped_dependencies.each do |license_name, group| -%> * <%= group.size %> <%= license_name %> <% end %> <% if unapproved_dependencies.any? -%> ## Action <%= unapproved_dependencies.size %> *unapproved* <% unapproved_dependencies.each do |dependency| -%> * <%= link_to dependency.name %> (<%= license_names(dependency) %>) <% end %> <% end -%> ## Items <% sorted_dependencies.each do |dependency| -%> ### <%= link_to_dependency(dependency) %> <%= version_groups(dependency) %> #### <%= dependency.summary %> <% if dependency.is_a?(MergedPackage) && !dependency.aggregate_paths.nil? && dependency.aggregate_paths.count > 0 -%> ##### Paths <% dependency.aggregate_paths.each do |path| -%> * <%= path %> <% end -%> <% end -%> <% if dependency.approved_manually? -%> <%= license_links(dependency) %> manually approved ><%= dependency.manual_approval.why %> > <%= dependency.manual_approval.who %> <%= dependency.manual_approval.safe_when.to_date %> <% elsif dependency.permitted? -%> <%= license_links(dependency) %> permitted <% else -%> <%= license_links(dependency) %> _**unapproved**_ <% end -%> <% if dependency.description -%> <%= dependency.description %> <% end -%> <% end -%> gitlab-license-finder-6.14.2.1/lib/license_finder/reports/templates/xml_report.erb0000644000175100017510000000112114172736724027230 0ustar pravipravi <% sorted_dependencies.each do |dependency| -%> <%= dependency.name %> <%= dependency.version %> <% dependency.licenses.each do |license| -%> <%= license.name %> <%= license.url %> <% end -%> <% end -%> gitlab-license-finder-6.14.2.1/lib/license_finder/reports/templates/junit_report.erb0000644000175100017510000000305014172736724027564 0ustar pravipravi <% sorted_dependencies.each_with_index do |dependency, i| -%> " id="<%= i %>" name="<%= dependency.name %>" package="Gemfile.lock" skipped="0" tests="1" timestamp="<%= Time.now.strftime("%Y-%m-%dT%H:%M:%S:%6N") %>"> > <%- unless dependency.approved? -%> Name: <%= dependency.name %> Version: <%= dependency.version %> Licence: <%- if dependency.licenses.any? -%> <%- dependency.licenses.each do |license| -%>- <%=license.name %>: <%=license.url %><% end %> <%- end -%> URL: <%= dependency.package_url %> Homepage: <%= dependency.homepage %> Summary: <%= REXML::Text.new(dependency.summary, false, nil, false) %> Description: <%= REXML::Text.new(dependency.description, false, nil, false) %> <% if dependency.parents.any? %> Dependencies: <% dependency.parents.to_a.each do |dep| -%> - <%= dep %> <% end -%> <% end -%> <%- if dependency.children.any? -%> Requirements: <%- dependency.children.each do |req| -%> - <%= req %> <% end -%> <% end -%> stdout stderr <%- end -%> <% end -%> gitlab-license-finder-6.14.2.1/lib/license_finder/reports/templates/html_report.erb0000644000175100017510000000706414172736724027410 0ustar pravipravi

<%= project_name %>

Dependencies

As of <%= Time.now.strftime("%B %e, %Y %l:%M%P") %>

<%= dependencies.size %> total

    <% grouped_dependencies.each do |license_name, group| -%>
  • <%= group.size %> <%= license_name %>
  • <% end -%>
<% if unapproved_dependencies.any? -%>

Action Items

<%= unapproved_dependencies.size %> unapproved

    <% unapproved_dependencies.each do |dependency| -%>
  • <%= link_to dependency.name %> (<%= license_names(dependency) %>)
  • <% end -%>
<% end -%>
<% sorted_dependencies.each do |dependency| -%>
">
<% if dependency.approved_manually? -%>

<%= license_links(dependency) %> manually approved

<%= dependency.manual_approval.why %>

<% if dependency.manual_approval.who -%> <%= dependency.manual_approval.who %>, <% end -%> <% elsif dependency.permitted? -%>

<%= license_links(dependency) %> permitted

<% else -%>

<%= license_links(dependency) %> unapproved

<% end -%>

<%= link_to_dependency(dependency) %> <%= version_groups(dependency) %>

<% if dependency.is_a?(MergedPackage) && !dependency.aggregate_paths.nil? && dependency.aggregate_paths.count > 0-%>

Paths

<% dependency.aggregate_paths.each do |path| -%>
<%= path %>
<% end -%>
<% end -%>

<%= dependency.summary %>

<%= dependency.description %>

<% if dependency.parents.any? -%>
<%=dependency.name%> is required by:
<%= dependency.parents.to_a.join(", ") -%>
<% end -%> <% if dependency.children.any? -%>
<%=dependency.name%> relies on:
<%= dependency.children.join(", ") -%>
<% end -%>
<% end -%>
gitlab-license-finder-6.14.2.1/lib/license_finder/reports/templates/bootstrap.css0000644000175100017510000027772314172736724027121 0ustar pravipravi/*! * Bootstrap v2.1.1 * * Copyright 2012 Twitter, Inc * Licensed under the Apache License v2.0 * http://www.apache.org/licenses/LICENSE-2.0 * * Designed and built with all the love in the world @twitter by @mdo and @fat. */article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio,canvas,video{display:inline-block;*display:inline;*zoom:1}audio:not([controls]){display:none}html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}a:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}a:hover,a:active{outline:0}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{width:auto\9;height:auto;max-width:100%;vertical-align:middle;border:0;-ms-interpolation-mode:bicubic}#map_canvas img{max-width:none}button,input,select,textarea{margin:0;font-size:100%;vertical-align:middle}button,input{*overflow:visible;line-height:normal}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}button,input[type="button"],input[type="reset"],input[type="submit"]{cursor:pointer;-webkit-appearance:button}input[type="search"]{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield}input[type="search"]::-webkit-search-decoration,input[type="search"]::-webkit-search-cancel-button{-webkit-appearance:none}textarea{overflow:auto;vertical-align:top}.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;line-height:0;content:""}.clearfix:after{clear:both}.hide-text{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.input-block-level{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}body{margin:0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:20px;color:#333;background-color:#fff}a{color:#08c;text-decoration:none}a:hover{color:#005580;text-decoration:underline}.img-rounded{-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.img-polaroid{padding:4px;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,0.2);-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.1);-moz-box-shadow:0 1px 3px rgba(0,0,0,0.1);box-shadow:0 1px 3px rgba(0,0,0,0.1)}.img-circle{-webkit-border-radius:500px;-moz-border-radius:500px;border-radius:500px}.row{margin-left:-20px;*zoom:1}.row:before,.row:after{display:table;line-height:0;content:""}.row:after{clear:both}[class*="span"]{float:left;min-height:1px;margin-left:20px}.container,.navbar-static-top .container,.navbar-fixed-top .container,.navbar-fixed-bottom .container{width:940px}.span12{width:940px}.span11{width:860px}.span10{width:780px}.span9{width:700px}.span8{width:620px}.span7{width:540px}.span6{width:460px}.span5{width:380px}.span4{width:300px}.span3{width:220px}.span2{width:140px}.span1{width:60px}.offset12{margin-left:980px}.offset11{margin-left:900px}.offset10{margin-left:820px}.offset9{margin-left:740px}.offset8{margin-left:660px}.offset7{margin-left:580px}.offset6{margin-left:500px}.offset5{margin-left:420px}.offset4{margin-left:340px}.offset3{margin-left:260px}.offset2{margin-left:180px}.offset1{margin-left:100px}.row-fluid{width:100%;*zoom:1}.row-fluid:before,.row-fluid:after{display:table;line-height:0;content:""}.row-fluid:after{clear:both}.row-fluid [class*="span"]{display:block;float:left;width:100%;min-height:30px;margin-left:2.127659574468085%;*margin-left:2.074468085106383%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.row-fluid [class*="span"]:first-child{margin-left:0}.row-fluid .span12{width:100%;*width:99.94680851063829%}.row-fluid .span11{width:91.48936170212765%;*width:91.43617021276594%}.row-fluid .span10{width:82.97872340425532%;*width:82.92553191489361%}.row-fluid .span9{width:74.46808510638297%;*width:74.41489361702126%}.row-fluid .span8{width:65.95744680851064%;*width:65.90425531914893%}.row-fluid .span7{width:57.44680851063829%;*width:57.39361702127659%}.row-fluid .span6{width:48.93617021276595%;*width:48.88297872340425%}.row-fluid .span5{width:40.42553191489362%;*width:40.37234042553192%}.row-fluid .span4{width:31.914893617021278%;*width:31.861702127659576%}.row-fluid .span3{width:23.404255319148934%;*width:23.351063829787233%}.row-fluid .span2{width:14.893617021276595%;*width:14.840425531914894%}.row-fluid .span1{width:6.382978723404255%;*width:6.329787234042553%}.row-fluid .offset12{margin-left:104.25531914893617%;*margin-left:104.14893617021275%}.row-fluid .offset12:first-child{margin-left:102.12765957446808%;*margin-left:102.02127659574467%}.row-fluid .offset11{margin-left:95.74468085106382%;*margin-left:95.6382978723404%}.row-fluid .offset11:first-child{margin-left:93.61702127659574%;*margin-left:93.51063829787232%}.row-fluid .offset10{margin-left:87.23404255319149%;*margin-left:87.12765957446807%}.row-fluid .offset10:first-child{margin-left:85.1063829787234%;*margin-left:84.99999999999999%}.row-fluid .offset9{margin-left:78.72340425531914%;*margin-left:78.61702127659572%}.row-fluid .offset9:first-child{margin-left:76.59574468085106%;*margin-left:76.48936170212764%}.row-fluid .offset8{margin-left:70.2127659574468%;*margin-left:70.10638297872339%}.row-fluid .offset8:first-child{margin-left:68.08510638297872%;*margin-left:67.9787234042553%}.row-fluid .offset7{margin-left:61.70212765957446%;*margin-left:61.59574468085106%}.row-fluid .offset7:first-child{margin-left:59.574468085106375%;*margin-left:59.46808510638297%}.row-fluid .offset6{margin-left:53.191489361702125%;*margin-left:53.085106382978715%}.row-fluid .offset6:first-child{margin-left:51.063829787234035%;*margin-left:50.95744680851063%}.row-fluid .offset5{margin-left:44.68085106382979%;*margin-left:44.57446808510638%}.row-fluid .offset5:first-child{margin-left:42.5531914893617%;*margin-left:42.4468085106383%}.row-fluid .offset4{margin-left:36.170212765957444%;*margin-left:36.06382978723405%}.row-fluid .offset4:first-child{margin-left:34.04255319148936%;*margin-left:33.93617021276596%}.row-fluid .offset3{margin-left:27.659574468085104%;*margin-left:27.5531914893617%}.row-fluid .offset3:first-child{margin-left:25.53191489361702%;*margin-left:25.425531914893618%}.row-fluid .offset2{margin-left:19.148936170212764%;*margin-left:19.04255319148936%}.row-fluid .offset2:first-child{margin-left:17.02127659574468%;*margin-left:16.914893617021278%}.row-fluid .offset1{margin-left:10.638297872340425%;*margin-left:10.53191489361702%}.row-fluid .offset1:first-child{margin-left:8.51063829787234%;*margin-left:8.404255319148938%}[class*="span"].hide,.row-fluid [class*="span"].hide{display:none}[class*="span"].pull-right,.row-fluid [class*="span"].pull-right{float:right}.container{margin-right:auto;margin-left:auto;*zoom:1}.container:before,.container:after{display:table;line-height:0;content:""}.container:after{clear:both}.container-fluid{padding-right:20px;padding-left:20px;*zoom:1}.container-fluid:before,.container-fluid:after{display:table;line-height:0;content:""}.container-fluid:after{clear:both}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:21px;font-weight:200;line-height:30px}small{font-size:85%}strong{font-weight:bold}em{font-style:italic}cite{font-style:normal}.muted{color:#999}.text-warning{color:#c09853}.text-error{color:#b94a48}.text-info{color:#3a87ad}.text-success{color:#468847}h1,h2,h3,h4,h5,h6{margin:10px 0;font-family:inherit;font-weight:bold;line-height:1;color:inherit;text-rendering:optimizelegibility}h1 small,h2 small,h3 small,h4 small,h5 small,h6 small{font-weight:normal;line-height:1;color:#999}h1{font-size:36px;line-height:40px}h2{font-size:30px;line-height:40px}h3{font-size:24px;line-height:40px}h4{font-size:18px;line-height:20px}h5{font-size:14px;line-height:20px}h6{font-size:12px;line-height:20px}h1 small{font-size:24px}h2 small{font-size:18px}h3 small{font-size:14px}h4 small{font-size:14px}.page-header{padding-bottom:9px;margin:20px 0 30px;border-bottom:1px solid #eee}ul,ol{padding:0;margin:0 0 10px 25px}ul ul,ul ol,ol ol,ol ul{margin-bottom:0}li{line-height:20px}ul.unstyled,ol.unstyled{margin-left:0;list-style:none}dl{margin-bottom:20px}dt,dd{line-height:20px}dt{font-weight:bold}dd{margin-left:10px}.dl-horizontal{*zoom:1}.dl-horizontal:before,.dl-horizontal:after{display:table;line-height:0;content:""}.dl-horizontal:after{clear:both}.dl-horizontal dt{float:left;width:160px;overflow:hidden;clear:left;text-align:right;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}hr{margin:20px 0;border:0;border-top:1px solid #eee;border-bottom:1px solid #fff}abbr[title]{cursor:help;border-bottom:1px dotted #999}abbr.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:0 0 0 15px;margin:0 0 20px;border-left:5px solid #eee}blockquote p{margin-bottom:0;font-size:16px;font-weight:300;line-height:25px}blockquote small{display:block;line-height:20px;color:#999}blockquote small:before{content:'\2014 \00A0'}blockquote.pull-right{float:right;padding-right:15px;padding-left:0;border-right:5px solid #eee;border-left:0}blockquote.pull-right p,blockquote.pull-right small{text-align:right}blockquote.pull-right small:before{content:''}blockquote.pull-right small:after{content:'\00A0 \2014'}q:before,q:after,blockquote:before,blockquote:after{content:""}address{display:block;margin-bottom:20px;font-style:normal;line-height:20px}code,pre{padding:0 3px 2px;font-family:Monaco,Menlo,Consolas,"Courier New",monospace;font-size:12px;color:#333;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}code{padding:2px 4px;color:#d14;background-color:#f7f7f9;border:1px solid #e1e1e8}pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:20px;word-break:break-all;word-wrap:break-word;white-space:pre;white-space:pre-wrap;background-color:#f5f5f5;border:1px solid #ccc;border:1px solid rgba(0,0,0,0.15);-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}pre.prettyprint{margin-bottom:20px}pre code{padding:0;color:inherit;background-color:transparent;border:0}.pre-scrollable{max-height:340px;overflow-y:scroll}form{margin:0 0 20px}fieldset{padding:0;margin:0;border:0}legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:40px;color:#333;border:0;border-bottom:1px solid #e5e5e5}legend small{font-size:15px;color:#999}label,input,button,select,textarea{font-size:14px;font-weight:normal;line-height:20px}input,button,select,textarea{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif}label{display:block;margin-bottom:5px}select,textarea,input[type="text"],input[type="password"],input[type="datetime"],input[type="datetime-local"],input[type="date"],input[type="month"],input[type="time"],input[type="week"],input[type="number"],input[type="email"],input[type="url"],input[type="search"],input[type="tel"],input[type="color"],.uneditable-input{display:inline-block;height:20px;padding:4px 6px;margin-bottom:9px;font-size:14px;line-height:20px;color:#555;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}input,textarea,.uneditable-input{width:206px}textarea{height:auto}textarea,input[type="text"],input[type="password"],input[type="datetime"],input[type="datetime-local"],input[type="date"],input[type="month"],input[type="time"],input[type="week"],input[type="number"],input[type="email"],input[type="url"],input[type="search"],input[type="tel"],input[type="color"],.uneditable-input{background-color:#fff;border:1px solid #ccc;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-webkit-transition:border linear .2s,box-shadow linear .2s;-moz-transition:border linear .2s,box-shadow linear .2s;-o-transition:border linear .2s,box-shadow linear .2s;transition:border linear .2s,box-shadow linear .2s}textarea:focus,input[type="text"]:focus,input[type="password"]:focus,input[type="datetime"]:focus,input[type="datetime-local"]:focus,input[type="date"]:focus,input[type="month"]:focus,input[type="time"]:focus,input[type="week"]:focus,input[type="number"]:focus,input[type="email"]:focus,input[type="url"]:focus,input[type="search"]:focus,input[type="tel"]:focus,input[type="color"]:focus,.uneditable-input:focus{border-color:rgba(82,168,236,0.8);outline:0;outline:thin dotted \9;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(82,168,236,0.6);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(82,168,236,0.6);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(82,168,236,0.6)}input[type="radio"],input[type="checkbox"]{margin:4px 0 0;margin-top:1px \9;*margin-top:0;line-height:normal;cursor:pointer}input[type="file"],input[type="image"],input[type="submit"],input[type="reset"],input[type="button"],input[type="radio"],input[type="checkbox"]{width:auto}select,input[type="file"]{height:30px;*margin-top:4px;line-height:30px}select{width:220px;background-color:#fff;border:1px solid #ccc}select[multiple],select[size]{height:auto}select:focus,input[type="file"]:focus,input[type="radio"]:focus,input[type="checkbox"]:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.uneditable-input,.uneditable-textarea{color:#999;cursor:not-allowed;background-color:#fcfcfc;border-color:#ccc;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.025);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.025);box-shadow:inset 0 1px 2px rgba(0,0,0,0.025)}.uneditable-input{overflow:hidden;white-space:nowrap}.uneditable-textarea{width:auto;height:auto}input:-moz-placeholder,textarea:-moz-placeholder{color:#999}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#999}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#999}.radio,.checkbox{min-height:18px;padding-left:18px}.radio input[type="radio"],.checkbox input[type="checkbox"]{float:left;margin-left:-18px}.controls>.radio:first-child,.controls>.checkbox:first-child{padding-top:5px}.radio.inline,.checkbox.inline{display:inline-block;padding-top:5px;margin-bottom:0;vertical-align:middle}.radio.inline+.radio.inline,.checkbox.inline+.checkbox.inline{margin-left:10px}.input-mini{width:60px}.input-small{width:90px}.input-medium{width:150px}.input-large{width:210px}.input-xlarge{width:270px}.input-xxlarge{width:530px}input[class*="span"],select[class*="span"],textarea[class*="span"],.uneditable-input[class*="span"],.row-fluid input[class*="span"],.row-fluid select[class*="span"],.row-fluid textarea[class*="span"],.row-fluid .uneditable-input[class*="span"]{float:none;margin-left:0}.input-append input[class*="span"],.input-append .uneditable-input[class*="span"],.input-prepend input[class*="span"],.input-prepend .uneditable-input[class*="span"],.row-fluid input[class*="span"],.row-fluid select[class*="span"],.row-fluid textarea[class*="span"],.row-fluid .uneditable-input[class*="span"],.row-fluid .input-prepend [class*="span"],.row-fluid .input-append [class*="span"]{display:inline-block}input,textarea,.uneditable-input{margin-left:0}.controls-row [class*="span"]+[class*="span"]{margin-left:20px}input.span12,textarea.span12,.uneditable-input.span12{width:926px}input.span11,textarea.span11,.uneditable-input.span11{width:846px}input.span10,textarea.span10,.uneditable-input.span10{width:766px}input.span9,textarea.span9,.uneditable-input.span9{width:686px}input.span8,textarea.span8,.uneditable-input.span8{width:606px}input.span7,textarea.span7,.uneditable-input.span7{width:526px}input.span6,textarea.span6,.uneditable-input.span6{width:446px}input.span5,textarea.span5,.uneditable-input.span5{width:366px}input.span4,textarea.span4,.uneditable-input.span4{width:286px}input.span3,textarea.span3,.uneditable-input.span3{width:206px}input.span2,textarea.span2,.uneditable-input.span2{width:126px}input.span1,textarea.span1,.uneditable-input.span1{width:46px}.controls-row{*zoom:1}.controls-row:before,.controls-row:after{display:table;line-height:0;content:""}.controls-row:after{clear:both}.controls-row [class*="span"]{float:left}input[disabled],select[disabled],textarea[disabled],input[readonly],select[readonly],textarea[readonly]{cursor:not-allowed;background-color:#eee}input[type="radio"][disabled],input[type="checkbox"][disabled],input[type="radio"][readonly],input[type="checkbox"][readonly]{background-color:transparent}.control-group.warning>label,.control-group.warning .help-block,.control-group.warning .help-inline{color:#c09853}.control-group.warning .checkbox,.control-group.warning .radio,.control-group.warning input,.control-group.warning select,.control-group.warning textarea{color:#c09853}.control-group.warning input,.control-group.warning select,.control-group.warning textarea{border-color:#c09853;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.control-group.warning input:focus,.control-group.warning select:focus,.control-group.warning textarea:focus{border-color:#a47e3c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #dbc59e;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #dbc59e;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #dbc59e}.control-group.warning .input-prepend .add-on,.control-group.warning .input-append .add-on{color:#c09853;background-color:#fcf8e3;border-color:#c09853}.control-group.error>label,.control-group.error .help-block,.control-group.error .help-inline{color:#b94a48}.control-group.error .checkbox,.control-group.error .radio,.control-group.error input,.control-group.error select,.control-group.error textarea{color:#b94a48}.control-group.error input,.control-group.error select,.control-group.error textarea{border-color:#b94a48;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.control-group.error input:focus,.control-group.error select:focus,.control-group.error textarea:focus{border-color:#953b39;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #d59392;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #d59392;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #d59392}.control-group.error .input-prepend .add-on,.control-group.error .input-append .add-on{color:#b94a48;background-color:#f2dede;border-color:#b94a48}.control-group.success>label,.control-group.success .help-block,.control-group.success .help-inline{color:#468847}.control-group.success .checkbox,.control-group.success .radio,.control-group.success input,.control-group.success select,.control-group.success textarea{color:#468847}.control-group.success input,.control-group.success select,.control-group.success textarea{border-color:#468847;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.control-group.success input:focus,.control-group.success select:focus,.control-group.success textarea:focus{border-color:#356635;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #7aba7b;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #7aba7b;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #7aba7b}.control-group.success .input-prepend .add-on,.control-group.success .input-append .add-on{color:#468847;background-color:#dff0d8;border-color:#468847}.control-group.info>label,.control-group.info .help-block,.control-group.info .help-inline{color:#3a87ad}.control-group.info .checkbox,.control-group.info .radio,.control-group.info input,.control-group.info select,.control-group.info textarea{color:#3a87ad}.control-group.info input,.control-group.info select,.control-group.info textarea{border-color:#3a87ad;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.control-group.info input:focus,.control-group.info select:focus,.control-group.info textarea:focus{border-color:#2d6987;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #7ab5d3;-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #7ab5d3;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #7ab5d3}.control-group.info .input-prepend .add-on,.control-group.info .input-append .add-on{color:#3a87ad;background-color:#d9edf7;border-color:#3a87ad}input:focus:required:invalid,textarea:focus:required:invalid,select:focus:required:invalid{color:#b94a48;border-color:#ee5f5b}input:focus:required:invalid:focus,textarea:focus:required:invalid:focus,select:focus:required:invalid:focus{border-color:#e9322d;-webkit-box-shadow:0 0 6px #f8b9b7;-moz-box-shadow:0 0 6px #f8b9b7;box-shadow:0 0 6px #f8b9b7}.form-actions{padding:19px 20px 20px;margin-top:20px;margin-bottom:20px;background-color:#f5f5f5;border-top:1px solid #e5e5e5;*zoom:1}.form-actions:before,.form-actions:after{display:table;line-height:0;content:""}.form-actions:after{clear:both}.help-block,.help-inline{color:#595959}.help-block{display:block;margin-bottom:10px}.help-inline{display:inline-block;*display:inline;padding-left:5px;vertical-align:middle;*zoom:1}.input-append,.input-prepend{margin-bottom:5px;font-size:0;white-space:nowrap}.input-append input,.input-prepend input,.input-append select,.input-prepend select,.input-append .uneditable-input,.input-prepend .uneditable-input{position:relative;margin-bottom:0;*margin-left:0;font-size:14px;vertical-align:top;-webkit-border-radius:0 3px 3px 0;-moz-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0}.input-append input:focus,.input-prepend input:focus,.input-append select:focus,.input-prepend select:focus,.input-append .uneditable-input:focus,.input-prepend .uneditable-input:focus{z-index:2}.input-append .add-on,.input-prepend .add-on{display:inline-block;width:auto;height:20px;min-width:16px;padding:4px 5px;font-size:14px;font-weight:normal;line-height:20px;text-align:center;text-shadow:0 1px 0 #fff;background-color:#eee;border:1px solid #ccc}.input-append .add-on,.input-prepend .add-on,.input-append .btn,.input-prepend .btn{vertical-align:top;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.input-append .active,.input-prepend .active{background-color:#a9dba9;border-color:#46a546}.input-prepend .add-on,.input-prepend .btn{margin-right:-1px}.input-prepend .add-on:first-child,.input-prepend .btn:first-child{-webkit-border-radius:3px 0 0 3px;-moz-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px}.input-append input,.input-append select,.input-append .uneditable-input{-webkit-border-radius:3px 0 0 3px;-moz-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px}.input-append .add-on,.input-append .btn{margin-left:-1px}.input-append .add-on:last-child,.input-append .btn:last-child{-webkit-border-radius:0 3px 3px 0;-moz-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0}.input-prepend.input-append input,.input-prepend.input-append select,.input-prepend.input-append .uneditable-input{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.input-prepend.input-append .add-on:first-child,.input-prepend.input-append .btn:first-child{margin-right:-1px;-webkit-border-radius:3px 0 0 3px;-moz-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px}.input-prepend.input-append .add-on:last-child,.input-prepend.input-append .btn:last-child{margin-left:-1px;-webkit-border-radius:0 3px 3px 0;-moz-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0}input.search-query{padding-right:14px;padding-right:4px \9;padding-left:14px;padding-left:4px \9;margin-bottom:0;-webkit-border-radius:15px;-moz-border-radius:15px;border-radius:15px}.form-search .input-append .search-query,.form-search .input-prepend .search-query{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.form-search .input-append .search-query{-webkit-border-radius:14px 0 0 14px;-moz-border-radius:14px 0 0 14px;border-radius:14px 0 0 14px}.form-search .input-append .btn{-webkit-border-radius:0 14px 14px 0;-moz-border-radius:0 14px 14px 0;border-radius:0 14px 14px 0}.form-search .input-prepend .search-query{-webkit-border-radius:0 14px 14px 0;-moz-border-radius:0 14px 14px 0;border-radius:0 14px 14px 0}.form-search .input-prepend .btn{-webkit-border-radius:14px 0 0 14px;-moz-border-radius:14px 0 0 14px;border-radius:14px 0 0 14px}.form-search input,.form-inline input,.form-horizontal input,.form-search textarea,.form-inline textarea,.form-horizontal textarea,.form-search select,.form-inline select,.form-horizontal select,.form-search .help-inline,.form-inline .help-inline,.form-horizontal .help-inline,.form-search .uneditable-input,.form-inline .uneditable-input,.form-horizontal .uneditable-input,.form-search .input-prepend,.form-inline .input-prepend,.form-horizontal .input-prepend,.form-search .input-append,.form-inline .input-append,.form-horizontal .input-append{display:inline-block;*display:inline;margin-bottom:0;vertical-align:middle;*zoom:1}.form-search .hide,.form-inline .hide,.form-horizontal .hide{display:none}.form-search label,.form-inline label,.form-search .btn-group,.form-inline .btn-group{display:inline-block}.form-search .input-append,.form-inline .input-append,.form-search .input-prepend,.form-inline .input-prepend{margin-bottom:0}.form-search .radio,.form-search .checkbox,.form-inline .radio,.form-inline .checkbox{padding-left:0;margin-bottom:0;vertical-align:middle}.form-search .radio input[type="radio"],.form-search .checkbox input[type="checkbox"],.form-inline .radio input[type="radio"],.form-inline .checkbox input[type="checkbox"]{float:left;margin-right:3px;margin-left:0}.control-group{margin-bottom:10px}legend+.control-group{margin-top:20px;-webkit-margin-top-collapse:separate}.form-horizontal .control-group{margin-bottom:20px;*zoom:1}.form-horizontal .control-group:before,.form-horizontal .control-group:after{display:table;line-height:0;content:""}.form-horizontal .control-group:after{clear:both}.form-horizontal .control-label{float:left;width:160px;padding-top:5px;text-align:right}.form-horizontal .controls{*display:inline-block;*padding-left:20px;margin-left:180px;*margin-left:0}.form-horizontal .controls:first-child{*padding-left:180px}.form-horizontal .help-block{margin-bottom:0}.form-horizontal input+.help-block,.form-horizontal select+.help-block,.form-horizontal textarea+.help-block{margin-top:10px}.form-horizontal .form-actions{padding-left:180px}table{max-width:100%;background-color:transparent;border-collapse:collapse;border-spacing:0}.table{width:100%;margin-bottom:20px}.table th,.table td{padding:8px;line-height:20px;text-align:left;vertical-align:top;border-top:1px solid #ddd}.table th{font-weight:bold}.table thead th{vertical-align:bottom}.table caption+thead tr:first-child th,.table caption+thead tr:first-child td,.table colgroup+thead tr:first-child th,.table colgroup+thead tr:first-child td,.table thead:first-child tr:first-child th,.table thead:first-child tr:first-child td{border-top:0}.table tbody+tbody{border-top:2px solid #ddd}.table-condensed th,.table-condensed td{padding:4px 5px}.table-bordered{border:1px solid #ddd;border-collapse:separate;*border-collapse:collapse;border-left:0;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.table-bordered th,.table-bordered td{border-left:1px solid #ddd}.table-bordered caption+thead tr:first-child th,.table-bordered caption+tbody tr:first-child th,.table-bordered caption+tbody tr:first-child td,.table-bordered colgroup+thead tr:first-child th,.table-bordered colgroup+tbody tr:first-child th,.table-bordered colgroup+tbody tr:first-child td,.table-bordered thead:first-child tr:first-child th,.table-bordered tbody:first-child tr:first-child th,.table-bordered tbody:first-child tr:first-child td{border-top:0}.table-bordered thead:first-child tr:first-child th:first-child,.table-bordered tbody:first-child tr:first-child td:first-child{-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-topleft:4px}.table-bordered thead:first-child tr:first-child th:last-child,.table-bordered tbody:first-child tr:first-child td:last-child{-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-moz-border-radius-topright:4px}.table-bordered thead:last-child tr:last-child th:first-child,.table-bordered tbody:last-child tr:last-child td:first-child,.table-bordered tfoot:last-child tr:last-child td:first-child{-webkit-border-radius:0 0 0 4px;-moz-border-radius:0 0 0 4px;border-radius:0 0 0 4px;-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px;-moz-border-radius-bottomleft:4px}.table-bordered thead:last-child tr:last-child th:last-child,.table-bordered tbody:last-child tr:last-child td:last-child,.table-bordered tfoot:last-child tr:last-child td:last-child{-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px;-moz-border-radius-bottomright:4px}.table-bordered caption+thead tr:first-child th:first-child,.table-bordered caption+tbody tr:first-child td:first-child,.table-bordered colgroup+thead tr:first-child th:first-child,.table-bordered colgroup+tbody tr:first-child td:first-child{-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-topleft:4px}.table-bordered caption+thead tr:first-child th:last-child,.table-bordered caption+tbody tr:first-child td:last-child,.table-bordered colgroup+thead tr:first-child th:last-child,.table-bordered colgroup+tbody tr:first-child td:last-child{-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-moz-border-radius-topleft:4px}.table-striped tbody tr:nth-child(odd) td,.table-striped tbody tr:nth-child(odd) th{background-color:#f9f9f9}.table-hover tbody tr:hover td,.table-hover tbody tr:hover th{background-color:#f5f5f5}table [class*=span],.row-fluid table [class*=span]{display:table-cell;float:none;margin-left:0}.table .span1{float:none;width:44px;margin-left:0}.table .span2{float:none;width:124px;margin-left:0}.table .span3{float:none;width:204px;margin-left:0}.table .span4{float:none;width:284px;margin-left:0}.table .span5{float:none;width:364px;margin-left:0}.table .span6{float:none;width:444px;margin-left:0}.table .span7{float:none;width:524px;margin-left:0}.table .span8{float:none;width:604px;margin-left:0}.table .span9{float:none;width:684px;margin-left:0}.table .span10{float:none;width:764px;margin-left:0}.table .span11{float:none;width:844px;margin-left:0}.table .span12{float:none;width:924px;margin-left:0}.table .span13{float:none;width:1004px;margin-left:0}.table .span14{float:none;width:1084px;margin-left:0}.table .span15{float:none;width:1164px;margin-left:0}.table .span16{float:none;width:1244px;margin-left:0}.table .span17{float:none;width:1324px;margin-left:0}.table .span18{float:none;width:1404px;margin-left:0}.table .span19{float:none;width:1484px;margin-left:0}.table .span20{float:none;width:1564px;margin-left:0}.table .span21{float:none;width:1644px;margin-left:0}.table .span22{float:none;width:1724px;margin-left:0}.table .span23{float:none;width:1804px;margin-left:0}.table .span24{float:none;width:1884px;margin-left:0}.table tbody tr.success td{background-color:#dff0d8}.table tbody tr.error td{background-color:#f2dede}.table tbody tr.warning td{background-color:#fcf8e3}.table tbody tr.info td{background-color:#d9edf7}.table-hover tbody tr.success:hover td{background-color:#d0e9c6}.table-hover tbody tr.error:hover td{background-color:#ebcccc}.table-hover tbody tr.warning:hover td{background-color:#faf2cc}.table-hover tbody tr.info:hover td{background-color:#c4e3f3}[class^="icon-"],[class*=" icon-"]{display:inline-block;width:14px;height:14px;margin-top:1px;*margin-right:.3em;line-height:14px;vertical-align:text-top;background-image:url("//netdna.bootstrapcdn.com/twitter-bootstrap/2.1.1/img/glyphicons-halflings.png");background-position:14px 14px;background-repeat:no-repeat}.icon-white,.nav-tabs>.active>a>[class^="icon-"],.nav-tabs>.active>a>[class*=" icon-"],.nav-pills>.active>a>[class^="icon-"],.nav-pills>.active>a>[class*=" icon-"],.nav-list>.active>a>[class^="icon-"],.nav-list>.active>a>[class*=" icon-"],.navbar-inverse .nav>.active>a>[class^="icon-"],.navbar-inverse .nav>.active>a>[class*=" icon-"],.dropdown-menu>li>a:hover>[class^="icon-"],.dropdown-menu>li>a:hover>[class*=" icon-"],.dropdown-menu>.active>a>[class^="icon-"],.dropdown-menu>.active>a>[class*=" icon-"]{background-image:url("//netdna.bootstrapcdn.com/twitter-bootstrap/2.1.1/img/glyphicons-halflings-white.png")}.icon-glass{background-position:0 0}.icon-music{background-position:-24px 0}.icon-search{background-position:-48px 0}.icon-envelope{background-position:-72px 0}.icon-heart{background-position:-96px 0}.icon-star{background-position:-120px 0}.icon-star-empty{background-position:-144px 0}.icon-user{background-position:-168px 0}.icon-film{background-position:-192px 0}.icon-th-large{background-position:-216px 0}.icon-th{background-position:-240px 0}.icon-th-list{background-position:-264px 0}.icon-ok{background-position:-288px 0}.icon-remove{background-position:-312px 0}.icon-zoom-in{background-position:-336px 0}.icon-zoom-out{background-position:-360px 0}.icon-off{background-position:-384px 0}.icon-signal{background-position:-408px 0}.icon-cog{background-position:-432px 0}.icon-trash{background-position:-456px 0}.icon-home{background-position:0 -24px}.icon-file{background-position:-24px -24px}.icon-time{background-position:-48px -24px}.icon-road{background-position:-72px -24px}.icon-download-alt{background-position:-96px -24px}.icon-download{background-position:-120px -24px}.icon-upload{background-position:-144px -24px}.icon-inbox{background-position:-168px -24px}.icon-play-circle{background-position:-192px -24px}.icon-repeat{background-position:-216px -24px}.icon-refresh{background-position:-240px -24px}.icon-list-alt{background-position:-264px -24px}.icon-lock{background-position:-287px -24px}.icon-flag{background-position:-312px -24px}.icon-headphones{background-position:-336px -24px}.icon-volume-off{background-position:-360px -24px}.icon-volume-down{background-position:-384px -24px}.icon-volume-up{background-position:-408px -24px}.icon-qrcode{background-position:-432px -24px}.icon-barcode{background-position:-456px -24px}.icon-tag{background-position:0 -48px}.icon-tags{background-position:-25px -48px}.icon-book{background-position:-48px -48px}.icon-bookmark{background-position:-72px -48px}.icon-print{background-position:-96px -48px}.icon-camera{background-position:-120px -48px}.icon-font{background-position:-144px -48px}.icon-bold{background-position:-167px -48px}.icon-italic{background-position:-192px -48px}.icon-text-height{background-position:-216px -48px}.icon-text-width{background-position:-240px -48px}.icon-align-left{background-position:-264px -48px}.icon-align-center{background-position:-288px -48px}.icon-align-right{background-position:-312px -48px}.icon-align-justify{background-position:-336px -48px}.icon-list{background-position:-360px -48px}.icon-indent-left{background-position:-384px -48px}.icon-indent-right{background-position:-408px -48px}.icon-facetime-video{background-position:-432px -48px}.icon-picture{background-position:-456px -48px}.icon-pencil{background-position:0 -72px}.icon-map-marker{background-position:-24px -72px}.icon-adjust{background-position:-48px -72px}.icon-tint{background-position:-72px -72px}.icon-edit{background-position:-96px -72px}.icon-share{background-position:-120px -72px}.icon-check{background-position:-144px -72px}.icon-move{background-position:-168px -72px}.icon-step-backward{background-position:-192px -72px}.icon-fast-backward{background-position:-216px -72px}.icon-backward{background-position:-240px -72px}.icon-play{background-position:-264px -72px}.icon-pause{background-position:-288px -72px}.icon-stop{background-position:-312px -72px}.icon-forward{background-position:-336px -72px}.icon-fast-forward{background-position:-360px -72px}.icon-step-forward{background-position:-384px -72px}.icon-eject{background-position:-408px -72px}.icon-chevron-left{background-position:-432px -72px}.icon-chevron-right{background-position:-456px -72px}.icon-plus-sign{background-position:0 -96px}.icon-minus-sign{background-position:-24px -96px}.icon-remove-sign{background-position:-48px -96px}.icon-ok-sign{background-position:-72px -96px}.icon-question-sign{background-position:-96px -96px}.icon-info-sign{background-position:-120px -96px}.icon-screenshot{background-position:-144px -96px}.icon-remove-circle{background-position:-168px -96px}.icon-ok-circle{background-position:-192px -96px}.icon-ban-circle{background-position:-216px -96px}.icon-arrow-left{background-position:-240px -96px}.icon-arrow-right{background-position:-264px -96px}.icon-arrow-up{background-position:-289px -96px}.icon-arrow-down{background-position:-312px -96px}.icon-share-alt{background-position:-336px -96px}.icon-resize-full{background-position:-360px -96px}.icon-resize-small{background-position:-384px -96px}.icon-plus{background-position:-408px -96px}.icon-minus{background-position:-433px -96px}.icon-asterisk{background-position:-456px -96px}.icon-exclamation-sign{background-position:0 -120px}.icon-gift{background-position:-24px -120px}.icon-leaf{background-position:-48px -120px}.icon-fire{background-position:-72px -120px}.icon-eye-open{background-position:-96px -120px}.icon-eye-close{background-position:-120px -120px}.icon-warning-sign{background-position:-144px -120px}.icon-plane{background-position:-168px -120px}.icon-calendar{background-position:-192px -120px}.icon-random{width:16px;background-position:-216px -120px}.icon-comment{background-position:-240px -120px}.icon-magnet{background-position:-264px -120px}.icon-chevron-up{background-position:-288px -120px}.icon-chevron-down{background-position:-313px -119px}.icon-retweet{background-position:-336px -120px}.icon-shopping-cart{background-position:-360px -120px}.icon-folder-close{background-position:-384px -120px}.icon-folder-open{width:16px;background-position:-408px -120px}.icon-resize-vertical{background-position:-432px -119px}.icon-resize-horizontal{background-position:-456px -118px}.icon-hdd{background-position:0 -144px}.icon-bullhorn{background-position:-24px -144px}.icon-bell{background-position:-48px -144px}.icon-certificate{background-position:-72px -144px}.icon-thumbs-up{background-position:-96px -144px}.icon-thumbs-down{background-position:-120px -144px}.icon-hand-right{background-position:-144px -144px}.icon-hand-left{background-position:-168px -144px}.icon-hand-up{background-position:-192px -144px}.icon-hand-down{background-position:-216px -144px}.icon-circle-arrow-right{background-position:-240px -144px}.icon-circle-arrow-left{background-position:-264px -144px}.icon-circle-arrow-up{background-position:-288px -144px}.icon-circle-arrow-down{background-position:-312px -144px}.icon-globe{background-position:-336px -144px}.icon-wrench{background-position:-360px -144px}.icon-tasks{background-position:-384px -144px}.icon-filter{background-position:-408px -144px}.icon-briefcase{background-position:-432px -144px}.icon-fullscreen{background-position:-456px -144px}.dropup,.dropdown{position:relative}.dropdown-toggle{*margin-bottom:-3px}.dropdown-toggle:active,.open .dropdown-toggle{outline:0}.caret{display:inline-block;width:0;height:0;vertical-align:top;border-top:4px solid #000;border-right:4px solid transparent;border-left:4px solid transparent;content:""}.dropdown .caret{margin-top:8px;margin-left:2px}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;list-style:none;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,0.2);*border-right-width:2px;*border-bottom-width:2px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,0.2);-moz-box-shadow:0 5px 10px rgba(0,0,0,0.2);box-shadow:0 5px 10px rgba(0,0,0,0.2);-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{*width:100%;height:1px;margin:9px 1px;*margin:-5px 0 5px;overflow:hidden;background-color:#e5e5e5;border-bottom:1px solid #fff}.dropdown-menu a{display:block;padding:3px 20px;clear:both;font-weight:normal;line-height:20px;color:#333;white-space:nowrap}.dropdown-menu li>a:hover,.dropdown-menu li>a:focus,.dropdown-submenu:hover>a{color:#fff;text-decoration:none;background-color:#08c;background-color:#0081c2;background-image:-moz-linear-gradient(top,#08c,#0077b3);background-image:-webkit-gradient(linear,0 0,0 100%,from(#08c),to(#0077b3));background-image:-webkit-linear-gradient(top,#08c,#0077b3);background-image:-o-linear-gradient(top,#08c,#0077b3);background-image:linear-gradient(to bottom,#08c,#0077b3);background-repeat:repeat-x;filter:progid:dximagetransform.microsoft.gradient(startColorstr='#ff0088cc',endColorstr='#ff0077b3',GradientType=0)}.dropdown-menu .active>a,.dropdown-menu .active>a:hover{color:#fff;text-decoration:none;background-color:#08c;background-color:#0081c2;background-image:linear-gradient(to bottom,#08c,#0077b3);background-image:-moz-linear-gradient(top,#08c,#0077b3);background-image:-webkit-gradient(linear,0 0,0 100%,from(#08c),to(#0077b3));background-image:-webkit-linear-gradient(top,#08c,#0077b3);background-image:-o-linear-gradient(top,#08c,#0077b3);background-repeat:repeat-x;outline:0;filter:progid:dximagetransform.microsoft.gradient(startColorstr='#ff0088cc',endColorstr='#ff0077b3',GradientType=0)}.dropdown-menu .disabled>a,.dropdown-menu .disabled>a:hover{color:#999}.dropdown-menu .disabled>a:hover{text-decoration:none;cursor:default;background-color:transparent}.open{*z-index:1000}.open>.dropdown-menu{display:block}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{border-top:0;border-bottom:4px solid #000;content:""}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:1px}.dropdown-submenu{position:relative}.dropdown-submenu>.dropdown-menu{top:0;left:100%;margin-top:-6px;margin-left:-1px;-webkit-border-radius:0 6px 6px 6px;-moz-border-radius:0 6px 6px 6px;border-radius:0 6px 6px 6px}.dropdown-submenu:hover>.dropdown-menu{display:block}.dropdown-submenu>a:after{display:block;float:right;width:0;height:0;margin-top:5px;margin-right:-10px;border-color:transparent;border-left-color:#ccc;border-style:solid;border-width:5px 0 5px 5px;content:" "}.dropdown-submenu:hover>a:after{border-left-color:#fff}.dropdown .dropdown-menu .nav-header{padding-right:20px;padding-left:20px}.typeahead{margin-top:2px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.05);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.05);box-shadow:inset 0 1px 1px rgba(0,0,0,0.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,0.15)}.well-large{padding:24px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.well-small{padding:9px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.fade{opacity:0;-webkit-transition:opacity .15s linear;-moz-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{position:relative;height:0;overflow:hidden;-webkit-transition:height .35s ease;-moz-transition:height .35s ease;-o-transition:height .35s ease;transition:height .35s ease}.collapse.in{height:auto}.close{float:right;font-size:20px;font-weight:bold;line-height:20px;color:#000;text-shadow:0 1px 0 #fff;opacity:.2;filter:alpha(opacity=20)}.close:hover{color:#000;text-decoration:none;cursor:pointer;opacity:.4;filter:alpha(opacity=40)}button.close{padding:0;cursor:pointer;background:transparent;border:0;-webkit-appearance:none}.btn{display:inline-block;*display:inline;padding:4px 14px;margin-bottom:0;*margin-left:.3em;font-size:14px;line-height:20px;*line-height:20px;color:#333;text-align:center;text-shadow:0 1px 1px rgba(255,255,255,0.75);vertical-align:middle;cursor:pointer;background-color:#f5f5f5;*background-color:#e6e6e6;background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e6e6));background-image:-webkit-linear-gradient(top,#fff,#e6e6e6);background-image:-o-linear-gradient(top,#fff,#e6e6e6);background-image:linear-gradient(to bottom,#fff,#e6e6e6);background-image:-moz-linear-gradient(top,#fff,#e6e6e6);background-repeat:repeat-x;border:1px solid #bbb;*border:0;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);border-color:#e6e6e6 #e6e6e6 #bfbfbf;border-bottom-color:#a2a2a2;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;filter:progid:dximagetransform.microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffe6e6e6',GradientType=0);filter:progid:dximagetransform.microsoft.gradient(enabled=false);*zoom:1;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.05);-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.05);box-shadow:inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.05)}.btn:hover,.btn:active,.btn.active,.btn.disabled,.btn[disabled]{color:#333;background-color:#e6e6e6;*background-color:#d9d9d9}.btn:active,.btn.active{background-color:#ccc \9}.btn:first-child{*margin-left:0}.btn:hover{color:#333;text-decoration:none;background-color:#e6e6e6;*background-color:#d9d9d9;background-position:0 -15px;-webkit-transition:background-position .1s linear;-moz-transition:background-position .1s linear;-o-transition:background-position .1s linear;transition:background-position .1s linear}.btn:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn.active,.btn:active{background-color:#e6e6e6;background-color:#d9d9d9 \9;background-image:none;outline:0;-webkit-box-shadow:inset 0 2px 4px rgba(0,0,0,0.15),0 1px 2px rgba(0,0,0,0.05);-moz-box-shadow:inset 0 2px 4px rgba(0,0,0,0.15),0 1px 2px rgba(0,0,0,0.05);box-shadow:inset 0 2px 4px rgba(0,0,0,0.15),0 1px 2px rgba(0,0,0,0.05)}.btn.disabled,.btn[disabled]{cursor:default;background-color:#e6e6e6;background-image:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.btn-large{padding:9px 14px;font-size:16px;line-height:normal;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.btn-large [class^="icon-"]{margin-top:2px}.btn-small{padding:3px 9px;font-size:12px;line-height:18px}.btn-small [class^="icon-"]{margin-top:0}.btn-mini{padding:2px 6px;font-size:11px;line-height:17px}.btn-block{display:block;width:100%;padding-right:0;padding-left:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.btn-block+.btn-block{margin-top:5px}input[type="submit"].btn-block,input[type="reset"].btn-block,input[type="button"].btn-block{width:100%}.btn-primary.active,.btn-warning.active,.btn-danger.active,.btn-success.active,.btn-info.active,.btn-inverse.active{color:rgba(255,255,255,0.75)}.btn{border-color:#c5c5c5;border-color:rgba(0,0,0,0.15) rgba(0,0,0,0.15) rgba(0,0,0,0.25)}.btn-primary{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#006dcc;*background-color:#04c;background-image:-webkit-gradient(linear,0 0,0 100%,from(#08c),to(#04c));background-image:-webkit-linear-gradient(top,#08c,#04c);background-image:-o-linear-gradient(top,#08c,#04c);background-image:linear-gradient(to bottom,#08c,#04c);background-image:-moz-linear-gradient(top,#08c,#04c);background-repeat:repeat-x;border-color:#04c #04c #002a80;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);filter:progid:dximagetransform.microsoft.gradient(startColorstr='#ff0088cc',endColorstr='#ff0044cc',GradientType=0);filter:progid:dximagetransform.microsoft.gradient(enabled=false)}.btn-primary:hover,.btn-primary:active,.btn-primary.active,.btn-primary.disabled,.btn-primary[disabled]{color:#fff;background-color:#04c;*background-color:#003bb3}.btn-primary:active,.btn-primary.active{background-color:#039 \9}.btn-warning{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#faa732;*background-color:#f89406;background-image:-webkit-gradient(linear,0 0,0 100%,from(#fbb450),to(#f89406));background-image:-webkit-linear-gradient(top,#fbb450,#f89406);background-image:-o-linear-gradient(top,#fbb450,#f89406);background-image:linear-gradient(to bottom,#fbb450,#f89406);background-image:-moz-linear-gradient(top,#fbb450,#f89406);background-repeat:repeat-x;border-color:#f89406 #f89406 #ad6704;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);filter:progid:dximagetransform.microsoft.gradient(startColorstr='#fffbb450',endColorstr='#fff89406',GradientType=0);filter:progid:dximagetransform.microsoft.gradient(enabled=false)}.btn-warning:hover,.btn-warning:active,.btn-warning.active,.btn-warning.disabled,.btn-warning[disabled]{color:#fff;background-color:#f89406;*background-color:#df8505}.btn-warning:active,.btn-warning.active{background-color:#c67605 \9}.btn-danger{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#da4f49;*background-color:#bd362f;background-image:-webkit-gradient(linear,0 0,0 100%,from(#ee5f5b),to(#bd362f));background-image:-webkit-linear-gradient(top,#ee5f5b,#bd362f);background-image:-o-linear-gradient(top,#ee5f5b,#bd362f);background-image:linear-gradient(to bottom,#ee5f5b,#bd362f);background-image:-moz-linear-gradient(top,#ee5f5b,#bd362f);background-repeat:repeat-x;border-color:#bd362f #bd362f #802420;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);filter:progid:dximagetransform.microsoft.gradient(startColorstr='#ffee5f5b',endColorstr='#ffbd362f',GradientType=0);filter:progid:dximagetransform.microsoft.gradient(enabled=false)}.btn-danger:hover,.btn-danger:active,.btn-danger.active,.btn-danger.disabled,.btn-danger[disabled]{color:#fff;background-color:#bd362f;*background-color:#a9302a}.btn-danger:active,.btn-danger.active{background-color:#942a25 \9}.btn-success{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#5bb75b;*background-color:#51a351;background-image:-webkit-gradient(linear,0 0,0 100%,from(#62c462),to(#51a351));background-image:-webkit-linear-gradient(top,#62c462,#51a351);background-image:-o-linear-gradient(top,#62c462,#51a351);background-image:linear-gradient(to bottom,#62c462,#51a351);background-image:-moz-linear-gradient(top,#62c462,#51a351);background-repeat:repeat-x;border-color:#51a351 #51a351 #387038;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);filter:progid:dximagetransform.microsoft.gradient(startColorstr='#ff62c462',endColorstr='#ff51a351',GradientType=0);filter:progid:dximagetransform.microsoft.gradient(enabled=false)}.btn-success:hover,.btn-success:active,.btn-success.active,.btn-success.disabled,.btn-success[disabled]{color:#fff;background-color:#51a351;*background-color:#499249}.btn-success:active,.btn-success.active{background-color:#408140 \9}.btn-info{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#49afcd;*background-color:#2f96b4;background-image:-webkit-gradient(linear,0 0,0 100%,from(#5bc0de),to(#2f96b4));background-image:-webkit-linear-gradient(top,#5bc0de,#2f96b4);background-image:-o-linear-gradient(top,#5bc0de,#2f96b4);background-image:linear-gradient(to bottom,#5bc0de,#2f96b4);background-image:-moz-linear-gradient(top,#5bc0de,#2f96b4);background-repeat:repeat-x;border-color:#2f96b4 #2f96b4 #1f6377;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);filter:progid:dximagetransform.microsoft.gradient(startColorstr='#ff5bc0de',endColorstr='#ff2f96b4',GradientType=0);filter:progid:dximagetransform.microsoft.gradient(enabled=false)}.btn-info:hover,.btn-info:active,.btn-info.active,.btn-info.disabled,.btn-info[disabled]{color:#fff;background-color:#2f96b4;*background-color:#2a85a0}.btn-info:active,.btn-info.active{background-color:#24748c \9}.btn-inverse{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#363636;*background-color:#222;background-image:-webkit-gradient(linear,0 0,0 100%,from(#444),to(#222));background-image:-webkit-linear-gradient(top,#444,#222);background-image:-o-linear-gradient(top,#444,#222);background-image:linear-gradient(to bottom,#444,#222);background-image:-moz-linear-gradient(top,#444,#222);background-repeat:repeat-x;border-color:#222 #222 #000;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);filter:progid:dximagetransform.microsoft.gradient(startColorstr='#ff444444',endColorstr='#ff222222',GradientType=0);filter:progid:dximagetransform.microsoft.gradient(enabled=false)}.btn-inverse:hover,.btn-inverse:active,.btn-inverse.active,.btn-inverse.disabled,.btn-inverse[disabled]{color:#fff;background-color:#222;*background-color:#151515}.btn-inverse:active,.btn-inverse.active{background-color:#080808 \9}button.btn,input[type="submit"].btn{*padding-top:3px;*padding-bottom:3px}button.btn::-moz-focus-inner,input[type="submit"].btn::-moz-focus-inner{padding:0;border:0}button.btn.btn-large,input[type="submit"].btn.btn-large{*padding-top:7px;*padding-bottom:7px}button.btn.btn-small,input[type="submit"].btn.btn-small{*padding-top:3px;*padding-bottom:3px}button.btn.btn-mini,input[type="submit"].btn.btn-mini{*padding-top:1px;*padding-bottom:1px}.btn-link,.btn-link:active,.btn-link[disabled]{background-color:transparent;background-image:none;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.btn-link{color:#08c;cursor:pointer;border-color:transparent;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.btn-link:hover{color:#005580;text-decoration:underline;background-color:transparent}.btn-link[disabled]:hover{color:#333;text-decoration:none}.btn-group{position:relative;*margin-left:.3em;font-size:0;white-space:nowrap;vertical-align:middle}.btn-group:first-child{*margin-left:0}.btn-group+.btn-group{margin-left:5px}.btn-toolbar{margin-top:10px;margin-bottom:10px;font-size:0}.btn-toolbar .btn-group{display:inline-block;*display:inline;*zoom:1}.btn-toolbar .btn+.btn,.btn-toolbar .btn-group+.btn,.btn-toolbar .btn+.btn-group{margin-left:5px}.btn-group>.btn{position:relative;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.btn-group>.btn+.btn{margin-left:-1px}.btn-group>.btn,.btn-group>.dropdown-menu{font-size:14px}.btn-group>.btn-mini{font-size:11px}.btn-group>.btn-small{font-size:12px}.btn-group>.btn-large{font-size:16px}.btn-group>.btn:first-child{margin-left:0;-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px;-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-bottomleft:4px;-moz-border-radius-topleft:4px}.btn-group>.btn:last-child,.btn-group>.dropdown-toggle{-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px;-moz-border-radius-topright:4px;-moz-border-radius-bottomright:4px}.btn-group>.btn.large:first-child{margin-left:0;-webkit-border-bottom-left-radius:6px;border-bottom-left-radius:6px;-webkit-border-top-left-radius:6px;border-top-left-radius:6px;-moz-border-radius-bottomleft:6px;-moz-border-radius-topleft:6px}.btn-group>.btn.large:last-child,.btn-group>.large.dropdown-toggle{-webkit-border-top-right-radius:6px;border-top-right-radius:6px;-webkit-border-bottom-right-radius:6px;border-bottom-right-radius:6px;-moz-border-radius-topright:6px;-moz-border-radius-bottomright:6px}.btn-group>.btn:hover,.btn-group>.btn:focus,.btn-group>.btn:active,.btn-group>.btn.active{z-index:2}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{*padding-top:5px;padding-right:8px;*padding-bottom:5px;padding-left:8px;-webkit-box-shadow:inset 1px 0 0 rgba(255,255,255,0.125),inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.05);-moz-box-shadow:inset 1px 0 0 rgba(255,255,255,0.125),inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.05);box-shadow:inset 1px 0 0 rgba(255,255,255,0.125),inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.05)}.btn-group>.btn-mini+.dropdown-toggle{*padding-top:2px;padding-right:5px;*padding-bottom:2px;padding-left:5px}.btn-group>.btn-small+.dropdown-toggle{*padding-top:5px;*padding-bottom:4px}.btn-group>.btn-large+.dropdown-toggle{*padding-top:7px;padding-right:12px;*padding-bottom:7px;padding-left:12px}.btn-group.open .dropdown-toggle{background-image:none;-webkit-box-shadow:inset 0 2px 4px rgba(0,0,0,0.15),0 1px 2px rgba(0,0,0,0.05);-moz-box-shadow:inset 0 2px 4px rgba(0,0,0,0.15),0 1px 2px rgba(0,0,0,0.05);box-shadow:inset 0 2px 4px rgba(0,0,0,0.15),0 1px 2px rgba(0,0,0,0.05)}.btn-group.open .btn.dropdown-toggle{background-color:#e6e6e6}.btn-group.open .btn-primary.dropdown-toggle{background-color:#04c}.btn-group.open .btn-warning.dropdown-toggle{background-color:#f89406}.btn-group.open .btn-danger.dropdown-toggle{background-color:#bd362f}.btn-group.open .btn-success.dropdown-toggle{background-color:#51a351}.btn-group.open .btn-info.dropdown-toggle{background-color:#2f96b4}.btn-group.open .btn-inverse.dropdown-toggle{background-color:#222}.btn .caret{margin-top:8px;margin-left:0}.btn-mini .caret,.btn-small .caret,.btn-large .caret{margin-top:6px}.btn-large .caret{border-top-width:5px;border-right-width:5px;border-left-width:5px}.dropup .btn-large .caret{border-top:0;border-bottom:5px solid #000}.btn-primary .caret,.btn-warning .caret,.btn-danger .caret,.btn-info .caret,.btn-success .caret,.btn-inverse .caret{border-top-color:#fff;border-bottom-color:#fff}.btn-group-vertical{display:inline-block;*display:inline;*zoom:1}.btn-group-vertical .btn{display:block;float:none;width:100%;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.btn-group-vertical .btn+.btn{margin-top:-1px;margin-left:0}.btn-group-vertical .btn:first-child{-webkit-border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.btn-group-vertical .btn:last-child{-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.btn-group-vertical .btn-large:first-child{-webkit-border-radius:6px 6px 0 0;-moz-border-radius:6px 6px 0 0;border-radius:6px 6px 0 0}.btn-group-vertical .btn-large:last-child{-webkit-border-radius:0 0 6px 6px;-moz-border-radius:0 0 6px 6px;border-radius:0 0 6px 6px}.alert{padding:8px 35px 8px 14px;margin-bottom:20px;color:#c09853;text-shadow:0 1px 0 rgba(255,255,255,0.5);background-color:#fcf8e3;border:1px solid #fbeed5;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.alert h4{margin:0}.alert .close{position:relative;top:-2px;right:-21px;line-height:20px}.alert-success{color:#468847;background-color:#dff0d8;border-color:#d6e9c6}.alert-danger,.alert-error{color:#b94a48;background-color:#f2dede;border-color:#eed3d7}.alert-info{color:#3a87ad;background-color:#d9edf7;border-color:#bce8f1}.alert-block{padding-top:14px;padding-bottom:14px}.alert-block>p,.alert-block>ul{margin-bottom:0}.alert-block p+p{margin-top:5px}.nav{margin-bottom:20px;margin-left:0;list-style:none}.nav>li>a{display:block}.nav>li>a:hover{text-decoration:none;background-color:#eee}.nav>.pull-right{float:right}.nav-header{display:block;padding:3px 15px;font-size:11px;font-weight:bold;line-height:20px;color:#999;text-shadow:0 1px 0 rgba(255,255,255,0.5);text-transform:uppercase}.nav li+.nav-header{margin-top:9px}.nav-list{padding-right:15px;padding-left:15px;margin-bottom:0}.nav-list>li>a,.nav-list .nav-header{margin-right:-15px;margin-left:-15px;text-shadow:0 1px 0 rgba(255,255,255,0.5)}.nav-list>li>a{padding:3px 15px}.nav-list>.active>a,.nav-list>.active>a:hover{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.2);background-color:#08c}.nav-list [class^="icon-"]{margin-right:2px}.nav-list .divider{*width:100%;height:1px;margin:9px 1px;*margin:-5px 0 5px;overflow:hidden;background-color:#e5e5e5;border-bottom:1px solid #fff}.nav-tabs,.nav-pills{*zoom:1}.nav-tabs:before,.nav-pills:before,.nav-tabs:after,.nav-pills:after{display:table;line-height:0;content:""}.nav-tabs:after,.nav-pills:after{clear:both}.nav-tabs>li,.nav-pills>li{float:left}.nav-tabs>li>a,.nav-pills>li>a{padding-right:12px;padding-left:12px;margin-right:2px;line-height:14px}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{margin-bottom:-1px}.nav-tabs>li>a{padding-top:8px;padding-bottom:8px;line-height:20px;border:1px solid transparent;-webkit-border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>.active>a,.nav-tabs>.active>a:hover{color:#555;cursor:default;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent}.nav-pills>li>a{padding-top:8px;padding-bottom:8px;margin-top:2px;margin-bottom:2px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.nav-pills>.active>a,.nav-pills>.active>a:hover{color:#fff;background-color:#08c}.nav-stacked>li{float:none}.nav-stacked>li>a{margin-right:0}.nav-tabs.nav-stacked{border-bottom:0}.nav-tabs.nav-stacked>li>a{border:1px solid #ddd;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.nav-tabs.nav-stacked>li:first-child>a{-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-topright:4px;-moz-border-radius-topleft:4px}.nav-tabs.nav-stacked>li:last-child>a{-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px;-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px;-moz-border-radius-bottomright:4px;-moz-border-radius-bottomleft:4px}.nav-tabs.nav-stacked>li>a:hover{z-index:2;border-color:#ddd}.nav-pills.nav-stacked>li>a{margin-bottom:3px}.nav-pills.nav-stacked>li:last-child>a{margin-bottom:1px}.nav-tabs .dropdown-menu{-webkit-border-radius:0 0 6px 6px;-moz-border-radius:0 0 6px 6px;border-radius:0 0 6px 6px}.nav-pills .dropdown-menu{-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.nav .dropdown-toggle .caret{margin-top:6px;border-top-color:#08c;border-bottom-color:#08c}.nav .dropdown-toggle:hover .caret{border-top-color:#005580;border-bottom-color:#005580}.nav-tabs .dropdown-toggle .caret{margin-top:8px}.nav .active .dropdown-toggle .caret{border-top-color:#fff;border-bottom-color:#fff}.nav-tabs .active .dropdown-toggle .caret{border-top-color:#555;border-bottom-color:#555}.nav>.dropdown.active>a:hover{cursor:pointer}.nav-tabs .open .dropdown-toggle,.nav-pills .open .dropdown-toggle,.nav>li.dropdown.open.active>a:hover{color:#fff;background-color:#999;border-color:#999}.nav li.dropdown.open .caret,.nav li.dropdown.open.active .caret,.nav li.dropdown.open a:hover .caret{border-top-color:#fff;border-bottom-color:#fff;opacity:1;filter:alpha(opacity=100)}.tabs-stacked .open>a:hover{border-color:#999}.tabbable{*zoom:1}.tabbable:before,.tabbable:after{display:table;line-height:0;content:""}.tabbable:after{clear:both}.tab-content{overflow:auto}.tabs-below>.nav-tabs,.tabs-right>.nav-tabs,.tabs-left>.nav-tabs{border-bottom:0}.tab-content>.tab-pane,.pill-content>.pill-pane{display:none}.tab-content>.active,.pill-content>.active{display:block}.tabs-below>.nav-tabs{border-top:1px solid #ddd}.tabs-below>.nav-tabs>li{margin-top:-1px;margin-bottom:0}.tabs-below>.nav-tabs>li>a{-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.tabs-below>.nav-tabs>li>a:hover{border-top-color:#ddd;border-bottom-color:transparent}.tabs-below>.nav-tabs>.active>a,.tabs-below>.nav-tabs>.active>a:hover{border-color:transparent #ddd #ddd #ddd}.tabs-left>.nav-tabs>li,.tabs-right>.nav-tabs>li{float:none}.tabs-left>.nav-tabs>li>a,.tabs-right>.nav-tabs>li>a{min-width:74px;margin-right:0;margin-bottom:3px}.tabs-left>.nav-tabs{float:left;margin-right:19px;border-right:1px solid #ddd}.tabs-left>.nav-tabs>li>a{margin-right:-1px;-webkit-border-radius:4px 0 0 4px;-moz-border-radius:4px 0 0 4px;border-radius:4px 0 0 4px}.tabs-left>.nav-tabs>li>a:hover{border-color:#eee #ddd #eee #eee}.tabs-left>.nav-tabs .active>a,.tabs-left>.nav-tabs .active>a:hover{border-color:#ddd transparent #ddd #ddd;*border-right-color:#fff}.tabs-right>.nav-tabs{float:right;margin-left:19px;border-left:1px solid #ddd}.tabs-right>.nav-tabs>li>a{margin-left:-1px;-webkit-border-radius:0 4px 4px 0;-moz-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}.tabs-right>.nav-tabs>li>a:hover{border-color:#eee #eee #eee #ddd}.tabs-right>.nav-tabs .active>a,.tabs-right>.nav-tabs .active>a:hover{border-color:#ddd #ddd #ddd transparent;*border-left-color:#fff}.nav>.disabled>a{color:#999}.nav>.disabled>a:hover{text-decoration:none;cursor:default;background-color:transparent}.navbar{*position:relative;*z-index:2;margin-bottom:20px;overflow:visible;color:#777}.navbar-inner{min-height:40px;padding-right:20px;padding-left:20px;background-color:#fafafa;background-image:-moz-linear-gradient(top,#fff,#f2f2f2);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#f2f2f2));background-image:-webkit-linear-gradient(top,#fff,#f2f2f2);background-image:-o-linear-gradient(top,#fff,#f2f2f2);background-image:linear-gradient(to bottom,#fff,#f2f2f2);background-repeat:repeat-x;border:1px solid #d4d4d4;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;filter:progid:dximagetransform.microsoft.gradient(startColorstr='#ffffffff',endColorstr='#fff2f2f2',GradientType=0);*zoom:1;-webkit-box-shadow:0 1px 4px rgba(0,0,0,0.065);-moz-box-shadow:0 1px 4px rgba(0,0,0,0.065);box-shadow:0 1px 4px rgba(0,0,0,0.065)}.navbar-inner:before,.navbar-inner:after{display:table;line-height:0;content:""}.navbar-inner:after{clear:both}.navbar .container{width:auto}.nav-collapse.collapse{height:auto}.navbar .brand{display:block;float:left;padding:10px 20px 10px;margin-left:-20px;font-size:20px;font-weight:200;color:#777;text-shadow:0 1px 0 #fff}.navbar .brand:hover{text-decoration:none}.navbar-text{margin-bottom:0;line-height:40px}.navbar-link{color:#777}.navbar-link:hover{color:#333}.navbar .divider-vertical{height:40px;margin:0 9px;border-right:1px solid #fff;border-left:1px solid #f2f2f2}.navbar .btn,.navbar .btn-group{margin-top:5px}.navbar .btn-group .btn,.navbar .input-prepend .btn,.navbar .input-append .btn{margin-top:0}.navbar-form{margin-bottom:0;*zoom:1}.navbar-form:before,.navbar-form:after{display:table;line-height:0;content:""}.navbar-form:after{clear:both}.navbar-form input,.navbar-form select,.navbar-form .radio,.navbar-form .checkbox{margin-top:5px}.navbar-form input,.navbar-form select,.navbar-form .btn{display:inline-block;margin-bottom:0}.navbar-form input[type="image"],.navbar-form input[type="checkbox"],.navbar-form input[type="radio"]{margin-top:3px}.navbar-form .input-append,.navbar-form .input-prepend{margin-top:6px;white-space:nowrap}.navbar-form .input-append input,.navbar-form .input-prepend input{margin-top:0}.navbar-search{position:relative;float:left;margin-top:5px;margin-bottom:0}.navbar-search .search-query{padding:4px 14px;margin-bottom:0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;font-weight:normal;line-height:1;-webkit-border-radius:15px;-moz-border-radius:15px;border-radius:15px}.navbar-static-top{position:static;width:100%;margin-bottom:0}.navbar-static-top .navbar-inner{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.navbar-fixed-top,.navbar-fixed-bottom{position:fixed;right:0;left:0;z-index:1030;margin-bottom:0}.navbar-fixed-top .navbar-inner,.navbar-static-top .navbar-inner{border-width:0 0 1px}.navbar-fixed-bottom .navbar-inner{border-width:1px 0 0}.navbar-fixed-top .navbar-inner,.navbar-fixed-bottom .navbar-inner{padding-right:0;padding-left:0;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.navbar-static-top .container,.navbar-fixed-top .container,.navbar-fixed-bottom .container{width:940px}.navbar-fixed-top{top:0}.navbar-fixed-top .navbar-inner,.navbar-static-top .navbar-inner{-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.1),0 1px 10px rgba(0,0,0,0.1);-moz-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.1),0 1px 10px rgba(0,0,0,0.1);box-shadow:inset 0 -1px 0 rgba(0,0,0,0.1),0 1px 10px rgba(0,0,0,0.1)}.navbar-fixed-bottom{bottom:0}.navbar-fixed-bottom .navbar-inner{-webkit-box-shadow:inset 0 1px 0 rgba(0,0,0,0.1),0 -1px 10px rgba(0,0,0,0.1);-moz-box-shadow:inset 0 1px 0 rgba(0,0,0,0.1),0 -1px 10px rgba(0,0,0,0.1);box-shadow:inset 0 1px 0 rgba(0,0,0,0.1),0 -1px 10px rgba(0,0,0,0.1)}.navbar .nav{position:relative;left:0;display:block;float:left;margin:0 10px 0 0}.navbar .nav.pull-right{float:right;margin-right:0}.navbar .nav>li{float:left}.navbar .nav>li>a{float:none;padding:10px 15px 10px;color:#777;text-decoration:none;text-shadow:0 1px 0 #fff}.navbar .nav .dropdown-toggle .caret{margin-top:8px}.navbar .nav>li>a:focus,.navbar .nav>li>a:hover{color:#333;text-decoration:none;background-color:transparent}.navbar .nav>.active>a,.navbar .nav>.active>a:hover,.navbar .nav>.active>a:focus{color:#555;text-decoration:none;background-color:#e5e5e5;-webkit-box-shadow:inset 0 3px 8px rgba(0,0,0,0.125);-moz-box-shadow:inset 0 3px 8px rgba(0,0,0,0.125);box-shadow:inset 0 3px 8px rgba(0,0,0,0.125)}.navbar .btn-navbar{display:none;float:right;padding:7px 10px;margin-right:5px;margin-left:5px;color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#ededed;*background-color:#e5e5e5;background-image:-webkit-gradient(linear,0 0,0 100%,from(#f2f2f2),to(#e5e5e5));background-image:-webkit-linear-gradient(top,#f2f2f2,#e5e5e5);background-image:-o-linear-gradient(top,#f2f2f2,#e5e5e5);background-image:linear-gradient(to bottom,#f2f2f2,#e5e5e5);background-image:-moz-linear-gradient(top,#f2f2f2,#e5e5e5);background-repeat:repeat-x;border-color:#e5e5e5 #e5e5e5 #bfbfbf;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);filter:progid:dximagetransform.microsoft.gradient(startColorstr='#fff2f2f2',endColorstr='#ffe5e5e5',GradientType=0);filter:progid:dximagetransform.microsoft.gradient(enabled=false);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.075);-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.075);box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.075)}.navbar .btn-navbar:hover,.navbar .btn-navbar:active,.navbar .btn-navbar.active,.navbar .btn-navbar.disabled,.navbar .btn-navbar[disabled]{color:#fff;background-color:#e5e5e5;*background-color:#d9d9d9}.navbar .btn-navbar:active,.navbar .btn-navbar.active{background-color:#ccc \9}.navbar .btn-navbar .icon-bar{display:block;width:18px;height:2px;background-color:#f5f5f5;-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px;-webkit-box-shadow:0 1px 0 rgba(0,0,0,0.25);-moz-box-shadow:0 1px 0 rgba(0,0,0,0.25);box-shadow:0 1px 0 rgba(0,0,0,0.25)}.btn-navbar .icon-bar+.icon-bar{margin-top:3px}.navbar .nav>li>.dropdown-menu:before{position:absolute;top:-7px;left:9px;display:inline-block;border-right:7px solid transparent;border-bottom:7px solid #ccc;border-left:7px solid transparent;border-bottom-color:rgba(0,0,0,0.2);content:''}.navbar .nav>li>.dropdown-menu:after{position:absolute;top:-6px;left:10px;display:inline-block;border-right:6px solid transparent;border-bottom:6px solid #fff;border-left:6px solid transparent;content:''}.navbar-fixed-bottom .nav>li>.dropdown-menu:before{top:auto;bottom:-7px;border-top:7px solid #ccc;border-bottom:0;border-top-color:rgba(0,0,0,0.2)}.navbar-fixed-bottom .nav>li>.dropdown-menu:after{top:auto;bottom:-6px;border-top:6px solid #fff;border-bottom:0}.navbar .nav li.dropdown.open>.dropdown-toggle,.navbar .nav li.dropdown.active>.dropdown-toggle,.navbar .nav li.dropdown.open.active>.dropdown-toggle{color:#555;background-color:#e5e5e5}.navbar .nav li.dropdown>.dropdown-toggle .caret{border-top-color:#777;border-bottom-color:#777}.navbar .nav li.dropdown.open>.dropdown-toggle .caret,.navbar .nav li.dropdown.active>.dropdown-toggle .caret,.navbar .nav li.dropdown.open.active>.dropdown-toggle .caret{border-top-color:#555;border-bottom-color:#555}.navbar .pull-right>li>.dropdown-menu,.navbar .nav>li>.dropdown-menu.pull-right{right:0;left:auto}.navbar .pull-right>li>.dropdown-menu:before,.navbar .nav>li>.dropdown-menu.pull-right:before{right:12px;left:auto}.navbar .pull-right>li>.dropdown-menu:after,.navbar .nav>li>.dropdown-menu.pull-right:after{right:13px;left:auto}.navbar .pull-right>li>.dropdown-menu .dropdown-menu,.navbar .nav>li>.dropdown-menu.pull-right .dropdown-menu{right:100%;left:auto;margin-right:-1px;margin-left:0;-webkit-border-radius:6px 0 6px 6px;-moz-border-radius:6px 0 6px 6px;border-radius:6px 0 6px 6px}.navbar-inverse{color:#999}.navbar-inverse .navbar-inner{background-color:#1b1b1b;background-image:-moz-linear-gradient(top,#222,#111);background-image:-webkit-gradient(linear,0 0,0 100%,from(#222),to(#111));background-image:-webkit-linear-gradient(top,#222,#111);background-image:-o-linear-gradient(top,#222,#111);background-image:linear-gradient(to bottom,#222,#111);background-repeat:repeat-x;border-color:#252525;filter:progid:dximagetransform.microsoft.gradient(startColorstr='#ff222222',endColorstr='#ff111111',GradientType=0)}.navbar-inverse .brand,.navbar-inverse .nav>li>a{color:#999;text-shadow:0 -1px 0 rgba(0,0,0,0.25)}.navbar-inverse .brand:hover,.navbar-inverse .nav>li>a:hover{color:#fff}.navbar-inverse .nav>li>a:focus,.navbar-inverse .nav>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .nav .active>a,.navbar-inverse .nav .active>a:hover,.navbar-inverse .nav .active>a:focus{color:#fff;background-color:#111}.navbar-inverse .navbar-link{color:#999}.navbar-inverse .navbar-link:hover{color:#fff}.navbar-inverse .divider-vertical{border-right-color:#222;border-left-color:#111}.navbar-inverse .nav li.dropdown.open>.dropdown-toggle,.navbar-inverse .nav li.dropdown.active>.dropdown-toggle,.navbar-inverse .nav li.dropdown.open.active>.dropdown-toggle{color:#fff;background-color:#111}.navbar-inverse .nav li.dropdown>.dropdown-toggle .caret{border-top-color:#999;border-bottom-color:#999}.navbar-inverse .nav li.dropdown.open>.dropdown-toggle .caret,.navbar-inverse .nav li.dropdown.active>.dropdown-toggle .caret,.navbar-inverse .nav li.dropdown.open.active>.dropdown-toggle .caret{border-top-color:#fff;border-bottom-color:#fff}.navbar-inverse .navbar-search .search-query{color:#fff;background-color:#515151;border-color:#111;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1),0 1px 0 rgba(255,255,255,0.15);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1),0 1px 0 rgba(255,255,255,0.15);box-shadow:inset 0 1px 2px rgba(0,0,0,0.1),0 1px 0 rgba(255,255,255,0.15);-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none}.navbar-inverse .navbar-search .search-query:-moz-placeholder{color:#ccc}.navbar-inverse .navbar-search .search-query:-ms-input-placeholder{color:#ccc}.navbar-inverse .navbar-search .search-query::-webkit-input-placeholder{color:#ccc}.navbar-inverse .navbar-search .search-query:focus,.navbar-inverse .navbar-search .search-query.focused{padding:5px 15px;color:#333;text-shadow:0 1px 0 #fff;background-color:#fff;border:0;outline:0;-webkit-box-shadow:0 0 3px rgba(0,0,0,0.15);-moz-box-shadow:0 0 3px rgba(0,0,0,0.15);box-shadow:0 0 3px rgba(0,0,0,0.15)}.navbar-inverse .btn-navbar{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#0e0e0e;*background-color:#040404;background-image:-webkit-gradient(linear,0 0,0 100%,from(#151515),to(#040404));background-image:-webkit-linear-gradient(top,#151515,#040404);background-image:-o-linear-gradient(top,#151515,#040404);background-image:linear-gradient(to bottom,#151515,#040404);background-image:-moz-linear-gradient(top,#151515,#040404);background-repeat:repeat-x;border-color:#040404 #040404 #000;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);filter:progid:dximagetransform.microsoft.gradient(startColorstr='#ff151515',endColorstr='#ff040404',GradientType=0);filter:progid:dximagetransform.microsoft.gradient(enabled=false)}.navbar-inverse .btn-navbar:hover,.navbar-inverse .btn-navbar:active,.navbar-inverse .btn-navbar.active,.navbar-inverse .btn-navbar.disabled,.navbar-inverse .btn-navbar[disabled]{color:#fff;background-color:#040404;*background-color:#000}.navbar-inverse .btn-navbar:active,.navbar-inverse .btn-navbar.active{background-color:#000 \9}.breadcrumb{padding:8px 15px;margin:0 0 20px;list-style:none;background-color:#f5f5f5;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.breadcrumb li{display:inline-block;*display:inline;text-shadow:0 1px 0 #fff;*zoom:1}.breadcrumb .divider{padding:0 5px;color:#ccc}.breadcrumb .active{color:#999}.pagination{height:40px;margin:20px 0}.pagination ul{display:inline-block;*display:inline;margin-bottom:0;margin-left:0;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;*zoom:1;-webkit-box-shadow:0 1px 2px rgba(0,0,0,0.05);-moz-box-shadow:0 1px 2px rgba(0,0,0,0.05);box-shadow:0 1px 2px rgba(0,0,0,0.05)}.pagination ul>li{display:inline}.pagination ul>li>a,.pagination ul>li>span{float:left;padding:0 14px;line-height:38px;text-decoration:none;background-color:#fff;border:1px solid #ddd;border-left-width:0}.pagination ul>li>a:hover,.pagination ul>.active>a,.pagination ul>.active>span{background-color:#f5f5f5}.pagination ul>.active>a,.pagination ul>.active>span{color:#999;cursor:default}.pagination ul>.disabled>span,.pagination ul>.disabled>a,.pagination ul>.disabled>a:hover{color:#999;cursor:default;background-color:transparent}.pagination ul>li:first-child>a,.pagination ul>li:first-child>span{border-left-width:1px;-webkit-border-radius:3px 0 0 3px;-moz-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px}.pagination ul>li:last-child>a,.pagination ul>li:last-child>span{-webkit-border-radius:0 3px 3px 0;-moz-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0}.pagination-centered{text-align:center}.pagination-right{text-align:right}.pager{margin:20px 0;text-align:center;list-style:none;*zoom:1}.pager:before,.pager:after{display:table;line-height:0;content:""}.pager:after{clear:both}.pager li{display:inline}.pager a,.pager span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;-webkit-border-radius:15px;-moz-border-radius:15px;border-radius:15px}.pager a:hover{text-decoration:none;background-color:#f5f5f5}.pager .next a,.pager .next span{float:right}.pager .previous a{float:left}.pager .disabled a,.pager .disabled a:hover,.pager .disabled span{color:#999;cursor:default;background-color:#fff}.modal-open .modal .dropdown-menu{z-index:2050}.modal-open .modal .dropdown.open{*z-index:2050}.modal-open .modal .popover{z-index:2060}.modal-open .modal .tooltip{z-index:2080}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{opacity:0}.modal-backdrop,.modal-backdrop.fade.in{opacity:.8;filter:alpha(opacity=80)}.modal{position:fixed;top:50%;left:50%;z-index:1050;width:560px;margin:-250px 0 0 -280px;overflow:auto;background-color:#fff;border:1px solid #999;border:1px solid rgba(0,0,0,0.3);*border:1px solid #999;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;-webkit-box-shadow:0 3px 7px rgba(0,0,0,0.3);-moz-box-shadow:0 3px 7px rgba(0,0,0,0.3);box-shadow:0 3px 7px rgba(0,0,0,0.3);-webkit-background-clip:padding-box;-moz-background-clip:padding-box;background-clip:padding-box}.modal.fade{top:-25%;-webkit-transition:opacity .3s linear,top .3s ease-out;-moz-transition:opacity .3s linear,top .3s ease-out;-o-transition:opacity .3s linear,top .3s ease-out;transition:opacity .3s linear,top .3s ease-out}.modal.fade.in{top:50%}.modal-header{padding:9px 15px;border-bottom:1px solid #eee}.modal-header .close{margin-top:2px}.modal-header h3{margin:0;line-height:30px}.modal-body{max-height:400px;padding:15px;overflow-y:auto}.modal-form{margin-bottom:0}.modal-footer{padding:14px 15px 15px;margin-bottom:0;text-align:right;background-color:#f5f5f5;border-top:1px solid #ddd;-webkit-border-radius:0 0 6px 6px;-moz-border-radius:0 0 6px 6px;border-radius:0 0 6px 6px;*zoom:1;-webkit-box-shadow:inset 0 1px 0 #fff;-moz-box-shadow:inset 0 1px 0 #fff;box-shadow:inset 0 1px 0 #fff}.modal-footer:before,.modal-footer:after{display:table;line-height:0;content:""}.modal-footer:after{clear:both}.modal-footer .btn+.btn{margin-bottom:0;margin-left:5px}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.tooltip{position:absolute;z-index:1030;display:block;padding:5px;font-size:11px;opacity:0;filter:alpha(opacity=0);visibility:visible}.tooltip.in{opacity:.8;filter:alpha(opacity=80)}.tooltip.top{margin-top:-3px}.tooltip.right{margin-left:3px}.tooltip.bottom{margin-top:3px}.tooltip.left{margin-left:-3px}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;text-decoration:none;background-color:#000;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-top-color:#000;border-width:5px 5px 0}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-right-color:#000;border-width:5px 5px 5px 0}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-left-color:#000;border-width:5px 0 5px 5px}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-bottom-color:#000;border-width:0 5px 5px}.popover{position:absolute;top:0;left:0;z-index:1010;display:none;width:236px;padding:1px;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,0.2);-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,0.2);-moz-box-shadow:0 5px 10px rgba(0,0,0,0.2);box-shadow:0 5px 10px rgba(0,0,0,0.2);-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box}.popover.top{margin-bottom:10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-right:10px}.popover-title{padding:8px 14px;margin:0;font-size:14px;font-weight:normal;line-height:18px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;-webkit-border-radius:5px 5px 0 0;-moz-border-radius:5px 5px 0 0;border-radius:5px 5px 0 0}.popover-content{padding:9px 14px}.popover-content p,.popover-content ul,.popover-content ol{margin-bottom:0}.popover .arrow,.popover .arrow:after{position:absolute;display:inline-block;width:0;height:0;border-color:transparent;border-style:solid}.popover .arrow:after{z-index:-1;content:""}.popover.top .arrow{bottom:-10px;left:50%;margin-left:-10px;border-top-color:#fff;border-width:10px 10px 0}.popover.top .arrow:after{bottom:-1px;left:-11px;border-top-color:rgba(0,0,0,0.25);border-width:11px 11px 0}.popover.right .arrow{top:50%;left:-10px;margin-top:-10px;border-right-color:#fff;border-width:10px 10px 10px 0}.popover.right .arrow:after{bottom:-11px;left:-1px;border-right-color:rgba(0,0,0,0.25);border-width:11px 11px 11px 0}.popover.bottom .arrow{top:-10px;left:50%;margin-left:-10px;border-bottom-color:#fff;border-width:0 10px 10px}.popover.bottom .arrow:after{top:-1px;left:-11px;border-bottom-color:rgba(0,0,0,0.25);border-width:0 11px 11px}.popover.left .arrow{top:50%;right:-10px;margin-top:-10px;border-left-color:#fff;border-width:10px 0 10px 10px}.popover.left .arrow:after{right:-1px;bottom:-11px;border-left-color:rgba(0,0,0,0.25);border-width:11px 0 11px 11px}.thumbnails{margin-left:-20px;list-style:none;*zoom:1}.thumbnails:before,.thumbnails:after{display:table;line-height:0;content:""}.thumbnails:after{clear:both}.row-fluid .thumbnails{margin-left:0}.thumbnails>li{float:left;margin-bottom:20px;margin-left:20px}.thumbnail{display:block;padding:4px;line-height:20px;border:1px solid #ddd;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.055);-moz-box-shadow:0 1px 3px rgba(0,0,0,0.055);box-shadow:0 1px 3px rgba(0,0,0,0.055);-webkit-transition:all .2s ease-in-out;-moz-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}a.thumbnail:hover{border-color:#08c;-webkit-box-shadow:0 1px 4px rgba(0,105,214,0.25);-moz-box-shadow:0 1px 4px rgba(0,105,214,0.25);box-shadow:0 1px 4px rgba(0,105,214,0.25)}.thumbnail>img{display:block;max-width:100%;margin-right:auto;margin-left:auto}.thumbnail .caption{padding:9px;color:#555}.label,.badge{font-size:11.844px;font-weight:bold;line-height:14px;color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);white-space:nowrap;vertical-align:baseline;background-color:#999}.label{padding:1px 4px 2px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.badge{padding:1px 9px 2px;-webkit-border-radius:9px;-moz-border-radius:9px;border-radius:9px}a.label:hover,a.badge:hover{color:#fff;text-decoration:none;cursor:pointer}.label-important,.badge-important{background-color:#b94a48}.label-important[href],.badge-important[href]{background-color:#953b39}.label-warning,.badge-warning{background-color:#f89406}.label-warning[href],.badge-warning[href]{background-color:#c67605}.label-success,.badge-success{background-color:#468847}.label-success[href],.badge-success[href]{background-color:#356635}.label-info,.badge-info{background-color:#3a87ad}.label-info[href],.badge-info[href]{background-color:#2d6987}.label-inverse,.badge-inverse{background-color:#333}.label-inverse[href],.badge-inverse[href]{background-color:#1a1a1a}.btn .label,.btn .badge{position:relative;top:-1px}.btn-mini .label,.btn-mini .badge{top:0}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-moz-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-ms-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-o-keyframes progress-bar-stripes{from{background-position:0 0}to{background-position:40px 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{height:20px;margin-bottom:20px;overflow:hidden;background-color:#f7f7f7;background-image:-moz-linear-gradient(top,#f5f5f5,#f9f9f9);background-image:-webkit-gradient(linear,0 0,0 100%,from(#f5f5f5),to(#f9f9f9));background-image:-webkit-linear-gradient(top,#f5f5f5,#f9f9f9);background-image:-o-linear-gradient(top,#f5f5f5,#f9f9f9);background-image:linear-gradient(to bottom,#f5f5f5,#f9f9f9);background-repeat:repeat-x;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;filter:progid:dximagetransform.microsoft.gradient(startColorstr='#fff5f5f5',endColorstr='#fff9f9f9',GradientType=0);-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);box-shadow:inset 0 1px 2px rgba(0,0,0,0.1)}.progress .bar{float:left;width:0;height:100%;font-size:12px;color:#fff;text-align:center;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#0e90d2;background-image:-moz-linear-gradient(top,#149bdf,#0480be);background-image:-webkit-gradient(linear,0 0,0 100%,from(#149bdf),to(#0480be));background-image:-webkit-linear-gradient(top,#149bdf,#0480be);background-image:-o-linear-gradient(top,#149bdf,#0480be);background-image:linear-gradient(to bottom,#149bdf,#0480be);background-repeat:repeat-x;filter:progid:dximagetransform.microsoft.gradient(startColorstr='#ff149bdf',endColorstr='#ff0480be',GradientType=0);-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.15);-moz-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,0.15);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-transition:width .6s ease;-moz-transition:width .6s ease;-o-transition:width .6s ease;transition:width .6s ease}.progress .bar+.bar{-webkit-box-shadow:inset 1px 0 0 rgba(0,0,0,0.15),inset 0 -1px 0 rgba(0,0,0,0.15);-moz-box-shadow:inset 1px 0 0 rgba(0,0,0,0.15),inset 0 -1px 0 rgba(0,0,0,0.15);box-shadow:inset 1px 0 0 rgba(0,0,0,0.15),inset 0 -1px 0 rgba(0,0,0,0.15)}.progress-striped .bar{background-color:#149bdf;background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,0.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,0.15)),color-stop(0.75,rgba(255,255,255,0.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);-webkit-background-size:40px 40px;-moz-background-size:40px 40px;-o-background-size:40px 40px;background-size:40px 40px}.progress.active .bar{-webkit-animation:progress-bar-stripes 2s linear infinite;-moz-animation:progress-bar-stripes 2s linear infinite;-ms-animation:progress-bar-stripes 2s linear infinite;-o-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-danger .bar,.progress .bar-danger{background-color:#dd514c;background-image:-moz-linear-gradient(top,#ee5f5b,#c43c35);background-image:-webkit-gradient(linear,0 0,0 100%,from(#ee5f5b),to(#c43c35));background-image:-webkit-linear-gradient(top,#ee5f5b,#c43c35);background-image:-o-linear-gradient(top,#ee5f5b,#c43c35);background-image:linear-gradient(to bottom,#ee5f5b,#c43c35);background-repeat:repeat-x;filter:progid:dximagetransform.microsoft.gradient(startColorstr='#ffee5f5b',endColorstr='#ffc43c35',GradientType=0)}.progress-danger.progress-striped .bar,.progress-striped .bar-danger{background-color:#ee5f5b;background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,0.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,0.15)),color-stop(0.75,rgba(255,255,255,0.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent)}.progress-success .bar,.progress .bar-success{background-color:#5eb95e;background-image:-moz-linear-gradient(top,#62c462,#57a957);background-image:-webkit-gradient(linear,0 0,0 100%,from(#62c462),to(#57a957));background-image:-webkit-linear-gradient(top,#62c462,#57a957);background-image:-o-linear-gradient(top,#62c462,#57a957);background-image:linear-gradient(to bottom,#62c462,#57a957);background-repeat:repeat-x;filter:progid:dximagetransform.microsoft.gradient(startColorstr='#ff62c462',endColorstr='#ff57a957',GradientType=0)}.progress-success.progress-striped .bar,.progress-striped .bar-success{background-color:#62c462;background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,0.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,0.15)),color-stop(0.75,rgba(255,255,255,0.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent)}.progress-info .bar,.progress .bar-info{background-color:#4bb1cf;background-image:-moz-linear-gradient(top,#5bc0de,#339bb9);background-image:-webkit-gradient(linear,0 0,0 100%,from(#5bc0de),to(#339bb9));background-image:-webkit-linear-gradient(top,#5bc0de,#339bb9);background-image:-o-linear-gradient(top,#5bc0de,#339bb9);background-image:linear-gradient(to bottom,#5bc0de,#339bb9);background-repeat:repeat-x;filter:progid:dximagetransform.microsoft.gradient(startColorstr='#ff5bc0de',endColorstr='#ff339bb9',GradientType=0)}.progress-info.progress-striped .bar,.progress-striped .bar-info{background-color:#5bc0de;background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,0.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,0.15)),color-stop(0.75,rgba(255,255,255,0.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent)}.progress-warning .bar,.progress .bar-warning{background-color:#faa732;background-image:-moz-linear-gradient(top,#fbb450,#f89406);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fbb450),to(#f89406));background-image:-webkit-linear-gradient(top,#fbb450,#f89406);background-image:-o-linear-gradient(top,#fbb450,#f89406);background-image:linear-gradient(to bottom,#fbb450,#f89406);background-repeat:repeat-x;filter:progid:dximagetransform.microsoft.gradient(startColorstr='#fffbb450',endColorstr='#fff89406',GradientType=0)}.progress-warning.progress-striped .bar,.progress-striped .bar-warning{background-color:#fbb450;background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,0.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,0.15)),color-stop(0.75,rgba(255,255,255,0.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent)}.accordion{margin-bottom:20px}.accordion-group{margin-bottom:2px;border:1px solid #e5e5e5;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.accordion-heading{border-bottom:0}.accordion-heading .accordion-toggle{display:block;padding:8px 15px}.accordion-toggle{cursor:pointer}.accordion-inner{padding:9px 15px;border-top:1px solid #e5e5e5}.carousel{position:relative;margin-bottom:20px;line-height:1}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel .item{position:relative;display:none;-webkit-transition:.6s ease-in-out left;-moz-transition:.6s ease-in-out left;-o-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel .item>img{display:block;line-height:1}.carousel .active,.carousel .next,.carousel .prev{display:block}.carousel .active{left:0}.carousel .next,.carousel .prev{position:absolute;top:0;width:100%}.carousel .next{left:100%}.carousel .prev{left:-100%}.carousel .next.left,.carousel .prev.right{left:0}.carousel .active.left{left:-100%}.carousel .active.right{left:100%}.carousel-control{position:absolute;top:40%;left:15px;width:40px;height:40px;margin-top:-20px;font-size:60px;font-weight:100;line-height:30px;color:#fff;text-align:center;background:#222;border:3px solid #fff;-webkit-border-radius:23px;-moz-border-radius:23px;border-radius:23px;opacity:.5;filter:alpha(opacity=50)}.carousel-control.right{right:15px;left:auto}.carousel-control:hover{color:#fff;text-decoration:none;opacity:.9;filter:alpha(opacity=90)}.carousel-caption{position:absolute;right:0;bottom:0;left:0;padding:15px;background:#333;background:rgba(0,0,0,0.75)}.carousel-caption h4,.carousel-caption p{line-height:20px;color:#fff}.carousel-caption h4{margin:0 0 5px}.carousel-caption p{margin-bottom:0}.hero-unit{padding:60px;margin-bottom:30px;background-color:#eee;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.hero-unit h1{margin-bottom:0;font-size:60px;line-height:1;letter-spacing:-1px;color:inherit}.hero-unit p{font-size:18px;font-weight:200;line-height:30px;color:inherit}.pull-right{float:right}.pull-left{float:left}.hide{display:none}.show{display:block}.invisible{visibility:hidden}.affix{position:fixed} gitlab-license-finder-6.14.2.1/lib/license_finder/reports/json_report.rb0000644000175100017510000000106314172736724025243 0ustar pravipravirequire 'csv' module LicenseFinder class JsonReport < CsvReport NEWLINE_SEP = "\n".freeze def initialize(dependencies, options) super(dependencies, options) end def to_s {dependencies: build_deps}.to_json end private def build_deps sorted_dependencies.map do |dep| @columns.inject({}) do |memo, column| memo[column] = send("format_#{column}", dep) memo end end end def format_licenses(dep) dep.missing? ? [] : dep.licenses.map(&:name) end end end gitlab-license-finder-6.14.2.1/lib/license_finder/reports/junit_report.rb0000644000175100017510000000065214172736724025426 0ustar pravipravirequire 'license_finder/reports/erb_report' module LicenseFinder class JunitReport < ErbReport ROOT_PATH = Pathname.new(__FILE__).dirname TEMPLATE_PATH = ROOT_PATH.join('templates') def to_s(filename = TEMPLATE_PATH.join("#{template_name}.erb")) template = ERB.new(filename.read, nil, '-') template.result(binding) end private def template_name 'junit_report' end end end gitlab-license-finder-6.14.2.1/lib/license_finder/reports/text_report.rb0000644000175100017510000000043414172736724025257 0ustar pravipravimodule LicenseFinder class TextReport < CsvReport COMMA_SEP = ', '.freeze def initialize(dependencies, options = {}) super(dependencies, options) default_columns = %w[name version licenses] @columns = default_columns if @columns.empty? end end end gitlab-license-finder-6.14.2.1/lib/license_finder/reports/xml_report.rb0000644000175100017510000000064614172736724025100 0ustar pravipravirequire 'license_finder/reports/erb_report' module LicenseFinder class XmlReport < ErbReport ROOT_PATH = Pathname.new(__FILE__).dirname TEMPLATE_PATH = ROOT_PATH.join('templates') def to_s(filename = TEMPLATE_PATH.join("#{template_name}.erb")) template = ERB.new(filename.read, nil, '-') template.result(binding) end private def template_name 'xml_report' end end end gitlab-license-finder-6.14.2.1/lib/license_finder/platform.rb0000644000175100017510000000056414172736724023032 0ustar pravipravi# frozen_string_literal: true module LicenseFinder module Platform def self.darwin? RUBY_PLATFORM =~ /darwin/ end def self.windows? # SO: What is the correct way to detect if ruby is running on Windows?, # cf. https://stackoverflow.com/a/21468976/2592915 Gem.win_platform? || RUBY_PLATFORM =~ /mswin|cygwin|mingw/ end end end gitlab-license-finder-6.14.2.1/lib/license_finder/package_managers/0000755000175100017510000000000014172736724024124 5ustar pravipravigitlab-license-finder-6.14.2.1/lib/license_finder/package_managers/pipenv.rb0000644000175100017510000000271014172736724025752 0ustar pravipravi# frozen_string_literal: true require 'json' require 'license_finder/package_utils/pypi' module LicenseFinder class Pipenv < PackageManager def initialize(options = {}) super @lockfile = Pathname('Pipfile.lock') end def current_packages @current_packages ||= begin packages = {} each_dependency(groups: allowed_groups) do |name, data, group| version = canonicalize(data['version'] || 'unknown') package = packages.fetch(key_for(name, version)) do |key| packages[key] = build_package_for(name, version) end package.groups << group end packages.values end end def possible_package_paths project_path ? [project_path.join(@lockfile)] : [@lockfile] end private def each_dependency(groups: []) dependencies = JSON.parse(IO.read(detected_package_path)) groups.each do |group| dependencies[group].each do |name, data| yield name, data, group end end end def canonicalize(version) version.sub(/^==/, '') end def build_package_for(name, version) PipPackage.new(name, version, PyPI.definition(name, version)) end def key_for(name, version) "#{name}-#{version}" end def allowed_groups %w[default develop] - ignored_groups.to_a end def ignored_groups @ignored_groups || [] end end end gitlab-license-finder-6.14.2.1/lib/license_finder/package_managers/cocoa_pods.rb0000644000175100017510000000332714172736724026567 0ustar pravipravi# frozen_string_literal: true require 'json' module LicenseFinder class CocoaPods < PackageManager def current_packages podfile = YAML.load_file(lockfile_path) podfile['PODS'].map do |pod| pod = pod.keys.first if pod.is_a?(Hash) name, version = pod.scan(/(.*)\s\((.*)\)/).flatten CocoaPodsPackage.new( name, version, license_texts[name], logger: logger ) end end def package_management_command LicenseFinder::Platform.darwin? ? 'pod' : nil end def possible_package_paths [project_path.join('Podfile')] end private def lockfile_path project_path.join('Podfile.lock') end def license_texts # package name => license text @license_texts ||= read_plist(acknowledgements_path)['PreferenceSpecifiers'] .each_with_object({}) { |hash, memo| memo[hash['Title']] = hash['FooterText'] } end def acknowledgements_path search_paths = ['Pods/Pods-acknowledgements.plist', 'Pods/Target Support Files/Pods/Pods-acknowledgements.plist', 'Pods/Target Support Files/Pods-*/Pods-*-acknowledgements.plist'] result = Dir[*search_paths.map { |path| File.join(project_path, path) }].first raise "Found a Podfile but no Pods directory in #{project_path}. Try running pod install before running license_finder." if result.nil? result end def read_plist(pathname) transformed_pathname = pathname.gsub!(%r{[^0-9A-Za-z. \-'/]}, '') transformed_pathname = pathname if transformed_pathname.nil? JSON.parse(`plutil -convert json -o - '#{transformed_pathname}'`) end end end gitlab-license-finder-6.14.2.1/lib/license_finder/package_managers/composer.rb0000644000175100017510000000336314172736724026305 0ustar pravipravi# frozen_string_literal: true require 'json' module LicenseFinder class Composer < PackageManager def initialize(options = {}) super @check_require_only = !!options[:composer_check_require_only] end def possible_package_paths [project_path.join('composer.lock'), project_path.join('composer.json')] end def current_packages dependency_list.map do |name, dependency| path_command = "composer show #{name} -P" stdout, _stderr, status = Dir.chdir(project_path) { Cmd.run(path_command) } path = status.success? ? stdout.split(' ').last : '' ComposerPackage.new(name, dependency['version'], spec_licenses: dependency['license'], install_path: path) end end def prepare _stdout, stderr, status = Dir.chdir(project_path) { Cmd.run(prepare_command) } return if status.success? log_errors stderr raise "Prepare command '#{Composer.prepare_command}' failed" unless @prepare_no_fail end def package_management_command 'composer' end def prepare_command 'composer install --no-plugins --no-scripts --ignore-platform-reqs --no-interaction' end def package_path project_path.join('composer.json') end def lockfile_path project_path.join('composer.lock') end def dependency_list json ||= composer_json json.fetch('dependencies', {}).reject { |_, d| d.is_a?(String) } end def composer_json command = "composer licenses --format=json#{@check_require_only ? ' --no-dev' : ''}" stdout, stderr, status = Dir.chdir(project_path) { Cmd.run(command) } raise "Command '#{command}' failed to execute: #{stderr}" unless status.success? JSON(stdout) end end end gitlab-license-finder-6.14.2.1/lib/license_finder/package_managers/pip.rb0000644000175100017510000000356014172736724025245 0ustar pravipravi# frozen_string_literal: true require 'json' module LicenseFinder class Pip < PackageManager DEFAULT_VERSION = '2' def initialize(options = {}) super @requirements_path = options[:pip_requirements_path] || Pathname('requirements.txt') @python_version = options[:python_version] || DEFAULT_VERSION raise "Invalid python version \'#{@python_version}\'. Valid versions are '2' or '3'." unless %w[2 3].include?(@python_version) end def current_packages pip_output.map do |name, version, children, location| PipPackage.new( name, version, PyPI.definition(name, version), logger: logger, children: children, install_path: Pathname(location).join(name) ) end end def package_management_command "pip#{@python_version}" end def prepare_command "pip#{@python_version} install" end def prepare prep_cmd = "#{prepare_command} -r #{@requirements_path}" _stdout, stderr, status = Dir.chdir(project_path) { Cmd.run(prep_cmd) } return if status.success? log_errors stderr raise "Prepare command '#{prep_cmd}' failed" unless @prepare_no_fail end def possible_package_paths if project_path.nil? [@requirements_path] else [project_path.join(@requirements_path)] end end private def pip_output command = "python#{@python_version == '2' ? '' : '3'} #{LicenseFinder::BIN_PATH.join('license_finder_pip.py')} #{detected_package_path}" stdout, stderr, status = Cmd.run(command) if status.success? JSON(stdout).map do |package| package.values_at('name', 'version', 'dependencies', 'location') end else log_errors "LicenseFinder command '#{command}' failed:\n\t#{stderr}" [] end end end end gitlab-license-finder-6.14.2.1/lib/license_finder/package_managers/dotnet.rb0000644000175100017510000000436714172736724025760 0ustar pravipravi# frozen_string_literal: true require 'pathname' require 'json' module LicenseFinder class Dotnet < PackageManager class AssetFile def initialize(path) @manifest = JSON.parse(File.read(path)) end def dependencies libs = @manifest.fetch('libraries').reject do |_, v| v.fetch('type') == 'project' end libs.keys.map do |name| parts = name.split('/') PackageMetadata.new(parts[0], parts[1], possible_spec_paths(name)) end end def possible_spec_paths(package_key) lib = @manifest.fetch('libraries').fetch(package_key) spec_filename = lib.fetch('files').find { |f| f.end_with?('.nuspec') } return [] if spec_filename.nil? @manifest.fetch('packageFolders').keys.map do |root| Pathname(root).join(lib.fetch('path'), spec_filename).to_s end end end class PackageMetadata attr_reader :name, :version, :possible_spec_paths def initialize(name, version, possible_spec_paths) @name = name @version = version @possible_spec_paths = possible_spec_paths end def read_license_urls possible_spec_paths.flat_map do |path| Nuget.nuspec_license_urls(File.read(path)) if File.exist? path end.compact end def ==(other) other.name == name && other.version == version && other.possible_spec_paths == possible_spec_paths end end def possible_package_paths paths = Dir[project_path.join('*.csproj')] paths.map { |p| Pathname(p) } end def current_packages package_metadatas = asset_files .flat_map { |path| AssetFile.new(path).dependencies } .uniq { |d| [d.name, d.version] } package_metadatas.map do |d| path = Dir.glob("#{Dir.home}/.nuget/packages/#{d.name.downcase}/#{d.version}").first NugetPackage.new(d.name, d.version, spec_licenses: d.read_license_urls, install_path: path) end end def asset_files Dir[project_path.join('**/project.assets.json')] end def package_management_command 'dotnet' end def prepare_command "#{package_management_command} restore" end end end gitlab-license-finder-6.14.2.1/lib/license_finder/package_managers/go_workspace.rb0000644000175100017510000000734414172736724027144 0ustar pravipravi# frozen_string_literal: true require 'json' module LicenseFinder class GoWorkspacePackageManagerError < ::StandardError end class GoWorkspace < PackageManager Submodule = Struct.new :install_path, :revision ENVRC_REGEXP = /GOPATH|GO15VENDOREXPERIMENT/.freeze def initialize(options = {}) super @full_version = options[:go_full_version] @strict_matching = options[:strict_matching] end def package_management_command 'go' end def current_packages go_list_packages = go_list git_modules.map do |submodule| # We are filtering the non-standard packages because the word "net" # seems to be common that can give false positive when filtering the git submodules import_path = go_list_packages.find do |gp| submodule.install_path =~ /#{repo_name(gp)}$/ end next unless import_path dependency_info = { 'ImportPath' => repo_name(import_path), 'Homepage' => repo_name(import_path), 'InstallPath' => submodule.install_path, 'Rev' => submodule.revision } GoPackage.from_dependency(dependency_info, nil, @full_version) end.compact end def self.takes_priority_over Go15VendorExperiment end def possible_package_paths [envrc_path.dirname] end def active? return false if @strict_matching godep = LicenseFinder::GoDep.new(project_path: Pathname(project_path)) dep = LicenseFinder::Dep.new(project_path: Pathname(project_path)) # go workspace is only active if GoDep wasn't. There are some projects # that will use the .envrc and have a Godep folder as well. !!(!godep.active? && !dep.active? && envrc_path && ENVRC_REGEXP.match(IO.read(envrc_path))) end private def repo_name(import_path) import_path.split('/')[0..2].join('/') end def project_src project_path.join('src') end def envrc_path p = Pathname.new project_path 4.times.reduce([p]) { |memo, _| memo << memo.last.parent }.map { |path| path.join('.envrc') }.find(&:exist?) end def go_list Dir.chdir(project_path) do # avoid checking canonical import path. some projects uses # non-canonical import path and rely on the fact that the deps are # checked in. Canonical paths are only checked by `go get'. We # discovered that `go list' will print a warning and unfortunately exit # with status code 1. Setting GOPATH to nil removes those warnings. orig_gopath = ENV['GOPATH'] ENV['GOPATH'] = nil val, stderr, status = Cmd.run('go list -f "{{join .Deps \"\n\"}}" ./...') ENV['GOPATH'] = project_path.to_s val, stderr, status = Cmd.run('go list -f "{{join .Deps \"\n\"}}" ./...') unless status.success? ENV['GOPATH'] = orig_gopath raise GoWorkspacePackageManagerError, "go list failed:\n#{stderr}" unless status.success? # Select non-standard packages. `go list std` returns the list of standard # dependencies. We then filter those dependencies out of the full list of # dependencies. deps = val.split("\n") Cmd.run('go list std').first.split("\n").each do |std| deps.delete_if do |dep| dep =~ %r{(\/|^)#{std}(\/|$)} end end deps end end def git_modules Dir.chdir(detected_package_path) do |_d| result, _stderr, status = Cmd.run('git submodule status') raise 'git submodule status failed' unless status.success? result.lines.map do |l| columns = l.split.map(&:strip) Submodule.new File.join(detected_package_path, columns[1]), columns[0] end end end end end gitlab-license-finder-6.14.2.1/lib/license_finder/package_managers/bower.rb0000644000175100017510000000142714172736724025573 0ustar pravipravi# frozen_string_literal: true require 'json' module LicenseFinder class Bower < PackageManager def current_packages bower_output.map do |package| BowerPackage.new(package, logger: logger) end end def package_management_command 'bower' end def prepare_command 'bower install' end def possible_package_paths [project_path.join('bower.json')] end private def bower_output command = "#{package_management_command} list --json -l action --allow-root" stdout, stderr, status = Dir.chdir(project_path) { Cmd.run(command) } raise "Command '#{command}' failed to execute: #{stderr}" unless status.success? JSON(stdout) .fetch('dependencies', {}) .values end end end gitlab-license-finder-6.14.2.1/lib/license_finder/package_managers/go_modules.rb0000644000175100017510000000572714172736724026621 0ustar pravipravi# frozen_string_literal: true require 'license_finder/packages/go_package' module LicenseFinder class GoModules < PackageManager PACKAGES_FILE = 'go.mod' class << self def takes_priority_over Go15VendorExperiment end end def active? mod_files? end def current_packages packages = packages_info.map do |package| name, version, install_path = package.split(',') read_package(install_path, name, version) if install_path.to_s != '' end.compact packages.reject do |package| Pathname(package.install_path).cleanpath == Pathname(project_path).cleanpath end end private def packages_info Dir.chdir(project_path) do # Explanations: # * Only list dependencies (packages not listed in the project directory) # (.DepOnly) # * Ignore packages that have nil modules # (.Module) # * Ignore standard library packages # (not .Standard) # * Replacement modules are respected # (or .Module.Replace .Module) # * Module cache directory or (vendored) package directory # (or $mod.Dir .Dir) format_str = \ '{{ if and (.DepOnly) (.Module) (not .Standard) }}'\ '{{ $mod := (or .Module.Replace .Module) }}'\ '{{ $mod.Path }},{{ $mod.Version }},{{ or $mod.Dir .Dir }}'\ '{{ end }}' # The module list flag (`-m`) is intentionally not used here. If the module # dependency tree were followed, transitive dependencies that are never imported # may be included. # # Instead, the owning module is listed for each imported package. This better # matches the implementation of other Go package managers. # # TODO: Figure out a way to make the vendor directory work (i.e. remove the # -mod=readonly flag). Each of the imported packages gets listed separatly, # confusing the issue as to which package is the root of the module. go_list_cmd = "GO111MODULE=on go list -mod=readonly -deps -f '#{format_str}' ./..." info_output, stderr, status = Cmd.run(go_list_cmd) log_errors_with_cmd(go_list_cmd, "Getting the dependencies from go list failed \n\t#{stderr}") unless status.success? raise "Command '#{go_list_cmd}' failed to execute" unless status.success? # Since many packages may belong to a single module, #uniq is used to deduplicate info_output.split("\n").uniq end end def mod_files? mod_file_paths.any? end def mod_file_paths Dir[project_path.join(PACKAGES_FILE)] end def read_package(install_path, name, version) info = { 'ImportPath' => name, 'InstallPath' => install_path, 'Rev' => version, 'Homepage' => repo_name(name) } GoPackage.from_dependency(info, nil, true) end def repo_name(name) name.split('/')[0..2].join('/') end end end gitlab-license-finder-6.14.2.1/lib/license_finder/package_managers/go_dep.rb0000644000175100017510000000473414172736724025716 0ustar pravipravi# frozen_string_literal: true require 'json' module LicenseFinder class GoDep < PackageManager OLD_GODEP_VENDOR_PATH = 'Godeps/_workspace/src' GODEP_VENDOR_PATH = 'vendor' def initialize(options = {}) super @full_version = options[:go_full_version] end def current_packages packages_from_json(detected_package_path.read) # godep includes subpackages as a seperate dependency, we can de-dup that end def self.takes_priority_over Go15VendorExperiment end def possible_package_paths [project_path.join('Godeps/Godeps.json')] end def package_management_command 'godep' end private def install_prefix @install_prefix ||= if project_path.join(OLD_GODEP_VENDOR_PATH).directory? project_path.join(OLD_GODEP_VENDOR_PATH) elsif project_path.join(GODEP_VENDOR_PATH).directory? project_path.join(GODEP_VENDOR_PATH) else download_dependencies Pathname(ENV['GOPATH'] ? ENV['GOPATH'] + '/src' : ENV['HOME'] + '/go/src') end end def download_dependencies command = "#{package_management_command} restore" _, stderr, status = Dir.chdir(project_path) { Cmd.run(command) } raise "Command '#{command}' failed to execute: #{stderr}" if !status.success? && status.exitstatus != 1 end def packages_from_json(json_string) all_packages = JSON.parse(json_string)['Deps'] return [] unless all_packages packages_grouped_by_revision = all_packages.group_by { |package| package['Rev'] } result = [] packages_grouped_by_revision.each do |_sha, packages_in_group| all_paths_in_group = packages_in_group.map { |p| p['ImportPath'] } common_paths = CommonPathHelper.longest_common_paths(all_paths_in_group) package_info = packages_in_group.first common_paths.each do |common_path| dependency_info_hash = { 'Homepage' => common_path, 'ImportPath' => common_path, 'InstallPath' => package_info['InstallPath'], 'Rev' => package_info['Rev'] } result << GoPackage.from_dependency(dependency_info_hash, install_prefix, @full_version) end end result end end end gitlab-license-finder-6.14.2.1/lib/license_finder/package_managers/mix.rb0000644000175100017510000000712314172736724025251 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class Mix < PackageManager def initialize(options = {}) super @command = options[:mix_command] || package_management_command @elixir_command = options[:elixir_command] || 'elixir' @deps_path = Pathname(options[:mix_deps_dir] || 'deps') end def current_packages mix_output.map do |name, version| MixPackage.new( name, version, install_path: @deps_path.join(name), logger: logger, spec_licenses: licenses(name) ) end end def licenses(name) licenses_by_package = load_all_licenses licenses_by_package.fetch(name, ['license is not in deps']) end def package_management_command 'mix' end def self.package_lock_file 'mix.lock' end def prepare_command 'mix deps.get' end def possible_package_paths [project_path.join('mix.exs')] end def installed?(logger = Core.default_logger) if package_management_command.nil? logger.debug self.class, 'no command defined' true elsif command_exists?('elixir') && command_exists?('mix') logger.debug self.class, 'is installed', color: :green true else logger.info self.class, '(elixir) is not installed', color: :red false end end private def load_all_licenses elixir_code = <<-ELIXIR deps_path = "#{@deps_path}" case File.ls(deps_path) do {:ok, dirs} -> Enum.reduce(dirs, [], fn name, acc -> with hexmetadata_file <- Path.join([deps_path, name, "hex_metadata.config"]), {:ok, metadata} <- :file.consult(hexmetadata_file), {"licenses", licenses} <- List.keyfind(metadata, "licenses", 0) do [[name, licenses] | acc] else _ -> acc end end) {:error, _} -> [] end |> IO.inspect(limit: :infinity) ELIXIR command = "#{@elixir_command} -e '#{elixir_code}'" return {} unless File.directory?(project_path) stdout, stderr, status = Dir.chdir(project_path) { Cmd.run(command) } raise "Command '#{command}' failed to execute: #{stderr}" unless status.success? Hash[JSON.parse(stdout)] end def end_of_package_lines?(line) line == 'ok' end def mix_output command = "#{@command} deps" stdout, stderr, status = Dir.chdir(project_path) { Cmd.run(command) } raise "Command '#{command}' failed to execute: #{stderr}" unless status.success? packages_lines(stdout) .reject { |package_lines| package_lines.length == 1 || package_lines.empty? } # in_umbrella: true dependencies .map { |package_lines| [package_lines[0].split(' ')[1], resolve_version(package_lines[1])] } end def packages_lines(stdout) packages_lines, last_package_lines = stdout .each_line .map(&:strip) .reject { |line| end_of_package_lines?(line) } .reduce([[], []]) do |(packages_lines, package_lines), line| if start_of_package_lines?(line) packages_lines.push(package_lines) unless package_lines.empty? [packages_lines, [line]] else package_lines.push(line) [packages_lines, package_lines] end end packages_lines.push(last_package_lines) end def resolve_version(line) line =~ /locked at ([^\s]+)/ ? Regexp.last_match(1) : line end def start_of_package_lines?(line) line.start_with?('* ') end end end gitlab-license-finder-6.14.2.1/lib/license_finder/package_managers/cargo.rb0000644000175100017510000000163514172736724025551 0ustar pravipravi# frozen_string_literal: true require 'json' module LicenseFinder class Cargo < PackageManager def current_packages cargo_output.map do |package| path = Dir.glob("#{Dir.home}/.cargo/registry/src/**/#{package['name']}-#{package['version']}").first CargoPackage.new(package, logger: logger, install_path: path) end end def package_management_command 'cargo' end def prepare_command 'cargo fetch' end def possible_package_paths [project_path.join('Cargo.lock'), project_path.join('Cargo.toml')] end private def cargo_output command = "#{package_management_command} metadata --format-version=1" stdout, stderr, status = Dir.chdir(project_path) { Cmd.run(command) } raise "Command '#{command}' failed to execute: #{stderr}" unless status.success? JSON(stdout) .fetch('packages', []) end end end gitlab-license-finder-6.14.2.1/lib/license_finder/package_managers/bundler.rb0000644000175100017510000000554214172736724026112 0ustar pravipravi# frozen_string_literal: true require 'bundler' require 'securerandom' module LicenseFinder class Bundler < PackageManager def initialize(options = {}) super @ignored_groups = options[:ignored_groups] @definition = options[:definition] # dependency injection for tests end def current_packages logger.debug self.class, "including groups #{included_groups.inspect}" details.map do |gem_detail, bundle_detail| BundlerPackage.new(gem_detail, bundle_detail, logger: logger).tap do |package| log_package_dependencies package end end end def package_management_command 'bundle' end def prepare_command ignored_groups_argument = !ignored_groups.empty? ? "--without #{ignored_groups.to_a.join(' ')}" : '' gem_path = "lf-bundler-gems-#{SecureRandom.uuid}" logger.info self.class, "Running bundle install for #{Dir.pwd} with path #{gem_path}", color: :blue "bundle install #{ignored_groups_argument} --path #{gem_path}".strip end def possible_package_paths [project_path.join(gemfile)] end private attr_reader :ignored_groups def definition ENV['BUNDLE_GEMFILE'] = "#{project_path}/#{gemfile}" @definition ||= ::Bundler::Definition.build(detected_package_path, lockfile_path, nil) end def details gem_details.map do |gem_detail| bundle_detail = bundler_details.detect { |bundler_detail| bundler_detail.name == gem_detail.name } [gem_detail, bundle_detail] end end def gem_details return @gem_details if @gem_details # clear gem paths before running specs_for Gem.clear_paths if bundler_config_path_found ::Bundler.reset! ::Bundler.configure end @gem_details = definition.specs_for(included_groups) end def bundler_details @bundler_details ||= definition.dependencies end def included_groups definition.groups - ignored_groups.map(&:to_sym) end def lockfile_path project_path.join(lockfile) end def bundler_config_path_found config_file = project_path.join('.bundle/config') return false unless File.exist?(config_file) content = File.readlines(config_file) content.grep(/BUNDLE_PATH/).count.positive? end def log_package_dependencies(package) dependencies = package.children if dependencies.empty? logger.debug self.class, format("package '%s' has no dependencies", package.name) else logger.debug self.class, format("package '%s' has dependencies:", package.name) dependencies.each do |dep| logger.debug self.class, format('- %s', dep) end end end def gemfile File.basename(ENV['BUNDLE_GEMFILE'] || 'Gemfile') end def lockfile "#{gemfile}.lock" end end end gitlab-license-finder-6.14.2.1/lib/license_finder/package_managers/spm.rb0000644000175100017510000000523014172736724025250 0ustar pravipravi# frozen_string_literal: true require 'json' module LicenseFinder class Spm < PackageManager class SpmError < RuntimeError; end def current_packages unless File.exist?(workspace_state_path) raise SpmError, 'No checked-out SPM packages found. Please install your dependencies first.' end workspace_state = JSON.parse(IO.read(workspace_state_path)) workspace_state['object']['dependencies'].map do |dependency| package_ref = dependency['packageRef'] checkout_state = dependency['state']['checkoutState'] subpath = dependency['subpath'] package_name = package_ref['name'] package_version = checkout_state['version'] || checkout_state['revision'] homepage = package_ref['path'] SpmPackage.new( package_name, package_version, license_text(subpath), logger: logger, install_path: project_checkout(subpath), homepage: homepage ) end end def package_management_command LicenseFinder::Platform.darwin? ? 'xcodebuild' : 'swift' end def prepare_command LicenseFinder::Platform.darwin? ? 'xcodebuild -resolvePackageDependencies' : 'swift package resolve' end def possible_package_paths [workspace_state_path] end private def resolved_package if File.exist?(resolved_path) @resolved_file ||= IO.read(resolved_path) else raise SpmError, 'No Package.resolved found. Please install your dependencies first and provide it via environment variable SPM_PACKAGE_RESOLVED' end end def resolved_path # Xcode projects have SPM packages info under project's derived data location derived_data_folder = ENV['SPM_DERIVED_DATA'] if derived_data_folder pathname = Pathname.new(derived_data_folder) pathname.absolute? ? pathname : project_path.join(derived_data_folder) else project_path.join('.build') end end def workspace_state_path resolved_path.join('workspace-state.json') end def license_text(subpath) license_path = license_pattern(subpath).find { |f| File.exist?(f) } license_path.nil? ? nil : IO.read(license_path) end def project_checkout(subpath) resolved_path.join('checkouts', subpath) end def license_pattern(subpath) checkout_path = project_checkout(subpath) Dir.glob(checkout_path.join('LICENSE*'), File::FNM_CASEFOLD) end def name_version_from_line(cartfile_line) cartfile_line.split(' ')[1, 2].map { |f| f.split('/').last.delete('"').gsub('.git', '') } end end end gitlab-license-finder-6.14.2.1/lib/license_finder/package_managers/glide.rb0000644000175100017510000000163314172736724025540 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class Glide < PackageManager def possible_package_paths [project_path.join('glide.lock')] end def current_packages detected_path = detected_package_path YAML.load_file(detected_path).fetch('imports').map do |package_hash| import_path = package_hash.fetch('name') license_path = project_path.join('vendor', import_path) GoPackage.from_dependency({ 'ImportPath' => import_path, 'InstallPath' => license_path, 'Rev' => package_hash.fetch('version') }, nil, true) end end def self.takes_priority_over Go15VendorExperiment end def package_management_command 'glide' end def prepare_command 'glide install' end end end gitlab-license-finder-6.14.2.1/lib/license_finder/package_managers/gradle.rb0000644000175100017510000000573614172736724025722 0ustar pravipravi# frozen_string_literal: true require 'xmlsimple' require 'with_env' require 'license_finder/package_utils/gradle_dependency_finder' module LicenseFinder class Gradle < PackageManager def initialize(options = {}) super @command = options[:gradle_command] || package_management_command @include_groups = options[:gradle_include_groups] end def current_packages WithEnv.with_env('TERM' => 'dumb') do command = "#{@command} downloadLicenses" _stdout, stderr, status = Dir.chdir(project_path) { Cmd.run(command) } raise "Command '#{command}' failed to execute: #{stderr}" unless status.success? dependencies = GradleDependencyFinder.new(project_path).dependencies packages = dependencies.flat_map do |xml_file| options = { 'GroupTags' => { 'dependencies' => 'dependency' } } contents = XmlSimple.xml_in(xml_file, options).fetch('dependency', []) contents.map do |dep| GradlePackage.new(dep, logger: logger, include_groups: @include_groups) end end packages.uniq end end def package_management_command if Platform.windows? wrapper = 'gradlew.bat' gradle = 'gradle.bat' else wrapper = './gradlew' gradle = 'gradle' end File.exist?(File.join(project_path, wrapper)) ? wrapper : gradle end def project_root? active? && root_module? end private def root_module? return false if project_path.to_s.include?('buildSrc') command = "#{package_management_command} -Dorg.gradle.jvmargs=-Xmx6144m properties | grep 'parent: '" stdout, stderr, status = Dir.chdir(project_path) { Cmd.run(command) } if stderr&.include?('not part of the build defined by settings file') Dir.chdir(project_path) do Cmd.run('touch settings.gradle') stdout, stderr, status = Cmd.run(command) Cmd.run('rm settings.gradle') end end raise "Command '#{command}' failed to execute in #{project_path}: #{stderr}" unless status.success? root_project_name = stdout.gsub(/\s|parent:|\n/, '') root_project_name == 'null' end def detected_package_path alternate_build_file = build_file_from_settings(project_path) return alternate_build_file if alternate_build_file build_gradle_file end def build_gradle_file kotlin_gradle_path = project_path.join('build.gradle.kts') return kotlin_gradle_path if File.exist? kotlin_gradle_path project_path.join('build.gradle') end def build_file_from_settings(project_path) settings_gradle_path = project_path.join 'settings.gradle' return nil unless File.exist? settings_gradle_path settings_gradle = File.read settings_gradle_path match = /rootProject.buildFileName = ['"](?.*)['"]/.match settings_gradle return nil unless match project_path.join match[:build_file] end end end gitlab-license-finder-6.14.2.1/lib/license_finder/package_managers/go_15vendorexperiment.rb0000644000175100017510000000513714172736724030710 0ustar pravipravi# frozen_string_literal: true require 'json' module LicenseFinder class Go15VendorExperiment < PackageManager def initialize(options = {}) super @full_version = options[:go_full_version] end def active? super && go_files_exist? end def go_files_exist? !Dir[project_path.join('**/*.go')].empty? && !Dir[project_path.join('vendor/**/*.go')].empty? end def possible_package_paths [project_path.join('vendor')] end def project_sha(path) Dir.chdir(path) do stdout, _stderr, status = Cmd.run('git rev-list --max-count 1 HEAD') raise 'git rev-list failed' unless status.success? stdout.strip end end def current_packages deps = go_list vendored_deps = deps.select { |dep| detected_package_path.join(dep).exist? } vendored_deps.map do |dep| GoPackage.from_dependency({ 'ImportPath' => dep, 'InstallPath' => detected_package_path.join(dep), 'Rev' => 'vendored-' + project_sha(detected_package_path.join(dep)), 'Homepage' => repo_name(dep) }, nil, true) end end def repo_name(name) name.split('/')[0..2].join('/') end def package_management_command 'go' end def go_list Dir.chdir(project_path) do # avoid checking canonical import path. some projects uses # non-canonical import path and rely on the fact that the deps are # checked in. Canonical paths are only checked by `go get'. We # discovered that `go list' will print a warning and unfortunately exit # with status code 1. Setting GOPATH to nil removes those warnings. orig_gopath = ENV['GOPATH'] ENV['GOPATH'] = nil val, _stderr, status = Cmd.run('go list -f "{{join .Deps \"\n\"}}" ./...') ENV['GOPATH'] = orig_gopath return [] unless status.success? # Select non-standard packages. `go list std` returns the list of standard # dependencies. We then filter those dependencies out of the full list of # dependencies. deps = val.split("\n") Cmd.run('go list std').first.split("\n").each do |std| deps.delete_if do |dep| dep =~ %r{(\/|^)#{std}(\/|$)} end end deps.map do |d| dep_parts = d.split('/') if dep_parts.length > 2 dep_parts[0..2].join('/') else d end end end end end end gitlab-license-finder-6.14.2.1/lib/license_finder/package_managers/sbt.rb0000644000175100017510000000263214172736724025244 0ustar pravipravi# frozen_string_literal: true require 'csv' require 'license_finder/package_utils/sbt_dependency_finder' module LicenseFinder class Sbt < PackageManager def initialize(options = {}) super @include_groups = options[:sbt_include_groups] end def current_packages command = "#{package_management_command} dumpLicenseReport" _stdout, stderr, status = Dir.chdir(project_path) { Cmd.run(command) } raise "Command '#{command}' failed to execute: #{stderr}" unless status.success? dependencies = SbtDependencyFinder.new(project_path).dependencies packages = dependencies.flat_map do |text| options = { headers: true } contents = CSV.parse(text, options) contents.map do |row| group_id, name, version = row['Dependency'].split('#').map(&:strip) spec = { 'artifactId' => name, 'groupId' => group_id, 'version' => version, 'licenses' => [{ 'name' => row['License'] }] } path = File.join("#{Dir.home}/.ivy2/cache", "#{spec['groupId']}/#{spec['artifactId']}") SbtPackage.new(spec, logger: logger, include_groups: @include_groups, install_path: path) end end packages.uniq end def package_management_command 'sbt' end def possible_package_paths [project_path.join('build.sbt')] end end end gitlab-license-finder-6.14.2.1/lib/license_finder/package_managers/yarn.rb0000644000175100017510000000623014172736724025423 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class Yarn < PackageManager SHELL_COMMAND = 'yarn licenses list --no-progress --json' def possible_package_paths [project_path.join('yarn.lock')] end def current_packages cmd = "#{Yarn::SHELL_COMMAND}#{production_flag}" suffix = " --cwd #{project_path}" unless project_path.nil? cmd += suffix unless suffix.nil? stdout, _stderr, status = Cmd.run(cmd) return [] unless status.success? packages = [] incompatible_packages = [] json_strings = stdout.encode('ASCII', invalid: :replace, undef: :replace, replace: '?').split("\n") json_objects = json_strings.map { |json_object| JSON.parse(json_object) } if json_objects.last['type'] == 'table' license_json = json_objects.pop['data'] packages = packages_from_json(license_json) end json_objects.each do |json_object| match = /(?[\w,\-]+)@(?(\d+\.?)+)/ =~ json_object['data'].to_s if match package = YarnPackage.new(name, version, spec_licenses: ['unknown']) incompatible_packages.push(package) end end packages + incompatible_packages.uniq end def prepare prep_cmd = "#{prepare_command}#{production_flag}" _stdout, stderr, status = Dir.chdir(project_path) { Cmd.run(prep_cmd) } return if status.success? log_errors stderr raise "Prepare command '#{prep_cmd}' failed" unless @prepare_no_fail end def self.takes_priority_over NPM end def package_management_command 'yarn' end def prepare_command 'yarn install --ignore-engines --ignore-scripts' end private def packages_from_json(json_data) body = json_data['body'] head = json_data['head'] packages = body.map do |json_package| Hash[head.zip(json_package)] end valid_packages = filter_yarn_internal_package(packages) valid_packages.map do |package_hash| YarnPackage.new( package_hash['Name'], package_hash['Version'], spec_licenses: [package_hash['License']], homepage: package_hash['VendorUrl'], authors: package_hash['VendorName'], install_path: project_path.join(modules_folder, package_hash['Name']) ) end end def modules_folder return @modules_folder if @modules_folder stdout, _stderr, status = Cmd.run('yarn config get modules-folder') @modules_folder = 'node_modules' if !status.success? || stdout.strip == 'undefined' @modules_folder ||= stdout.strip end # remove fake package created by yarn [Yarn Bug] def filter_yarn_internal_package(all_packages) internal_package_pattern = /workspace-aggregator-[a-zA-z0-9]{8}-[a-zA-z0-9]{4}-[a-zA-z0-9]{4}-[a-zA-z0-9]{4}-[a-zA-z0-9]{12}/ yarn_internal_package = all_packages.find { |package| internal_package_pattern.match(package['Name']) } all_packages - [yarn_internal_package] end def production_flag return '' if @ignored_groups.nil? @ignored_groups.include?('devDependencies') ? ' --production' : '' end end end gitlab-license-finder-6.14.2.1/lib/license_finder/package_managers/govendor.rb0000644000175100017510000000364314172736724026302 0ustar pravipravi# frozen_string_literal: true require 'license_finder/shared_helpers/common_path' require 'json' module LicenseFinder class Govendor < PackageManager def possible_package_paths [project_path.join('vendor', 'vendor.json')] end def current_packages file = File.read(detected_package_path) packages = packages_from_json(file) packages.map do |package| GoPackage.from_dependency({ 'ImportPath' => package[:path], 'InstallPath' => project_path.join('vendor', package[:path]), 'Rev' => package[:sha] }, nil, true) end end def self.takes_priority_over Go15VendorExperiment end def package_management_command 'govendor' end def prepare_command 'govendor sync' end private def packages_from_json(json_string) data = JSON.parse(json_string) packages = data['package'] packages_by_sha = {} packages_with_no_sha = [] packages.each do |package| package_path = package['origin'] || package['path'] package_revision = package['revision'] if !package_is_versioned?(package) packages_with_no_sha << { sha: '', path: package_path } elsif packages_by_sha[package_revision].nil? packages_by_sha[package_revision] = [package_path] else packages_by_sha[package_revision] << package_path end end result = packages_with_no_sha packages_by_sha.each do |sha, paths| common_paths = CommonPathHelper.longest_common_paths(paths) common_paths.each { |cp| result << { sha: sha, path: cp } } end result end def package_is_versioned?(package) package_revision = package['revision'] !package_revision.nil? && !package_revision.empty? end end end gitlab-license-finder-6.14.2.1/lib/license_finder/package_managers/trash.rb0000644000175100017510000000213214172736724025570 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class Trash < PackageManager class << self def package_management_command 'trash' end def takes_priority_over Go15VendorExperiment end end def prepare_command 'trash' end def possible_package_paths [project_path.join('vendor.conf')] end def current_packages dependencies_path = project_path.join('trash.lock') YAML.load_file(dependencies_path).fetch('import').map do |package_hash| import_path = package_hash.fetch('package') license_path = project_path.join('vendor', import_path) GoPackage.from_dependency({ 'ImportPath' => import_path, 'InstallPath' => license_path, 'Rev' => package_hash.fetch('version'), 'Homepage' => repo_name(import_path) }, nil, true) end end def repo_name(name) name.split('/')[0..2].join('/') end end end gitlab-license-finder-6.14.2.1/lib/license_finder/package_managers/rebar.rb0000644000175100017510000000334614172736724025552 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class Rebar < PackageManager def initialize(options = {}) super @command = options[:rebar_command] || package_management_command @deps_path = Pathname(options[:rebar_deps_dir] || File.join(project_path, '_build/default/lib')) end def current_packages rebar_deps.map do |name, version| licenses, homepage = dep_info(name) RebarPackage.new( name, version, install_path: @deps_path.join(name), homepage: homepage, spec_licenses: licenses.nil? ? [] : [licenses], logger: logger ) end end def package_management_command 'rebar3' end def possible_package_paths [project_path.join('rebar.config')] end private def rebar_deps command = "#{@command} tree" stdout, stderr, status = Dir.chdir(project_path) { Cmd.run(command) } raise "Command '#{command}' failed to execute: #{stderr}" unless status.success? stdout .each_line .reject { |line| line.start_with?('=') || line.include?('project app') } .map do |line| matches = line.match(/(?\w+)─(?[\S.]+)\s*/) [matches[:name], matches[:version]] if matches end.compact end def dep_info(name) command = "#{@command} pkgs #{name}" stdout, _, status = Cmd.run(command) return [nil, nil] unless status.success? licenses = nil homepage = nil stdout.scan(/Licenses: (?.+)|(?(https|http).*)/) do |pkg_licenses, pkg_homepage| licenses ||= pkg_licenses homepage ||= pkg_homepage end [licenses, homepage] end end end gitlab-license-finder-6.14.2.1/lib/license_finder/package_managers/npm.rb0000644000175100017510000000266614172736724025255 0ustar pravipravi# frozen_string_literal: true require 'json' require 'tempfile' module LicenseFinder class NPM < PackageManager def initialize(options = {}) super @npm_options = options[:npm_options] end def current_packages NpmPackage.packages_from_json(npm_json, detected_package_path) end def package_management_command 'npm' end def prepare_command 'npm install --no-save --ignore-scripts' end def possible_package_paths [project_path.join('package.json')] end def prepare prep_cmd = "#{prepare_command}#{production_flag}" _stdout, stderr, status = Dir.chdir(project_path) { Cmd.run(prep_cmd) } return if status.success? log_errors stderr raise "Prepare command '#{prep_cmd}' failed" unless @prepare_no_fail end private def npm_json command = "#{package_management_command} list --json --long#{production_flag}" command += " #{@npm_options}" unless @npm_options.nil? stdout, stderr, status = Dir.chdir(project_path) { Cmd.run(command) } # we can try and continue if we got an exit status 1 - unmet peer dependency raise "Command '#{command}' failed to execute: #{stderr}" if !status.success? && status.exitstatus != 1 JSON.parse(stdout) end def production_flag return '' if @ignored_groups.nil? @ignored_groups.include?('devDependencies') ? ' --production' : '' end end end gitlab-license-finder-6.14.2.1/lib/license_finder/package_managers/erlangmk.rb0000644000175100017510000000275414172736724026261 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class Erlangmk < PackageManager def package_management_command 'make' end def package_management_command_with_path "#{package_management_command} --directory=#{project_path} --no-print-directory" end # The IS_DEP=1 is added because not all erlang.mk-based projects are # updated to a version that is compatible with LicenseFinder def prepare_command "#{package_management_command_with_path} IS_DEP=1 fetch-deps" end def possible_package_paths [ project_path.join('Erlang.mk'), project_path.join('erlang.mk') ] end def current_packages deps.map do |dep| ErlangmkPackage.new(dep) end end private def deps command = "#{package_management_command_with_path} QUERY='name fetch_method repo version absolute_path' query-deps" stdout, stderr, status = Cmd.run(command) if status.success? dep_re = Regexp.new('^\s*DEP') line_re = Regexp.new('^[_a-z0-9]+:') stdout.each_line.map(&:strip).select { |line| !(line.start_with?('make') || line =~ dep_re) && line =~ line_re } elsif stderr.include? "No rule to make target 'query-deps'" # The stderr check happens because not all erlang.mk-based projects are # updated to a version that is compatible with LicenseFinder [] else raise "Command '#{command}' failed to execute: #{stderr}" end end end end gitlab-license-finder-6.14.2.1/lib/license_finder/package_managers/carthage.rb0000644000175100017510000000310114172736724026222 0ustar pravipravi# frozen_string_literal: true require 'json' module LicenseFinder class Carthage < PackageManager class CarthageError < RuntimeError; end def current_packages cartfile.each_line.map do |line| name, version = name_version_from_line line CarthagePackage.new( name, version, license_text(name), logger: logger, install_path: project_checkout(name) ) end end def package_management_command LicenseFinder::Platform.darwin? ? 'carthage' : nil end def possible_package_paths [public_dependency_path] end private def cartfile if File.exist?(resolved_path) @cartfile ||= IO.read(resolved_path) else raise CarthageError, 'No Cartfile.resolved found. Please install your dependencies first.' end end def public_dependency_path project_path.join('Cartfile') end def resolved_path project_path.join('Cartfile.resolved') end def project_checkout(name) project_path.join('Carthage', 'Checkouts', name) end def license_text(name) license_path = license_pattern(name).find { |f| File.exist?(f) } license_path.nil? ? nil : IO.read(license_path) end def license_pattern(name) checkout_path = project_checkout(name) Dir.glob(checkout_path.join('LICENSE*'), File::FNM_CASEFOLD) end def name_version_from_line(cartfile_line) cartfile_line.split(' ')[1, 2].map { |f| f.split('/').last.delete('"').gsub('.git', '') } end end end gitlab-license-finder-6.14.2.1/lib/license_finder/package_managers/gvt.rb0000644000175100017510000000354214172736724025255 0ustar pravipravi# frozen_string_literal: true require 'license_finder/shared_helpers/common_path' module LicenseFinder class Gvt < PackageManager def possible_package_paths potential_path = project_path.join('vendor', 'manifest') [Pathname(potential_path)] end def package_management_command 'gvt' end def prepare_command 'gvt restore' end def current_packages shell_command = "cd #{project_path} && gvt list -f \"{{.Importpath}} {{.Revision}} {{.Repository}}\"" path = project_path.join(project_path, 'vendor') stdout, _stderr, status = Cmd.run(shell_command) return [] unless status.success? packages_from_output(stdout, path) end def self.takes_priority_over Go15VendorExperiment end private def packages_from_output(output, path) package_lines = output.split("\n") packages_by_sha = {} package_lines.each do |p| package_path, sha, repo = p.split if packages_by_sha[sha].nil? packages_by_sha[sha] = {} packages_by_sha[sha]['paths'] = [package_path] packages_by_sha[sha]['repo'] = repo else packages_by_sha[sha]['paths'] << package_path end end result = [] packages_by_sha.each do |sha, info| paths = CommonPathHelper.longest_common_paths(info['paths']) paths.each { |p| result << [sha, p, info['repo']] } end result.map do |package_info| sha, import_path, repo = package_info GoPackage.from_dependency({ 'ImportPath' => import_path, 'InstallPath' => path.join(import_path), 'Rev' => sha, 'Homepage' => repo }, nil, true) end end end end gitlab-license-finder-6.14.2.1/lib/license_finder/package_managers/conda.rb0000644000175100017510000000727614172736724025551 0ustar pravipravi# frozen_string_literal: true require 'json' module LicenseFinder class Conda < PackageManager attr_reader :conda_bash_setup_script def initialize(options = {}) @conda_bash_setup_script = options[:conda_bash_setup_script] || Pathname("#{ENV['HOME']}/miniconda3/etc/profile.d/conda.sh") super end # This command is *not* directly executable. See .conda() below. def prepare_command "conda env create -f #{detected_package_path}" end def prepare return if environment_exists? prep_cmd = prepare_command _stdout, stderr, status = Dir.chdir(project_path) { conda(prep_cmd) } return if status.success? log_errors stderr raise "Prepare command '#{prep_cmd}' failed" unless @prepare_no_fail end def current_packages conda_list.map do |entry| case entry['channel'] when 'pypi' # PyPI is much faster than `conda search`, use it when we can. PipPackage.new(entry['name'], entry['version'], PyPI.definition(entry['name'], entry['version'])) else CondaPackage.new(conda_search_info(entry)) end end.compact end def possible_package_paths [project_path.join('environment.yaml'), project_path.join('environment.yml')] end private def environment_exists? environments.grep(environment_name).any? end def environments command = 'conda env list' stdout, stderr, status = conda command environments = [] if status.success? environments = stdout.split("\n").grep_v(/^#/).map { |line| line.split.first } else log_errors_with_cmd command, stderr end environments end def environment_file detected_package_path end def environment_name @environment_name ||= YAML.load_file(environment_file).fetch('name') end def conda(command) Open3.capture3('bash', '-c', "source #{conda_bash_setup_script} && #{command}") end def activated_conda(command) Open3.capture3('bash', '-c', "source #{conda_bash_setup_script} && conda activate #{environment_name} && #{command}") end # Algorithm is based on # https://bioinformatics.stackexchange.com/a/11226 # but completely recoded in Ruby. Like the poster, if the package is # actually managed by conda, we assume that all the potential infos (for # various architectures, versions of python, etc) have the same license. def conda_list command = 'conda list' stdout, stderr, status = activated_conda(command) if status.success? conda_list = [] stdout.each_line do |line| next if line =~ /^\s*#/ name, version, build, channel = line.split conda_list << { 'name' => name, 'version' => version, 'build' => build, 'channel' => channel } end conda_list else log_errors_with_cmd command, stderr [] end end def conda_search_info(list_entry) command = 'conda search --info --json ' command += "--channel #{list_entry['channel']} " if list_entry['channel'] && !list_entry['channel'].empty? command += "'#{list_entry['name']} #{list_entry['version']}'" # Errors from conda (in --json mode, at least) show up in stdout, not stderr stdout, _stderr, status = activated_conda(command) name = list_entry['name'] if status.success? JSON(stdout).fetch(name).first else log_errors_with_cmd command, stdout list_entry end rescue KeyError logger.info('Conda', "Key error trying to find #{name} in\n#{JSON(stdout)}") list_entry end end end gitlab-license-finder-6.14.2.1/lib/license_finder/package_managers/conan.rb0000644000175100017510000000161114172736724025546 0ustar pravipravi# frozen_string_literal: true require 'license_finder/package_utils/conan_info_parser' module LicenseFinder class Conan < PackageManager def possible_package_paths [project_path.join('conanfile.txt')] end def current_packages install_command = 'conan install .' info_command = 'conan info .' Dir.chdir(project_path) { Cmd.run(install_command) } info_output, _stderr, _status = Dir.chdir(project_path) { Cmd.run(info_command) } info_parser = ConanInfoParser.new deps = info_parser.parse(info_output) deps.map do |dep| name, version = dep['name'].split('@').first.split('/') url = dep['URL'] license_file_path = Dir.glob("#{project_path}/licenses/#{name}/**/LICENSE*").first ConanPackage.new(name, version, File.open(license_file_path).read, url) unless name == 'PROJECT' end.compact end end end gitlab-license-finder-6.14.2.1/lib/license_finder/package_managers/nuget.rb0000644000175100017510000001045614172736724025601 0ustar pravipravi# frozen_string_literal: true require 'rexml/document' require 'zip' module LicenseFinder class Nuget < PackageManager class Assembly attr_reader :name, :path def initialize(path, name) @path = path @name = name end def dependencies xml = REXML::Document.new(File.read(path.join('packages.config'))) packages = REXML::XPath.match(xml, '//package') packages.map do |p| attrs = p.attributes Dependency.new(attrs['id'], attrs['version'], name) end end end Dependency = Struct.new(:name, :version, :assembly) def possible_package_paths path = project_path.join('vendor/*.nupkg') nuget_dir = Dir[path].map { |pkg| File.dirname(pkg) }.uniq # Presence of a .sln is a good indicator for a dotnet solution # cf.: https://docs.microsoft.com/en-us/nuget/tools/cli-ref-restore#remarks path = project_path.join('*.sln') solution_file = Dir[path].first possible_paths = [project_path.join('packages.config'), project_path.join('.nuget')] possible_paths.unshift(Pathname(solution_file)) unless solution_file.nil? possible_paths.unshift(Pathname(nuget_dir.first)) unless nuget_dir.empty? possible_paths end def assemblies Dir.glob(project_path.join('**', 'packages.config'), File::FNM_DOTMATCH).map do |d| path = Pathname.new(d).dirname name = path.basename.to_s Assembly.new path, name end end def current_packages dependencies.each_with_object({}) do |dep, memo| licenses = license_urls(dep) path = Dir.glob("#{Dir.home}/.nuget/packages/#{dep.name.downcase}/#{dep.version}").first memo[dep.name] ||= NugetPackage.new(dep.name, dep.version, spec_licenses: licenses, install_path: path) memo[dep.name].groups << dep.assembly unless memo[dep.name].groups.include? dep.assembly end.values end def license_urls(dep) files = Dir["**/#{dep.name}.#{dep.version}.nupkg"] return nil if files.empty? file = files.first Zip::File.open file do |zipfile| content = zipfile.read(dep.name + '.nuspec') Nuget.nuspec_license_urls(content) end end def dependencies assemblies.flat_map(&:dependencies) end def nuget_binary legacy_vcproj = Dir['**/*.vcproj'].any? if legacy_vcproj '/usr/local/bin/nugetv3.5.0.exe' else '/usr/local/bin/nuget.exe' end end def package_management_command return 'nuget' if LicenseFinder::Platform.windows? "mono #{nuget_binary}" end def prepare Dir.chdir(project_path) do cmd = prepare_command stdout, stderr, status = Cmd.run(cmd) return if status.success? log_errors stderr if stderr.include?('-PackagesDirectory') logger.info cmd, 'trying fallback prepare command', color: :magenta cmd = "#{cmd} -PackagesDirectory /#{Dir.home}/.nuget/packages" stdout, stderr, status = Cmd.run(cmd) return if status.success? log_errors_with_cmd(cmd, stderr) end error_message = "Prepare command '#{cmd}' failed\n#{stderr}" error_message += "\n#{stdout}\n" if !stdout.nil? && !stdout.empty? raise error_message unless @prepare_no_fail end end def prepare_command cmd = package_management_command sln_files = Dir['*.sln'] cmds = [] if sln_files.count > 1 sln_files.each do |sln| cmds << "#{cmd} restore #{sln}" end else cmds << "#{cmd} restore" end cmds.join(' && ') end def installed?(logger = Core.default_logger) _stdout, _stderr, status = Cmd.run(nuget_check) if status.success? logger.debug self.class, 'is installed', color: :green else logger.info self.class, 'is not installed', color: :red end status.success? end def nuget_check return 'where nuget' if LicenseFinder::Platform.windows? "which mono && ls #{nuget_binary}" end def self.nuspec_license_urls(specfile_content) xml = REXML::Document.new(specfile_content) REXML::XPath.match(xml, '//metadata//licenseUrl') .map(&:get_text) .map(&:to_s) end end end gitlab-license-finder-6.14.2.1/lib/license_finder/package_managers/maven.rb0000644000175100017510000000420514172736724025560 0ustar pravipravi# frozen_string_literal: true require 'xmlsimple' require 'license_finder/package_utils/maven_dependency_finder' module LicenseFinder class Maven < PackageManager def initialize(options = {}) super @ignored_groups = options[:ignored_groups] @include_groups = options[:maven_include_groups] @maven_options = options[:maven_options] end def current_packages command = "#{package_management_command} org.codehaus.mojo:license-maven-plugin:download-licenses" command += " -Dlicense.excludedScopes=#{@ignored_groups.to_a.join(',')}" if @ignored_groups && !@ignored_groups.empty? command += " #{@maven_options}" unless @maven_options.nil? _stdout, stderr, status = Dir.chdir(project_path) { Cmd.run(command) } raise "Command '#{command}' failed to execute: #{stderr}" unless status.success? dependencies = MavenDependencyFinder.new(project_path).dependencies packages = dependencies.flat_map do |xml| options = { 'GroupTags' => { 'licenses' => 'license', 'dependencies' => 'dependency' }, 'ForceArray' => %w[license dependency] } contents = XmlSimple.xml_in(xml, options)['dependencies'] contents.map do |dep| MavenPackage.new(dep, logger: logger, include_groups: @include_groups) end end packages.uniq end def package_management_command wrapper = if Platform.windows? 'mvnw.cmd' else './mvnw' end maven = 'mvn' File.exist?(File.join(project_path, wrapper)) ? wrapper : maven end def possible_package_paths [project_path.join('pom.xml')] end def project_root? active? && root_module? end private def root_module? command = "#{package_management_command} help:evaluate -Dexpression=project.parent -q -DforceStdout" stdout, _stderr, status = Dir.chdir(project_path) { Cmd.run(command) } raise "Command '#{command}' failed to execute in #{project_path}: #{stdout}" unless status.success? stdout.include?('null object or invalid expression') end end end gitlab-license-finder-6.14.2.1/lib/license_finder/package_managers/dep.rb0000644000175100017510000000202214172736724025215 0ustar pravipravi# frozen_string_literal: true require 'tomlrb' module LicenseFinder class Dep < PackageManager def possible_package_paths [project_path.join('Gopkg.lock')] end def current_packages toml = Tomlrb.load_file(detected_package_path) projects = toml['projects'] return [] if projects.nil? projects.map do |project| GoPackage.from_dependency({ 'ImportPath' => project['name'], 'InstallPath' => project_path.join('vendor', project['name']), 'Rev' => project['revision'], 'Homepage' => repo_name(project['name']) }, nil, true) end end def repo_name(name) name.split('/')[0..2].join('/') end def self.takes_priority_over Go15VendorExperiment end def prepare_command 'dep ensure -vendor-only' end def package_management_command 'dep' end end end gitlab-license-finder-6.14.2.1/lib/license_finder/diff.rb0000644000175100017510000000270114172736724022111 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class Diff class << self def compare(file1, file2) p1 = Set.new(build_packages(file1)) p2 = Set.new(build_packages(file2)) added = p2.difference(p1).to_a removed = p1.difference(p2).to_a unchanged = p1.intersection(p2).to_a [].tap do |packages| unchanged.each do |package| package_previous = find_package(p1, package) package_current = find_package(p2, package) if package_current.licenses == package_previous.licenses packages << PackageDelta.unchanged(package_current, package_previous) else packages << PackageDelta.removed(package_previous) packages << PackageDelta.added(package_current) end end added.each { |package| packages << PackageDelta.added(package) } removed.each { |package| packages << PackageDelta.removed(package) } end end private def build_packages(content) CSV.parse(content).map do |row| row.map!(&:strip) package = Package.new(row[0], row[1], spec_licenses: [row[2]]) if row.count == 4 MergedPackage.new(package, row[3].split(',')) else package end end end def find_package(set, package) set.find { |p| p.eql? package } end end end end gitlab-license-finder-6.14.2.1/lib/license_finder/decisions_factory.rb0000644000175100017510000000053514172736724024713 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class DecisionsFactory @decisions = {} class << self def decisions(decisions_file_path) @decisions[decisions_file_path] = Decisions.fetch_saved(decisions_file_path) if @decisions[decisions_file_path].nil? @decisions[decisions_file_path] end end end end gitlab-license-finder-6.14.2.1/lib/license_finder/logger.rb0000644000175100017510000000241614172736724022463 0ustar pravipravi# frozen_string_literal: true require 'logger' module LicenseFinder class Logger MODE_QUIET = :quiet MODE_INFO = :info MODE_DEBUG = :debug attr_reader :mode def initialize(mode = nil) @system_logger = ::Logger.new(STDOUT) @system_logger.formatter = proc do |_, _, _, msg| "#{msg}\n" end self.mode = mode || MODE_INFO end [MODE_INFO, MODE_DEBUG].each do |level| define_method level do |prefix, string, options = {}| msg = format('%s: %s', prefix, colorize(string, options[:color])) log(msg, level) end end private attr_reader :system_logger def colorize(string, color) case color when :red "\e[31m#{string}\e[0m" when :green "\e[32m#{string}\e[0m" when :magenta "\e[35m#{string}\e[0m" else string end end def mode=(verbose) @mode = verbose return if quiet? level = @mode.equal?(MODE_DEBUG) ? ::Logger::DEBUG : ::Logger::INFO system_logger.level = level end def log(msg, method) return if quiet? system_logger.send(method, msg) end def debug? @mode.equal?(MODE_DEBUG) end def quiet? @mode.equal?(MODE_QUIET) end end end gitlab-license-finder-6.14.2.1/lib/license_finder/package_delta.rb0000644000175100017510000000215214172736724023745 0ustar pravipravi# frozen_string_literal: true module LicenseFinder class PackageDelta STATUSES = %i[added removed unchanged].freeze def initialize(status, current_package, previous_package) @status = status @current_package = current_package @previous_package = previous_package end def name pick_package.name end def version pick_package.version end def aggregate_paths pick_package.aggregate_paths end attr_reader :status def licenses pick_package.licenses end def merged_package? pick_package.class == MergedPackage end def method_missing(_method_name) nil end def self.added(package) new(:added, package, nil) end def self.removed(package) new(:removed, nil, package) end def self.unchanged(current_package, previous_package) new(:unchanged, current_package, previous_package) end def <=>(other) STATUSES.index(status) <=> STATUSES.index(other.status) end private def pick_package @current_package || @previous_package end end end gitlab-license-finder-6.14.2.1/lib/license_finder.rb0000644000175100017510000000046114172736724021202 0ustar pravipravi# frozen_string_literal: true require 'pathname' require 'yaml' module LicenseFinder ROOT_PATH = Pathname.new(__FILE__).dirname.join('license_finder') BIN_PATH = ROOT_PATH.join('../../bin') end require 'license_finder/shared_helpers/cmd' require 'license_finder/core' require 'license_finder/cli' gitlab-license-finder-6.14.2.1/Dockerfile0000644000175100017510000002320214172736724017126 0ustar pravipraviFROM ubuntu:bionic WORKDIR /tmp # Versioning ENV PIP_INSTALL_VERSION 19.0.2 ENV PIP3_INSTALL_VERSION 20.0.2 ENV GO_LANG_VERSION 1.14.3 ENV MAVEN_VERSION 3.6.0 ENV SBT_VERSION 1.3.3 ENV GRADLE_VERSION 5.6.4 ENV RUBY_VERSION 2.7.1 ENV MIX_VERSION 1.0 ENV COMPOSER_ALLOW_SUPERUSER 1 # programs needed for building RUN apt-get update && apt-get install -y \ build-essential \ curl \ sudo \ unzip \ wget \ gnupg2 \ apt-utils \ software-properties-common \ bzr RUN add-apt-repository ppa:git-core/ppa && apt-get update && apt-get install -y git # nodejs seems to be required for the one of the gems RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - && \ apt-get -y install nodejs # install yarn RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - && \ echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list && \ apt-get update && \ apt-get install yarn # install bower RUN npm install -g bower && \ echo '{ "allow_root": true }' > /root/.bowerrc # install jdk 12 RUN curl -L -o openjdk12.tar.gz https://download.java.net/java/GA/jdk12.0.2/e482c34c86bd4bf8b56c0b35558996b9/10/GPL/openjdk-12.0.2_linux-x64_bin.tar.gz && \ tar xvf openjdk12.tar.gz && \ rm openjdk12.tar.gz && \ sudo mv jdk-12.0.2 /opt/ && \ sudo rm /opt/jdk-12.0.2/lib/src.zip ENV JAVA_HOME=/opt/jdk-12.0.2 ENV PATH=$PATH:$JAVA_HOME/bin RUN java -version # install rebar3 RUN curl -o rebar3 https://s3.amazonaws.com/rebar3/rebar3 && \ sudo chmod +x rebar3 && \ sudo mv rebar3 /usr/local/bin/rebar3 # install and update python and python-pip RUN apt-get install -y python python-pip python3-pip && \ python3 -m pip install pip==$PIP3_INSTALL_VERSION --upgrade && \ python -m pip install pip==$PIP_INSTALL_VERSION --upgrade --force # install maven RUN curl -O https://archive.apache.org/dist/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz && \ tar -xf apache-maven-$MAVEN_VERSION-bin.tar.gz; rm -rf apache-maven-$MAVEN_VERSION-bin.tar.gz && \ mv apache-maven-$MAVEN_VERSION /usr/local/lib/maven && \ ln -s /usr/local/lib/maven/bin/mvn /usr/local/bin/mvn # install sbt RUN mkdir -p /usr/local/share/sbt-launcher-packaging && \ curl --progress \ --retry 3 \ --retry-delay 15 \ --location "https://github.com/sbt/sbt/releases/download/v${SBT_VERSION}/sbt-${SBT_VERSION}.tgz" \ --output "/tmp/sbt-${SBT_VERSION}.tgz" && \ tar -xzf "/tmp/sbt-${SBT_VERSION}.tgz" -C /usr/local/share/sbt-launcher-packaging --strip-components=1 && \ ln -s /usr/local/share/sbt-launcher-packaging/bin/sbt /usr/local/bin/sbt && \ rm -f "/tmp/sbt-${SBT_VERSION}.tgz" # install gradle RUN curl -L -o gradle.zip https://services.gradle.org/distributions/gradle-$GRADLE_VERSION-bin.zip && \ unzip -q gradle.zip && \ rm gradle.zip && \ mv gradle-$GRADLE_VERSION /root/gradle ENV PATH=/root/gradle/bin:$PATH #install go WORKDIR /go RUN wget https://storage.googleapis.com/golang/go$GO_LANG_VERSION.linux-amd64.tar.gz -O go.tar.gz && tar --strip-components=1 -xf go.tar.gz && rm -f go.tar.gz ENV GOROOT /go ENV PATH=$PATH:/go/bin # godep is now required for license_finder to work for project that are still managed with GoDep ENV GOROOT=/go ENV GOPATH=/gopath ENV PATH=$PATH:$GOPATH/bin RUN mkdir /gopath && \ go get github.com/tools/godep && \ go get github.com/FiloSottile/gvt && \ go get github.com/Masterminds/glide && \ go get github.com/kardianos/govendor && \ go get github.com/golang/dep/cmd/dep && \ go get -u github.com/rancher/trash && \ go clean -cache WORKDIR /tmp # Fix the locale RUN apt-get install -y locales RUN locale-gen en_US.UTF-8 ENV LANG=en_US.UTF-8 ENV LANGUAGE=en_US:en ENV LC_ALL=en_US.UTF-8 # install Cargo RUN curl https://sh.rustup.rs -sSf | bash -ls -- -y --profile minimal #install rvm RUN apt-add-repository -y ppa:rael-gc/rvm && \ apt update && apt install -y rvm && \ /usr/share/rvm/bin/rvm install --default $RUBY_VERSION # install bundler RUN bash -lc "gem update --system && gem install bundler" #install mix RUN wget https://packages.erlang-solutions.com/erlang-solutions_${MIX_VERSION}_all.deb && \ sudo dpkg -i erlang-solutions_${MIX_VERSION}_all.deb && \ sudo rm -f erlang-solutions_${MIX_VERSION}_all.deb && \ sudo apt-get update && \ sudo apt-get install -y esl-erlang && \ sudo apt-get install -y elixir # install conan RUN apt-get install -y python-dev && \ pip install --no-cache-dir --ignore-installed six --ignore-installed colorama \ --ignore-installed requests --ignore-installed chardet \ --ignore-installed urllib3 \ --upgrade setuptools && \ pip install --no-cache-dir -Iv conan==1.11.2 && \ conan config install https://github.com/conan-io/conanclientcert.git # install NuGet (w. mono) # https://docs.microsoft.com/en-us/nuget/install-nuget-client-tools#macoslinux RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF &&\ echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list &&\ apt-get update &&\ apt-get install -y mono-complete &&\ curl -o "/usr/local/bin/nuget.exe" "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe" &&\ curl -o "/usr/local/bin/nugetv3.5.0.exe" "https://dist.nuget.org/win-x86-commandline/v3.5.0/nuget.exe" # install dotnet core RUN wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb &&\ sudo dpkg -i packages-microsoft-prod.deb &&\ rm packages-microsoft-prod.deb &&\ sudo apt-get update &&\ sudo apt-get install -y dotnet-runtime-2.1 dotnet-sdk-2.1 dotnet-sdk-2.2 dotnet-sdk-3.0 dotnet-sdk-3.1 # install Composer # The ARG and ENV are for installing tzdata which is part of this installaion. # https://serverfault.com/questions/949991/how-to-install-tzdata-on-a-ubuntu-docker-image ENV TZ=GMT RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 4F4EA0AAE5267A6C &&\ echo "deb http://ppa.launchpad.net/ondrej/php/ubuntu bionic main" | sudo tee /etc/apt/sources.list.d/php.list &&\ apt-get update &&\ export DEBIAN_FRONTEND=noninteractive &&\ apt-get install -y php7.4-cli &&\ EXPECTED_COMPOSER_INSTALLER_CHECKSUM="$(curl --silent https://composer.github.io/installer.sig)" &&\ php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" &&\ ACTUAL_COMPOSER_INSTALLER_CHECKSUM="$(php -r "echo hash_file('sha384', 'composer-setup.php');")" &&\ test "${ACTUAL_COMPOSER_INSTALLER_CHECKSUM}" = "${EXPECTED_COMPOSER_INSTALLER_CHECKSUM}" || (echo "ERROR: Invalid installer checksum" >&2; false) &&\ php composer-setup.php &&\ php -r "unlink('composer-setup.php');" &&\ mv composer.phar /usr/bin/composer # install miniconda # See https://docs.conda.io/en/latest/miniconda_hashes.html # for latest versions and SHAs. RUN \ conda_installer=Miniconda3-py38_4.9.2-Linux-x86_64.sh &&\ ref='1314b90489f154602fd794accfc90446111514a5a72fe1f71ab83e07de9504a7' &&\ wget -q https://repo.anaconda.com/miniconda/${conda_installer} &&\ sha=`openssl sha256 "${conda_installer}" | cut -d' ' -f2` &&\ ([ "$sha" = "${ref}" ] || (echo "Verification failed: ${sha} != ${ref}"; false)) &&\ (echo; echo "yes") | sh "${conda_installer}" # install Swift Package Manager # Based on https://github.com/apple/swift-docker/blob/main/5.3/ubuntu/18.04/Dockerfile # The GPG download steps has been modified. Keys are now on LF repo and copied instaad of downloaded. # Refer to https://swift.org/download/#using-downloads in the Linux section on how to download the keys RUN apt-get -q install -y \ libatomic1 \ libcurl4 \ libxml2 \ libedit2 \ libsqlite3-0 \ libc6-dev \ binutils \ libgcc-5-dev \ libstdc++-5-dev \ zlib1g-dev \ libpython2.7 \ tzdata \ git \ pkg-config \ && rm -r /var/lib/apt/lists/* # pub 4096R/ED3D1561 2019-03-22 [SC] [expires: 2023-03-23] # Key fingerprint = A62A E125 BBBF BB96 A6E0 42EC 925C C1CC ED3D 1561 # uid Swift 5.x Release Signing Key :development ``` This approach helps you remember to install `license_finder`, but can pull in unwanted dependencies, including `bundler`. To mitigate this problem, see [Excluding Dependencies](#excluding-dependencies). ## Usage Make sure your dependencies are installed (with your package manager's install command: `bundle install`, `npm install`, etc.) The first time you run `license_finder` it will list all your project's packages. ```sh $ license_finder ``` Or, if you installed with bundler: ```sh $ bundle exec license_finder ``` The output will report that none of your packages have been approved. Over time you will tell `license_finder` which packages are approved, so when you run this command in the future, it will report current action items; i.e., packages that are new or have never been approved. If you don't wish to see progressive output "dots", use the `--quiet` option. If you'd like to see debugging output, use the `--debug` option. `license_finder` will then output info about packages, their dependencies, and where and how each license was discovered. This can be useful when you need to track down an unexpected package or license. If you do not want to manually run an individual package manager's prepare command (ex: `bundle install`, `npm install`, etc) to ensure your project is fully prepared to be scanned, use the `--prepare` or `-p` option which will run each active package manager's prepare command for you. If you would like to continue running `license_finder` even if there is an issue with a prepare step, use the `--prepare-no-fail` option which prepares but carries on despite any potential failures. Run `license_finder help` to see other available commands, and `license_finder help [COMMAND]` for detailed help on a specific command. ### Docker If you have docker installed, try using the included `dlf` script (potentially symlinked to be in your path via `ln -s LicenseFinder/dlf /usr/local/bin` or whatever method you prefer). This will run any commands passed to it inside a pre-provisioned Docker container to maintain consistent versions of all the package managers. For example, ``` $ dlf npm --version 5.3.0 $ dlf license_finder --help Dependencies that need approval: ... license_finder, 3.0.3, MIT $ dlf "bundle install && license_finder" ``` You can better understand the way this script works by looking at its source, but for reference it will mount your current directory at the path `/scan` and run any commands passed to it from that directory. Note that the docker image will run the gem which is installed within it. So the docker image tagged `4.0.2` will run *License Finder Version 4.0.2* See the [contributing guide](https://github.com/pivotal/LicenseFinder/blob/master/CONTRIBUTING.md) for information on development. ### Activation `license_finder` will find and include packages for all supported languages, as long as that language has a package definition in the project directory: * `Gemfile` (for `bundler`) * `requirements.txt` (for `pip`) * `package.json` (for `npm`) * `pom.xml` (for `maven`) * `build.gradle` (for `gradle`) * `settings.gradle` that specifies `rootProject.buildFileName` (for `gradle`) * `bower.json` (for `bower`) * `Podfile` (for `pod`) * `Cartfile` (for `carthage`) * `workspace-state.json` under build directory (provided as enviroment variable `SPM_DERIVED_DATA` for Xcode, or default `.build` for non-Xcode projects), (for `spm`) * `rebar.config` (for `rebar`) * `Erlang.mk` or `erlang.mk` file (for `Erlang.mk`) * `mix.exs` (for `mix`) * `packages/` directory (for `nuget`) * `*.csproj` (for `dotnet`) * `vendor/manifest` or `*/vendor/manifest` file (for `gvt`) * `glide.lock` file (for `glide`) * `vendor/vendor.json` file (for `govendor`) * `Gopkg.lock` file (for `dep`) * `go.mod` file (for `go mod`) * `vendor.conf` file (for `trash`) * `yarn.lock` file (for `yarn`) * `conanfile.txt` file (for `conan`) * `build.sbt` file (for `sbt`) * `Cargo.lock` file (for `cargo`) * `composer.lock` file (for `composer`) ### Continuous Integration `license_finder` will return a non-zero exit status if there are unapproved dependencies. This can be useful for inclusion in a CI environment to alert you if someone adds an unapproved dependency to the project. ## Approving Dependencies `license_finder` will inform you whenever you have an unapproved dependency. If your business decides this is an acceptable risk, the easiest way to approve the dependency is by running `license_finder approvals add`. For example, let's assume you've added the `awesome_gpl_gem` to your Gemfile, which `license_finder` reports is unapproved: ```sh $ license_finder Dependencies that need approval: awesome_gpl_gem, 1.0.0, GPL ``` Your business tells you that in this case, it's acceptable to use this gem. You now run: ```sh $ license_finder approvals add awesome_gpl_gem ``` If you rerun `license_finder`, you should no longer see `awesome_gpl_gem` in the output. To approve specific version ```sh $ license_finder approvals add awesome_gpl_gem --version=1.0.0 ``` To record who approved the dependency and why: ```sh $ license_finder approvals add awesome_gpl_gem --who CTO --why "Go ahead" ``` ### Permitting Licenses Approving packages one-by-one can be tedious. Usually your business has blanket policies about which packages are approved. To tell `license_finder` that any package with the MIT license should be approved, run: ``` sh $ license_finder permitted_licenses add MIT ``` Any current or future packages with the MIT license will be excluded from the output of `license_finder`. You can also record `--who` and `--why` when changing permitted licenses, or making any other decision about your project. ## Output and Artifacts ### Decisions file Any decisions you make about approvals will be recorded in a YAML file named `doc/dependency_decisions.yml`. This file must be committed to version control. Rarely, you will have to manually resolve conflicts in it. In this situation, keep in mind that each decision has an associated timestamp, and the decisions are processed top-to-bottom, with later decisions overwriting or appending to earlier decisions. ### Output from `action_items` You could expect `license_finder`, which is an alias for `license_finder action_items` to output something like the following on a Rails project where MIT had been permitted: ``` Dependencies that need approval: highline, 1.6.14, ruby json, 1.7.5, ruby mime-types, 1.19, ruby rails, 3.2.8, unknown rdoc, 3.12, unknown rubyzip, 0.9.9, ruby xml-simple, 1.1.1, unknown ``` You can customize the format of the output in the same way that you customize [output from `report`](#output-from-report). ### Output from `project_roots` The `license_finder project_roots` command will output the current working directory as a string in an array. Using the `--recursive` option means the array will include subdirectories that contain a known package manager. With the exception that Gradle and Maven subprojects will not be included. ### Output from `report` The `license_finder report` command will output human-readable reports that you could send to your non-technical business partners, lawyers, etc. You can choose the format of the report (text, csv, html or markdown); see `license_finder --help report` for details. The output is sent to STDOUT, so you can save the reports wherever you want them. You can commit them to version control if you like. The HTML report generated by `license_finder report --format html` summarizes all of your project's dependencies and includes information about which need to be approved. The project name at the top of the report can be set with `license_finder project_name add`. ### Note: When using the yarn package manager, when a node_module's package.json doesn't explicitly declare a license, yarn indicates that it has inferred the license based on some keywords in other files by appending an asterisk to the license name. If you see a * at the end of the license name, this is intended. See [CONTRIBUTING.md](https://github.com/pivotal/LicenseFinder/blob/master/CONTRIBUTING.md#adding-reports) for advice about adding and customizing reports. ## Manual Intervention ### Setting Licenses When `license_finder` reports that a dependency's license is 'unknown', you should manually research what the actual license is. When you have established the real license, you can record it with: ```sh $ license_finder licenses add my_unknown_dependency MIT --homepage="www.unknown-code.org" ``` This command would assign the MIT license to the dependency `my_unknown_dependency`. It will also set its homepage to `www.unknown-code.org`. ### Adding Hidden Dependencies `license_finder` can track dependencies that your package managers don't know about (JS libraries that don't appear in your Gemfile/requirements.txt/package.json, etc.) ```sh $ license_finder dependencies add my_js_dep MIT 0.1.2 ``` Run `license_finder dependencies help` for additional documentation about managing these dependencies. `license_finder` cannot automatically detect when one of these dependencies has been removed from your project, so you can use: ```sh $ license_finder dependencies remove my_js_dep ``` ### Excluding Dependencies Sometimes a project will have development or test dependencies which you don't want to track. You can exclude theses dependencies by running `license_finder ignored_groups`. (Currently this only works for packages managed by Bundler, NPM, Yarn, Maven, Pip2, Pip3, and Nuget.) On rare occasions a package manager will report an individual dependency that you want to exclude from all reports, even though it is approved. You can exclude an individual dependency by running `license_finder ignored_dependencies`. Think carefully before adding dependencies to this list. A likely item to exclude is `bundler`, since it is a common dependency whose version changes from machine to machine. Adding it to the `ignored_dependencies` would prevent it (and its oscillating versions) from appearing in reports. ### Restricting Licenses Some projects will have a list of licenses that cannot be used. You can restrict these licenses with `license_finder restricted_licenses add`. Any dependency that has exclusively restricted licenses will always appear in the action items, even if someone attempts to manually approve or permit it. However, if a dependency has even one license that is not restricted, it can still be manually approved or permitted. ## Decision inheritance Add or remove decision files you want to inherit from - see `license_finder inherited_decisions help` for more information. This allows you to have a centralized decision file for approved/restricted licenses. If you have multiple projects it's way easier to have one single place where you approved or restricted licenses defined. Add one or more decision files to the inherited decisions ```bash license_finder inherited_decisions add DECISION_FILE ``` Remove one or more decision files from the inherited decisions ```bash license_finder inherited_decisions remove DECISION_FILE ``` List all the inherited decision files ```bash license_finder inherited_decisions list ``` ## Configuration Be default, `license_finder` expects the decisions file to be stored at `doc/dependency_decisions.yml`. All commands can be passed `--decisions_file` to override this location. ### Package Manager Configuration If you have a gradle project, you can invoke gradle with a custom script by passing (for example) `--gradle_command gradlew` to `license_finder` or `license_finder report`. Similarly you can invoke a custom rebar script with `--rebar_command rebar`. If you store rebar dependencies in a custom directory (by setting `deps_dir` in `rebar.config`), set `--rebar_deps_dir`. You can also invoke a custom Mix script `remix` with `--mix_command remix` and set `--mix_deps_dir` to fetch Mix dependencies from a custom directory. ### Narrow down Package Manager By default, license_finder will check for all supported package managers, but you can narrow it down to use only those you pass to `--enabled-package-managers`. For example, ``` $ license_finder --enabled-package-managers bundler npm ``` ### Saving Configuration It may be difficult to remember to pass command line options to every command. In some of these cases you can store default values in a YAML formatted config file. `license_finder` looks for this file in `config/license_finder.yml`. As an example, the file might look like this: ```yaml --- decisions_file: './some_path/decisions.yml' gradle_command: './gradlew' rebar_command: './rebarw' rebar_deps_dir: './rebar_deps' mix_command: './mixw' mix_deps_dir: './mix_deps' enabled_package_managers: - bundler - gradle - rebar - mix ``` ### Gradle Projects `license_finder` supports both Gradle 1.x and Gradle 2.x. You need to have installed the license-gradle-plugin in your project: [https://github.com/hierynomus/license-gradle-plugin](https://github.com/hierynomus/license-gradle-plugin) By default, `license_finder` will report on Gradle's "runtime" dependencies. If you want to generate a report for some other dependency configuration (e.g. Android projects will sometimes specify their meaningful dependencies in the "compile" group), you can specify it in your project's `build.gradle`: ``` // Must come *after* applying the appropriate plugin from [https://github.com/hierynomus/license-gradle-plugin](https://github.com/hierynomus/license-gradle-plugin) downloadLicenses { dependencyConfiguration "compile" } ``` ### Conan Projects `license_finder` supports Conan. You need to have the following lines in your conanfile.txt for `license_finder` to retrieve dependencies' licenses. Ensure that `conan install` does not generate an error. ``` [imports] ., license* -> ./licenses @ folder=True, ignore_case=True ``` ### SBT Projects `license_finder` supports SBT. You need to have installed the sbt-license-report in your project: [https://github.com/sbt/sbt-license-report](https://github.com/sbt/sbt-license-report) By default, `license_finder` will report on SBT's "compile" and "test" dependencies. If you want to generate a report for some other dependency configuration, you can specify it in your projects's `build.sbt` ``` licenseConfigurations := Set("compile", "provided") ``` ## Requirements `license_finder` requires ruby >= 1.9.3, or jruby. ## Upgrading To upgrade to `license_finder` version >= 6.0, you have to replace the terminology `whitelist` with `permit` and `blacklist` with `restrict` in your `dependency_decisions.yml`. See [Changelog](https://github.com/pivotal/LicenseFinder/blob/master/CHANGELOG.md#600--2020-01-22) for more details. To upgrade from `license_finder` version 1.2 to 2.0, see [`license_finder_upgrade`](https://github.com/mainej/license_finder_upgrade). To upgrade to 2.0 from a version lower than 1.2, first upgrade to 1.2, and run `license_finder` at least once. This will ensure that the `license_finder` database is in a state which `license_finder_upgrade` understands. ## A Plea to Package Authors and Maintainers Please add a license to your package specs! Most packaging systems allow for the specification of one or more licenses. For example, Ruby Gems can specify a license by name: ```ruby Gem::Specification.new do |s| s.name = "my_great_gem" s.license = "MIT" end ``` And save a `LICENSE` file which contains your license text in your repo. ## Known issues with specific package managers * Bundler * When using `--project-path`, Bundler cannot find the Gemfile. * Yarn * A module that is incompatible with the platform on which license_finder is run will always be reported to have a license type of "unknown". ([#456](https://github.com/pivotal/LicenseFinder/issues/456)) ## Support * Send an email to the list: [license-finder@googlegroups.com](license-finder@googlegroups.com) * View the project backlog at Pivotal Tracker: [https://www.pivotaltracker.com/n/projects/234851](https://www.pivotaltracker.com/n/projects/234851) ## Contributing See [CONTRIBUTING.md](https://github.com/pivotal/LicenseFinder/blob/master/CONTRIBUTING.md). ## License LicenseFinder is released under the MIT License. http://www.opensource.org/licenses/mit-license gitlab-license-finder-6.14.2.1/dlf0000755000175100017510000000057414172736724015636 0ustar pravipravi#!/bin/bash if `which docker > /dev/null`; then if [ $# -eq 0 ]; then docker run -v $PWD:/scan -it licensefinder/license_finder else docker run -v $PWD:/scan -it licensefinder/license_finder /bin/bash -lc "cd /scan && `echo $@`" fi else echo "You do not have docker installed. Please install it:" echo " https://docs.docker.com/engine/installation/" exit 1 fi gitlab-license-finder-6.14.2.1/license_finder.gemspec0000644000175100017510000000461314172736724021457 0ustar pravipravi# frozen_string_literal: true version = File.read(File.expand_path('VERSION', __dir__)).strip Gem::Specification.new do |s| s.required_ruby_version = '>= 2.3.3' s.name = 'gitlab-license_finder' s.version = version s.authors = [ 'Ryan Collins', 'Daniil Kouznetsov', 'Andy Shen', 'Shane Lattanzio', 'Li Sheng Tai', 'Vlad vassilovski', 'Jacob Maine', 'Matthew Kane Parker', 'Ian Lesperance', 'David Edwards', 'Paul Meskers', 'Brent Wheeldon', 'Trevor John', 'David Tengdin', 'William Ramsey', 'David Dening', 'Geoff Pleiss', 'Mike Chinigo', 'Mike Dalessio', 'Jeff Jun' ] s.email = ['labs-commoncode@pivotal.io'] s.homepage = 'https://github.com/pivotal/LicenseFinder' s.summary = "Audit the OSS licenses of your application's dependencies." s.description = <<-DESCRIPTION LicenseFinder works with your package managers to find dependencies, detect the licenses of the packages in them, compare those licenses against a user-defined list of permitted licenses, and give you an actionable exception report. DESCRIPTION s.license = 'MIT' s.add_dependency 'bundler' s.add_dependency 'rubyzip', '>=1', '<3' s.add_dependency 'thor', '~> 1.0' s.add_dependency 'tomlrb', '>= 1.3', '< 2.1' s.add_dependency 'with_env', '1.1.0' s.add_dependency 'xml-simple', '~> 1.1.5' s.add_development_dependency 'addressable', '2.8.0' s.add_development_dependency 'capybara', '~> 3.15.0' s.add_development_dependency 'cocoapods', '>= 1.0.0' if RUBY_PLATFORM =~ /darwin/ s.add_development_dependency 'fakefs', '~> 1.2.0' s.add_development_dependency 'mime-types', '3.3.1' s.add_development_dependency 'pry', '~> 0.14.0' s.add_development_dependency 'rake', '~> 13.0.1' s.add_development_dependency 'rspec', '~> 3' s.add_development_dependency 'rspec-its', '~> 1.3.0' s.add_development_dependency 'rubocop', '~> 0.81.0' s.add_development_dependency 'rubocop-performance', '~> 1.5.0' s.add_development_dependency 'webmock', '~> 3.5' s.add_development_dependency 'nokogiri', '~>1.10' s.add_development_dependency 'rack', '~> 2.2.2' s.add_development_dependency 'rack-test', '~> 1.1.0', '> 0.7' s.files = `git ls-files`.split("\n").reject { |f| f.start_with?('spec', 'features') } s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) } end gitlab-license-finder-6.14.2.1/swift-all-keys.asc0000644000175100017510000003224114172736724020502 0ustar pravipravi-----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v2.0.14 (GNU/Linux) mQINBFZNNIwBEADNFSwCfUUyXZujWzQCqYLlvRwZkuMUcJQH4NRwC/an9KwilFrz pf/+atZFSciMx5R9vOG2odWbwBYU7t8XEd/NYCgyTwMNxAFkuaN1E0b/3mOWwbT5 91HziQNy0jDUlM28370pyv0rBTHvPbBQlo7BxJbwQXL3rs3KObAnhTG51aLztGds OTxZDdpNY07dPGKJevP61l35yZI40tUmCKn/z4sLmX+DoUUplA35SMRnvQjd/pGF 9BTAFzLfsbN0caBixy++0ZIyK9ep1dezhqisUndE/rNk8KPNAM5zeFA1onzEEGFc gk4iZ0N/S7dVb7N4Uhn8C/87E9yUkrzO0Kl+p2zumORiqIvkv9vtHMaKa6rBP/vI iG02eiLmaWdDkg7afpJjnC6WrrJoBe/lbDAYrbD5eR4KGHdxMtAdh0sYZrZR8T4m gI6alC8PjYY22wiNLeekATobDu5JVQna0525L57gpbLOhSjXk/69HHw/l7d/e6br 35rmMYGJd/9Q1w/4gMo8tX5m1WaoQxac4tZs8bBRKNP7YJkHmwfVG21h0KA91yFA l1BMe9U+gomfqRoBCRXGDl1mHmyGqu59JjpYEP04Xu2dLCu8yt/HHYirMdsKIvHT WKm6EvuQ4vFTQbPcdrMltL9yf8xG8EL0oDIbaSAnHI+sY+C30i0S557G3wARAQAB tD9Td2lmdCBBdXRvbWF0aWMgU2lnbmluZyBLZXkgIzEgPHN3aWZ0LWluZnJhc3Ry dWN0dXJlQHN3aWZ0Lm9yZz6JAj0EEwEKACcFAlZNNIwCGwMFCQPCZwAFCwkIBwMF FQoJCAsFFgIDAQACHgECF4AACgkQ1EHJd0ErN63tFA/+N3ANSFFc2FcdimzisPOv wBL8xSxQxUdsdELsht6WLh3buTunlIO36Ubo980hXyf6oxsfvMrDsn1eve28cpks SXZxLpfQm96753mWICz1WJcoUv1EXpFKuqxb3OJXu6di11NQEtFNd9rM4x7MJQja ICr5WXxzX0ObEUxY6xTjMlUyHkmR9ekEEPZUdrwpRFC847bV35vdCtMRztghecBH tHMhTEbuYxpjBZ0hqIkLzDAiWenqca2P9YD2sgntTJFfZ3V/oi/REFxj5v5BmNQ2 wCyppoWDyD+oWJyh5dwuOc+xlYboN5EtIkuhS7/ZuvQipZpeJD7w4pkPO7l2Twal aHulJJV5f40gpIniullTC/I6P9HIp94wZ+UPm3/9M4AiO0oB0x4uk+buA7nCZ5Oi BaZKwO8nMFQBEaNuqKz+xLeokum3Alcwx3drwi0TlBX+GafrFFHwhdwDGuQsWpGT vNl6LEBNduPvs57382W13aiYT/p470M/RuTt6qpLyLVsWmGO5oh8mm/WWGDzza6Q 2NuUBcs2ZCECvRlEt//689elx7VDbJwE6Mw3V8bosGx8y4XcQYATFqxm7WflbBpo 5HR9AST2Noc6g4VPepZSgi0T4lRbIsyLml7kIvOQBre4i36br0VLIUairez1mqpm sG3P11076R+g/BcL4hg9jXE= =ONEK -----END PGP PUBLIC KEY BLOCK----- -----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v2 mQINBFZZS3oBEACbRmmzVwF/Zf/zGEZTGXWzeCjwmYcvCx/aqklIWRFC/PPRwZ53 rNgeVpEHNu31duF3JCEX/7fL9rmjnW0C2mQCzkvKF+rZNO+jPL/0/fsjVfnSXx+g m9yVyPmR0XvR0Kk5PqjR8XH/syNblnCo16fr7YK/JMrGM9E/d+UomomXKALbgebX oO0c8eA2Vij4b2BAFr+L54MTzquKqyEru9Ty2PTcIBxcEYqko8i3Ttej6WVMKphW J9QNaeVF9mfHuA7zpFlwtfFOrUnA2Qh6IwT+w7o941q4TpzYNVlcR3IV2P51CZrG zQAGRvWWmg5yswhyTEJpt0i4eLoqeJrcNZRT8FQjmcXgtdPvSFkJPi39e5LrT23M /W5tHvnldFDd4RYQmoO3XcIJzyEe6yXNrcaTT386m2e+cjA0SwZ7l6kHVhMikaS3 FWccQ9VgWqLHZPd0f9oKdXbMMoIZs0D3F4hoz4oE6xkntEhw3Z3cVrKGpYuhJOKQ yPoCaNEpnT9qaTU8BmG/ToUWXZDuhm3FOAOEOOtFFChfy/0+9HnS6Q2aogYuD++o 6XNSFCwONIRnoHyIRjCA8ce/GNsxpBp7bjUDGLoQJzmki4O/lyxMxS5k0Z4mjLS+ xZo6OLt8LW5/w3YJUEU6PM88GhA1c3dm+U4mV3oW0QL0WG0b1tSxhLHf+wARAQAB tD5Td2lmdCAyLjIgUmVsZWFzZSBTaWduaW5nIEtleSA8c3dpZnQtaW5mcmFzdHJ1 Y3R1cmVAc3dpZnQub3JnPokCPQQTAQoAJwUCVllLegIbAwUJA8JnAAULCQgHAwUV CgkICwUWAgMBAAIeAQIXgAAKCRCfWX9NIaVtX/L3D/9NJVFh9tBYgzwtbhgHTVxq U3VKeKUIvvWxETtaYmKsL8BPBwVM2IHDPyiOGczxe7RbpNszoIY/EBKNsI7yOnon qrMebQVpzV0wK2WwfHKnXYXXFeWADapwBGEcST7WNwX+la/oJOQtBZpMbBHDia4C g7EENIdeWDRHxzl785PSlAOERvaKsPlFk3bolQl/Vhy5YZIe4Mt9KN5LZ2E+xz3Q DDplOTi3I2df9Maf9UOxrS7zk2NvHw+5YeqNs7cqp++mjIRQ7/M+PGPx7PZMttBk Y7sIn1m3uSZkK2nEWZ91b3pZdr3Sff2Ig1H+ConUqy9w0CqGSqCmY/6QP05J4kpv ga1uNmKRJdv/pGHfTaoZ+dubm4+UzGpfzHdEhvmm4gC/+kU+nq5BuhvzO7iWKk0o kZOKT642WSsp7TYKp96sMh2xeUbYl/eAHi8nQfGuYeo6n1NaUMtwb8jYusTuISuW yWRSKaUanjjKGkl9LTpODWLkXHmqGJhp9l61AQ3fKDQgXuKuglWBfsZOhDRl+oYr Q22LzpSd4ISG/gXN3X4ADeuWJpe8d+nvpc6KtuShgRT+KeqrE9BcXfDdEk56I0Xx +eGb1v4f4nibyiCvw/mBDCRMIqOsc/jyqA9lydLMxv/Us7KNYqh/Dzx7obfRUE6L 2S6Hfx8PaYq16WXdxd/PBg== =5r2z -----END PGP PUBLIC KEY BLOCK----- -----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v2 mQINBFdM2VsBEAC63xLZsLc7HBbJ1V7ak8dGNSDs2ibcaMKAuWU916UWjFX+KlZE 8ruOVTol1KvA0cac6CX+Fd5SMirpxAaEUbYMwVEMzxOG7NhBp0wAJiO3LWsVoL4z G7wIpdPzjxP32qUABpF0Z8uo5zhQL6uaWtmKIhlBlzUmhbxYFzGUuCO8Y94hCH5A 9l5Oedin3D3/v2T60/B2rygmQ1fC372Peg6m0dR8PCp42Jm+VXjgF4yfGyP4MJPO c1gq8AWNQ4Ex1qhQ9E/Mhbn88LvUQ+OO5u3iNw7AflBuvLaLy7VbD+pGpoGv3EdJ LsDJg3dU4F9Ii2hLAD5Sushtjx6DwwFJvKFsm7QzG7OTQB0rC9Gtw/MpopafFI0e Wo/6xmXnw9GQQ6uS8RoVri6Lfp4IpXdLZ3CMxBeJulmUpBdIFK+/SnyMfYW88tzx DbEFpXa6SaksSXjAXuXhUu+h37YdIfWcbE0KUXH848RcRPnTUOBwsqE2UzLQjF3A aPV7YIQxNNp0mUsRE+9R6yGhSog77jsu5XusswYEOfSU9p/bkQd5kJ5acTyHDU8A +q/+O2T6aZqIFOhgXFiRj2TDGlqj4K+LUycpMWzPgn+KWKNnWgbJH1u3xXPnOZjT 0i1Vm2umWd7OxzThSvlPGlvRLwPKWhdeFL37M3Bg3og1P5TgP7j4HT6Q2QARAQAB tD5Td2lmdCAzLnggUmVsZWFzZSBTaWduaW5nIEtleSA8c3dpZnQtaW5mcmFzdHJ1 Y3R1cmVAc3dpZnQub3JnPokCPQQTAQoAJwUCV0zZWwIbAwUJA8JnAAULCQgHAwUV CgkICwUWAgMBAAIeAQIXgAAKCRBjvBz+kdMGxjBhD/9RUFlNP0cG6RJPl51mPCtO YMW/y5ssYyWi6u8q44Ccqit4EKjXUaeha4KSWQS9c+7q8bbfxbtl6AEsI+fxx3RA mYMjXfPnpjxqJLvwXOzAmG8bZzycdKiC1XBINR3e/Jw4Zu/yj/GtWSG2+OogFfNH n5Gg43B8D/fdqQkvlFXVuM0kMKPmAc+S1ikBvprpyjya47EKx5rWSf7pl/gm4jBE dBrWdpaBicOQmuv+Vr59rj2/UCWdD/dZRtwB66qn/AIZIgEOLyW2s/Mu9VK5zoNs oUZhRpe9t3eH59KbKvU+JdADMhBnUe3r4/HkSbHmPoML56g8RQV4T3LZa2sMt9Z3 UC7WFr3VfPxXHpI9BhY8HJvaB4ML6PvYuXHP7TYkrSQ9FMoxjHcwEE7cga8BzAHu MxCuGrPryHRyApdFOh6oTts8/bjn+sb0VVvnAjFsAjDcBF18s5aI58eGLzLBgRnZ jyGvZ20h+I0JE3vDydi3rVEBm/fgkUwTtBuEG/mIwIea9QEcMkv5dq1aYheav1NZ Amqr2BsSl8PufUdfGgMKjMIR6Sv40mhTCUFSL1TG8OsaOecK7XXEjcpaQjCg1lqj hL04ayrZehJzuiP30htRdbrFraDr/WQOPW3VqE0DtjVfaH7AARKLp/HRDOd5hiUU RBrjB1unJxVpnKg4t0El0g== =ssEv -----END PGP PUBLIC KEY BLOCK----- -----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v2 mQINBFlAigEBEACbGsfWe5nCOFrYSpz6oPh9ihq0RZQlktSz7E3Ou0cwSNqOnGRO s6z5pyPYlJgpvvaxsKcBS6R4DFq4/30Aut4Jj4T2qa0BXZqqrHrXyM8ucmpPpF0T jcRJAQZg/Rj8AhelYtcNKml/j8b9n8p14K+u+Zp0SudaNxLdxIbr94eEEDd/ecH/ caGspqPuJjBanQNTzV9ws8ft7NLCdWnSvh5aiZrsWIrFfFxQm8zh9kCim2e3QX+p wufMDIKH/uEaOlinVCmFJNXGqpeyRjrile+r6Bd8fJiFLFtUeIiCdyxD4nrV+iLx ZAc6boVeSXdawPpX/eyXeH7NhpEofFz02W1EAoNFKgzdoEi6CBaA9P9Jrk/wRZuH vR+Mzbuu5aXDwDCjhtFu2Mm3bmN5pt3xuYCYoCgOp1wEld+szMfSjQNNJfUkFwzU eaHuaofXHQxuQ/uIEh8cr8/GEYtqGOU82T1raj3Sv1GcUfj5RO9k2rI7hWro8Hzc oXjLTDfABSZJrsuDLrzMUDOSKb+R3rf7uDYf/bTWkpLwSvrJRQaMXkQm70WWBFF0 A75HxFBi8/9f35azYlFfCi0cEHAAHm0wdxU/D9b6TV/9zDedbgFl+/8xMBQiOX1r WfQrXA7zONhZpc+to5tyzrV57+Q4buKQUibyYut/7Gl1FbVaD4LvAUpbqwARAQAB tD5Td2lmdCA0LnggUmVsZWFzZSBTaWduaW5nIEtleSA8c3dpZnQtaW5mcmFzdHJ1 Y3R1cmVAc3dpZnQub3JnPokCPQQTAQoAJwUCWUCKAQIbAwUJA8JnAAULCQgHAwUV CgkICwUWAgMBAAIeAQIXgAAKCRDvVDDwceGyNQE4D/4jyvkwjMzp3KSZKTMvcalT JPmc4rkpqc1b3VJCTpG/QRK9faJAbUVBz+iJBRIA7OjsjW9nS+oEkschjs7mjdiA U3XxtJMsZSJiO6TRdstJg0i2jT1yhQ7zuf8xeFEpx0Ekya05mYHiz3LdS2TZJcZZ D713M1GFsb+bDRGk18nVvlUIDB+9jIoqLgXf3muzHUmF0VF1HHfjB5zHfd9h6P+n DG5e/qA1MA6jaoGcHK31qoqvrLvoDMYlo6Nirq5Gsjf8rNTwij2GM1tNP8BIn2Y2 5rgQ+UbZ3dUE+2KgUg+cqNtZPe0szHOInUew/Kq4ogRWgSWw/NbR+W5J5Ro9pCFJ pJaLBhCDQ35CIfcp5Mn2qSr0UW+7U4wfsoI4Oui5/dRx4iXFLD2LRlQuLTe0vRDK N6PcSeybtCyxeXXopWZvdNvO9oMoJ6vrorZciF+tcG9qaqaaf/Y1h7pfwiYkLvwp 4RC/FFURZyjeyk8gfxaE1NfcnXM3rByW8br/gtL1VR/s3igKXk/rVeywlMeXyeXP CxS1uflC2dxGfzFiNFJoQlS+0XYV4nYNTVALe4/css3LLFtLt9rBKe3U7JmXl52k zyUq5nMsltYp3kg3dRYHejwzyrlVGt0Twos/Zqf8NztD9LPiVsZP/f84AobFsmkN ex1agHRY0JDH1IrwmfVwrw== =nP+X -----END PGP PUBLIC KEY BLOCK----- -----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v2 mQINBFoBAhsBEACtaQbqQhwMedruhTrierPCHRy6ZmO4HuRdrd9LnOBSraQnHFb9 kc2IfuHwB6YytZg6VFy4iaFx6vOkZQk7bFiAMB5RwIdPm7OmHGAYWkKeDOCB3lJB gJ0YdP7bMOGJL21RRZfUmkTMaT4zP3J0NeUL/mt4ezdJQyyWxdYigN2AgglAxZve 27K+IjlQVvuAe5MWqPn4pTktjWxuDkIN2BvdWXz5Ycbewul7Hi9dZzaLIVDeTq2F MUjR9FBJoNpJKjPTAeOyXj2jvHR753yAeRG/79sfeId9568XNxTi/2OXqdkvwg/q huGbx0fgkqnkMw/0nvqDVsbnHXMdE0WNVluemt6I9hJvoHfOEBYYAZi4+spoVCJW xwwgVt8tNTgbynejzr09d1RgVJH/OKcKCCOTtbbjUdtMt3MMbaBaN10AKKFWWBbR Tom8J6wwM8LsKkFj0F5uzkG928C/vx5hFv3ZltlFUu9j8u4WU2kF1D1nzhw4E9+S epq4jrWMa5Dvr9UhnkJCW0g/0vPnynbOcJaXyWQtqxdgAT9LxMBeMSd26O9UklaH INivaw8l2SpdauJrYon0uhK8RTTp2rSt+SLHqgxsbmGmr5jTm1Z37EzffgoIFDOB a+3zHaLJvkeZQXzbLAqzfHYSV9lUe7In+F9tqZ5l7702UqJmIWoGb6IGqwARAQAB tD9Td2lmdCBBdXRvbWF0aWMgU2lnbmluZyBLZXkgIzIgPHN3aWZ0LWluZnJhc3Ry dWN0dXJlQHN3aWZ0Lm9yZz6JAj0EEwEKACcFAloBAhsCGwMFCQPCZwAFCwkIBwMF FQoJCAsFFgIDAQACHgECF4AACgkQdjjx+ysrCMSihxAApw7qKGfiN8a4bFVwKRdY 7BLYu9HLetKHUJPerypKEKfUshU0X8Ns3lBxjSqNY2TvLyun1kbtUsxy+qi/X+HM nb93ONYOAeny1DFxUdiehhVttTQQB3RXdmhHGytoxzHX62N/uo9tYW9xQ+gaK+QC Rt6nZN0Prm6X+4vpQGD7H7O9cN8pw4YuoJRDwn6bFPl7WgqrYWX8/jvbXH1NjbJi j6kXvDSzwtPQNsj7vTC5K4TBMgfBFw5kndu+1sEHAfPIbwK8w/EGr32eSRT6l3xk TYFquL0S5NGCi9/pIqT90knsDqXyNer4xmwQ5FJPUTpdUbFz0o/DQvIFrbJ465Q4 feibfhpxVqLCpX8goosAS5nd0jRGicSYmoxdtUBUp4gn3ee3yI6JbA0TN8haczNC e0FfQD9s9O+m6ft2/CzIx7YFeiIRhfcjfmGJ0+eAdpEsDqC5Hyc60hwHhPg222Ah ASkhwDD9NejskxvdMUPALk2C41ZlR1dYqfXwUJJDPwNY210QQgBZ0+GG72ErYssh 4sG5U9XRv4IZhFlgBVmMlfbSi71BawOy+IN7ii49m9AY7p6U+m7yoeZV2H8YJbTk KhfnS3rZqsSU+ZYJYkGOxnQetkKUDGaVKdwJE49ll5R1/4om0h8aOOU8VyzrXPc9 cZMQ1BcfMNkeu81HaxE0Lpc= =l0K5 -----END PGP PUBLIC KEY BLOCK----- -----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v2 mQINBFyUJhwBEADDBN6jVDScsgzfQDxSQga0Og4O3N/nIquwi/DGOgsAsTMWcVA1 gmRJb792vWa9CmnHILl3ap8zObDSbcXg90nx+eCzWJjG+Ud5c7xuam96NR8ntKmU 8+BbH/dp8zc9WJB37TiWcaLsddrn58zfm7Ml6P9M48WAeRJX8nxVBTw1SjXJurW0 Ab8LOgfb60I09Skq72Ud7HaYJOG03iNTf6qLlF977OQsHCb21BnKSAmJqapUS96/ VOngz7TBzYz4rntfetb8hg28WtUl1s5BQzWaFunkP03b8mPh3PL1SZxutwViVWBu hf9kJtx/MLb79fnuJEOus1FvDqJdpd83H+XmXMIDYWgcBIBVrLT5HDtRerjF178H okb1F+gboGIqhnx25xTPIYctSHPgJRScZp4WKrqQLKswAmSL4YJXnkXSff05l4gE WXQpEMLBZa46qmu8lj8HfoZSbP9lfvEtZ6A+Q3sfh3gjYPv7e6n37x22tSgvyzCb jHU1pA2rv10AHK7EIeEQElN+zCyAbmKuhPBiCyxDFg5Dx3xNkYwg9szBJ0KleVD4 +Y3PZJ4N+u+SSATYnHGtmzvkhiNtqJCCwuaqY+jjVObzzqvLLtGjtjxNUWi2X4He q+r2fubjCOW14UnQ06qfr3mVUSmuLSKs8BD8qTGuqlgcenGsY0bk0qUPcwARAQAB tD5Td2lmdCA1LnggUmVsZWFzZSBTaWduaW5nIEtleSA8c3dpZnQtaW5mcmFzdHJ1 Y3R1cmVAc3dpZnQub3JnPokCPQQTAQoAJwUCXJQmHAIbAwUJA8JnAAULCQgHAwUV CgkICwUWAgMBAAIeAQIXgAAKCRCSXMHM7T0VYSm3EACUtuxMfTmGexA2xBvGhKQ+ bi3kRMBj+9BoSkVV11gDvumurldXRoKsIIxEdrD4xjagSNiVd7zj3L9wANu6+YgP HgBq8sUMXwsyXdL16jNC28qVqKF4jZxwmI9t6nVpQOSxGfBxdXmIhTxDDXFo4JMT uKx67BaP1GzZ+BKvxm09xChIJ5xh7x8/bsZ7HlXqc++ARn0Lh9d5CISUKE1PPnMN KyRUNt4X/qj7zJHDoAihufPKodvvXPsVAIpfCJZm7XB5WvP63IvQaFW/cX5wineR FZY/BKS+tsJt45jJ9c/Ofzqrr//stCz4a44fYvpqaxIqTLr4CpNH3WBIM0RBQqJj 35jJvdrNIuueby7GN3afRcvZIQBkbMkwZrW1iT8eah3EQDiXszbi7GkbXuOxQOn/ n8KJJvTJU7wAyH4WLvvWLFUm0oyHjIW4K9vSUM+x74WRuKxVikM6FAJ7uXsYtZ3Z lgL2hNlbMwpB+wxvA9isT3dSyzAtZmXpomOLuQTETtm4tSpt8XnF3eCsAKHSWqrA /zknqizKeBTPprqibixfO3dwUzFhUu3tkhxznIN3eEUrDMPxNrxObqJf1I4ySUYe vc6fqBG86SJ2yjN3IMJm5Y/z58QQUmSOweL9xQSr1hdcCxBtmLSjAlVzJMkpQ/TW xXPfHp4mZnRMLsGyO3eYrA== =l2j3 -----END PGP PUBLIC KEY BLOCK----- -----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v2 mQINBF3DedcBEADmr11PU7BBVSEjSx3z2bqrktMURD2AnrXJgL+sAeZfMaZpDZCU pmLKtI32Yp5X3Mv3mlj2Mz3VdtRh7ni83E5cqTLXs4Yjsujgu6nWS5qWqmSYw0Ax RszPPJISf2MAbZyBQJpaoDK9t2eIh3yG6J9XhIMu/ZpDND8afNYGNRhXKetv6+l7 MHTYd5rlU94eIXcxLA/yV340BVTMoaiIfAwUF2uFubDYfro4Ckj+xzjGIvn3ueu0 u+Yfmc40YIuCsA+zgf24Tie/rIwifEzWxFCka2jNPU+q8XIrbPmTKGvxnpwjBKIz B5HtB+yyV5mhnaVg1kkNZH/rZxJQm/FdFS9IXmOmV5CFn+R8grTxsYP/A4jDHnmz wx/gJuUvt/ADt3cuU7sGLtT1cvH1UlS/fso2bDDHBhuEa/9hjD0uIYpLuR4eTUQs WNU9a2WFxprNfM7nbUIWqfTr6tdnQORPnDi8lSGePlJNWQHzg36WyxPzq9EG0S5r 35Gb5NXeok6CN9x0EUiRt/Fl0POQRJ2Y6TWmOzaZ+8B8HExhA02d86Wnzfss8kAB eLSHE6aOguwujep9LFrTxUeMZTIkk/kxc0ibHuq0r1jwRWnCx9TwXCFeAW1gs7eo xybF/HVuDqSLaRIgpIl2KFxvXRY6g37ggtcAxV5DlH6oK90ja+72Wre8+wARAQAB tD9Td2lmdCBBdXRvbWF0aWMgU2lnbmluZyBLZXkgIzMgPHN3aWZ0LWluZnJhc3Ry dWN0dXJlQHN3aWZ0Lm9yZz6JAj0EEwEKACcFAl3DedcCGwMFCQPCZwAFCwkIBwMF FQoJCAsFFgIDAQACHgECF4AACgkQ+vaYnhvBb+oGHQ//ViB09Rk7W4BxyuvwDZx8 w7JR/WfCFDYAz210EILu2o3tqHWpfShynA2V/oOFT+VHykr2TK7wT2n/o9axfIq6 rF8W+X2VnXzwzN3a04iVtakcSeCuH4KIiT7vIjfOtmEwqJlpAIe6LF0NXb5wV9/I mxc7xLKbTCBSjrNqQsCOZ6VbLqwQuOjI0afRjnUsI07u/8bo/8WeZS1roKy0ntVI wyw05P5cV64pjHwNXH5CN8nB/G4pjCRwehI+4hAm0SOUfIDyLdQ4IThAJY+FVzIQ dXSKMyVNQMe/PuwLB3CBNMPOtxsEwOdgrLwClm2jOOS/bjrBI5jerUgCSBDPerEP 3rb6hjehuvhYudYZ+awmWG2NRxdWqUBO3twudVci4keQjjaBM+XiaWpEn9jD3XkI ZZC++bXx0o6ugDGFNTNwpFZ9hCC0x8djDrJDz1OdSYA4Mn4bB1n/8FI3+wSk8AP2 YzfjXbdXQMe44FUWPJgcCJ8EEsF9eKtw5019288ECIlfaHIzw+tgeg7iTShhB7wi 8T6PFJvRp8L4hssDfzMS9ZG93InUGL+6eyasIVXJtPDmCCP4LHMN3XYH0TgqBriD A6MXJzpykPpl51JkXNRtCWtUVBJpDN3L6Ue4Ouxqs0amMBJCNXM/6t+aJfrgwqiq bDzlXsGoKE1i/038Ag41vE0= =kzvP -----END PGP PUBLIC KEY BLOCK----- -----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v2 mQINBFyUJhwBEADDBN6jVDScsgzfQDxSQga0Og4O3N/nIquwi/DGOgsAsTMWcVA1 gmRJb792vWa9CmnHILl3ap8zObDSbcXg90nx+eCzWJjG+Ud5c7xuam96NR8ntKmU 8+BbH/dp8zc9WJB37TiWcaLsddrn58zfm7Ml6P9M48WAeRJX8nxVBTw1SjXJurW0 Ab8LOgfb60I09Skq72Ud7HaYJOG03iNTf6qLlF977OQsHCb21BnKSAmJqapUS96/ VOngz7TBzYz4rntfetb8hg28WtUl1s5BQzWaFunkP03b8mPh3PL1SZxutwViVWBu hf9kJtx/MLb79fnuJEOus1FvDqJdpd83H+XmXMIDYWgcBIBVrLT5HDtRerjF178H okb1F+gboGIqhnx25xTPIYctSHPgJRScZp4WKrqQLKswAmSL4YJXnkXSff05l4gE WXQpEMLBZa46qmu8lj8HfoZSbP9lfvEtZ6A+Q3sfh3gjYPv7e6n37x22tSgvyzCb jHU1pA2rv10AHK7EIeEQElN+zCyAbmKuhPBiCyxDFg5Dx3xNkYwg9szBJ0KleVD4 +Y3PZJ4N+u+SSATYnHGtmzvkhiNtqJCCwuaqY+jjVObzzqvLLtGjtjxNUWi2X4He q+r2fubjCOW14UnQ06qfr3mVUSmuLSKs8BD8qTGuqlgcenGsY0bk0qUPcwARAQAB tD5Td2lmdCA1LnggUmVsZWFzZSBTaWduaW5nIEtleSA8c3dpZnQtaW5mcmFzdHJ1 Y3R1cmVAc3dpZnQub3JnPokCPQQTAQoAJwIbAwULCQgHAwUVCgkICwUWAgMBAAIe AQIXgAUCYFlw2wUJB4exvwAKCRCSXMHM7T0VYcDjD/9gX5EXlPJU1QgFw4PwRUDj 9GxJ7DQ8ocgZT3mtt03gpRj7yTOL0iBDsJ4GtDiPcq6xCm7WEmNYBs/cJWVGwBC2 jeQCUCkxCXR310V3/RRFMhKZZPBq9A1UqqooO0WYkpR6JFP2a5cf2kounuyBoVGX wV7Cn4ZqX/fLOt156EiWUtOxC5L/nJqn6Ea57arwVUwZ3Q2tcKthxFrmMD9H13oW Y4coWiQhVx0xCMbc4cPh7TeRIdUu7D2JJPg/ypqhE2fIPPYrCAJSWp9A/m5oaLM+ 6/ABV+JYw3sgmnCSMxX+EV5iDsRamWMJwO4Yep8qMBD61jID5zn0N+VSLdEVfX+5 O4tdHMvC/YenJ0SFlWmZ7VGD99497IlsTMBFuOzBwXsfwdbSmG5KB6uKormLB6KB INvASgi7HbcYgM6vh82mvpswp5UmrT8f2trnSaxHUz5gtUiYFKdBrLgbLBhMlUTZ giRHJqm7DnYJVUAOOj26uu06gcXu77MzEiBT3PGVNPMgfYhc5I6hnx4nrXDYT5IT bP9Gt1BpsaG8J2jZL2OyOdkd7FkAuWzJVmozDIhMcsf5AjxrZaSYKc2BwgevdIB/ nvrD/IHRzS34EDnqv2J2LsQqWI3PM7JC5fW9L69NaSWdWpIoHl4gPcm55wbF+tHP SnioHPOvgHUi1wc55I6QNA== =z7kI -----END PGP PUBLIC KEY BLOCK----- gitlab-license-finder-6.14.2.1/Gemfile0000644000175100017510000000004614172736724016430 0ustar pravipravisource 'https://rubygems.org' gemspec gitlab-license-finder-6.14.2.1/LICENSE0000644000175100017510000000212614172736724016143 0ustar pravipraviThe MIT License Copyright (c) 2012-2020 Pivotal Software, Inc. All Rights Reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. gitlab-license-finder-6.14.2.1/.rubocop.yml0000644000175100017510000000243514172736724017413 0ustar pravipraviAllCops: TargetRubyVersion: 2.3.3 Exclude: - 'lib/license_finder/reports/**/*' - 'features/fixtures/**/*' - 'releases/**/*' - 'ci/**/*' - 'tmp/**/*' - 'Gemfile' #Layout Cops HeredocIndentation: Enabled: false EmptyLinesAroundArguments: Enabled: false #Linting Cops AmbiguousRegexpLiteral: Enabled: false # Metrics Cops AbcSize: Max: 35 BlockLength: Enabled: false # TODO: enable and refactor long methods # ExcludedMethods: ['describe', 'context', 'it', 'shared_examples'] # uncomment once enabled ClassLength: Enabled: false CyclomaticComplexity: Max: 15 PerceivedComplexity: Max: 15 LineLength: Max: 200 MethodLength: Enabled: false ModuleLength: Enabled: false # Security Cops YAMLLoad: Enabled: false #Style Cops Style/MethodMissingSuper: Enabled: false Style/MissingRespondToMissing: Enabled: false Style/FormatStringToken: EnforcedStyle: unannotated Style/HashEachMethods: Enabled: true Style/HashTransformKeys: Enabled: true Style/HashTransformValues: Enabled: true Layout/MultilineMethodCallIndentation: Enabled: false DoubleNegation: Enabled: false Documentation: Enabled: false FileName: Exclude: - '**/Rakefile' - '**/Gemfile' - '**/Podfile' ModuleFunction: Enabled: false EnforcedStyle: extend_self gitlab-license-finder-6.14.2.1/.rspec0000644000175100017510000000001014172736724016241 0ustar pravipravi--color gitlab-license-finder-6.14.2.1/ci/0000755000175100017510000000000014172736724015530 5ustar pravipravigitlab-license-finder-6.14.2.1/ci/pipelines/0000755000175100017510000000000014172736724017520 5ustar pravipravigitlab-license-finder-6.14.2.1/ci/pipelines/release.yml.erb0000644000175100017510000001170514172736724022436 0ustar pravipravi<% setup_slack = defined?(slack_url) && defined?(slack_channel) %> <% ruby_versions = ruby_versions.split(',') %> resource_types: <% if setup_slack %> - name: slack-notification type: registry-image source: repository: cfcommunity/slack-notification-resource tag: latest username: ((LicenseFinderDocker.username)) password: ((LicenseFinderDocker.password)) <% end %> resources: - name: lf-git type: git source: uri: git@github.com:pivotal/LicenseFinder.git private_key: ((CfOslBot.private_key)) branch: master ignore_paths: [VERSION, CHANGELOG.md] - name: semver-version type: semver source: driver: gcs bucket: lf-semver-version key: version json_key: ((GCPQueuedReportsBucketCredentials)) - name: dockerhub-edge type: docker-image source: tag: edge repository: licensefinder/license_finder email: ((LicenseFinderDockerEmail)) username: ((LicenseFinderDocker.username)) password: ((LicenseFinderDocker.password)) - name: dockerhub type: docker-image source: repository: licensefinder/license_finder email: ((LicenseFinderDockerEmail)) username: ((LicenseFinderDocker.username)) password: ((LicenseFinderDocker.password)) - name: lf-release type: github-release check_every: 24h source: owner: pivotal repository: LicenseFinder access_token: ((GithubApiRootToken)) <% if setup_slack %> - name: slack-alert type: slack-notification source: url: <%= slack_url %> <% end %> jobs: - name: build-docker-image public: true plan: - get: lf-git tags: ["private-worker"] trigger: true - put: dockerhub-edge tags: ["private-worker"] params: build: lf-git <% ruby_versions.each do |ruby_version| %> - name: ruby-<%= ruby_version %> public: true plan: - get: dockerhub-edge tags: ["private-worker"] passed: [build-docker-image] trigger: true - get: LicenseFinder tags: ["private-worker"] resource: lf-git passed: [build-docker-image] version: every - task: ruby-<%= ruby_version %> tags: ["private-worker"] privileged: true image: dockerhub-edge file: LicenseFinder/ci/tasks/run-tests.yml params: RUBY_VERSION_UNDER_TEST: <%= ruby_version %> <% if setup_slack %> on_failure: put: slack-alert tags: ["private-worker"] params: channel: '<%= slack_channel %>' icon_emoji: ':crying_cat_face:' text: '<%= "License Finder build failed. Build: https://norsk.cf-app.com/teams/main/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME" %>' <% end %> <% end %> - name: rubocop public: true plan: - get: dockerhub-edge tags: ["private-worker"] passed: [build-docker-image] trigger: true - get: LicenseFinder tags: ["private-worker"] resource: lf-git version: every passed: [build-docker-image] - task: run-rubocop tags: ["private-worker"] privileged: true file: LicenseFinder/ci/tasks/rubocop.yml input_mapping: { LicenseFinder: LicenseFinder } - name: bump-major plan: - get: semver-version tags: ["private-worker"] params: {bump: major} - put: semver-version tags: ["private-worker"] params: {file: semver-version/version} - name: bump-minor plan: - get: semver-version tags: ["private-worker"] params: {bump: minor} - put: semver-version tags: ["private-worker"] params: {file: semver-version/version} - name: bump-patch plan: - get: semver-version tags: ["private-worker"] params: {bump: patch} - put: semver-version tags: ["private-worker"] params: {file: semver-version/version} - name: release disable_manual_trigger: true plan: - get: lf-git tags: ["private-worker"] passed: [<%= "#{ruby_versions.map{ |version| "ruby-#{version}" unless version == "jruby-9.2.14.0" }.compact.join(', ') }, rubocop" %>] - get: semver-version tags: ["private-worker"] trigger: true - get: dockerhub tags: ["private-worker"] params: save: true - get: lf-release tags: ["private-worker"] - task: update-changelog tags: ["private-worker"] image: dockerhub params: GIT_USERNAME: ((GithubApiUser)) GIT_EMAIL: ((GithubApiEmail)) file: lf-git/ci/tasks/update-changelog.yml - put: dockerhub tags: ["private-worker"] params: build: lf-git-changed tag: version/version.txt tag_as_latest: true - put: lf-git tags: ["private-worker"] params: repository: lf-git-changed - task: build-and-push-gem tags: ["private-worker"] image: dockerhub params: GIT_USERNAME: ((GithubApiUser)) GIT_EMAIL: ((GithubApiEmail)) GIT_PRIVATE_KEY: ((CfOslBot.private_key)) GEM_API_KEY: ((LicenseFinderGemApiKey)) file: lf-git/ci/tasks/build-and-push-gem.yml - put: lf-release tags: ["private-worker"] params: name: version/tag.txt tag: version/tag.txt body: version/changelog.txt gitlab-license-finder-6.14.2.1/ci/pipelines/pull-request.yml.erb0000644000175100017510000000715314172736724023462 0ustar pravipravi<% setup_slack = defined?(slack_url) && defined?(slack_channel) %> <% ruby_versions = ruby_versions.split(',') %> resource_types: - name: pull-request type: docker-image source: repository: teliaoss/github-pr-resource <% if setup_slack %> - name: slack-notification type: registry-image source: repository: cfcommunity/slack-notification-resource tag: latest username: ((LicenseFinderDocker.username)) password: ((LicenseFinderDocker.password)) <% end %> resources: - name: github-pull-request type: pull-request check_every: 24h webhook_token: ((GithubPullRequestWebhookToken)) source: repository: pivotal/LicenseFinder access_token: ((GithubApiPullRequestToken)) - name: dockerhub-pr type: docker-image source: tag: edge-pr repository: licensefinder/license_finder email: ((LicenseFinderDockerEmail)) username: ((LicenseFinderDocker.username)) password: ((LicenseFinderDocker.password)) <% if setup_slack %> - name: slack-alert type: slack-notification source: url: <%= slack_url %> <% end %> jobs: - name: build-docker-image public: true plan: - get: github-pull-request tags: ["private-worker"] version: every trigger: true - put: dockerhub-pr tags: ["private-worker"] params: build: github-pull-request on_success: put: github-pull-request tags: ["private-worker"] params: path: github-pull-request status: success context: build-docker-image on_failure: put: github-pull-request tags: ["private-worker"] params: path: github-pull-request status: failure context: build-docker-image <% ruby_versions.each do |ruby_version| %> - name: PR-ruby-<%= ruby_version %>-linux public: true plan: - get: github-pull-request tags: ["private-worker"] passed: [build-docker-image] version: every - get: dockerhub-pr tags: ["private-worker"] passed: [build-docker-image] trigger: true - task: ruby-<%= ruby_version %> tags: ["private-worker"] privileged: true image: dockerhub-pr file: github-pull-request/ci/tasks/run-tests.yml params: RUBY_VERSION_UNDER_TEST: <%= ruby_version %> input_mapping: { LicenseFinder: github-pull-request } on_success: put: github-pull-request tags: ["private-worker"] params: path: github-pull-request status: success context: ruby-<%= ruby_version %> on_failure: put: github-pull-request tags: ["private-worker"] params: path: github-pull-request status: failure context: ruby-<%= ruby_version %> <% if setup_slack %> on_failure: put: slack-alert tags: ["private-worker"] params: channel: '<%= slack_channel %>' icon_emoji: ':crying_cat_face:' text: '<%= "License Finder build failed. Build: https://norsk.cf-app.com/teams/main/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME" %>' <% end %> <% end %> - name: PR-rubocop public: true plan: - get: github-pull-request tags: ["private-worker"] trigger: true version: every - task: run-rubocop tags: ["private-worker"] privileged: true file: github-pull-request/ci/tasks/rubocop.yml input_mapping: { LicenseFinder: github-pull-request } on_success: put: github-pull-request tags: ["private-worker"] params: path: github-pull-request status: success context: run-rubocop on_failure: put: github-pull-request tags: ["private-worker"] params: path: github-pull-request status: failure context: run-rubocop gitlab-license-finder-6.14.2.1/ci/scripts/0000755000175100017510000000000014172736724017217 5ustar pravipravigitlab-license-finder-6.14.2.1/ci/scripts/run-tests.sh0000755000175100017510000000065714172736724021532 0ustar pravipravi#!/bin/bash -elx set -o pipefail DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" PROJECT_ROOT="$( dirname "$( dirname $DIR )" )" pushd "$PROJECT_ROOT" rvm install --default $RUBY_VERSION_UNDER_TEST ruby --version export GOPATH=$HOME/go export RUBYOPT='-E utf-8' gem update --system gem install bundler bundle install bundle exec rake install bundle exec rake spec bundle exec rake features popd gitlab-license-finder-6.14.2.1/ci/scripts/run-rubocop.sh0000755000175100017510000000077714172736724022044 0ustar pravipravi#!/bin/bash -e cd LicenseFinder gem update --system bundle install --without runtime default rubocop_version=`cat Gemfile.lock | grep ' rubocop' | awk -F'[\(*\)]' '{print $2;exit}'` rubocop_performance_version=`cat Gemfile.lock | grep ' rubocop-performance' | awk -F'[\(*\)]' '{print $2;exit}'` gem install rubocop --version $rubocop_version gem install rubocop-performance --version $rubocop_performance_version echo "Running Rubocop ..." /usr/local/bundle/bin/rubocop --require rubocop-performance gitlab-license-finder-6.14.2.1/ci/scripts/containerize-tests.sh0000755000175100017510000000046214172736724023412 0ustar pravipravi#!/bin/bash set -e apk update && apk add git source /opt/resource/common.sh start_docker 3 3 pushd LicenseFinder docker build . -t licensefinder/license_finder docker run -v $PWD:/lf -it licensefinder/license_finder /bin/bash \ -exli /lf/ci/scripts/run-tests.sh "$RUBY_VERSION_UNDER_TEST" popd gitlab-license-finder-6.14.2.1/ci/scripts/pushscript.sh0000755000175100017510000000145514172736724021767 0ustar pravipravi#!/bin/bash echo -e "---\n:rubygems_api_key: $GEM_API_KEY" > ~/.gem/credentials chmod 0600 ~/.gem/credentials build_version="$(cat semver-version/version)" cd lf-git built_gem="pkg/license_finder-$build_version.gem" git config --global user.email $GIT_EMAIL git config --global user.name $GIT_USERNAME git config --global push.default simple git checkout master mkdir ~/.ssh ssh-keyscan github.com >> ~/.ssh/known_hosts eval "$(ssh-agent -s)" echo "$GIT_PRIVATE_KEY" > ~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa ssh-add -k ~/.ssh/id_rsa if [ -z "$(gem fetch license_finder -v $build_version 2>&1 | grep ERROR)" ]; then echo "LicenseFinder-$build_version already exists on Rubygems" else rake release fi export EXIT_STATUS=$? kill $(ps aux | grep ssh-agent | head -n 1 | awk '{print $2}') exit $EXIT_STATUS gitlab-license-finder-6.14.2.1/ci/scripts/updateChangelog.sh0000755000175100017510000000532114172736724022651 0ustar pravipravi#!/bin/bash --login set -e git clone lf-git lf-git-changed CHANGELOG_FILE="CHANGELOG.md" VERSION_FILE="VERSION" COMMIT_URL="https://github.com/pivotal/LicenseFinder/commit/" TAGS=( "Added" "ADDED" "Fixed" "FIXED" "Changed" "CHANGED" "Deprecated" "DEPRECATED" "Removed" "REMOVED" "Security" "SECURITY" ) CONTRIBUTORS=( "Shane Lattanzio" "Li Tai" "Vikram Yadav" "Mark Fiorvanti" "Serafima Ostrovskaya" "Yoon Jean Kim" "Tony Wong" "Parv Mital" ) OLD="v$(cat ./lf-release/version)" VERSION="$(cat semver-version/version)" VERSION_TAG="v$VERSION" # Add version title information LOG=$(echo "# [$VERSION] / $(date +%Y-%m-%d)\n") cd lf-git-changed for ((i = 0; i < ${#TAGS[@]}; i++)); do if [[ $i -gt 0 ]]; then TAG_COMPARE=$(echo "${TAGS[$i]}" | grep -qi "${TAGS[$i - 1]}" && echo same || echo different) HEADER_EXISTS=$(echo "$LOG" | grep -qi "${TAGS[$i - 1]}" && echo exists || echo dne) fi GIT_LOG=$'\n'$(git log "$OLD"...HEAD --pretty=format:"%H%n%s - [%h]($COMMIT_URL%H) - %an%n%n"| grep -E "\[${TAGS[$i]}\] .*" | sort | sed -e "s/\[${TAGS[$i]}\]/\*/g") # Only add section information if it has content if [[ $i -ne $[${#TAGS[@]}-1] && $GIT_LOG =~ "." && $i -gt 0 && "$TAG_COMPARE" == "same" && "$HEADER_EXISTS" == "exists" ]]; then LOG="$LOG""$GIT_LOG\n" elif [[ $GIT_LOG =~ "." ]]; then if [[ $i -gt 0 && "$TAG_COMPARE" == "same" && "$HEADER_EXISTS" == "dne" ]]; then LOG="$LOG"$'\n'$(echo "### ${TAGS[$i - 1]}")"$GIT_LOG\n" else LOG="$LOG"$'\n'$(echo "### ${TAGS[$i]}")"$GIT_LOG\n" fi fi done # Strip Pivotal contributors for ((i = 0; i < ${#CONTRIBUTORS[@]}; i++)); do LOG=$(echo "$LOG" | sed -e "s/-* ${CONTRIBUTORS[$i]}//g") done # Prepend new version information at the top of the file echo -e "$LOG\n$(cat $CHANGELOG_FILE)" > $CHANGELOG_FILE # Append version hyperlink to the end of the file echo -e "[$VERSION]: https://github.com/pivotal/LicenseFinder/compare/$OLD...$VERSION_TAG" >> $CHANGELOG_FILE # Update version file in git echo $VERSION > $VERSION_FILE git config --global user.email $GIT_EMAIL git config --global user.name $GIT_USERNAME git add $CHANGELOG_FILE git add $VERSION_FILE git commit -m "Update changelog for version: $VERSION" echo "New version: $VERSION" echo "Current version: $OLD" if [ "$VERSION" == "$OLD" ]; then echo "Error: Version in VERSION file is identical to latest release on github" exit 1 fi body=$(cat "$CHANGELOG_FILE" | sed -n "/# \[$VERSION\]/,/# \[[\d\.]*/p" | sed '$d' | tail -n +2) echo "$VERSION_TAG" > ../version/tag.txt echo "$VERSION" > ../version/version.txt echo "$body" > ../version/changelog.txt echo "Tag: $VERSION_TAG" echo "Version: $VERSION" echo "Body: $body" exit 0 gitlab-license-finder-6.14.2.1/ci/scripts/test.ps10000644000175100017510000000533314172736724020627 0ustar pravipraviSet-PSDebug -strict # "set -u" $ErrorActionPreference = "Stop" # "set -e" for cmdlet errors # avoid overly narrow default linewrap $term = (get-host).ui.rawui $size = $term.buffersize $size.width = 128 $term.buffersize = $size $size = $term.windowsize $size.width = 128 $term.windowsize = $size function stream-cmd { param ($command, $arguments) $cmdline = "$($command) $($arguments)" cmd /c $cmdline if (-not ($?)) { throw "$($cmdline) failed" } } function prepend-path { param ($dir) $env:PATH = $dir + ";" + $env:PATH } function prepare-vm { iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) choco install -y git ruby nodejs golang python2 erlang gradle maven $env:JAVA_HOME = 'C:\Program Files\Java\jdk1.8.0_144' prepend-path 'C:\Program Files\Java\jdk1.8.0_144\bin' prepend-path 'C:\tools\go\bin' prepend-path 'C:\Program Files\Git\bin' prepend-path 'C:\Program Files\erl9.0\bin' stream-cmd "rmdir" "/s /q C:\rebar" stream-cmd "git" "clone https://github.com/rebar/rebar C:\rebar" stream-cmd "cd c:\rebar & .\bootstrap.bat" "" stream-cmd "cp" "c:\rebar\rebar c:\tools" stream-cmd "cp" "c:\rebar\rebar.cmd c:\tools" prepend-path 'C:\tools' mkdir -Force 'C:\Go' mkdir -Force 'C:\Windows\system32\config\systemprofile\AppData\Local\Temp' $env:GOPATH = 'C:\Go' prepend-path 'C:\Go\bin' stream-cmd "go" "get -d github.com/tools/godep" prepend-path 'C:\Python27\Scripts' prepend-path 'C:\Program Files\nodejs' stream-cmd "npm" "install bower -g" cp 'C:\Windows\System32\config\systemprofile\AppData\Roaming\npm\bower.cmd' 'C:\Program Files\nodejs' cp -r 'C:\Windows\System32\config\systemprofile\AppData\Roaming\npm\node_modules\bower\*' 'C:\Program Files\nodejs\node_modules\bower' -Force prepend-path 'C:\Ruby23\bin' prepend-path 'C:\ProgramData\chocolatey\lib\gradle\tools\gradle-3.4.1\bin' prepend-path 'C:\ProgramData\chocolatey\lib\maven\apache-maven-3.5.0\bin' } function set-env-vars { prepend-path 'C:\Program Files\Java\jdk1.8.0_144\bin' prepend-path 'C:\tools\go\bin' prepend-path 'C:\Program Files\Git\bin' prepend-path 'C:\Program Files\erl9.0\bin' prepend-path 'C:\tools' prepend-path 'C:\Go\bin' prepend-path 'C:\Python27\Scripts' prepend-path 'C:\Program Files\nodejs' prepend-path 'C:\Ruby23\bin' } function run-tests { set-env-vars push-location LicenseFinder stream-cmd "gem" "install bundler" stream-cmd "bundle" "install" stream-cmd "bundle" "exec rake install" stream-cmd "bundle" "exec rake spec" stream-cmd "bundle" "exec rake features" pop-location } prepare-vm run-tests gitlab-license-finder-6.14.2.1/ci/tasks/0000755000175100017510000000000014172736724016655 5ustar pravipravigitlab-license-finder-6.14.2.1/ci/tasks/build-windows.yml0000644000175100017510000000017714172736724022174 0ustar pravipraviplatform: windows inputs: - name: LicenseFinder run: path: powershell args: ["-File", "LicenseFinder/ci/scripts/test.ps1"] gitlab-license-finder-6.14.2.1/ci/tasks/build.yml0000644000175100017510000000040214172736724020473 0ustar pravipraviplatform: linux image_resource: type: docker-image source: repository: concourse/docker-image-resource tag: latest inputs: - name: LicenseFinder run: path: ./LicenseFinder/ci/scripts/containerize-tests.sh params: RUBY_VERSION_UNDER_TEST: gitlab-license-finder-6.14.2.1/ci/tasks/update-changelog.yml0000644000175100017510000000060114172736724022604 0ustar pravipravi--- image_resource: type: registry-image source: repository: brenix/alpine-bash-git-ssh tag: latest username: ((LicenseFinderDocker.username)) password: ((LicenseFinderDocker.password)) platform: linux inputs: - name: lf-git - name: lf-release - name: semver-version outputs: - name: lf-git-changed - name: version run: path: lf-git/ci/scripts/updateChangelog.sh gitlab-license-finder-6.14.2.1/ci/tasks/rubocop.yml0000644000175100017510000000043214172736724021050 0ustar pravipraviplatform: linux image_resource: type: registry-image source: repository: ruby tag: 2.7.1 username: ((LicenseFinderDocker.username)) password: ((LicenseFinderDocker.password)) inputs: - name: LicenseFinder run: path: ./LicenseFinder/ci/scripts/run-rubocop.shgitlab-license-finder-6.14.2.1/ci/tasks/build-and-push-gem.yml0000644000175100017510000000021214172736724022755 0ustar pravipravi--- platform: linux inputs: - name: lf-git - name: semver-version run: path: bash args: - "-lc" - lf-git/ci/scripts/pushscript.sh gitlab-license-finder-6.14.2.1/ci/tasks/run-tests.yml0000644000175100017510000000021114172736724021336 0ustar pravipraviplatform: linux inputs: - name: LicenseFinder run: path: ./LicenseFinder/ci/scripts/run-tests.sh params: RUBY_VERSION_UNDER_TEST: