The rubyzip-deflate64 gem provides an extension of the rubyzip gem for reading zip files compressed with deflate64 compression.
http://github.com/rubyzip/rubyzip-deflate64
- Ruby 3.0 or greater
- Rubyzip 3.0 or greater
- libinflatelib.so.0 / inflatelib.dll v0.3.0
This is a work in progress.
The gem is not yet published on Rubygems (TODO).
The rubyzip-deflate64 gem is available on RubyGems:
gem install rubyzip-deflate64
Or in your Gemfile:
gem 'rubyzip-deflate64'This gem requires a C based library called InflateLib (from https://github.com/microsoft/inflatelib) to be available on your system.
The InflateLib libray is currently considered "prerelease". Its API and ABI should not be considered stable.
Binaries of this library are not yet generally available for Linux distributions.
For Ubuntu, a binary is made available in a Person Package Archive (PPA). It can be installed with:
sudo add-apt-repository ppa:jspanjers/inflatelib
sudo apt update
sudo apt install libinflatelib0
Reading a zip file with deflate64 compression is no different from reading any other zip file using rubyzip:
require 'rubyzip/deflate64'
Zip::File.open('foo.zip') do |zipfile|
zipfile.each do |entry|
content = zipfile.read(entry.name)
end
endRubyzip-deflate64 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-deflate64.
You can run the tests with:
bundle install
bundle exec rake
See https://github.com/rubyzip/rubyzip-deflate64/graphs/contributors for a comprehensive list.
- TBD
Jan-Joost Spanjers ( oss at hiberis.nl )