lib/spandx.rb in spandx-0.1.5 vs lib/spandx.rb in spandx-0.1.6
- old
+ new
@@ -1,22 +1,24 @@
# frozen_string_literal: true
require 'bundler'
require 'forwardable'
require 'json'
-require 'licensee'
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/license'
require 'spandx/parsers'
require 'spandx/report'
require 'spandx/version'
@@ -28,8 +30,12 @@
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