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
Version 2.x of this library:
- Ruby 3.0 or greater
- Rubyzip 3.0 or greater
Version 1.x of this library:
- Ruby 2.4 or greater
- Rubyzip 2.4.x
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 no different from reading any other zip file using rubyzip:
require'zip/bzip2'Zip::File.open('foo.zip')do |zipfile|
zipfile.eachdo |entry|
content=zipfile.read(entry.name)endendRubyzip-bzip2 is distributed under the same license as Ruby. In practice this means you can use it under the terms of the Ruby License or the 2-Clause BSD License. See https://www.ruby-lang.org/en/about/license.txt and LICENSE.md for details.
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
See https://github.com/rubyzip/rubyzip-bzip2/graphs/contributors for a comprehensive list.
- Robert Haines (@hainesr)
- John Lees-Miller (@jdleesmiller)
- Oleksandr Simonov (@simonoff)
Jan-Joost Spanjers ( oss at hiberis.nl )