From: Intransition Date: 2010-09-06T00:36:03+09:00 Subject: Re: ruby_archive 0.1.0 released On Sep 3, 6:07 pm, Jonathan Nielsen wrote: > After a summer of working on various ways to implement it, I'm happy to > announce that I'm putting the first release of my Ruby Summer of Code > project, ruby_archive 0.1.0, out into the wild. > > It's available on rubygems as well as athttp://github.com/byuni/ruby_archive > > ruby_archive lets you use files within zip files much like normal files on > your filesystem.  This means you can package data files and Ruby libraries > within convenient zip files and still use them easily from your program. >  For open, load, require, and most File.*** and Dir.*** operations, you can > access files within archives by targetting at a location like the following: > '(filename)!/(file_inside_archive)' I would like to suggest a more robust approach of subclassing File and Dir, (e.g. File::Archive or ArchiveFile), rather than overriding File and Dir methods. For #load and #require: '(filename).zip/(file_inside_archive)' would work as well and be clearer.