summaryrefslogtreecommitdiff
path: root/sample
diff options
context:
space:
mode:
authorMartin Emde <martin.emde@gmail.com>2023-02-16 18:03:41 -0800
committergit <svn-admin@ruby-lang.org>2023-03-07 20:21:43 +0000
commit85a1738ab37b3348fc0b924804ca4b209f34fbf7 (patch)
tree92706ff6ce6f4ae5baa1b06095468678de236f5d /sample
parent719a7726d17f0800b8f8ef42f3f48e7558d5a444 (diff)
[rubygems/rubygems] Add TarReader::Entry#seek to seek within the tar file entry
TarReader#each previously implemented a partial version of seek. This code moved to Entry#seek for use from TarReader#each. Entry#close now returns nil instead of true, like IO#close. Closing an Entry now seeks to the end of the Entry, seeking past any remaining zero byte tar file padding and moving the io to the correcty position to read the next file in the archive. Uses seek for Entry#rewind and #pos=, fixing the tar->gzip->tar nested rewind that would break previous to this change. Add Entry.open that behaves more like File.open. https://github.com/rubygems/rubygems/commit/f5149565d5
Diffstat (limited to 'sample')
0 files changed, 0 insertions, 0 deletions