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#installation_satisfies_dependency?
installation_satisfies_dependency?(dependency)
lib/rubygems/installer.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/rubygems/installer.rb, line 412
def installation_satisfies_dependency?(dependency)
return true if @options[:development] and dependency.type == :development
return true if installed_specs.detect {|s| dependency.matches_spec? s }
return false if @only_install_dir
not dependency.matching_specs.empty?
end
True if the gems in the system satisfy dependency.
See also
#install
#installed_specs
#generate_windows_script
#pre_install_checks
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1