GRAYBYTE WORDPRESS FILE MANAGER9662

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/alt/ruby33/share/rubygems/rubygems/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/alt/ruby33/share/rubygems/rubygems//stub_specification.rb
# frozen_string_literal: true

##
# Gem::StubSpecification reads the stub: line from the gemspec.  This prevents
# us having to eval the entire gemspec in order to find out certain
# information.

class Gem::StubSpecification < Gem::BasicSpecification
  # :nodoc:
  PREFIX = "# stub: "

  # :nodoc:
  OPEN_MODE = "r:UTF-8:-"

  class StubLine # :nodoc: all
    attr_reader :name, :version, :platform, :require_paths, :extensions,
                :full_name

    NO_EXTENSIONS = [].freeze

    # These are common require paths.
    REQUIRE_PATHS = { # :nodoc:
      "lib" => "lib",
      "test" => "test",
      "ext" => "ext",
    }.freeze

    # These are common require path lists.  This hash is used to optimize
    # and consolidate require_path objects.  Most specs just specify "lib"
    # in their require paths, so lets take advantage of that by pre-allocating
    # a require path list for that case.
    REQUIRE_PATH_LIST = { # :nodoc:
      "lib" => ["lib"].freeze,
    }.freeze

    def initialize(data, extensions)
      parts          = data[PREFIX.length..-1].split(" ", 4)
      @name          = -parts[0]
      @version       = if Gem::Version.correct?(parts[1])
        Gem::Version.new(parts[1])
      else
        Gem::Version.new(0)
      end

      @platform      = Gem::Platform.new parts[2]
      @extensions    = extensions
      @full_name     = if platform == Gem::Platform::RUBY
        "#{name}-#{version}"
      else
        "#{name}-#{version}-#{platform}"
      end

      path_list = parts.last
      @require_paths = REQUIRE_PATH_LIST[path_list] || path_list.split("\0").map! do |x|
        REQUIRE_PATHS[x] || x
      end
    end
  end

  def self.default_gemspec_stub(filename, base_dir, gems_dir)
    new filename, base_dir, gems_dir, true
  end

  def self.gemspec_stub(filename, base_dir, gems_dir)
    new filename, base_dir, gems_dir, false
  end

  attr_reader :base_dir, :gems_dir

  def initialize(filename, base_dir, gems_dir, default_gem)
    super()

    self.loaded_from = filename
    @data            = nil
    @name            = nil
    @spec            = nil
    @base_dir        = base_dir
    @gems_dir        = gems_dir
    @default_gem     = default_gem
  end

  ##
  # True when this gem has been activated

  def activated?
    @activated ||= !loaded_spec.nil?
  end

  def default_gem?
    @default_gem
  end

  def build_extensions # :nodoc:
    return if default_gem?
    return if extensions.empty?

    to_spec.build_extensions
  end

  ##
  # If the gemspec contains a stubline, returns a StubLine instance. Otherwise
  # returns the full Gem::Specification.

  def data
    unless @data
      begin
        saved_lineno = $.

        Gem.open_file loaded_from, OPEN_MODE do |file|
          file.readline # discard encoding line
          stubline = file.readline
          if stubline.start_with?(PREFIX)
            extline = file.readline

            extensions =
              if extline.delete_prefix!(PREFIX)
                extline.chomp!
                extline.split "\0"
              else
                StubLine::NO_EXTENSIONS
              end

            stubline.chomp! # readline(chomp: true) allocates 3x as much as .readline.chomp!
            @data = StubLine.new stubline, extensions
          end
        rescue EOFError
        end
      ensure
        $. = saved_lineno
      end
    end

    @data ||= to_spec
  end

  private :data

  def raw_require_paths # :nodoc:
    data.require_paths
  end

  def missing_extensions?
    return false if default_gem?
    return false if extensions.empty?
    return false if File.exist? gem_build_complete_path

    to_spec.missing_extensions?
  end

  ##
  # Name of the gem

  def name
    data.name
  end

  ##
  # Platform of the gem

  def platform
    data.platform
  end

  ##
  # Extensions for this gem

  def extensions
    data.extensions
  end

  ##
  # Version of the gem

  def version
    data.version
  end

  def full_name
    data.full_name
  end

  ##
  # The full Gem::Specification for this gem, loaded from evalling its gemspec

  def spec
    @spec ||= loaded_spec if @data
    @spec ||= Gem::Specification.load(loaded_from)
  end
  alias_method :to_spec, :spec

  ##
  # Is this StubSpecification valid? i.e. have we found a stub line, OR does
  # the filename contain a valid gemspec?

  def valid?
    data
  end

  ##
  # Is there a stub line present for this StubSpecification?

  def stubbed?
    data.is_a? StubLine
  end

  def ==(other) # :nodoc:
    self.class === other &&
      name == other.name &&
      version == other.version &&
      platform == other.platform
  end

  alias_method :eql?, :== # :nodoc:

  def hash # :nodoc:
    name.hash ^ version.hash ^ platform.hash
  end

  def <=>(other) # :nodoc:
    sort_obj <=> other.sort_obj
  end

  def sort_obj # :nodoc:
    [name, version, Gem::Platform.sort_priority(platform)]
  end

  private

  def loaded_spec
    spec = Gem.loaded_specs[name]
    return unless spec && spec.version == version && spec.default_gem? == default_gem?

    spec
  end
