End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::Installer#ensure_dependency
ensure_dependency(spec, dependency)
lib/rubygems/installer.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/rubygems/installer.rb, line 402
def ensure_dependency(spec, dependency)
unless installation_satisfies_dependency? dependency
raise Gem::InstallError, "#{spec.name} requires #{dependency}"
end
true
end
Ensure that the dependency is satisfied by the current installation of gem. If it is not an exception is raised.
- spec
- dependency
See also
#dir
#ensure_loadable_spec
#default_spec_file
#extract_bin
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1