10000 GitHub - indigobio/funzip: Simple libzip-based unzipping gem
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

indigobio/funzip

 
 

Repository files navigation

funzip

funzip is a simple gem that extracts a zip file to a destination directory. It is implemented in C++ using libzip to work around memory leak problems with Ruby's built-in zip.

System prerequisites

  • libzip

Usage

require 'funzip'

Funzip.unzip('archive.zip', '/tmp/destdir')

On success, unzip returns normally. On failure, unzip raises a StandardError with a (hopefully) helpful message.

Development

Run bundle exec rake compile to build the gem.

$ bundle exec rake compile
...compiling...
$ bundle exec irb
> require 'funzip'
 => true

RSpec can only be run after compiling

bundle exec rake compile
bundle exec rspec

About

Simple libzip-based unzipping gem

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 48.8%
  • Ruby 40.0%
  • Shell 11.2%
0