X7ROOT File Manager
Current Path:
/opt/alt/ruby25/lib64/ruby/2.5.0/rubygems
opt
/
alt
/
ruby25
/
lib64
/
ruby
/
2.5.0
/
rubygems
/
ðŸ“
..
📄
available_set.rb
(3.02 KB)
📄
basic_specification.rb
(7.36 KB)
📄
bundler_version_finder.rb
(2.69 KB)
📄
command.rb
(13.98 KB)
📄
command_manager.rb
(4.77 KB)
ðŸ“
commands
📄
compatibility.rb
(1.66 KB)
📄
config_file.rb
(12.51 KB)
ðŸ“
core_ext
📄
defaults.rb
(4.46 KB)
📄
dependency.rb
(8.38 KB)
📄
dependency_installer.rb
(14.17 KB)
📄
dependency_list.rb
(5.55 KB)
📄
deprecate.rb
(1.73 KB)
📄
doctor.rb
(3.06 KB)
📄
errors.rb
(4.62 KB)
📄
exceptions.rb
(6.39 KB)
ðŸ“
ext
📄
ext.rb
(461 B)
📄
gem_runner.rb
(2.18 KB)
📄
gemcutter_utilities.rb
(4.37 KB)
📄
indexer.rb
(11.06 KB)
📄
install_default_message.rb
(337 B)
📄
install_message.rb
(311 B)
📄
install_update_options.rb
(6.89 KB)
📄
installer.rb
(25.11 KB)
📄
installer_test_case.rb
(4.41 KB)
📄
local_remote_options.rb
(3.4 KB)
📄
mock_gem_ui.rb
(1.38 KB)
📄
name_tuple.rb
(2.41 KB)
ðŸ“
package
📄
package.rb
(16.47 KB)
📄
package_task.rb
(3.8 KB)
📄
path_support.rb
(1.72 KB)
📄
platform.rb
(6.25 KB)
📄
psych_additions.rb
(300 B)
📄
psych_tree.rb
(793 B)
📄
rdoc.rb
(7.74 KB)
📄
remote_fetcher.rb
(11.67 KB)
ðŸ“
request
📄
request.rb
(8.66 KB)
ðŸ“
request_set
📄
request_set.rb
(10.77 KB)
📄
requirement.rb
(6.59 KB)
ðŸ“
resolver
📄
resolver.rb
(9.53 KB)
📄
safe_yaml.rb
(1.15 KB)
ðŸ“
security
📄
security.rb
(21.13 KB)
📄
security_option.rb
(1.06 KB)
📄
server.rb
(22.72 KB)
ðŸ“
source
📄
source.rb
(5.42 KB)
📄
source_list.rb
(2.53 KB)
📄
source_local.rb
(275 B)
📄
source_specific_file.rb
(272 B)
📄
spec_fetcher.rb
(6.47 KB)
📄
specification.rb
(82.56 KB)
ðŸ“
ssl_certs
📄
stub_specification.rb
(4.86 KB)
📄
syck_hack.rb
(2.12 KB)
📄
test_case.rb
(40.33 KB)
📄
test_utilities.rb
(8.63 KB)
📄
text.rb
(1.88 KB)
📄
uninstaller.rb
(8.74 KB)
📄
uri_formatter.rb
(792 B)
📄
user_interaction.rb
(14.54 KB)
ðŸ“
util
📄
util.rb
(2.57 KB)
📄
validator.rb
(4.23 KB)
📄
version.rb
(11.97 KB)
📄
version_option.rb
(2.03 KB)
Editing: defaults.rb
# frozen_string_literal: true module Gem DEFAULT_HOST = "https://rubygems.org" @post_install_hooks ||= [] @done_installing_hooks ||= [] @post_uninstall_hooks ||= [] @pre_uninstall_hooks ||= [] @pre_install_hooks ||= [] ## # An Array of the default sources that come with RubyGems def self.default_sources %w[https://rubygems.org/] end ## # Default spec directory path to be used if an alternate value is not # specified in the environment def self.default_spec_cache_dir File.join Gem.user_home, '.gem', 'specs' end ## # Default home directory path to be used if an alternate value is not # specified in the environment def self.default_dir path = if defined? RUBY_FRAMEWORK_VERSION then [ File.dirname(RbConfig::CONFIG['sitedir']), 'Gems', RbConfig::CONFIG['ruby_version'] ] elsif RbConfig::CONFIG['rubylibprefix'] then [ RbConfig::CONFIG['rubylibprefix'], 'gems', RbConfig::CONFIG['ruby_version'] ] else [ RbConfig::CONFIG['libdir'], ruby_engine, 'gems', RbConfig::CONFIG['ruby_version'] ] end @default_dir ||= File.join(*path) end ## # Returns binary extensions dir for specified RubyGems base dir or nil # if such directory cannot be determined. # # By default, the binary extensions are located side by side with their # Ruby counterparts, therefore nil is returned def self.default_ext_dir_for base_dir nil end ## # Paths where RubyGems' .rb files and bin files are installed def self.default_rubygems_dirs nil # default to standard layout end ## # Path for gems in the user's home directory def self.user_dir parts = [Gem.user_home, '.gem', ruby_engine] parts << RbConfig::CONFIG['ruby_version'] unless RbConfig::CONFIG['ruby_version'].empty? File.join parts end ## # How String Gem paths should be split. Overridable for esoteric platforms. def self.path_separator File::PATH_SEPARATOR end ## # Default gem load path def self.default_path path = [] path << user_dir if user_home && File.exist?(user_home) path << default_dir path << vendor_dir if vendor_dir and File.directory? vendor_dir path end ## # Deduce Ruby's --program-prefix and --program-suffix from its install name def self.default_exec_format exec_format = RbConfig::CONFIG['ruby_install_name'].sub('ruby', '%s') rescue '%s' unless exec_format =~ /%s/ then raise Gem::Exception, "[BUG] invalid exec_format #{exec_format.inspect}, no %s" end exec_format end ## # The default directory for binaries def self.default_bindir if defined? RUBY_FRAMEWORK_VERSION then # mac framework support '/usr/bin' else # generic install RbConfig::CONFIG['bindir'] end end ## # A wrapper around RUBY_ENGINE const that may not be defined def self.ruby_engine if defined? RUBY_ENGINE then RUBY_ENGINE else 'ruby' end end ## # The default signing key path def self.default_key_path File.join Gem.user_home, ".gem", "gem-private_key.pem" end ## # The default signing certificate chain path def self.default_cert_path File.join Gem.user_home, ".gem", "gem-public_cert.pem" end ## # Whether to expect full paths in default gems - true for non-MRI # ruby implementations def self.default_gems_use_full_paths? ruby_engine != 'ruby' end ## # Install extensions into lib as well as into the extension directory. def self.install_extension_in_lib # :nodoc: true end ## # Directory where vendor gems are installed. def self.vendor_dir # :nodoc: if vendor_dir = ENV['GEM_VENDOR'] then return vendor_dir.dup end return nil unless RbConfig::CONFIG.key? 'vendordir' File.join RbConfig::CONFIG['vendordir'], 'gems', RbConfig::CONFIG['ruby_version'] end ## # Default options for gem commands. # # The options here should be structured as an array of string "gem" # command names as keys and a string of the default options as values. # # Example: # # def self.platform_defaults # { # 'install' => '--no-rdoc --no-ri --env-shebang', # 'update' => '--no-rdoc --no-ri --env-shebang' # } # end def self.platform_defaults {} end end
Upload File
Create Folder