halostatue / minitar

Minimal pure-ruby support for POSIX tar(1) archives.
Other
38 stars 27 forks source link

0.6.1: Restore exception blocks for great justice #25

Closed halostatue closed 7 years ago

halostatue commented 7 years ago
jordansissel commented 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>
coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.08%) to 80.169% when pulling adc6763caf936025850dd43b6bae87459da83649 on restore-exception-blocks-for-great-justice into 83daaf55e4388bb55be96a8f01cd9adb751632ac on master.

halostatue commented 7 years ago

One more set of builds because I’ve added tests and then I will release.

AppVeyorBot commented 7 years ago

:white_check_mark: Build minitar 58 completed (commit https://github.com/halostatue/minitar/commit/74e378a6df by @halostatue)

coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.7%) to 80.793% when pulling 81b966931aba558da5fd896c3802917a0fd0ec48 on restore-exception-blocks-for-great-justice into 83daaf55e4388bb55be96a8f01cd9adb751632ac on master.