End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Gem.latest_version_for
latest_version_for(name)
lib/rubygems.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/rubygems.rb, line 873
def self.latest_version_for(name)
spec = latest_spec_for name
spec and spec.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.4 · 3.3 · 3.2 · 3.1