From: Jim Weirich Date: 2006-03-08T08:08:58+09:00 Subject: Re: GemPlugin 0.1 -- A Mongrel Spinoff Mark Volkmann wrote: > On 3/6/06, Jim Weirich wrote: >> >> require yourself. >> >> >> require 'foo' > > The problem I have with this is that maybe all I know is that I want > to use the foobar gem in my code. How am I supposed to know that the > main file I should require is foo.rb? Maybe the main file of each gem > should always have the same name as the gem. I suggest specifying standard practices when creating plugins. Naming the main include the same as the gem name is one possiblity. Or naming the main include "GEMNAME/init.rb". Just pick a standard and make it the standard for defining plugins. -- -- Jim Weirich -- Posted via http://www.ruby-forum.com/.