From: James Tucker Date: 2008-01-04T23:44:15+09:00 Subject: Re: Get your hands dirty: Help bootstrap Ruby on Windows. 7za.exe from the 7z distribution is both open source, and really small. Whilst it may not be a 'normal' tool, it very happily deals with all of these issues in a single app, and common command line interface. It's also pretty swift. On 4 Jan 2008, at 10:30, Michal Suchanek wrote: > On 04/01/2008, Austin Ziegler wrote: >> On Jan 4, 2008 5:34 AM, Luis Lavena wrote: >>> They are inside the compressed tar.gz and tar.bz2 files... how I'm >>> supposed to get them if I don't decompress them first? :-D >>> >>> So: if someone have a pure-ruby (with aditional gem or extension) >>> that >>> allow us extract content from: >>> >>> - .zip (deflate) files >>> - .gz (of .tar.gz) files >>> - .bz2 (of .tar.bz2) files >>> >>> All without these dependencies, feel free to modify rake/ >>> extracttask :-) >> >> .gz and .tar.gz files aren't hard to deal with since a working Ruby >> 1.8.5 is a prerequisite. Look at minitar, and the zlib library is >> part >> of a working Ruby 1.8.5 install. >> > Yes, it just does not handle bzip2 which is used to compress the mingw > base that contains tar. > > So you still need bzip2, and you can as well include a full > tar/gzip/bzibp2 suite then as it will probably make the decomression > somewhat faster and less memory intensive. It might waste a bit of > space as the minitar source would probably compress a few kilobytes > smaller than the tar binary. Didn't do any benchmarks, though. > > Thanks > > Michal >