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.217.109
Domains :
Cant Read [ /etc/named.conf ]
User : vacazsti
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby40 /
share /
rubygems /
rubygems /
Delete
Unzip
Name
Size
Permission
Date
Action
commands
[ DIR ]
drwxr-xr-x
2026-05-14 08:42
core_ext
[ DIR ]
drwxr-xr-x
2026-05-14 08:42
defaults
[ DIR ]
drwxr-xr-x
2026-05-14 08:42
ext
[ DIR ]
drwxr-xr-x
2026-05-14 08:42
gemcutter_utilities
[ DIR ]
drwxr-xr-x
2026-05-14 08:42
package
[ DIR ]
drwxr-xr-x
2026-05-14 08:42
request
[ DIR ]
drwxr-xr-x
2026-05-14 08:42
request_set
[ DIR ]
drwxr-xr-x
2026-05-14 08:42
resolver
[ DIR ]
drwxr-xr-x
2026-05-14 08:42
safe_marshal
[ DIR ]
drwxr-xr-x
2026-05-14 08:42
security
[ DIR ]
drwxr-xr-x
2026-05-14 08:42
source
[ DIR ]
drwxr-xr-x
2026-05-14 08:42
ssl_certs
[ DIR ]
drwxr-xr-x
2026-04-24 16:08
util
[ DIR ]
drwxr-xr-x
2026-05-14 08:42
vendor
[ DIR ]
drwxr-xr-x
2026-05-14 08:42
available_set.rb
3
KB
-rw-r--r--
2026-04-24 16:08
basic_specification.rb
8.21
KB
-rw-r--r--
2026-04-24 16:08
bundler_version_finder.rb
3.39
KB
-rw-r--r--
2026-04-24 16:08
ci_detector.rb
3.71
KB
-rw-r--r--
2026-04-24 16:08
command.rb
15.8
KB
-rw-r--r--
2026-04-24 16:08
command_manager.rb
5.64
KB
-rw-r--r--
2026-04-24 16:08
config_file.rb
16.31
KB
-rw-r--r--
2026-04-24 16:08
defaults.rb
7.4
KB
-rw-r--r--
2026-04-24 16:08
dependency.rb
8.45
KB
-rw-r--r--
2026-04-24 16:08
dependency_installer.rb
7.79
KB
-rw-r--r--
2026-04-24 16:08
dependency_list.rb
5.52
KB
-rw-r--r--
2026-04-24 16:08
deprecate.rb
5.26
KB
-rw-r--r--
2026-04-24 16:08
doctor.rb
3.13
KB
-rw-r--r--
2026-04-24 16:08
errors.rb
4.53
KB
-rw-r--r--
2026-04-24 16:08
exceptions.rb
6.87
KB
-rw-r--r--
2026-04-24 16:08
ext.rb
498
B
-rw-r--r--
2026-04-24 16:08
gem_runner.rb
2.11
KB
-rw-r--r--
2026-04-24 16:08
gemcutter_utilities.rb
11.31
KB
-rw-r--r--
2026-04-24 16:08
gemspec_helpers.rb
394
B
-rw-r--r--
2026-04-24 16:08
install_message.rb
323
B
-rw-r--r--
2026-04-24 16:08
install_update_options.rb
6.96
KB
-rw-r--r--
2026-04-24 16:08
installer.rb
27.11
KB
-rw-r--r--
2026-04-24 16:08
installer_uninstaller_utils.rb
771
B
-rw-r--r--
2026-04-24 16:08
local_remote_options.rb
3.59
KB
-rw-r--r--
2026-04-24 16:08
name_tuple.rb
2.52
KB
-rw-r--r--
2026-04-24 16:08
openssl.rb
125
B
-rw-r--r--
2026-04-24 16:08
package.rb
19.2
KB
-rw-r--r--
2026-04-24 16:08
package_task.rb
3.79
KB
-rw-r--r--
2026-04-24 16:08
path_support.rb
1.77
KB
-rw-r--r--
2026-04-24 16:08
platform.rb
12.52
KB
-rw-r--r--
2026-04-24 16:08
psych_tree.rb
874
B
-rw-r--r--
2026-04-24 16:08
query_utils.rb
8.5
KB
-rw-r--r--
2026-04-24 16:08
rdoc.rb
660
B
-rw-r--r--
2026-04-24 16:08
remote_fetcher.rb
9.52
KB
-rw-r--r--
2026-04-24 16:08
request.rb
8.7
KB
-rw-r--r--
2026-04-24 16:08
request_set.rb
11.26
KB
-rw-r--r--
2026-04-24 16:08
requirement.rb
7.13
KB
-rw-r--r--
2026-04-24 16:08
resolver.rb
9.43
KB
-rw-r--r--
2026-04-24 16:08
s3_uri_signer.rb
7.4
KB
-rw-r--r--
2026-04-24 16:08
safe_marshal.rb
1.92
KB
-rw-r--r--
2026-04-24 16:08
safe_yaml.rb
1.04
KB
-rw-r--r--
2026-04-24 16:08
security.rb
21.69
KB
-rw-r--r--
2026-04-24 16:08
security_option.rb
1.06
KB
-rw-r--r--
2026-04-24 16:08
source.rb
5.98
KB
-rw-r--r--
2026-04-24 16:08
source_list.rb
3.24
KB
-rw-r--r--
2026-04-24 16:08
spec_fetcher.rb
7.69
KB
-rw-r--r--
2026-04-24 16:08
specification.rb
67.24
KB
-rw-r--r--
2026-04-24 16:08
specification_policy.rb
14.64
KB
-rw-r--r--
2026-04-24 16:08
specification_record.rb
5.62
KB
-rw-r--r--
2026-04-24 16:08
stub_specification.rb
4.96
KB
-rw-r--r--
2026-04-24 16:08
target_rbconfig.rb
1.24
KB
-rw-r--r--
2026-04-24 16:08
text.rb
2.07
KB
-rw-r--r--
2026-04-24 16:08
uninstaller.rb
12.07
KB
-rw-r--r--
2026-04-24 16:08
unknown_command_spell_checker.rb
411
B
-rw-r--r--
2026-04-24 16:08
update_suggestion.rb
1.85
KB
-rw-r--r--
2026-04-24 16:08
uri.rb
2.38
KB
-rw-r--r--
2026-04-24 16:08
uri_formatter.rb
846
B
-rw-r--r--
2026-04-24 16:08
user_interaction.rb
13.06
KB
-rw-r--r--
2026-04-24 16:08
util.rb
2.05
KB
-rw-r--r--
2026-04-24 16:08
validator.rb
3.63
KB
-rw-r--r--
2026-04-24 16:08
vendored_molinillo.rb
81
B
-rw-r--r--
2026-04-24 16:08
vendored_net_http.rb
233
B
-rw-r--r--
2026-04-24 16:08
vendored_optparse.rb
79
B
-rw-r--r--
2026-04-24 16:08
vendored_securerandom.rb
87
B
-rw-r--r--
2026-04-24 16:08
vendored_timeout.rb
228
B
-rw-r--r--
2026-04-24 16:08
vendored_tsort.rb
73
B
-rw-r--r--
2026-04-24 16:08
version.rb
13.06
KB
-rw-r--r--
2026-04-24 16:08
version_option.rb
2.17
KB
-rw-r--r--
2026-04-24 16:08
win_platform.rb
519
B
-rw-r--r--
2026-04-24 16:08
yaml_serializer.rb
2.42
KB
-rw-r--r--
2026-04-24 16:08
Save
Rename
# frozen_string_literal: true module Gem # A stub yaml serializer that can handle only hashes and strings (as of now). module YAMLSerializer module_function def dump(hash) yaml = String.new("---") yaml << dump_hash(hash) end def dump_hash(hash) yaml = String.new("\n") hash.each do |k, v| yaml << k << ":" if v.is_a?(Hash) yaml << dump_hash(v).gsub(/^(?!$)/, " ") # indent all non-empty lines elsif v.is_a?(Array) # Expected to be array of strings if v.empty? yaml << " []\n" else yaml << "\n- " << v.map {|s| s.to_s.gsub(/\s+/, " ").inspect }.join("\n- ") << "\n" end else yaml << " " << v.to_s.gsub(/\s+/, " ").inspect << "\n" end end yaml end ARRAY_REGEX = / ^ (?:[ ]*-[ ]) # '- ' before array items (['"]?) # optional opening quote (.*) # value \1 # matching closing quote $ /xo HASH_REGEX = / ^ ([ ]*) # indentations ([^#]+) # key excludes comment char '#' (?::(?=(?:\s|$))) # : (without the lookahead the #key includes this when : is present in value) [ ]? (['"]?) # optional opening quote (.*) # value \3 # matching closing quote $ /xo def load(str) res = {} stack = [res] last_hash = nil last_empty_key = nil str.split(/\r?\n/) do |line| if match = HASH_REGEX.match(line) indent, key, quote, val = match.captures val = strip_comment(val) depth = indent.size / 2 if quote.empty? && val.empty? new_hash = {} stack[depth][key] = new_hash stack[depth + 1] = new_hash last_empty_key = key last_hash = stack[depth] else val = [] if val == "[]" # empty array stack[depth][key] = val end elsif match = ARRAY_REGEX.match(line) _, val = match.captures val = strip_comment(val) last_hash[last_empty_key] = [] unless last_hash[last_empty_key].is_a?(Array) last_hash[last_empty_key].push(val) end end res end def strip_comment(val) if val.include?("#") && !val.start_with?("#") val.split("#", 2).first.strip else val end end class << self private :dump_hash end end end