lib/spandx.rb in spandx-0.4.1 vs lib/spandx.rb in spandx-0.5.0
- old
+ new
@@ -1,16 +1,14 @@
# 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'
@@ -22,10 +20,11 @@
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
@@ -36,10 +35,10 @@
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!)
+ def spdx_db
+ @spdx_db ||= Spandx::Database.new(url: 'https://github.com/spdx/license-list-data.git').tap(&:update!)
end
end
end