What zip library works well with Ruby 1.9.2?

℡╲_俬逩灬. 提交于 2019-12-02 00:47:26

Have you actually tried using rubyzip with 1.9.2? Seems to work fine for me:

>> RUBY_VERSION 
#=> "1.9.2"
>> require 'zip/zip' 
#=> true
>> Zip::ZipFile.foreach(File.expand_path("~/Downloads/Archive.zip")) { |f| p f } 
#=> [bartxt, footxt]
bar.txt
foo.txt

I used rubyzip gem in Ruby 1.8.7 also. For Ruby 1.9.x you need to use version 0.9.5 or higher. Works without any problems.

I found zip it says it's compatible with 1.9.1 I don't think it would have any issues in 1.9.2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!