A simple JRuby wrapper around the Apache commons-compress library. Attempts to give a ruby-like API for programmers familiar with ruby's file libraries.
Add this line to your application's Gemfile:
gem 'commons-compress', github: 'modcloth-labs/commons-compress'
then execute:
$ bundle
Commons::Compress::Tar::Archive.open('foo.tgz', 'r:g') do |tar|
tar.each_entry do |entry|
puts entry.name
tar.each_block do |data|
puts data
end
end
end
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request