diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2023-12-07 22:49:14 +0100 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-12-12 10:04:56 +0900 |
commit | a811ebf3d5113971b6dc62a8c56053bca1a1d49b (patch) | |
tree | 8308f793fff9e4402a6cbcada01125012b8e764f /lib/bundler/rubygems_ext.rb | |
parent | 38348502b5429703e418cf4634e405ce77fd4bbc (diff) |
[rubygems/rubygems] Revert missing extensions patch
https://github.com/rubygems/rubygems/commit/4016c6c024
Diffstat (limited to 'lib/bundler/rubygems_ext.rb')
-rw-r--r-- | lib/bundler/rubygems_ext.rb | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/bundler/rubygems_ext.rb b/lib/bundler/rubygems_ext.rb index 62a9426a72..876c03eb9f 100644 --- a/lib/bundler/rubygems_ext.rb +++ b/lib/bundler/rubygems_ext.rb @@ -78,24 +78,6 @@ module Gem end end - alias_method :rg_missing_extensions?, :missing_extensions? - def missing_extensions? - # 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. - if source.respond_to?(:root) - return false if raw_require_paths.any? do |path| - ext_dir = File.join(full_gem_path, path) - File.exist?(File.join(ext_dir, "#{name}.#{RbConfig::CONFIG["DLEXT"]}")) || - !Dir.glob(File.join(ext_dir, name, "*.#{RbConfig::CONFIG["DLEXT"]}")).empty? - end - end - - rg_missing_extensions? - end - remove_method :gem_dir def gem_dir full_gem_path |