end

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
June 14 2024 08:49:03
root / root
0755
commands
--
May 13 2025 08:35:36
root / linksafe
0755
core_ext
--
May 13 2025 08:35:36
root / linksafe
0755
defaults
--
May 13 2025 08:35:36
root / linksafe
0755
ext
--
May 13 2025 08:35:36
root / linksafe
0755
gemcutter_utilities
--
May 13 2025 08:35:36
root / linksafe
0755
package
--
May 13 2025 08:35:36
root / linksafe
0755
request
--
May 13 2025 08:35:36
root / linksafe
0755
request_set
--
May 13 2025 08:35:36
root / linksafe
0755
resolver
--
May 13 2025 08:35:36
root / linksafe
0755
safe_marshal
--
May 13 2025 08:35:36
root / linksafe
0755
security
--
May 13 2025 08:35:36
root / linksafe
0755
source
--
May 13 2025 08:35:36
root / linksafe
0755
ssl_certs
--
April 24 2025 07:57:41
root / linksafe
0755
util
--
May 13 2025 08:35:36
root / linksafe
0755
vendor
--
April 24 2025 07:57:40
root / linksafe
0755
available_set.rb
3.003 KB
April 24 2025 07:57:47
root / linksafe
0644
basic_specification.rb
8.173 KB
April 24 2025 07:57:47
root / linksafe
0644
bundler_version_finder.rb
1.962 KB
April 24 2025 07:57:47
root / linksafe
0644
ci_detector.rb
3.712 KB
April 24 2025 07:57:47
root / linksafe
0644
command.rb
15.971 KB
April 24 2025 07:57:47
root / linksafe
0644
command_manager.rb
5.643 KB
April 24 2025 07:57:47
root / linksafe
0644
compatibility.rb
0.998 KB
April 24 2025 07:57:47
root / linksafe
0644
config_file.rb
15.789 KB
April 24 2025 07:57:47
root / linksafe
0644
defaults.rb
7.346 KB
April 24 2025 07:57:47
root / linksafe
0644
dependency.rb
8.449 KB
April 24 2025 07:57:47
root / linksafe
0644
dependency_installer.rb
9.906 KB
April 24 2025 07:57:47
root / linksafe
0644
dependency_list.rb
5.551 KB
April 24 2025 07:57:47
root / linksafe
0644
deprecate.rb
5.038 KB
April 24 2025 07:57:47
root / linksafe
0644
doctor.rb
3.129 KB
April 24 2025 07:57:47
root / linksafe
0644
errors.rb
4.526 KB
April 24 2025 07:57:47
root / linksafe
0644
exceptions.rb
7.329 KB
April 24 2025 07:57:47
root / linksafe
0644
ext.rb
0.486 KB
April 24 2025 07:57:47
root / linksafe
0644
gem_runner.rb
1.894 KB
April 24 2025 07:57:47
root / linksafe
0644
gemcutter_utilities.rb
11.174 KB
April 24 2025 07:57:47
root / linksafe
0644
gemspec_helpers.rb
0.385 KB
April 24 2025 07:57:47
root / linksafe
0644
install_default_message.rb
0.341 KB
April 24 2025 07:57:47
root / linksafe
0644
install_message.rb
0.315 KB
April 24 2025 07:57:47
root / linksafe
0644
install_update_options.rb
6.388 KB
April 24 2025 07:57:47
root / linksafe
0644
installer.rb
27.683 KB
April 24 2025 07:57:47
root / linksafe
0644
installer_uninstaller_utils.rb
0.753 KB
April 24 2025 07:57:47
root / linksafe
0644
local_remote_options.rb
3.614 KB
April 24 2025 07:57:47
root / linksafe
0644
name_tuple.rb
2.385 KB
April 24 2025 07:57:47
root / linksafe
0644
openssl.rb
0.122 KB
April 24 2025 07:57:47
root / linksafe
0644
package.rb
18.829 KB
April 24 2025 07:57:47
root / linksafe
0644
package_task.rb
3.788 KB
April 24 2025 07:57:47
root / linksafe
0644
path_support.rb
1.773 KB
April 24 2025 07:57:47
root / linksafe
0644
platform.rb
8.351 KB
April 24 2025 07:57:47
root / linksafe
0644
psych_tree.rb
0.776 KB
April 24 2025 07:57:47
root / linksafe
0644
query_utils.rb
8.495 KB
April 24 2025 07:57:47
root / linksafe
0644
rdoc.rb
0.227 KB
April 24 2025 07:57:47
root / linksafe
0644
remote_fetcher.rb
9.379 KB
April 24 2025 07:57:47
root / linksafe
0644
request.rb
8.701 KB
April 24 2025 07:57:47
root / linksafe
0644
request_set.rb
11.287 KB
April 24 2025 07:57:47
root / linksafe
0644
requirement.rb
7.002 KB
April 24 2025 07:57:47
root / linksafe
0644
resolver.rb
9.437 KB
April 24 2025 07:57:47
root / linksafe
0644
s3_uri_signer.rb
5.963 KB
April 24 2025 07:57:47
root / linksafe
0644
safe_marshal.rb
1.923 KB
April 24 2025 07:57:47
root / linksafe
0644
safe_yaml.rb
1.042 KB
April 24 2025 07:57:47
root / linksafe
0644
security.rb
21.693 KB
April 24 2025 07:57:47
root / linksafe
0644
security_option.rb
1.059 KB
April 24 2025 07:57:47
root / linksafe
0644
shellwords.rb
0.064 KB
April 24 2025 07:57:47
root / linksafe
0644
source.rb
5.783 KB
April 24 2025 07:57:47
root / linksafe
0644
source_list.rb
2.424 KB
April 24 2025 07:57:47
root / linksafe
0644
spec_fetcher.rb
6.16 KB
April 24 2025 07:57:47
root / linksafe
0644
specification.rb
69.099 KB
April 24 2025 07:57:47
root / linksafe
0644
specification_policy.rb
15.59 KB
April 24 2025 07:57:47
root / linksafe
0644
specification_record.rb
5.207 KB
April 24 2025 07:57:47
root / linksafe
0644
stub_specification.rb
4.959 KB
April 24 2025 07:57:47
root / linksafe
0644
text.rb
2.064 KB
April 24 2025 07:57:47
root / linksafe
0644
uninstaller.rb
10.94 KB
April 24 2025 07:57:47
root / linksafe
0644
unknown_command_spell_checker.rb
0.401 KB
April 24 2025 07:57:47
root / linksafe
0644
update_suggestion.rb
1.854 KB
April 24 2025 07:57:47
root / linksafe
0644
uri.rb
2.379 KB
April 24 2025 07:57:47
root / linksafe
0644
uri_formatter.rb
0.766 KB
April 24 2025 07:57:47
root / linksafe
0644
user_interaction.rb
13.103 KB
April 24 2025 07:57:47
root / linksafe
0644
util.rb
2.46 KB
April 24 2025 07:57:47
root / linksafe
0644
validator.rb
3.63 KB
April 24 2025 07:57:47
root / linksafe
0644
vendored_molinillo.rb
0.079 KB
April 24 2025 07:57:47
root / linksafe
0644
vendored_net_http.rb
0.228 KB
April 24 2025 07:57:47
root / linksafe
0644
vendored_optparse.rb
0.077 KB
April 24 2025 07:57:47
root / linksafe
0644
vendored_securerandom.rb
0.108 KB
April 24 2025 07:57:47
root / linksafe
0644
vendored_timeout.rb
0.223 KB
April 24 2025 07:57:47
root / linksafe
0644
vendored_tsort.rb
0.071 KB
April 24 2025 07:57:47
root / linksafe
0644
version.rb
12.979 KB
April 24 2025 07:57:47
root / linksafe
0644
version_option.rb
2.175 KB
April 24 2025 07:57:47
root / linksafe
0644
yaml_serializer.rb
2.416 KB
April 24 2025 07:57:47
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF