PHP 8.2.31
Preview: set.rb Size: 1.22 KB
//proc/thread-self/root/opt/alt/ruby40/share/rubygems/rubygems/resolver/set.rb

# frozen_string_literal: true

##
# Resolver sets are used to look up specifications (and their
# dependencies) used in resolution.  This set is abstract.

class Gem::Resolver::Set
  ##
  # Set to true to disable network access for this set

  attr_accessor :remote

  ##
  # Errors encountered when resolving gems

  attr_accessor :errors

  ##
  # When true, allows matching of requests to prerelease gems.

  attr_accessor :prerelease

  def initialize # :nodoc:
    @prerelease = false
    @remote     = true
    @errors     = []
  end

  ##
  # The find_all method must be implemented.  It returns all Resolver
  # Specification objects matching the given DependencyRequest +req+.

  def find_all(req)
    raise NotImplementedError
  end

  ##
  # The #prefetch method may be overridden, but this is not necessary.  This
  # default implementation does nothing, which is suitable for sets where
  # looking up a specification is cheap (such as installed gems).
  #
  # When overridden, the #prefetch method should look up specifications
  # matching +reqs+.

  def prefetch(reqs)
  end

  ##
  # When true, this set is allowed to access the network when looking up
  # specifications or dependencies.

  def remote? # :nodoc:
    @remote
  end
end

Directory Contents

Dirs: 1 × Files: 25

Name Size Perms Modified Actions
api_set DIR
- drwxr-xr-x 2026-06-09 07:03:28
Edit Download
2.90 KB lrw-r--r-- 2026-05-21 12:15:20
Edit Download
2.98 KB lrw-r--r-- 2026-05-21 12:15:20
Edit Download
2.74 KB lrw-r--r-- 2026-05-21 12:15:20
Edit Download
955 B lrw-r--r-- 2026-05-21 12:15:20
Edit Download
1.17 KB lrw-r--r-- 2026-05-21 12:15:20
Edit Download
3.19 KB lrw-r--r-- 2026-05-21 12:15:20
Edit Download
281 B lrw-r--r-- 2026-05-21 12:15:20
Edit Download
2.25 KB lrw-r--r-- 2026-05-21 12:15:20
Edit Download
2.84 KB lrw-r--r-- 2026-05-21 12:15:20
Edit Download
1.27 KB lrw-r--r-- 2026-05-21 12:15:20
Edit Download
1.41 KB lrw-r--r-- 2026-05-21 12:15:20
Edit Download
2.37 KB lrw-r--r-- 2026-05-21 12:15:20
Edit Download
1.21 KB lrw-r--r-- 2026-05-21 12:15:20
Edit Download
6.34 KB lrw-r--r-- 2026-05-21 12:15:20
Edit Download
803 B lrw-r--r-- 2026-05-21 12:15:20
Edit Download
1.66 KB lrw-r--r-- 2026-05-21 12:15:20
Edit Download
1.81 KB lrw-r--r-- 2026-05-21 12:15:20
Edit Download
1.34 KB lrw-r--r-- 2026-05-21 12:15:20
Edit Download
1.22 KB lrw-r--r-- 2026-05-21 12:15:20
Edit Download
944 B lrw-r--r-- 2026-05-21 12:15:20
Edit Download
2.66 KB lrw-r--r-- 2026-05-21 12:15:20
Edit Download
1.41 KB lrw-r--r-- 2026-05-21 12:15:20
Edit Download
951 B lrw-r--r-- 2026-05-21 12:15:20
Edit Download
1.91 KB lrw-r--r-- 2026-05-21 12:15:20
Edit Download
577 B lrw-r--r-- 2026-05-21 12:15:20
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).