End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::Package::Old#spec
spec
lib/rubygems/package/old.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/rubygems/package/old.rb, line 132
def spec
verify
return @spec if @spec
yaml = String.new
@gem.with_read_io do |io|
skip_ruby io
read_until_dashes io do |line|
yaml << line
end
end
begin
@spec = Gem::Specification.from_yaml yaml
rescue YAML::SyntaxError
raise Gem::Exception, "Failed to parse gem specification out of gem file"
end
rescue ArgumentError
raise Gem::Exception, "Failed to parse gem specification out of gem file"
end
The specification for this gem