End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Gem::Specification.latest_spec_for
latest_spec_for(name)
lib/rubygems/specification.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/rubygems/specification.rb, line 1124
def self.latest_spec_for(name)
latest_specs(true).find {|installed_spec| installed_spec.name == name }
end
Return the latest installed spec for gem name.
See also
.installed_stubs
.latest_specs
.gemspec_stubs_in
._load
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0