Reputation: 130
Does anyone know of a gem that is compatible with JRuby 1.6.5 that can extract the files from a .gz zip file?
Thanks!
Upvotes: 1
Views: 1049
Reputation: 3729
I use Zlib
in my JRuby app. It is a standard Ruby library.
http://www.ruby-doc.org/stdlib-1.8.7/libdoc/zlib/rdoc/index.html
In Rails you can also use ActiveSupport::Gzip
http://api.rubyonrails.org/classes/ActiveSupport/Gzip.html
Here are examples how to unzip a file: Zlib in Ruby to uncompress .gz
Upvotes: 2