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

ruby-changes:60895

From: Nobuyoshi <ko1@a...>
Date: Sat, 25 Apr 2020 02:36:24 +0900 (JST)
Subject: [ruby-changes:60895] c6020ba277 (master): Clear cached XDG path names

https://git.ruby-lang.org/ruby.git/commit/?id=c6020ba277

From c6020ba277b8e666b38e25dab65acdcbd1c2121c Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Fri, 24 Apr 2020 23:56:48 +0900
Subject: Clear cached XDG path names


diff --git a/lib/rubygems/test_case.rb b/lib/rubygems/test_case.rb
index d028254..960fe9e 100644
--- a/lib/rubygems/test_case.rb
+++ b/lib/rubygems/test_case.rb
@@ -371,6 +371,8 @@ class Gem::TestCase < (defined?(Minitest::Test) ? Minitest::Test : MiniTest::Uni https://github.com/ruby/ruby/blob/trunk/lib/rubygems/test_case.rb#L371
     File.chmod 0600, temp_cred
 
     Gem.instance_variable_set :@user_home, nil
+    Gem.instance_variable_set :@cache_home, nil
+    Gem.instance_variable_set :@data_home, nil
     Gem.instance_variable_set :@gemdeps, nil
     Gem.instance_variable_set :@env_requirements_by_name, nil
     Gem.send :remove_instance_variable, :@ruby_version if
-- 
cgit v0.10.2


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

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