lib/spandx.rb in spandx-0.1.1 vs lib/spandx.rb in spandx-0.1.2
- old
+ new
@@ -1,11 +1,28 @@
# frozen_string_literal: true
+require 'forwardable'
+require 'json'
require 'net/hippie'
+
require 'spandx/catalogue'
-require 'spandx/catalogue_gateway'
+require 'spandx/gateways/http'
+require 'spandx/gateways/pypi'
+require 'spandx/gateways/spdx'
require 'spandx/license'
+require 'spandx/parsers'
+require 'spandx/report'
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
+ end
end