Sha256: 23ff7271c91067f2ddfe77da08119146b458cc0f097a5eae3acc7d9edadecd5b

Contents?: true

Size: 963 Bytes

Versions: 2

Compression:

Stored size: 963 Bytes

Contents

# frozen_string_literal: true

require 'addressable/uri'
require 'bundler'
require 'concurrent'
require 'forwardable'
require 'json'
require 'net/hippie'
require 'nokogiri'
require 'pathname'
require 'text'

require 'spandx/catalogue'
require 'spandx/content'
require 'spandx/database'
require 'spandx/dependency'
require 'spandx/gateways/http'
require 'spandx/gateways/nuget'
require 'spandx/gateways/pypi'
require 'spandx/gateways/rubygems'
require 'spandx/gateways/spdx'
require 'spandx/guess'
require 'spandx/index'
require 'spandx/license'
require 'spandx/parsers'
require 'spandx/report'
require 'spandx/version'

module Spandx
  class Error < StandardError; end

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

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spandx-0.4.1 lib/spandx.rb
spandx-0.4.0 lib/spandx.rb