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

ruby-changes:57935

From: Nobuyoshi <ko1@a...>
Date: Thu, 26 Sep 2019 22:57:45 +0900 (JST)
Subject: [ruby-changes:57935] b29c68e687 (master): Restore ENV, rubygems always sets SOURCE_DATE_EPOCH now

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

From b29c68e6876976b22f64318bf390f05447e4ca01 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Thu, 26 Sep 2019 22:57:25 +0900
Subject: Restore ENV, rubygems always sets SOURCE_DATE_EPOCH now


diff --git a/test/rdoc/test_rdoc_ri_paths.rb b/test/rdoc/test_rdoc_ri_paths.rb
index 01ade58..726922d 100644
--- a/test/rdoc/test_rdoc_ri_paths.rb
+++ b/test/rdoc/test_rdoc_ri_paths.rb
@@ -6,6 +6,7 @@ class TestRDocRIPaths < RDoc::TestCase https://github.com/ruby/ruby/blob/trunk/test/rdoc/test_rdoc_ri_paths.rb#L6
   def setup
     super
 
+    @orig_env = ENV.to_hash
     @orig_gem_path = Gem.path
 
     @tempdir = File.join Dir.tmpdir, "test_rdoc_ri_paths_#{$$}"
@@ -40,6 +41,7 @@ class TestRDocRIPaths < RDoc::TestCase https://github.com/ruby/ruby/blob/trunk/test/rdoc/test_rdoc_ri_paths.rb#L41
     Gem.use_paths(*@orig_gem_path)
     Gem::Specification.reset
     FileUtils.rm_rf @tempdir
+    ENV.replace(@orig_env)
   end
 
   def test_class_each
-- 
cgit v0.10.2


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

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