SV: [ANN] Archive 0.2

If you are bent on putting the zip functionality into your archive module, you can “borrow” the relevant code from rubyzip - though I’d like to think rubyzip is good enough in it self :slight_smile:

It’s at http://rubyzip.sourceforge.net

Thomas

···

On Mon, Jul 08, 2002 at 02:45:30AM +0900, Ned Konz wrote:

Now supports writing of ar archives and reading of tar archives
(code for the latter adapted from the module by Thomas Hurst).
http://www.allruby.com/rpkg/archive-0.2.tar.gz
So when is Zip being added?

Uhm, I guess when someone needs it and can set aside the time to write
it. I’m afraid at the moment I don’t belong to either category. :slight_smile:
But for one who knows the format, it should be a matter of a few
hours, the only actual thing to write is the code to get an archive
entry out of an IO stream, the rest is there.

Aren’t you missing some header fields? From zipinfo -v on one of the constructed files:

file system or operating system of origin: MS-DOS, OS/2 or NT FAT
version of encoding software: 0.0
minimum file system compatibility required: MS-DOS, OS/2 or NT FAT
minimum software version required to extract: 0.0
file last modified on (DOS date/time): 1980 000 0 00:00:00
non-MSDOS external file attributes: 000000 hex
MS-DOS file attributes (00 hex): none

You can lift some of the code for this from my Perl Archive::Zip module,
though it’s probably better to add the appropriate Unix extra fields for times
and owners/permissions as well as using the DOS info.

···

On Sunday 07 July 2002 03:23 pm, Thomas Søndergaard wrote:

If you are bent on putting the zip functionality into your archive
module, you can “borrow” the relevant code from rubyzip - though
I’d like to think rubyzip is good enough in it self :slight_smile:


Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE

BTW: If you want to use rubyzip you need ruby/zlib and you can find the
latest release here:

http://www.blue.sky.or.jp/atelier/ruby/ruby-zlib-0.5.1.tar.gz

This file is not linked from the ruby/zlib web page yet.

-Rich Kilmer

···

-----Original Message-----
From: Thomas Søndergaard [mailto:tsondergaard@speakanet.com]
Sent: Sunday, July 07, 2002 6:20 PM
To: ruby-talk ML
Subject: SV: [ANN] Archive 0.2

On Mon, Jul 08, 2002 at 02:45:30AM +0900, Ned Konz wrote:

Now supports writing of ar archives and reading of tar archives
(code for the latter adapted from the module by Thomas Hurst).
http://www.allruby.com/rpkg/archive-0.2.tar.gz
So when is Zip being added?

Uhm, I guess when someone needs it and can set aside the time to write
it. I’m afraid at the moment I don’t belong to either category. :slight_smile:

But for one who knows the format, it should be a matter of a few
hours, the only actual thing to write is the code to get an archive
entry out of an IO stream, the rest is there.

If you are bent on putting the zip functionality into your archive module,
you can “borrow” the relevant code from rubyzip - though I’d like to think
rubyzip is good enough in it self :slight_smile:

It’s at http://rubyzip.sourceforge.net

Thomas

So when is Zip being added?
Uhm, I guess when someone needs it and can set aside the time to write
it. I’m afraid at the moment I don’t belong to either category. :slight_smile:
If you are bent on putting the zip functionality into your archive
module, you can “borrow” the relevant code from rubyzip -

Thanks. :slight_smile: I’m not terribly in hurry to add Zip support, but that
will sure help me or anybody that does it.

though I’d like to think rubyzip is good enough in it self :slight_smile:

Do you think it would be possible to add a set of proxies that adapt
rubyzip interface to Archive’s? After all, the whole Archive thing is
just a matter of convenience (learn to deal with archives once, apply
the knowledge on all formats).

Massimiliano

···

On Mon, Jul 08, 2002 at 07:23:27AM +0900, Thomas Søndergaard wrote: