From what I saw, rubyzip sometimes processes zip files strangely, because it does its own processing of the zip file index and records. For example, if you use rubyzip to unpack the docx file and repack it, Microsoft Word will not open it. But zipruby uses the most standard libzip C library (with a little tweaking) and will not cripple docx. Therefore, if you are aiming for compatibility with the format, I would suggest using zipruby. Rubyzip may have improved since I tried - but you should try it yourself.
source share