Sha256: dc90a880caa2bbbe736a24bc0987f7960d577fda2cecdb39593d27909bc7cf45

Contents?: true

Size: 1.65 KB

Versions: 4

Compression:

Stored size: 1.65 KB

Contents

require 'pathname'
require 'yaml'
require 'erb'

module LicenseFinder
  ROOT_PATH = Pathname.new(__FILE__).dirname

  DEPENDENCY_ATTRIBUTES = [
    "name", "version", "license", "license_url", "approved", "notes",
    "license_files", "bundler_groups", "summary",
    "description", "homepage", "children", "parents", "manual"
  ]

  autoload :Bundle, 'license_finder/bundle'
  autoload :BundledGem, 'license_finder/bundled_gem'
  autoload :CLI, 'license_finder/cli'
  autoload :Configuration, 'license_finder/configuration'
  autoload :License, 'license_finder/license'
  autoload :LicenseUrl, 'license_finder/license_url'
  autoload :PossibleLicenseFile, 'license_finder/possible_license_file'
  autoload :DependencyReport, 'license_finder/dependency_report'
  autoload :HtmlReport, 'license_finder/html_report'
  autoload :TextReport, 'license_finder/text_report'
  autoload :Reporter, 'license_finder/reporter'
  autoload :BundleSyncer, 'license_finder/bundle_syncer'
  autoload :YmlToSql, 'license_finder/yml_to_sql'
  autoload :Dependency, 'license_finder/tables/dependency'
  autoload :Approval, 'license_finder/tables/approval'
  autoload :LicenseAlias, 'license_finder/tables/license_alias'
  autoload :BundlerGroup, 'license_finder/tables/bundler_group'
  autoload :GemSaver, 'license_finder/gem_saver'
  autoload :LicenseFiles, 'license_finder/license_files'
  autoload :Platform, 'license_finder/platform'

  def self.config
    @config ||= Configuration.ensure_default
  end

  def self.load_rake_tasks
    load 'tasks/license_finder.rake'
  end
end

require 'license_finder/railtie' if defined?(Rails)
require 'license_finder/tables'

LicenseFinder::YmlToSql.convert_if_required

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
license_finder-0.8.1-java lib/license_finder.rb
license_finder-0.8.1 lib/license_finder.rb
license_finder-0.8.0-java lib/license_finder.rb
license_finder-0.8.0 lib/license_finder.rb