End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::Resolver::LockSpecification#spec
spec
lib/rubygems/resolver/lock_specification.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/rubygems/resolver/lock_specification.rb, line 72
def spec
@spec ||= Gem::Specification.find do |spec|
spec.name == @name && spec.version == @version
end
@spec ||= Gem::Specification.new do |s|
s.name = @name
s.version = @version
s.platform = @platform
s.dependencies.concat @dependencies
end
end
A specification constructed from the lockfile is returned