1
0
Fork 0
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:
David Rodríguez 2019-04-26 17:09:06 +02:00 committed by Hiroshi SHIBATA
parent 81a84076c2
commit 2c262d137c
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -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'