Which zip library works well with Ruby 1.9.2?

I used to use Rubyzip gem in Ruby 1.8.7, but I heard that rubyzip does not work well with ruby ​​1.9.2.

What zip libraries work well with Ruby 1.9.2?

+2
source share
3 answers

Are you really trying to use rubyzip with 1.9.2? Everything 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| pf } #=> [bartxt, footxt] bar.txt foo.txt 
+5
source

I used the rubyzip gem in Ruby 1.8.7. For Ruby 1.9.x you need to use version 0.9.5 or higher. It works without problems.

+1
source

I found a zip , it says that it is compatible with 1.9.1. I don’t think he would have problems in 1.9.2

0
source

Source: https://habr.com/ru/post/894088/


All Articles