Sha256: 2fa1e405f514ea3de84ccf4af856b1fbb5a2e337f3c7f1333988147bd8573886
Contents?: true
Size: 1.06 KB
Versions: 1
Compression:
Stored size: 1.06 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 'parslet' require 'pathname' require 'yaml' require 'zeitwerk' require 'terminal-table' require 'spandx/spandx' loader = Zeitwerk::Loader.for_gem loader.setup # ready! module Spandx class Error < StandardError; end Rubygems = Ruby class << self attr_writer :airgap, :logger, :http, :git def root Pathname.new(File.dirname(__FILE__)).join('../..') end def airgap? @airgap end def http @http ||= Spandx::Core::Http.new end def logger @logger ||= Logger.new('/dev/null') end def git @git ||= { cache: ::Spandx::Core::Git.new(url: 'https://github.com/spandx/cache.git'), rubygems: ::Spandx::Core::Git.new(url: 'https://github.com/spandx/rubygems-cache.git'), spdx: ::Spandx::Core::Git.new(url: 'https://github.com/spdx/license-list-data.git'), } end end end loader.eager_load
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spandx-0.13.4 | lib/spandx.rb |