From: ts_news1@... Date: 2005-08-29T23:26:22+09:00 Subject: Re: newbie trying to zip all .dat files in directory Wilson Bilkovich wote: > I was thinking about my message, and realized I had perhaps come > across as harsh on RubyZip. I wouldn't want the author to read my > post and come slash my tires or anything. I wouldn't think of it. besides I don't know where you live :-) > I just meant that it is (in its own words, as well) a direct port of > the Java zip library. > As such, it's very much not idiomatic Ruby. I just wanted to make > sure you realized that as you studied it. Don't try to make your code > look like this, unless that makes you happy. It is certainly not a direct port, as I have never seen the source code to java's ZipFile/ZipInputStream. I wrote rubyzip to learn ruby and I have tried to make it ruby-like. For instance the stream-objects are IO-like and there is an API that let you access the contents of a zip file with an interface similar to that provided by ruby's File and Dir classes (http://rubyzip.sourceforge.net/classes/Zip/ZipFileSystem.html). The idea is of course to minimize the amount of API you have to learn. I've never used rubyzip myself, it's just a pet project for playing with ruby. If you have suggestions for (API) improvements I'd be happy to hear about them. > Speaking of which.. does anyone else know what's up with the > copy_stream problem I ran into on my first try? I've never used that > method before, so I'm not sure exactly how it should work. 0.5.9 is broken - unfortunately I released it just before I went on vacation. 0.5.10 will be released shortly, until then 0.5.8 works. br, Thomas