Skip to content

Instantly share code, notes, and snippets.

@junaruga
Created December 8, 2021 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save junaruga/3a1c7584bb2e53119fda35a5fcbdae0b to your computer and use it in GitHub Desktop.
Save junaruga/3a1c7584bb2e53119fda35a5fcbdae0b to your computer and use it in GitHub Desktop.
+ make test-bundler V=1 'RSPECOPTS=--format d' BUNDLER_SPECS=bundler/definition_dep_confusion_spec.rb
# rm -f revision.h
# exit > revision.h || exit > revision.h
./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems -C "." bin/gem install --no-document \
--install-dir .bundle --conservative "rspec:~> 3.5"
Successfully installed rspec-support-3.10.3
Successfully installed rspec-core-3.10.1
Successfully installed diff-lcs-1.4.4
Successfully installed rspec-expectations-3.10.1
Successfully installed rspec-mocks-3.10.2
Successfully installed rspec-3.10.0
6 gems installed
\
./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems -C . -Ispec/bundler .bundle/bin/rspec \
--require spec_helper --format d spec/bundler/bundler/definition_dep_confusion_spec.rb
installing gems for the tests to use...
/builddir/build/BUILD/ruby-2.6.9/ruby -rrubygems /builddir/build/BUILD/ruby-2.6.9/bin/gem --backtrace install 'rack:1.6.6' 'rack-test:< 0.7.0' 'artifice:~> 0.6.0' 'compact_index:~> 0.11.0' 'sinatra:~> 1.4.7' 'rake:10.0.2' 'builder:2.1.2' ruby-graphviz --no-document --conservative
Successfully installed rack-1.6.6
Successfully installed rack-test-0.6.3
Successfully installed artifice-0.6
Successfully installed compact_index-0.11.0
Successfully installed rack-protection-1.5.5
Successfully installed tilt-2.0.10
Successfully installed sinatra-1.4.8
Successfully installed rake-10.0.2
Successfully installed builder-2.1.2
Successfully installed rexml-3.2.5
You need to install GraphViz (https://graphviz.org) to use this Gem.
For more information about Ruby-Graphviz :
* Doc: https://rdoc.info/github/glejeune/Ruby-Graphviz
* Sources: https://github.com/glejeune/Ruby-Graphviz
* Issues: https://github.com/glejeune/Ruby-Graphviz/issues
Successfully installed ruby-graphviz-1.2.5
11 gems installed
Run options: exclude {:ruby_repo=>true, :bundler=>"=< 1.17", :rubygems_master=>true, :git=>"=< 2.33.1", :rubygems=>"=< 3.0.3.1", :ruby=>"=< 2.6.9", :realworld=>true, :sudo=>true}
Bundler::Definition
#validate_dependency_confusion!
when it's not remote
should neither raise an error nor warn
when it's remote
when the number of non-global source is zero
should neither raise an error nor warn
when there are any non dependency API non global sources
should raise an error or warn
when all the non global sources implement dependency API
when there is not an indirect dependency in the non global sources
should neither raise an error nor warn
when there is an indirect dependency in the non global sources
when the indirect dependency doesn't exist in another source
should neither raise an error nor warn
when the indirect dependency also exists in anotehr source
should raise an error or warn
#indirect_dependency_names_in_non_global_rubygems_soruces
should return only indirect dependencies of endpoint specification
#raise_error_or_warn_dependency_confusion
when #warn_on_dependnecy_confusion? returns false
should raise an error
when #warn_on_dependnecy_confusion? returns true
should warn
#warn_on_dependnecy_confusion?
when BUNDLE_WARN_ON_DEPENDENCY_CONFUSION is set
should return true
when BUNDLE_WARN_ON_DEPENDENCY_CONFUSION is not set
should return false
#disable_dependency_confusion_check?
when BUNDLE_DISABLE_DEPENDENCY_CONFUSION_CHECK is set
should return true
when BUNDLE_DISABLE_DEPENDENCY_CONFUSION_CHECK is not set
should return false
Retried examples: 0
Finished in 0.54972 seconds (files took 6.76 seconds to load)
13 examples, 0 failures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment