GRAYBYTE WORDPRESS FILE MANAGER9260

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/ruby26/lib64/ruby/2.6.0/rubygems/resolver/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/alt/ruby26/lib64/ruby/2.6.0/rubygems/resolver//git_set.rb
# frozen_string_literal: true
##
# A GitSet represents gems that are sourced from git repositories.
#
# This is used for gem dependency file support.
#
# Example:
#
#   set = Gem::Resolver::GitSet.new
#   set.add_git_gem 'rake', 'git://example/rake.git', tag: 'rake-10.1.0'

class Gem::Resolver::GitSet < Gem::Resolver::Set

  ##
  # The root directory for git gems in this set.  This is usually Gem.dir, the
  # installation directory for regular gems.

  attr_accessor :root_dir

  ##
  # Contains repositories needing submodules

  attr_reader :need_submodules # :nodoc:

  ##
  # A Hash containing git gem names for keys and a Hash of repository and
  # git commit reference as values.

  attr_reader :repositories # :nodoc:

  ##
  # A hash of gem names to Gem::Resolver::GitSpecifications

  attr_reader :specs # :nodoc:

  def initialize # :nodoc:
    super()

    @git             = ENV['git'] || 'git'
    @need_submodules = {}
    @repositories    = {}
    @root_dir        = Gem.dir
    @specs           = {}
  end

  def add_git_gem(name, repository, reference, submodules) # :nodoc:
    @repositories[name] = [repository, reference]
    @need_submodules[repository] = submodules
  end

  ##
  # Adds and returns a GitSpecification with the given +name+ and +version+
  # which came from a +repository+ at the given +reference+.  If +submodules+
  # is true they are checked out along with the repository.
  #
  # This fills in the prefetch information as enough information about the gem
  # is present in the arguments.

  def add_git_spec(name, version, repository, reference, submodules) # :nodoc:
    add_git_gem name, repository, reference, submodules

    source = Gem::Source::Git.new name, repository, reference
    source.root_dir = @root_dir

    spec = Gem::Specification.new do |s|
      s.name    = name
      s.version = version
    end

    git_spec = Gem::Resolver::GitSpecification.new self, spec, source

    @specs[spec.name] = git_spec

    git_spec
  end

  ##
  # Finds all git gems matching +req+

  def find_all(req)
    prefetch nil

    specs.values.select do |spec|
      req.match? spec
    end
  end

  ##
  # Prefetches specifications from the git repositories in this set.

  def prefetch(reqs)
    return unless @specs.empty?

    @repositories.each do |name, (repository, reference)|
      source = Gem::Source::Git.new name, repository, reference
      source.root_dir = @root_dir
      source.remote = @remote

      source.specs.each do |spec|
        git_spec = Gem::Resolver::GitSpecification.new self, spec, source

        @specs[spec.name] = git_spec
      end
    end
  end

  def pretty_print(q) # :nodoc:
    q.group 2, '[GitSet', ']' do
      next if @repositories.empty?
      q.breakable

      repos = @repositories.map do |name, (repository, reference)|
        "#{name}: #{repository}@#{reference}"
      end

      q.seplist repos do |repo|
        q.text repo
      end
    end
  end

end

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
March 03 2024 22:47:39
root / linksafe
0755
molinillo
--
March 03 2024 22:47:39
root / linksafe
0755
activation_request.rb
3.733 KB
April 12 2022 11:50:11
root / linksafe
0644
api_set.rb
2.462 KB
April 12 2022 11:50:11
root / linksafe
0644
api_specification.rb
2.188 KB
April 12 2022 11:50:11
root / linksafe
0644
best_set.rb
1.61 KB
April 12 2022 11:50:11
root / linksafe
0644
composed_set.rb
1.188 KB
April 12 2022 11:50:11
root / linksafe
0644
conflict.rb
3.354 KB
April 12 2022 11:50:11
root / linksafe
0644
current_set.rb
0.275 KB
April 12 2022 11:50:11
root / linksafe
0644
dependency_request.rb
2.285 KB
April 12 2022 11:50:11
root / linksafe
0644
git_set.rb
2.885 KB
April 12 2022 11:50:11
root / linksafe
0644
git_specification.rb
1.27 KB
April 12 2022 11:50:11
root / linksafe
0644
index_set.rb
1.414 KB
April 12 2022 11:50:11
root / linksafe
0644
index_specification.rb
1.479 KB
April 12 2022 11:50:11
root / linksafe
0644
installed_specification.rb
1.217 KB
April 12 2022 11:50:11
root / linksafe
0644
installer_set.rb
5.016 KB
April 12 2022 11:50:11
root / linksafe
0644
local_specification.rb
0.788 KB
April 12 2022 11:50:11
root / linksafe
0644
lock_set.rb
1.67 KB
April 12 2022 11:50:11
root / linksafe
0644
lock_specification.rb
1.813 KB
April 12 2022 11:50:11
root / linksafe
0644
molinillo.rb
0.08 KB
April 12 2022 11:50:11
root / linksafe
0644
requirement_list.rb
1.336 KB
April 12 2022 11:50:11
root / linksafe
0644
set.rb
1.242 KB
April 12 2022 11:50:11
root / linksafe
0644
source_set.rb
0.881 KB
April 12 2022 11:50:11
root / linksafe
0644
spec_specification.rb
1.058 KB
April 12 2022 11:50:11
root / linksafe
0644
specification.rb
2.335 KB
April 12 2022 11:50:11
root / linksafe
0644
stats.rb
0.935 KB
April 12 2022 11:50:11
root / linksafe
0644
vendor_set.rb
1.914 KB
April 12 2022 11:50:11
root / linksafe
0644
vendor_specification.rb
0.567 KB
April 12 2022 11:50:11
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF