Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
Gem.latest_version_for
(::String name) -> ::Gem::Version?
latest_version_for(name)
lib/rubygems.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/rubygems.rb, line 878
def self.latest_version_for(name)
latest_spec_for(name)&.version
end
Returns the version of the latest release-version of gem name
See also
.latest_spec_for
.load_env_plugins
.latest_rubygems_version
.load_path_insert_index
also in
4.1 · 4.0 · 3.3 · 3.2 · 3.1 · 3.0