Maintenance Ruby 3.4 gets fixes, but no new features. 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.4.1/lib/rubygems/installer.rb, line 406
def installation_satisfies_dependency?(dependency)
return true if @options[:development] && dependency.type == :development
return true if installed_specs.detect {|s| dependency.matches_spec? s }
return false if @only_install_dir
!dependency.matching_specs.empty?
end
True if the gems in the system satisfy dependency.
See also
#install
#installed_specs
#generate_windows_script
#load_plugin
also in
4.1 · 4.0 · 3.3 · 3.2 · 3.1 · 3.0