summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2024-03-25 17:12:31 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2024-03-25 17:37:13 +0900
commit152192c96f30b66f3257faafeb7b34043506ae8f (patch)
tree4333f22d351ce87c1acc68c36448106de9d0ee38
parent6c65f11c080f73cee91be386f0ca26dd0fbdb717 (diff)
Use load_gemspec instead of Gem::Specification.load.
We need to purge `git ls-files` from gemspec in default gems.
-rwxr-xr-xtool/rbinstall.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index 788277bb70..cdaeff6668 100755
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -631,7 +631,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