$31 GRAYBYTE WORDPRESS FILE MANAGER $98

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.23
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/ruby31/share/rubygems/rubygems/

HOME
Current File : /opt/alt/ruby31/share/rubygems/rubygems//util.rb
# frozen_string_literal: true
require_relative "deprecate"

##
# This module contains various utility methods as module methods.

module Gem::Util

  ##
  # Zlib::GzipReader wrapper that unzips +data+.

  def self.gunzip(data)
    require "zlib"
    require "stringio"
    data = StringIO.new(data, "r")

    gzip_reader = begin
                    Zlib::GzipReader.new(data)
                  rescue Zlib::GzipFile::Error => e
                    raise e.class, e.inspect, e.backtrace
                  end

    unzipped = gzip_reader.read
    unzipped.force_encoding Encoding::BINARY
    unzipped
  end

  ##
  # Zlib::GzipWriter wrapper that zips +data+.

  def self.gzip(data)
    require "zlib"
    require "stringio"
    zipped = StringIO.new(String.new, "w")
    zipped.set_encoding Encoding::BINARY

    Zlib::GzipWriter.wrap zipped do |io|
      io.write data
    end

    zipped.string
  end

  ##
  # A Zlib::Inflate#inflate wrapper

  def self.inflate(data)
    require "zlib"
    Zlib::Inflate.inflate data
  end

  ##
  # This calls IO.popen and reads the result

  def self.popen(*command)
    IO.popen command, &:read
  end

  ##
  # Invokes system, but silences all output.

  def self.silent_system(*command)
    opt = { :out => IO::NULL, :err => [:child, :out] }
    if Hash === command.last
      opt.update(command.last)
      cmds = command[0...-1]
    else
      cmds = command.dup
    end
    system(*(cmds << opt))
  end

  class << self
    extend Gem::Deprecate

    rubygems_deprecate :silent_system
  end

  ##
  # Enumerates the parents of +directory+.

  def self.traverse_parents(directory, &block)
    return enum_for __method__, directory unless block_given?

    here = File.expand_path directory
    loop do
      Dir.chdir here, &block rescue Errno::EACCES

      new_here = File.expand_path("..", here)
      return if new_here == here # toplevel
      here = new_here
    end
  end

  ##
  # Globs for files matching +pattern+ inside of +directory+,
  # returning absolute paths to the matching files.

  def self.glob_files_in_dir(glob, base_path)
    if RUBY_VERSION >= "2.5"
      Dir.glob(glob, base: base_path).map! {|f| File.expand_path(f, base_path) }
    else
      Dir.glob(File.expand_path(glob, base_path))
    end
  end

  ##
  # Corrects +path+ (usually returned by `URI.parse().path` on Windows), that
  # comes with a leading slash.

  def self.correct_for_windows_path(path)
    if path[0].chr == "/" && path[1].chr =~ /[a-z]/i && path[2].chr == ":"
      path[1..-1]
    else
      path
    end
  end

end


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.46 PM
root / root
0755
commands
--
13 May 2025 8.50 AM
root / linksafe
0755
core_ext
--
13 May 2025 8.50 AM
root / linksafe
0755
defaults
--
13 May 2025 8.50 AM
root / linksafe
0755
ext
--
13 May 2025 8.50 AM
root / linksafe
0755
optparse
--
28 Apr 2025 5.36 PM
root / linksafe
0755
package
--
13 May 2025 8.50 AM
root / linksafe
0755
request
--
13 May 2025 8.50 AM
root / linksafe
0755
request_set
--
13 May 2025 8.50 AM
root / linksafe
0755
resolver
--
13 May 2025 8.50 AM
root / linksafe
0755
security
--
13 May 2025 8.50 AM
root / linksafe
0755
source
--
13 May 2025 8.50 AM
root / linksafe
0755
ssl_certs
--
28 Apr 2025 5.36 PM
root / linksafe
0755
tsort
--
28 Apr 2025 5.36 PM
root / linksafe
0755
util
--
13 May 2025 8.50 AM
root / linksafe
0755
available_set.rb
3.013 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
basic_specification.rb
7.651 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
bundler_version_finder.rb
1.979 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
command.rb
15.818 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
command_manager.rb
5.242 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
compatibility.rb
1.003 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
config_file.rb
13.229 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
defaults.rb
6.583 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
dependency.rb
8.592 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
dependency_installer.rb
10.219 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
dependency_list.rb
5.542 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
deprecate.rb
4.87 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
doctor.rb
3.129 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
errors.rb
4.524 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
exceptions.rb
7.126 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
ext.rb
0.485 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
gem_runner.rb
1.795 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
gemcutter_utilities.rb
8.881 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
indexer.rb
10.887 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
install_default_message.rb
0.34 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
install_message.rb
0.314 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
install_update_options.rb
6.354 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
installer.rb
26.761 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
installer_uninstaller_utils.rb
0.755 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
local_remote_options.rb
3.561 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
mock_gem_ui.rb
1.379 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
name_tuple.rb
2.387 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
openssl.rb
0.122 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
optparse.rb
0.07 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
package.rb
17.719 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
package_task.rb
3.793 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
path_support.rb
1.784 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
platform.rb
7.614 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
psych_tree.rb
0.775 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
query_utils.rb
8.495 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
rdoc.rb
0.226 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
remote_fetcher.rb
9.195 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
request.rb
8.596 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
request_set.rb
11.301 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
requirement.rb
6.905 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
resolver.rb
9.638 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
s3_uri_signer.rb
5.907 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
safe_yaml.rb
1.511 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
security.rb
22.395 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
security_option.rb
1.058 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
source.rb
5.582 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
source_list.rb
2.408 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
spec_fetcher.rb
6.361 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
specification.rb
70.801 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
specification_policy.rb
12.873 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
stub_specification.rb
4.483 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
text.rb
1.976 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
tsort.rb
0.064 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
uninstaller.rb
10.199 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
unknown_command_spell_checker.rb
0.401 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
uri.rb
2.326 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
uri_formatter.rb
0.763 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
user_interaction.rb
13.007 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
util.rb
2.502 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
validator.rb
3.648 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
version.rb
12.574 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
version_option.rb
2.208 KB
28 Apr 2025 5.36 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF