From fca24dd12174a61ce9b01c23db90c63997fae1e8 Mon Sep 17 00:00:00 2001 From: David Rodríguez Date: Thu, 2 Apr 2020 19:14:04 +0200 Subject: [rubygems/rubygems] No longer necessary Fixed in https://github.com/ruby/ruby/commit/45df1c24d269f93a2bc1e7a6fe0ffcecc1193051, released with ruby 2.3 https://github.com/rubygems/rubygems/commit/f8f67f3952 --- lib/rubygems/test_case.rb | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'lib/rubygems') diff --git a/lib/rubygems/test_case.rb b/lib/rubygems/test_case.rb index 0d450ba023..651e89dd0b 100644 --- a/lib/rubygems/test_case.rb +++ b/lib/rubygems/test_case.rb @@ -318,17 +318,6 @@ class Gem::TestCase < Minitest::Test FileUtils.mkdir_p @tempdir - # This makes the tempdir consistent on Windows. - # Dir.tmpdir may return short path name, but Dir[Dir.tmpdir] returns long - # path name. https://bugs.ruby-lang.org/issues/10819 - # File.expand_path or File.realpath doesn't convert path name to long path - # name. Only Dir[] (= Dir.glob) works. - # Short and long path name is specific to Windows filesystem. - if win_platform? - @tempdir = Dir[@tempdir][0] - @tempdir.tap(&Gem::UNTAINT) - end - @orig_SYSTEM_WIDE_CONFIG_FILE = Gem::ConfigFile::SYSTEM_WIDE_CONFIG_FILE Gem::ConfigFile.send :remove_const, :SYSTEM_WIDE_CONFIG_FILE Gem::ConfigFile.send :const_set, :SYSTEM_WIDE_CONFIG_FILE, -- cgit v1.2.3