Closed halostatue closed 7 years ago
Confirmed this fixes #24, at least for my tests:
Move zig for great justice:
# minitar 0.6 is installed.
% ruby -rarchive/tar/minitar -rzlib -e 'f = File.new(ARGV[0]); tgz = Zlib::GzipReader.new(f); tar = Archive::Tar::Minitar::Input.open(tgz).each { |e| p e } ' /tmp/a.tar.gz
/home/jls/.rvm/gems/ruby-2.2.1/gems/minitar-0.6/lib/archive/tar/minitar/reader.rb:182:in `rewind': closed gzip stream (Zlib::GzipFile::Error)
# Build from this PR
% gem build minitar.gemspec
% gem install minitar-0.6.1.gem
Successfully installed minitar-0.6.1
# Retry with minitar 0.6.1:
% ruby -rarchive/tar/minitar -rzlib -e 'f = File.new(ARGV[0]); tgz = Zlib::GzipReader.new(f); tar = Archive::Tar::Minitar::Input.open(tgz).each { |e| p e } ' /tmp/a.tar.gz
#<Archive::Tar::Minitar::Reader::EntryStream:0x0000000253c620 @io=#<Zlib::GzipReader:0x0000000253d3b8>, @name="tmp/args", @mode=436, @uid=1000, @gid=1000, @size=216, @mtime=1486298438, @checksum=4547, @typeflag="0", @linkname="", @magic="ustar", @version=0, @uname="jls", @gname="jls", @devmajor=0, @devminor=0, @prefix="", @read=0, @orig_pos=0>
One more set of builds because I’ve added tests and then I will release.
:white_check_mark: Build minitar 58 completed (commit https://github.com/halostatue/minitar/commit/74e378a6df by @halostatue)