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
[+]
core_ext
[-] update_suggestion.rb
[open]
[-] package_task.rb
[open]
[+]
..
[-] spec_fetcher.rb
[open]
[+]
resolver
[-] vendored_molinillo.rb
[open]
[-] psych_tree.rb
[open]
[-] dependency.rb
[open]
[-] package.rb
[open]
[-] install_update_options.rb
[open]
[-] available_set.rb
[open]
[-] exceptions.rb
[open]
[-] security_option.rb
[open]
[-] requirement.rb
[open]
[-] specification.rb
[open]
[-] defaults.rb
[open]
[+]
util
[-] target_rbconfig.rb
[open]
[-] vendored_optparse.rb
[open]
[-] resolver.rb
[open]
[-] deprecate.rb
[open]
[+]
package
[-] security.rb
[open]
[-] version_option.rb
[open]
[+]
ext
[-] uri_formatter.rb
[open]
[-] ext.rb
[open]
[-] bundler_version_finder.rb
[open]
[-] source.rb
[open]
[-] vendored_net_http.rb
[open]
[+]
defaults
[-] request.rb
[open]
[-] safe_yaml.rb
[open]
[-] gemspec_helpers.rb
[open]
[-] specification_policy.rb
[open]
[-] validator.rb
[open]
[-] path_support.rb
[open]
[-] vendored_tsort.rb
[open]
[-] gemcutter_utilities.rb
[open]
[+]
ssl_certs
[-] vendored_timeout.rb
[open]
[-] vendored_securerandom.rb
[open]
[-] text.rb
[open]
[-] openssl.rb
[open]
[+]
source
[-] errors.rb
[open]
[-] source_list.rb
[open]
[-] command.rb
[open]
[-] basic_specification.rb
[open]
[-] gem_runner.rb
[open]
[+]
request
[-] uri.rb
[open]
[-] version.rb
[open]
[+]
vendor
[-] util.rb
[open]
[-] platform.rb
[open]
[-] uninstaller.rb
[open]
[-] unknown_command_spell_checker.rb
[open]
[-] specification_record.rb
[open]
[-] remote_fetcher.rb
[open]
[-] dependency_list.rb
[open]
[-] safe_marshal.rb
[open]
[-] yaml_serializer.rb
[open]
[+]
commands
[-] local_remote_options.rb
[open]
[-] installer_uninstaller_utils.rb
[open]
[-] name_tuple.rb
[open]
[-] request_set.rb
[open]
[-] install_default_message.rb
[open]
[-] query_utils.rb
[open]
[-] compatibility.rb
[open]
[-] user_interaction.rb
[open]
[+]
request_set
[-] install_message.rb
[open]
[-] doctor.rb
[open]
[+]
safe_marshal
[-] s3_uri_signer.rb
[open]
[-] stub_specification.rb
[open]
[-] command_manager.rb
[open]
[-] rdoc.rb
[open]
[+]
security
[-] config_file.rb
[open]
[-] ci_detector.rb
[open]
[-] installer.rb
[open]
[+]
gemcutter_utilities
[-] dependency_installer.rb
[open]