spec()
A specification constructed from the lockfile is returned
# File lib/rubygems/resolver/lock_specification.rb, line 73 def spec @spec ||= Gem::Specification.find { |spec| spec.name == @name and spec.version == @version } @spec ||= Gem::Specification.new do |s| s.name = @name s.version = @version s.platform = @platform s.dependencies.concat @dependencies end end