I need to download a tar.gz file, and replace a directory in it with the contents of another tar.gz file. So far, I've tried the following gems, and found them lacking
- archive-tar2: it lost the penultimate path separator ("/") so couldn't actually extract
- archive-tarsimple: simply didn't extract the compressed tarball, and returned no error msg
- minitar: ran into a bug where it failed for filepaths longer than 100 characters
- archive-tar-minitar - fails the same as its parent Errno::ENAMETOOLONG / File name too long
- libarchive: bundle install failed the gcc compile (even after successful brew install libarchive)
I'm starting to lose faith. Is there a good, up to date, well maintained tar archive gem that just works? I'd prefer one that doesn't call out to the command line, since I'd like to eliminate the possibility of commandline injection attacks. But at this point I'll take anything that avoids manually calling out to a shell.