End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::RequestSet#load_gemdeps
load_gemdeps(path, without_groups = [], installing = false)
lib/rubygems/request_set.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/rubygems/request_set.rb, line 318
def load_gemdeps(path, without_groups = [], installing = false)
@git_set = Gem::Resolver::GitSet.new
@vendor_set = Gem::Resolver::VendorSet.new
@source_set = Gem::Resolver::SourceSet.new
@git_set.root_dir = @install_dir
lock_file = "#{File.expand_path(path)}.lock".dup.tap(&Gem::UNTAINT)
begin
tokenizer = Gem::RequestSet::Lockfile::Tokenizer.from_file lock_file
parser = tokenizer.make_parser self, []
parser.parse
rescue Errno::ENOENT
end
gf = Gem::RequestSet::GemDependencyAPI.new self, path
gf.installing = installing
gf.without_groups = without_groups if without_groups
gf.load
end
Load a dependency management file.
See also
#install_into
#resolve
#install_hooks
#resolve_current
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1