From: Thomas Sondergaard Date: 2005-09-03T19:21:27+09:00 Subject: Re: Zip Extraction Bug? ded wrote: > I am trying to unzip a zip file with this: > > require 'zip/zip' > > zf = Zip::ZipFile.new(zip_name) > zf.each do |ent| > File.delete(ent.name) if test(?f, ent.name) > zf.extract(ent, ent.name) > end > > I get the following error message, which appears to be a library error: > > NameError: uninitialized constant Zip::Decompressor::CHUNK_SIZE > /usr/lib/ruby/site_ruby/1.8/zip/zip.rb:201:in > `internal_produce_input' [snip] > Am I missing something here? Yep, a working version of rubyzip. rubyzip-0.5.9 is broken so I have just released rubyzip-0.5.11 that should fix the problem. If the gem is not available from the gems.rubyforge.org repository when you read this, you can get it from http://sourceforge.net/projects/rubyzip. I apologize for the inconvenience Thomas