ruby-changes:49415
From: hsbt <ko1@a...>
Date: Mon, 1 Jan 2018 08:30:04 +0900 (JST)
Subject: [ruby-changes:49415] hsbt:r61531 (trunk): Removed debug code. It is inconsistency in rubygems upsteream.
hsbt 2018-01-01 08:29:59 +0900 (Mon, 01 Jan 2018) New Revision: 61531 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61531 Log: Removed debug code. It is inconsistency in rubygems upsteream. Revert r58657, r58660, r58692, r58723. Modified files: trunk/test/rubygems/test_gem_gem_runner.rb Index: test/rubygems/test_gem_gem_runner.rb =================================================================== --- test/rubygems/test_gem_gem_runner.rb (revision 61530) +++ test/rubygems/test_gem_gem_runner.rb (revision 61531) @@ -1,38 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_gem_runner.rb#L1 # frozen_string_literal: true require 'rubygems/test_case' -begin - gem_home_files = lambda{ - if Dir.exist?(ENV["GEM_HOME"]) - require "find" - ary = Find.find(ENV["GEM_HOME"]).to_a - else - [] - end - } - prev_gem_home = ENV["GEM_HOME"] - prev_gem_home_files = gem_home_files.call - prev_threads = Thread.list.map{|e| e.inspect} - - require 'rubygems/gem_runner' -ensure - if $! - msg = <<eom -*************** -PREV - GEM_HOME: #{prev_gem_home} - Files in GEM_HOME: #{prev_gem_home_files.inspect} - Threads: #{prev_threads.inspect} -Current: - GEM_HOME: #{ENV["GEM_HOME"]} - Files in GEM_HOME: #{gem_home_files.call} - Threads: #{Thread.list.map{|e| e.inspect}.inspect} -Exception: #{$!.message} -eom - p $!.class - p $!.message.frozen? - raise $!.class, msg, $!.backtrace - end -end +require 'rubygems/gem_runner' class TestGemGemRunner < Gem::TestCase -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/