lib/spandx.rb in spandx-0.5.0 vs lib/spandx.rb in spandx-0.6.0
- old
+ new
@@ -1,30 +1,41 @@
# frozen_string_literal: true
require 'addressable/uri'
require 'bundler'
+require 'csv'
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/core/content'
+require 'spandx/core/database'
+require 'spandx/core/dependency'
+require 'spandx/core/guess'
+require 'spandx/core/parser'
+require 'spandx/core/report'
+require 'spandx/core/score'
+require 'spandx/dotnet/index'
+require 'spandx/dotnet/nuget_gateway'
+require 'spandx/dotnet/package_reference'
+require 'spandx/dotnet/parsers/csproj'
+require 'spandx/dotnet/parsers/packages_config'
+require 'spandx/dotnet/parsers/sln'
+require 'spandx/dotnet/project_file'
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/java/metadata'
+require 'spandx/java/parsers/maven'
+require 'spandx/parsers/pipfile_lock'
+require 'spandx/rubygems/gateway'
+require 'spandx/rubygems/offline_index'
+require 'spandx/rubygems/parsers/gemfile_lock'
+require 'spandx/spdx/catalogue'
+require 'spandx/spdx/gateway'
+require 'spandx/spdx/license'
require 'spandx/version'
module Spandx
class Error < StandardError; end
@@ -36,9 +47,11 @@
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!)
+ @spdx_db ||= Spandx::Core::Database
+ .new(url: 'https://github.com/spdx/license-list-data.git')
+ .tap(&:update!)
end
end
end