[ANN] archive-tarsimple-0.1.0

Hi all,

I needed a simple tar/zip interface so I made one and now I’m sharing it.
This is a wrapper to external system calls (using popen3), not a zlib
extension or anything complex.

RAA package name - tarsimple (full name wouldn’t fit)

Synopsis

···

========

Assuming we have three .txt files, t1.txt, t2.txt, t3.txt …

require "archive/tarsimple"
t = Archive::Tar.new(“myfile.tar”)

t.create_archive("*.txt")
t.compress_archive(“bzip2”) # ‘myfile.tar.bz2’ now exists

t.uncompress_archive(“bunzip2”)

t.archive_name -> "myfile.tar"
t.archive_info -> [“t1.txt”,“t2.txt”,“t3.txt”]

t.expand_archive

Enjoy!

Dan

PS - My original post seems to have disappeared into the ether, so if this
announcement shows up twice, you’ll know why. :\