GitHub

"mruby-miniz" mrbgem provides interface to zip and unzip files. Implemented using miniz, Single C source file Deflate/Inflate compression library with zlib-compatible API, ZIP archive reading/writing, PNG writing.

Example

% vim zip.rb
Miniz.zip("test.zip", "test.txt", "test2.txt", "test3.txt")
% vim unzip.rb
Miniz.unzip("test.zip")
...

Requirement

TODO

  • Support zip directories.
  • Remove IO require, configurable.
  • Remove malloc require, configurable.
  • add missing methods.
  • write tests.
  • Add exception instead of return false if some problem happens.

License

under the MIT License:

Read the original on github.com ↗