opt
/
alt
/
ruby26
/
lib64
/
ruby
/
2.6.0
/
rubygems
/
Go to Home Directory
+
Upload
Create File
root@0UT1S:~$
Execute
By Order of Mr.0UT1S
[DIR] ..
N/A
[DIR] commands
N/A
[DIR] core_ext
N/A
[DIR] ext
N/A
[DIR] package
N/A
[DIR] request
N/A
[DIR] request_set
N/A
[DIR] resolver
N/A
[DIR] security
N/A
[DIR] source
N/A
[DIR] ssl_certs
N/A
[DIR] util
N/A
available_set.rb
3.02 KB
Rename
Delete
basic_specification.rb
7.34 KB
Rename
Delete
bundler_version_finder.rb
2.78 KB
Rename
Delete
command.rb
14.06 KB
Rename
Delete
command_manager.rb
4.99 KB
Rename
Delete
compatibility.rb
1014 bytes
Rename
Delete
config_file.rb
12.61 KB
Rename
Delete
defaults.rb
4.91 KB
Rename
Delete
dependency.rb
8.42 KB
Rename
Delete
dependency_installer.rb
14.37 KB
Rename
Delete
dependency_list.rb
5.52 KB
Rename
Delete
deprecate.rb
1.73 KB
Rename
Delete
doctor.rb
3.06 KB
Rename
Delete
errors.rb
4.63 KB
Rename
Delete
exceptions.rb
6.62 KB
Rename
Delete
ext.rb
460 bytes
Rename
Delete
gem_runner.rb
2.18 KB
Rename
Delete
gemcutter_utilities.rb
5.20 KB
Rename
Delete
indexer.rb
11.27 KB
Rename
Delete
install_default_message.rb
336 bytes
Rename
Delete
install_message.rb
310 bytes
Rename
Delete
install_update_options.rb
6.26 KB
Rename
Delete
installer.rb
26.37 KB
Rename
Delete
installer_test_case.rb
4.12 KB
Rename
Delete
local_remote_options.rb
3.54 KB
Rename
Delete
mock_gem_ui.rb
1.38 KB
Rename
Delete
name_tuple.rb
2.41 KB
Rename
Delete
package.rb
17.52 KB
Rename
Delete
package_task.rb
3.80 KB
Rename
Delete
path_support.rb
1.87 KB
Rename
Delete
platform.rb
6.25 KB
Rename
Delete
psych_additions.rb
300 bytes
Rename
Delete
psych_tree.rb
794 bytes
Rename
Delete
rdoc.rb
523 bytes
Rename
Delete
remote_fetcher.rb
11.38 KB
Rename
Delete
request.rb
8.69 KB
Rename
Delete
request_set.rb
11.93 KB
Rename
Delete
requirement.rb
7.38 KB
Rename
Delete
resolver.rb
9.44 KB
Rename
Delete
safe_yaml.rb
1.55 KB
Rename
Delete
security.rb
21.24 KB
Rename
Delete
security_option.rb
1.06 KB
Rename
Delete
server.rb
22.72 KB
Rename
Delete
source.rb
5.20 KB
Rename
Delete
source_list.rb
2.53 KB
Rename
Delete
source_local.rb
274 bytes
Rename
Delete
source_specific_file.rb
272 bytes
Rename
Delete
spec_fetcher.rb
6.51 KB
Rename
Delete
specification.rb
72.70 KB
Rename
Delete
specification_policy.rb
10.69 KB
Rename
Delete
stub_specification.rb
4.81 KB
Rename
Delete
syck_hack.rb
2.12 KB
Rename
Delete
test_case.rb
43.33 KB
Rename
Delete
test_utilities.rb
8.39 KB
Rename
Delete
text.rb
1.86 KB
Rename
Delete
uninstaller.rb
8.91 KB
Rename
Delete
uri_formatter.rb
792 bytes
Rename
Delete
user_interaction.rb
13.29 KB
Rename
Delete
util.rb
2.70 KB
Rename
Delete
validator.rb
4.21 KB
Rename
Delete
version.rb
12.22 KB
Rename
Delete
version_option.rb
2.02 KB
Rename
Delete
# frozen_string_literal: true #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. # See LICENSE.txt for permissions. #++ require 'rubygems' require 'rubygems/security_option' ## # Mixin methods for install and update options for Gem::Commands module Gem::InstallUpdateOptions include Gem::SecurityOption ## # Add the install/update options to the option parser. def add_install_update_options add_option(:"Install/Update", '-i', '--install-dir DIR', 'Gem repository directory to get installed', 'gems') do |value, options| options[:install_dir] = File.expand_path(value) end add_option(:"Install/Update", '-n', '--bindir DIR', 'Directory where executables are', 'located') do |value, options| options[:bin_dir] = File.expand_path(value) end add_option(:"Install/Update", '--document [TYPES]', Array, 'Generate documentation for installed gems', 'List the documentation types you wish to', 'generate. For example: rdoc,ri') do |value, options| options[:document] = case value when nil then %w[ri] when false then [] else value end end add_option(:"Install/Update", '--build-root DIR', 'Temporary installation root. Useful for building', 'packages. Do not use this when installing remote gems.') do |value, options| options[:build_root] = File.expand_path(value) end add_option(:"Install/Update", '--vendor', 'Install gem into the vendor directory.', 'Only for use by gem repackagers.') do |value, options| unless Gem.vendor_dir raise OptionParser::InvalidOption.new 'your platform is not supported' end options[:vendor] = true options[:install_dir] = Gem.vendor_dir end add_option(:"Install/Update", '-N', '--no-document', 'Disable documentation generation') do |value, options| options[:document] = [] end add_option(:"Install/Update", '-E', '--[no-]env-shebang', "Rewrite the shebang line on installed", "scripts to use /usr/bin/env") do |value, options| options[:env_shebang] = value end add_option(:"Install/Update", '-f', '--[no-]force', 'Force gem to install, bypassing dependency', 'checks') do |value, options| options[:force] = value end add_option(:"Install/Update", '-w', '--[no-]wrappers', 'Use bin wrappers for executables', 'Not available on dosish platforms') do |value, options| options[:wrappers] = value end add_security_option add_option(:"Install/Update", '--ignore-dependencies', 'Do not install any required dependent gems') do |value, options| options[:ignore_dependencies] = value end add_option(:"Install/Update", '--[no-]format-executable', 'Make installed executable names match Ruby.', 'If Ruby is ruby18, foo_exec will be', 'foo_exec18') do |value, options| options[:format_executable] = value end add_option(:"Install/Update", '--[no-]user-install', 'Install in user\'s home directory instead', 'of GEM_HOME.') do |value, options| options[:user_install] = value end add_option(:"Install/Update", "--development", "Install additional development", "dependencies") do |value, options| options[:development] = true options[:dev_shallow] = true end add_option(:"Install/Update", "--development-all", "Install development dependencies for all", "gems (including dev deps themselves)") do |value, options| options[:development] = true options[:dev_shallow] = false end add_option(:"Install/Update", "--conservative", "Don't attempt to upgrade gems already", "meeting version requirement") do |value, options| options[:conservative] = true options[:minimal_deps] = true end add_option(:"Install/Update", "--minimal-deps", "Don't upgrade any dependencies that already", "meet version requirements") do |value, options| options[:minimal_deps] = true end add_option(:"Install/Update", "--[no-]post-install-message", "Print post install message") do |value, options| options[:post_install_message] = value end add_option(:"Install/Update", '-g', '--file [FILE]', 'Read from a gem dependencies API file and', 'install the listed gems') do |v,o| v = Gem::GEM_DEP_FILES.find do |file| File.exist? file end unless v unless v message = v ? v : "(tried #{Gem::GEM_DEP_FILES.join ', '})" raise OptionParser::InvalidArgument, "cannot find gem dependencies file #{message}" end options[:gemdeps] = v end add_option(:"Install/Update", '--without GROUPS', Array, 'Omit the named groups (comma separated)', 'when installing from a gem dependencies', 'file') do |v,o| options[:without_groups].concat v.map { |without| without.intern } end add_option(:"Install/Update", '--default', 'Add the gem\'s full specification to', 'specifications/default and extract only its bin') do |v,o| options[:install_as_default] = v end add_option(:"Install/Update", '--explain', 'Rather than install the gems, indicate which would', 'be installed') do |v,o| options[:explain] = v end add_option(:"Install/Update", '--[no-]lock', 'Create a lock file (when used with -g/--file)') do |v,o| options[:lock] = v end add_option(:"Install/Update", '--[no-]suggestions', 'Suggest alternates when gems are not found') do |v,o| options[:suggest_alternate] = v end end ## # Default options for the gem install command. def install_update_defaults_str '--document=rdoc,ri --wrappers' end end
Save