mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[bundler/bundler] Make spec easier to debug
https://github.com/bundler/bundler/commit/156629291e
This commit is contained in:
parent
81a84076c2
commit
2c262d137c
1 changed files with 3 additions and 1 deletions
|
@ -833,7 +833,9 @@ end
|
||||||
|
|
||||||
ruby <<-R, :env => { "GEM_PATH" => symlinked_gem_home }, :no_lib => true
|
ruby <<-R, :env => { "GEM_PATH" => symlinked_gem_home }, :no_lib => true
|
||||||
TracePoint.trace(:class) do |tp|
|
TracePoint.trace(:class) do |tp|
|
||||||
puts "OMG" if tp.path.include?("bundler") && !tp.path.start_with?("#{File.expand_path("../..", __dir__)}")
|
if tp.path.include?("bundler") && !tp.path.start_with?("#{File.expand_path("../..", __dir__)}")
|
||||||
|
puts "OMG. Defining a class from another bundler at \#{tp.path}:\#{tp.lineno}"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
gem 'bundler', '#{Bundler::VERSION}'
|
gem 'bundler', '#{Bundler::VERSION}'
|
||||||
require 'bundler/setup'
|
require 'bundler/setup'
|
||||||
|
|
Loading…
Reference in a new issue