diff options
author | Hiroshi SHIBATA <[email protected]> | 2023-03-17 20:47:00 +0900 |
---|---|---|
committer | git <[email protected]> | 2024-02-20 05:33:16 +0000 |
commit | f75b9dbf7dd86f8fa6777a9c9c960c310c940261 () | |
tree | 6f50ac5cfcc596dc63658818c1def88a8d642c53 /lib | |
parent | f2d453347f9174f6abf2abf8b2d870c5fccabdfb (diff) |
[rubygems/rubygems] Keep Gem.install_extension_in_lib for compatibility
https://.com/rubygems/rubygems/commit/b2bf239147
-rw-r--r-- | lib/rubygems/config_file.rb | 1 | ||||
-rw-r--r-- | lib/rubygems/defaults.rb | 7 | ||||
-rw-r--r-- | lib/rubygems/ext/cargo_builder.rb | 2 | ||||
-rw-r--r-- | lib/rubygems/ext/ext_conf_builder.rb | 2 |
4 files changed, 10 insertions, 2 deletions
@@ -47,6 +47,7 @@ class Gem::ConfigFile DEFAULT_CONCURRENT_DOWNLOADS = 8 DEFAULT_CERT_EXPIRATION_LENGTH_DAYS = 365 DEFAULT_IPV4_FALLBACK_ENABLED = false DEFAULT_INSTALL_EXTENSION_IN_LIB = true ## @@ -248,6 +248,13 @@ module Gem end ## # Directory where vendor gems are installed. def self.vendor_dir # :nodoc: @@ -47,7 +47,7 @@ class Gem::Ext::CargoBuilder < Gem::Ext::Builder nesting = extension_nesting(extension) - if Gem.configuration.install_extension_in_lib && lib_dir nested_lib_dir = File.join(lib_dir, nesting) FileUtils.mkdir_p nested_lib_dir FileUtils.cp_r dlext_path, nested_lib_dir, remove_destination: true @@ -43,7 +43,7 @@ class Gem::Ext::ExtConfBuilder < Gem::Ext::Builder full_tmp_dest = File.join(extension_dir, tmp_dest_relative) - if Gem.configuration.install_extension_in_lib && lib_dir FileUtils.mkdir_p lib_dir entries = Dir.entries(full_tmp_dest) - %w[. ..] entries = entries.map {|entry| File.join full_tmp_dest, entry } |