End of Life Ruby 3.2 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.2.0/lib/rubygems.rb, line 859
def self.latest_version_for(name)
spec = latest_spec_for name
spec && 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.1 · 3.0