Skip to content

studiocalico/zipruby-compatibility-with-rubyzip-fork

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

Use bundle to depend on it with: gem "zipruby-compat", :require => 'zipruby', :git => "git@github.com:jawspeak/zipruby-compatibility-with-rubyzip-fork.git", :tag => "v0.3.7"

Example project using it: https://github.com/jawspeak/ruby-docx-templater

Why fork zipruby?

Rename Zip::* to ZipRuby::* module.

This is so that zipruby can interoperate with rubyzip. Previously, both defined Zip::File.

That was not cool, because if you had a project that used rubyzip, when you introduced rubyzip, then it will no longer work. You'd get errors like this: "undefined method `exists?' for Zip::File:Class"

Another workaround is rubyzip/rubyzip#6 where they describe changing rubyzip.

About

fork of zipruby gem that can work alongside rubyzip gem

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 98.1%
  • Ruby 1.2%
  • Shell 0.7%