summaryrefslogtreecommitdiff
path: root/lib/rubygems/config_file.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-03-10 12:39:05 +0900
committergit <svn-admin@ruby-lang.org>2024-02-20 05:33:14 +0000
commit94dd4dc3b2da1828b71bdf716918d2b789486651 (patch)
tree9d482a9e846555be8e592bc180b43dbeffa8024b /lib/rubygems/config_file.rb
parent83148f83420a66ceaacb1f24bfcdc51516f5e0d7 (diff)
[rubygems/rubygems] Gem.install_extension_in_lib is now under the Gem.configuration
https://github.com/rubygems/rubygems/commit/c394375b28
Diffstat (limited to 'lib/rubygems/config_file.rb')
-rw-r--r--lib/rubygems/config_file.rb12
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/rubygems/config_file.rb b/lib/rubygems/config_file.rb
index dafd05fddb..d61b8cb5ce 100644
--- a/lib/rubygems/config_file.rb
+++ b/lib/rubygems/config_file.rb
@@ -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 = false
##
# For Ruby packagers to set configuration defaults. Set in
@@ -60,11 +61,6 @@ class Gem::ConfigFile
PLATFORM_DEFAULTS = Gem.platform_defaults
- ##
- # For installation of gems to install build extensions into lib dir
-
- INSTALL_EXTENSION_IN_LIB = Gem.install_extension_in_lib
-
# :stopdoc:
SYSTEM_CONFIG_PATH =
@@ -148,7 +144,7 @@ class Gem::ConfigFile
attr_accessor :cert_expiration_length_days
##
- #
+ # Install extensions into lib as well as into the extension directory.
attr_accessor :install_extension_in_lib
@@ -193,7 +189,7 @@ class Gem::ConfigFile
@update_sources = DEFAULT_UPDATE_SOURCES
@concurrent_downloads = DEFAULT_CONCURRENT_DOWNLOADS
@cert_expiration_length_days = DEFAULT_CERT_EXPIRATION_LENGTH_DAYS
- @install_extension_in_lib = INSTALL_EXTENSION_IN_LIB
+ @install_extension_in_lib = DEFAULT_INSTALL_EXTENSION_IN_LIB
@ipv4_fallback_enabled = ENV["IPV4_FALLBACK_ENABLED"] == "true" || DEFAULT_IPV4_FALLBACK_ENABLED
operating_system_config = Marshal.load Marshal.dump(OPERATING_SYSTEM_DEFAULTS)
@@ -477,7 +473,7 @@ if you believe they were disclosed to a third party.
@hash.fetch(:concurrent_downloads, DEFAULT_CONCURRENT_DOWNLOADS)
yaml_hash[:install_extension_in_lib] =
- @hash.fetch(:install_extension_in_lib, INSTALL_EXTENSION_IN_LIB)
+ @hash.fetch(:install_extension_in_lib, DEFAULT_INSTALL_EXTENSION_IN_LIB)
yaml_hash[:ssl_verify_mode] =
@hash[:ssl_verify_mode] if @hash.key? :ssl_verify_mode