[前][次][番号順一覧][スレッド一覧]

ruby-changes:46536

From: naruse <ko1@a...>
Date: Thu, 11 May 2017 04:19:45 +0900 (JST)
Subject: [ruby-changes:46536] naruse:r58657 (trunk): Show garbages if requiring gem_runner is failed

naruse	2017-05-11 04:19:38 +0900 (Thu, 11 May 2017)

  New Revision: 58657

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58657

  Log:
    Show garbages if requiring gem_runner is failed

  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 58656)
+++ test/rubygems/test_gem_gem_runner.rb	(revision 58657)
@@ -1,6 +1,15 @@ https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_gem_runner.rb#L1
 # frozen_string_literal: true
 require 'rubygems/test_case'
-require 'rubygems/gem_runner'
+begin
+  require 'rubygems/gem_runner'
+ensure
+  if $!
+    if Dir.exist?(ENV["GEM_HOME"])
+      require "find"
+      Find.find(ENV["GEM_HOME"]).each{|l|puts l}
+    end
+  end
+end
 
 class TestGemGemRunner < Gem::TestCase
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]