Sha256: 4b0bd69c8eae25507454121b8196bdd3570613ae29b35c2ddd77ab3a9fa018bf

Contents?: true

Size: 963 Bytes

Versions: 1

Compression:

Stored size: 963 Bytes

Contents

# frozen_string_literal: true

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

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/rubygems'
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 spdx_db
      @spdx_db ||= Spandx::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.5.0 lib/spandx.rb