From 716473e348eb74c5d437f570cd0d2a1efe30a8ae Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Mon, 25 Mar 2024 17:12:31 +0900 Subject: [PATCH] Use load_gemspec instead of Gem::Specification.load. We need to purge `git ls-files` from gemspec in default gems. --- tool/rbinstall.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index f28a183356..7cb584bdd7 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -827,7 +827,7 @@ module RbInstall end def ext_features - loaded_gemspec = Gem::Specification.load("#{root}/#{gemspec}") + loaded_gemspec = load_gemspec("#{root}/#{gemspec}") extension = loaded_gemspec.extensions.first return [] unless extension