On 3/7/06, Jim Weirich <jim / weirichhouse.org> wrote:
> Mark Volkmann wrote:
> > On 3/6/06, Jim Weirich <jim / weirichhouse.org> 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.

I like your first suggestion best ... main include has the same name as the gem.

Obviously though, for the gems already out there, when autorequire
goes away we'll all have to learn what file we should be requiring.

--
R. Mark Volkmann
Partner, Object Computing, Inc.