PATH:
opt
/
alt
/
ruby34
/
share
/
rubygems
/
rubygems
# frozen_string_literal: true require "rbconfig" ## # A TargetConfig is a wrapper around an RbConfig object that provides a # consistent interface for querying configuration for *deployment target # platform*, where the gem being installed is intended to run on. # # The TargetConfig is typically created from the RbConfig of the running Ruby # process, but can also be created from an RbConfig file on disk for cross- # compiling gems. class Gem::TargetRbConfig attr_reader :path def initialize(rbconfig, path) @rbconfig = rbconfig @path = path end ## # Creates a TargetRbConfig for the platform that RubyGems is running on. def self.for_running_ruby new(::RbConfig, nil) end ## # Creates a TargetRbConfig from the RbConfig file at the given path. # Typically used for cross-compiling gems. def self.from_path(rbconfig_path) namespace = Module.new do |m| # Load the rbconfig.rb file within a new anonymous module to avoid # conflicts with the rbconfig for the running platform. Kernel.load rbconfig_path, m end rbconfig = namespace.const_get(:RbConfig) new(rbconfig, rbconfig_path) end ## # Queries the configuration for the given key. def [](key) @rbconfig::CONFIG[key] end end
[+]
..
[-] vendored_net_http.rb
[edit]
[+]
resolver
[-] dependency_installer.rb
[edit]
[-] exceptions.rb
[edit]
[-] command.rb
[edit]
[-] source.rb
[edit]
[-] specification.rb
[edit]
[-] path_support.rb
[edit]
[+]
commands
[-] rdoc.rb
[edit]
[+]
util
[-] uri_formatter.rb
[edit]
[+]
ext
[+]
source
[-] compatibility.rb
[edit]
[+]
safe_marshal
[-] openssl.rb
[edit]
[-] version.rb
[edit]
[-] request.rb
[edit]
[-] vendored_timeout.rb
[edit]
[-] request_set.rb
[edit]
[-] update_suggestion.rb
[edit]
[-] remote_fetcher.rb
[edit]
[-] version_option.rb
[edit]
[-] dependency_list.rb
[edit]
[+]
request
[-] uri.rb
[edit]
[-] basic_specification.rb
[edit]
[-] config_file.rb
[edit]
[-] platform.rb
[edit]
[-] gemspec_helpers.rb
[edit]
[-] query_utils.rb
[edit]
[-] install_message.rb
[edit]
[-] gem_runner.rb
[edit]
[-] gemcutter_utilities.rb
[edit]
[-] installer.rb
[edit]
[+]
gemcutter_utilities
[-] available_set.rb
[edit]
[+]
vendor
[-] s3_uri_signer.rb
[edit]
[-] safe_yaml.rb
[edit]
[-] spec_fetcher.rb
[edit]
[-] validator.rb
[edit]
[-] specification_policy.rb
[edit]
[-] util.rb
[edit]
[-] command_manager.rb
[edit]
[-] name_tuple.rb
[edit]
[-] package_task.rb
[edit]
[-] source_list.rb
[edit]
[-] security.rb
[edit]
[+]
defaults
[-] yaml_serializer.rb
[edit]
[-] ext.rb
[edit]
[-] vendored_securerandom.rb
[edit]
[-] local_remote_options.rb
[edit]
[-] psych_tree.rb
[edit]
[-] security_option.rb
[edit]
[+]
request_set
[+]
ssl_certs
[-] errors.rb
[edit]
[-] install_update_options.rb
[edit]
[-] stub_specification.rb
[edit]
[-] dependency.rb
[edit]
[-] user_interaction.rb
[edit]
[-] unknown_command_spell_checker.rb
[edit]
[-] uninstaller.rb
[edit]
[-] package.rb
[edit]
[-] ci_detector.rb
[edit]
[-] deprecate.rb
[edit]
[-] vendored_optparse.rb
[edit]
[-] vendored_molinillo.rb
[edit]
[-] install_default_message.rb
[edit]
[-] bundler_version_finder.rb
[edit]
[-] target_rbconfig.rb
[edit]
[-] installer_uninstaller_utils.rb
[edit]
[-] vendored_tsort.rb
[edit]
[+]
core_ext
[+]
package
[-] requirement.rb
[edit]
[-] safe_marshal.rb
[edit]
[-] doctor.rb
[edit]
[-] resolver.rb
[edit]
[-] specification_record.rb
[edit]
[-] text.rb
[edit]
[-] defaults.rb
[edit]
[+]
security