From: Richard Kilmer Date: 2004-08-17T23:36:52+09:00 Subject: Re: Recursive install-stub for gems? On 8/17/04 10:29 AM, "Austin Ziegler" wrote: > On Tue, 17 Aug 2004 23:17:52 +0900, Richard Kilmer wrote: >> On 8/17/04 10:04 AM, "Austin Ziegler" wrote: >>>> On Tue, Aug 17, 2004 at 10:31:15PM +0900, Richard Kilmer wrote: >>>>>> Why not offer both? That is, give the spec author a simple token that >>>>>> can be detected to stub everything in the lib directory? >>>>> Well, because is rather defeats the purpose of keeping the files out of >>>>> the >>>>> site_ruby dir. >>> Well ... what's to stop me from listing all of my lib/* files anyway? >> Nothing stops you, but nothing forces you either. In most libraries, there >> is a main file to 'require' (which then requires the rest of the required >> files) and you document your library accordingly. At least, with the >> libraries I write, that is how I design them. I guess if your library was a >> random collection of a series of separate files that could individually be >> required or not, then stubbing every one would make some sense. > > Well, I can think of one library (Gavin's Extensions) library that is > pretty much exactly that way. > > -austin Excellent...then a Dir.glob should do you well for that library.