diff options
author | Hiroshi SHIBATA <[email protected]> | 2023-03-13 18:13:15 +0900 |
---|---|---|
committer | git <[email protected]> | 2023-03-15 03:35:54 +0000 |
commit | 55a0fbfaf855da513e7c8e1234e9edfd51693efa (patch) | |
tree | f46ea0706db1965d6bfe69e148397697c7a7587e /lib/rubygems/specification.rb | |
parent | 3dc8cde70078ccb38f5f4b0818ad5eecded01bd5 (diff) |
[rubygems/rubygems] Move build artifact detection logic for root gemspec to bundler from Gem::Specification.
Gem::Specification#missing_extension? is heavily called from RubyGems.
We should reduce extra method call from this place.
https://github.com/rubygems/rubygems/commit/e24e59d44d
Diffstat (limited to 'lib/rubygems/specification.rb')
-rw-r--r-- | lib/rubygems/specification.rb | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb index d58647c9b5..f018c8ead5 100644 --- a/lib/rubygems/specification.rb +++ b/lib/rubygems/specification.rb @@ -2184,16 +2184,6 @@ class Gem::Specification < Gem::BasicSpecification return false if default_gem? return false if File.exist? gem_build_complete_path - # When we use this methods with local gemspec, we don't handle - # build status of extension correctly. So We need to find extension - # files in require_paths. - # TODO: Gem::Specification couldn't access extension name from extconf.rb - # so we find them with heuristic way. We should improve it. - return false if (full_require_paths - [extension_dir]).any? do |path| - File.exist?(File.join(path, "#{name}.#{RbConfig::CONFIG['DLEXT']}")) || - !Dir.glob(File.join(path, name, "*.#{RbConfig::CONFIG['DLEXT']}")).empty? - end - true end |