From 321ed86e93a34833bd869c6bc3f52d84b8ecce35 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 19 Jun 2024 19:31:18 +0900 Subject: [PATCH] [rubygems/rubygems] Do not set previously unset value https://github.com/rubygems/rubygems/commit/0148cce153 --- test/rubygems/test_gem_installer.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/rubygems/test_gem_installer.rb b/test/rubygems/test_gem_installer.rb index 61609a26c9..52498cdd6d 100644 --- a/test/rubygems/test_gem_installer.rb +++ b/test/rubygems/test_gem_installer.rb @@ -2577,6 +2577,7 @@ end yield ensure - RbConfig::CONFIG["LIBRUBY_RELATIVE"] = orig_libruby_relative + # RbConfig::CONFIG values are strings only, there should not be a nil. + RbConfig::CONFIG["LIBRUBY_RELATIVE"] = orig_libruby_relative if orig_libruby_relative end end