Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Gem::Package::Old#contents
contents
lib/rubygems/package/old.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/rubygems/package/old.rb, line 36
def contents
verify
return @contents if @contents
@gem.with_read_io do |io|
read_until_dashes io # spec
header = file_list io
@contents = header.map {|file| file["path"] }
end
end
A list of file names contained in this gem