The rubyzip-bzip2 gem provides an extension of the rubyzip gem for reading zip files compressed with bzip2 compression.
http://github.com/rubyzip/rubyzip-bzip2
- Ruby 2.4 or greater
The rubyzip-bzip2 gem is available on RubyGems:
gem install rubyzip-bzip2
Or in your Gemfile:
gem 'rubyzip-bzip2'
Reading a zip file with bzip2 compression is not different from reading any other zip file using rubyzip:
require 'zip/bzip2'
Zip::File.open('foo.zip') do |zipfile|
zipfile.each do |entry|
content = zipfile.read(entry.name)
end
end
Rubyzip-bzip2 is distributed under the same license as ruby. See http://www.ruby-lang.org/en/LICENSE.txt
Bug reports and pull requests are welcome on GitHub at https://github.com/rubyzip/rubyzip-bzip2.
You can run the tests with:
bundle install
rake
Jan-Joost Spanjers ( oss at hiberis.nl )