diff options
| -rw-r--r-- | lib/spandx.rb | 1 | ||||
| -rw-r--r-- | lib/spandx/core/git.rb | 2 | ||||
| -rw-r--r-- | lib/spandx/python/pypi.rb | 2 | ||||
| -rw-r--r-- | spec/integration/core/git_spec.rb | 2 | ||||
| -rw-r--r-- | spec/unit/python/pypi_spec.rb | 4 | ||||
| -rw-r--r-- | spec/unit/ruby/parsers/gemfile_lock_spec.rb | 2 |
6 files changed, 13 insertions, 0 deletions
diff --git a/lib/spandx.rb b/lib/spandx.rb index ed19850..dbd09e6 100644 --- a/lib/spandx.rb +++ b/lib/spandx.rb @@ -17,6 +17,7 @@ loader.setup # ready! module Spandx class Error < StandardError; end + Rubygems = Ruby class << self attr_writer :airgap, :logger diff --git a/lib/spandx/core/git.rb b/lib/spandx/core/git.rb index 6d496fd..a47a354 100644 --- a/lib/spandx/core/git.rb +++ b/lib/spandx/core/git.rb @@ -64,5 +64,7 @@ module Spandx end end end + + Database = Git end end diff --git a/lib/spandx/python/pypi.rb b/lib/spandx/python/pypi.rb index 7849f29..3c1006b 100644 --- a/lib/spandx/python/pypi.rb +++ b/lib/spandx/python/pypi.rb @@ -96,5 +96,7 @@ module Spandx Nokogiri::HTML(http.get(url).body) end end + + PyPI = Pypi end end diff --git a/spec/integration/core/git_spec.rb b/spec/integration/core/git_spec.rb index 821e259..59b8aa9 100644 --- a/spec/integration/core/git_spec.rb +++ b/spec/integration/core/git_spec.rb @@ -44,4 +44,6 @@ RSpec.describe Spandx::Core::Git do it { expect(shell).to have_received(:system).with('git', 'pull', '--no-rebase', '--quiet', 'origin', 'master') } end end + + specify { expect(Spandx::Core::Database).to eql(described_class) } end diff --git a/spec/unit/python/pypi_spec.rb b/spec/unit/python/pypi_spec.rb index cb09c4a..9836c9d 100644 --- a/spec/unit/python/pypi_spec.rb +++ b/spec/unit/python/pypi_spec.rb @@ -203,4 +203,8 @@ RSpec.describe Spandx::Python::Pypi do end end end + + describe 'PyPI' do + specify { expect(Spandx::Python::PyPI).to eql(described_class) } + end end diff --git a/spec/unit/ruby/parsers/gemfile_lock_spec.rb b/spec/unit/ruby/parsers/gemfile_lock_spec.rb index 57fb8da..50b6da1 100644 --- a/spec/unit/ruby/parsers/gemfile_lock_spec.rb +++ b/spec/unit/ruby/parsers/gemfile_lock_spec.rb @@ -29,4 +29,6 @@ RSpec.describe Spandx::Ruby::Parsers::GemfileLock do specify { expect(spandx.meta[:source]).to be_a_kind_of(Bundler::Source) } end end + + specify { expect(Spandx::Rubygems::Parsers::GemfileLock).to eql(described_class) } end |
