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.191.156.36
Domains :
Cant Read [ /etc/named.conf ]
User : cleahvkv
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby26 /
lib64 /
ruby /
2.6.0 /
bundler /
Delete
Unzip
Name
Size
Permission
Date
Action
cli
[ DIR ]
drwxr-xr-x
2024-03-03 22:47
compact_index_client
[ DIR ]
drwxr-xr-x
2024-03-03 22:47
fetcher
[ DIR ]
drwxr-xr-x
2024-03-03 22:47
installer
[ DIR ]
drwxr-xr-x
2024-03-03 22:47
plugin
[ DIR ]
drwxr-xr-x
2024-03-03 22:47
resolver
[ DIR ]
drwxr-xr-x
2024-03-03 22:47
settings
[ 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
2024-03-03 22:47
templates
[ DIR ]
drwxr-xr-x
2024-03-03 22:47
ui
[ DIR ]
drwxr-xr-x
2024-03-03 22:47
vendor
[ DIR ]
drwxr-xr-x
2024-03-03 22:47
build_metadata.rb
1.61
KB
-rw-r--r--
2022-04-12 11:50
capistrano.rb
879
B
-rw-r--r--
2022-04-12 11:50
cli.rb
35.12
KB
-rw-r--r--
2022-04-12 11:50
compact_index_client.rb
3.27
KB
-rw-r--r--
2022-04-12 11:50
compatibility_guard.rb
518
B
-rw-r--r--
2022-04-12 11:50
constants.rb
212
B
-rw-r--r--
2022-04-12 11:50
current_ruby.rb
2.19
KB
-rw-r--r--
2022-04-12 11:50
definition.rb
36.44
KB
-rw-r--r--
2022-04-12 11:50
dep_proxy.rb
827
B
-rw-r--r--
2022-04-12 11:50
dependency.rb
4.43
KB
-rw-r--r--
2022-04-12 11:50
deployment.rb
3.19
KB
-rw-r--r--
2022-04-12 11:50
deprecate.rb
876
B
-rw-r--r--
2022-04-12 11:50
dsl.rb
21.46
KB
-rw-r--r--
2022-04-12 11:50
endpoint_specification.rb
3.91
KB
-rw-r--r--
2022-04-12 11:50
env.rb
5.22
KB
-rw-r--r--
2022-04-12 11:50
environment_preserver.rb
1.31
KB
-rw-r--r--
2022-04-12 11:50
errors.rb
4.59
KB
-rw-r--r--
2022-04-12 11:50
feature_flag.rb
3.07
KB
-rw-r--r--
2022-04-12 11:50
fetcher.rb
10.83
KB
-rw-r--r--
2022-04-12 11:50
friendly_errors.rb
4.33
KB
-rw-r--r--
2022-04-12 11:50
gem_helper.rb
5.88
KB
-rw-r--r--
2022-04-12 11:50
gem_helpers.rb
3.19
KB
-rw-r--r--
2022-04-12 11:50
gem_remote_fetcher.rb
1.46
KB
-rw-r--r--
2022-04-12 11:50
gem_tasks.rb
137
B
-rw-r--r--
2022-04-12 11:50
gem_version_promoter.rb
6.52
KB
-rw-r--r--
2022-04-12 11:50
gemdeps.rb
423
B
-rw-r--r--
2022-04-12 11:50
graph.rb
5
KB
-rw-r--r--
2022-04-12 11:50
index.rb
5.24
KB
-rw-r--r--
2022-04-12 11:50
injector.rb
8.61
KB
-rw-r--r--
2022-04-12 11:50
inline.rb
2.33
KB
-rw-r--r--
2022-04-12 11:50
installer.rb
11.85
KB
-rw-r--r--
2022-04-12 11:50
lazy_specification.rb
3.62
KB
-rw-r--r--
2022-04-12 11:50
lockfile_generator.rb
2.18
KB
-rw-r--r--
2022-04-12 11:50
lockfile_parser.rb
8.62
KB
-rw-r--r--
2022-04-12 11:50
match_platform.rb
659
B
-rw-r--r--
2022-04-12 11:50
mirror.rb
5.79
KB
-rw-r--r--
2022-04-12 11:50
plugin.rb
9.12
KB
-rw-r--r--
2022-04-12 11:50
process_lock.rb
702
B
-rw-r--r--
2022-04-12 11:50
psyched_yaml.rb
853
B
-rw-r--r--
2022-04-12 11:50
remote_specification.rb
3.46
KB
-rw-r--r--
2022-04-12 11:50
resolver.rb
14.2
KB
-rw-r--r--
2022-04-12 11:50
retry.rb
1.6
KB
-rw-r--r--
2022-04-12 11:50
ruby_dsl.rb
761
B
-rw-r--r--
2022-04-12 11:50
ruby_version.rb
4.96
KB
-rw-r--r--
2022-04-12 11:50
rubygems_ext.rb
5.88
KB
-rw-r--r--
2022-04-12 11:50
rubygems_gem_installer.rb
3.49
KB
-rw-r--r--
2022-04-12 11:50
rubygems_integration.rb
25.01
KB
-rw-r--r--
2022-04-12 11:50
runtime.rb
10.95
KB
-rw-r--r--
2022-04-12 11:50
settings.rb
12.38
KB
-rw-r--r--
2022-04-12 11:50
setup.rb
720
B
-rw-r--r--
2022-04-12 11:50
shared_helpers.rb
12
KB
-rw-r--r--
2022-04-12 11:50
similarity_detector.rb
1.84
KB
-rw-r--r--
2022-04-12 11:50
source.rb
2.66
KB
-rw-r--r--
2022-04-12 11:50
source_list.rb
5.87
KB
-rw-r--r--
2022-04-12 11:50
spec_set.rb
5.34
KB
-rw-r--r--
2022-04-12 11:50
stub_specification.rb
2.78
KB
-rw-r--r--
2022-04-12 11:50
ui.rb
198
B
-rw-r--r--
2022-04-12 11:50
uri_credentials_filter.rb
1.2
KB
-rw-r--r--
2022-04-12 11:50
vendored_fileutils.rb
192
B
-rw-r--r--
2022-04-12 11:50
vendored_molinillo.rb
100
B
-rw-r--r--
2022-04-12 11:50
vendored_persistent.rb
1.61
KB
-rw-r--r--
2022-04-12 11:50
vendored_thor.rb
193
B
-rw-r--r--
2022-04-12 11:50
version.rb
821
B
-rw-r--r--
2022-04-12 11:50
version_ranges.rb
2.86
KB
-rw-r--r--
2022-04-12 11:50
vlad.rb
466
B
-rw-r--r--
2022-04-12 11:50
worker.rb
2.57
KB
-rw-r--r--
2022-04-12 11:50
yaml_serializer.rb
2.41
KB
-rw-r--r--
2022-04-12 11:50
Save
Rename
# frozen_string_literal: true module Bundler class Runtime include SharedHelpers def initialize(root, definition) @root = root @definition = definition end def setup(*groups) @definition.ensure_equivalent_gemfile_and_lockfile if Bundler.frozen_bundle? groups.map!(&:to_sym) # Has to happen first clean_load_path specs = groups.any? ? @definition.specs_for(groups) : requested_specs SharedHelpers.set_bundle_environment Bundler.rubygems.replace_entrypoints(specs) # Activate the specs load_paths = specs.map do |spec| unless spec.loaded_from raise GemNotFound, "#{spec.full_name} is missing. Run `bundle install` to get it." end check_for_activated_spec!(spec) Bundler.rubygems.mark_loaded(spec) spec.load_paths.reject {|path| $LOAD_PATH.include?(path) } end.reverse.flatten # See Gem::Specification#add_self_to_load_path (since RubyGems 1.8) if insert_index = Bundler.rubygems.load_path_insert_index # Gem directories must come after -I and ENV['RUBYLIB'] $LOAD_PATH.insert(insert_index, *load_paths) else # We are probably testing in core, -I and RUBYLIB don't apply $LOAD_PATH.unshift(*load_paths) end setup_manpath lock(:preserve_unknown_sections => true) self end REQUIRE_ERRORS = [ /^no such file to load -- (.+)$/i, /^Missing \w+ (?:file\s*)?([^\s]+.rb)$/i, /^Missing API definition file in (.+)$/i, /^cannot load such file -- (.+)$/i, /^dlopen\([^)]*\): Library not loaded: (.+)$/i, ].freeze def require(*groups) groups.map!(&:to_sym) groups = [:default] if groups.empty? @definition.dependencies.each do |dep| # Skip the dependency if it is not in any of the requested groups, or # not for the current platform, or doesn't match the gem constraints. next unless (dep.groups & groups).any? && dep.should_include? required_file = nil begin # Loop through all the specified autorequires for the # dependency. If there are none, use the dependency's name # as the autorequire. Array(dep.autorequire || dep.name).each do |file| # Allow `require: true` as an alias for `require: <name>` file = dep.name if file == true required_file = file begin Kernel.require file rescue RuntimeError => e raise e if e.is_a?(LoadError) # we handle this a little later raise Bundler::GemRequireError.new e, "There was an error while trying to load the gem '#{file}'." end end rescue LoadError => e REQUIRE_ERRORS.find {|r| r =~ e.message } raise if dep.autorequire || $1 != required_file if dep.autorequire.nil? && dep.name.include?("-") begin namespaced_file = dep.name.tr("-", "/") Kernel.require namespaced_file rescue LoadError => e REQUIRE_ERRORS.find {|r| r =~ e.message } raise if $1 != namespaced_file end end end end end def self.definition_method(meth) define_method(meth) do raise ArgumentError, "no definition when calling Runtime##{meth}" unless @definition @definition.send(meth) end end private_class_method :definition_method definition_method :requested_specs definition_method :specs definition_method :dependencies definition_method :current_dependencies definition_method :requires def lock(opts = {}) return if @definition.nothing_changed? && !@definition.unlocking? @definition.lock(Bundler.default_lockfile, opts[:preserve_unknown_sections]) end alias_method :gems, :specs def cache(custom_path = nil) cache_path = Bundler.app_cache(custom_path) SharedHelpers.filesystem_access(cache_path) do |p| FileUtils.mkdir_p(p) end unless File.exist?(cache_path) Bundler.ui.info "Updating files in #{Bundler.settings.app_cache_path}" specs_to_cache = Bundler.settings[:cache_all_platforms] ? @definition.resolve.materialized_for_all_platforms : specs specs_to_cache.each do |spec| next if spec.name == "bundler" next if spec.source.is_a?(Source::Gemspec) spec.source.send(:fetch_gem, spec) if Bundler.settings[:cache_all_platforms] && spec.source.respond_to?(:fetch_gem, true) spec.source.cache(spec, custom_path) if spec.source.respond_to?(:cache) end Dir[cache_path.join("*/.git")].each do |git_dir| FileUtils.rm_rf(git_dir) FileUtils.touch(File.expand_path("../.bundlecache", git_dir)) end prune_cache(cache_path) unless Bundler.settings[:no_prune] end def prune_cache(cache_path) SharedHelpers.filesystem_access(cache_path) do |p| FileUtils.mkdir_p(p) end unless File.exist?(cache_path) resolve = @definition.resolve prune_gem_cache(resolve, cache_path) prune_git_and_path_cache(resolve, cache_path) end def clean(dry_run = false) gem_bins = Dir["#{Gem.dir}/bin/*"] git_dirs = Dir["#{Gem.dir}/bundler/gems/*"] git_cache_dirs = Dir["#{Gem.dir}/cache/bundler/git/*"] gem_dirs = Dir["#{Gem.dir}/gems/*"] gem_files = Dir["#{Gem.dir}/cache/*.gem"] gemspec_files = Dir["#{Gem.dir}/specifications/*.gemspec"] extension_dirs = Dir["#{Gem.dir}/extensions/*/*/*"] spec_gem_paths = [] # need to keep git sources around spec_git_paths = @definition.spec_git_paths spec_git_cache_dirs = [] spec_gem_executables = [] spec_cache_paths = [] spec_gemspec_paths = [] spec_extension_paths = [] specs.each do |spec| spec_gem_paths << spec.full_gem_path # need to check here in case gems are nested like for the rails git repo md = %r{(.+bundler/gems/.+-[a-f0-9]{7,12})}.match(spec.full_gem_path) spec_git_paths << md[1] if md spec_gem_executables << spec.executables.collect do |executable| e = "#{Bundler.rubygems.gem_bindir}/#{executable}" [e, "#{e}.bat"] end spec_cache_paths << spec.cache_file spec_gemspec_paths << spec.spec_file spec_extension_paths << spec.extension_dir if spec.respond_to?(:extension_dir) spec_git_cache_dirs << spec.source.cache_path.to_s if spec.source.is_a?(Bundler::Source::Git) end spec_gem_paths.uniq! spec_gem_executables.flatten! stale_gem_bins = gem_bins - spec_gem_executables stale_git_dirs = git_dirs - spec_git_paths - ["#{Gem.dir}/bundler/gems/extensions"] stale_git_cache_dirs = git_cache_dirs - spec_git_cache_dirs stale_gem_dirs = gem_dirs - spec_gem_paths stale_gem_files = gem_files - spec_cache_paths stale_gemspec_files = gemspec_files - spec_gemspec_paths stale_extension_dirs = extension_dirs - spec_extension_paths removed_stale_gem_dirs = stale_gem_dirs.collect {|dir| remove_dir(dir, dry_run) } removed_stale_git_dirs = stale_git_dirs.collect {|dir| remove_dir(dir, dry_run) } output = removed_stale_gem_dirs + removed_stale_git_dirs unless dry_run stale_files = stale_gem_bins + stale_gem_files + stale_gemspec_files stale_files.each do |file| SharedHelpers.filesystem_access(File.dirname(file)) do |_p| FileUtils.rm(file) if File.exist?(file) end end stale_dirs = stale_git_cache_dirs + stale_extension_dirs stale_dirs.each do |stale_dir| SharedHelpers.filesystem_access(stale_dir) do |dir| FileUtils.rm_rf(dir) if File.exist?(dir) end end end output end private def prune_gem_cache(resolve, cache_path) cached = Dir["#{cache_path}/*.gem"] cached = cached.delete_if do |path| spec = Bundler.rubygems.spec_from_gem path resolve.any? do |s| s.name == spec.name && s.version == spec.version && !s.source.is_a?(Bundler::Source::Git) end end if cached.any? Bundler.ui.info "Removing outdated .gem files from #{Bundler.settings.app_cache_path}" cached.each do |path| Bundler.ui.info " * #{File.basename(path)}" File.delete(path) end end end def prune_git_and_path_cache(resolve, cache_path) cached = Dir["#{cache_path}/*/.bundlecache"] cached = cached.delete_if do |path| name = File.basename(File.dirname(path)) resolve.any? do |s| source = s.source source.respond_to?(:app_cache_dirname) && source.app_cache_dirname == name end end if cached.any? Bundler.ui.info "Removing outdated git and path gems from #{Bundler.settings.app_cache_path}" cached.each do |path| path = File.dirname(path) Bundler.ui.info " * #{File.basename(path)}" FileUtils.rm_rf(path) end end end def setup_manpath # Add man/ subdirectories from activated bundles to MANPATH for man(1) manuals = $LOAD_PATH.map do |path| man_subdir = path.sub(/lib$/, "man") man_subdir unless Dir[man_subdir + "/man?/"].empty? end.compact return if manuals.empty? Bundler::SharedHelpers.set_env "MANPATH", manuals.concat( ENV["MANPATH"].to_s.split(File::PATH_SEPARATOR) ).uniq.join(File::PATH_SEPARATOR) end def remove_dir(dir, dry_run) full_name = Pathname.new(dir).basename.to_s parts = full_name.split("-") name = parts[0..-2].join("-") version = parts.last output = "#{name} (#{version})" if dry_run Bundler.ui.info "Would have removed #{output}" else Bundler.ui.info "Removing #{output}" FileUtils.rm_rf(dir) end output end def check_for_activated_spec!(spec) return unless activated_spec = Bundler.rubygems.loaded_specs(spec.name) return if activated_spec.version == spec.version suggestion = if Bundler.rubygems.spec_default_gem?(activated_spec) "Since #{spec.name} is a default gem, you can either remove your dependency on it" \ " or try updating to a newer version of bundler that supports #{spec.name} as a default gem." else "Prepending `bundle exec` to your command may solve this." end e = Gem::LoadError.new "You have already activated #{activated_spec.name} #{activated_spec.version}, " \ "but your Gemfile requires #{spec.name} #{spec.version}. #{suggestion}" e.name = spec.name if e.respond_to?(:requirement=) e.requirement = Gem::Requirement.new(spec.version.to_s) else e.version_requirement = Gem::Requirement.new(spec.version.to_s) end raise e end end end