lib/spandx.rb in spandx-0.7.0 vs lib/spandx.rb in spandx-0.8.0

- old
+ new

@@ -3,10 +3,11 @@ require 'addressable/uri' require 'bundler' require 'csv' require 'forwardable' require 'json' +require 'logger' require 'net/hippie' require 'nokogiri' require 'pathname' require 'spandx/core/content' @@ -38,15 +39,21 @@ module Spandx class Error < StandardError; end class << self + attr_writer :logger + def root Pathname.new(File.dirname(__FILE__)).join('../..') end def http @http ||= Spandx::Gateways::Http.new + end + + def logger + @logger ||= Logger.new('/dev/null') end def spdx_db @spdx_db ||= Spandx::Core::Database .new(url: 'https://github.com/spdx/license-list-data.git')