Sha256: 62e6f0e6df46e9ab34108d2e81e951f4d176fed15e78dbad619bee0507193bdd

Contents?: true

Size: 1.52 KB

Versions: 1

Compression:

Stored size: 1.52 KB

Contents

# frozen_string_literal: true

require 'addressable/uri'
require 'bundler'
require 'csv'
require 'forwardable'
require 'json'
require 'logger'
require 'net/hippie'
require 'nokogiri'
require 'pathname'

require 'spandx/core/content'
require 'spandx/core/database'
require 'spandx/core/dependency'
require 'spandx/core/guess'
require 'spandx/core/parser'
require 'spandx/core/report'
require 'spandx/core/score'
require 'spandx/dotnet/index'
require 'spandx/dotnet/nuget_gateway'
require 'spandx/dotnet/package_reference'
require 'spandx/dotnet/parsers/csproj'
require 'spandx/dotnet/parsers/packages_config'
require 'spandx/dotnet/parsers/sln'
require 'spandx/dotnet/project_file'
require 'spandx/gateways/http'
require 'spandx/gateways/pypi'
require 'spandx/java/metadata'
require 'spandx/java/parsers/maven'
require 'spandx/parsers/pipfile_lock'
require 'spandx/rubygems/gateway'
require 'spandx/rubygems/offline_index'
require 'spandx/rubygems/parsers/gemfile_lock'
require 'spandx/spdx/catalogue'
require 'spandx/spdx/gateway'
require 'spandx/spdx/license'
require 'spandx/version'

module Spandx
  class Error < StandardError; end

  class << self
    attr_writer :logger

    def root
      Pathname.new(File.dirname(__FILE__)).join('../..')
    end

    def http
      @http ||= Spandx::Gateways::Http.new
    end

    def logger
      @logger ||= Logger.new('/dev/null')
    end

    def spdx_db
      @spdx_db ||= Spandx::Core::Database
        .new(url: 'https://github.com/spdx/license-list-data.git')
        .tap(&:update!)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spandx-0.8.0 lib/spandx.rb