Sha256: 96689daf5b3abf9d5bedde33522b86d2bd9e73b77b025e2b5736351b9338cb95

Contents?: true

Size: 1.3 KB

Versions: 2

Compression:

Stored size: 1.3 KB

Contents

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

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

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

  autoload :Bundle, 'license_finder/bundle'
  autoload :BundledGem, 'license_finder/bundled_gem'
  autoload :CLI, 'license_finder/cli'
  autoload :Configuration, 'license_finder/configuration'
  autoload :Persistence, 'license_finder/persistence/yaml'
  autoload :Dependency, 'license_finder/dependency'
  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 :SourceSyncer, 'license_finder/source_syncer'

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

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
license_finder-0.7.3 lib/license_finder.rb
license_finder-0.7.1 lib/license_finder.rb