Non-blocking zip reading and writing for Ruby
- OS X or Linux
- MRI 1.9.2
- libzip >=0.10.1
require 'rubygems'
require 'async_zip'
include AsyncZip
# Non-blocking zip-file creation:
AsyncZip.create(files, './output.zip') do |task|
puts task.inspect
end
# Non-blocking zip-file extraction:
AsyncZip.extract('./output.zip', './extracted') do |task|
puts task.inspect
end
[Grigoriy Chudnov] (mailto:[email protected])
Distributed under the The MIT License (MIT).