views:

238

answers:

2

I was wondering if anyone knows of rubyzip alternatives for Ruby, that can handle various formats in particular zip / rar / 7z?

I know of libarchive, but it's not complete for my purposes ( it's a good gem thou). (To clarify, libarchive - won't work for me - cause I need to be able to run in on Windows. ( Yeah I know sucks to be me))

Right now I end up running system commands to the os, but I'd like something OS independent, and capable of handling those formats - reading and writing.

Thank you

A: 

Ok for anyone else interesting as of now if you need more than rubyzip you can use libarchive, but if you need to support both Windows & *nix - your best option is to go with a third-party binary. It seems that sending system commands to 7zip is easier. Also you can roll out a plugin and include binary static versions your favorite archiver. I'm going with 7zip since it's gnu and lgpl.

Nick Gorbikoff
A: 

there is a tar/minitar gem out there, but no idea about rar

rogerdpack