End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Gem::Resolver.new
new(needed, set = nil)
lib/rubygems/resolver.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/rubygems/resolver.rb, line 101
def initialize(needed, set = nil)
@set = set || Gem::Resolver::IndexSet.new
@needed = needed
@development = false
@development_shallow = false
@ignore_dependencies = false
@missing = []
@skip_gems = {}
@soft_missing = false
@stats = Gem::Resolver::Stats.new
end
Create Resolver object which will resolve the tree starting with needed Dependency objects.
set is an object that provides where to look for specifications to satisfy the Dependencies. This defaults to IndexSet, which will query rubygems.org.
See also
.for_current_gems
#allow_missing?
.compose_sets
#amount_constrained
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1