[Rubygems-developers] Suggestion: require_gem 'x/y'

Jim Weirich jim at weirichhouse.org
Fri Jun 25 13:30:26 EDT 2004

Chad Fowler said:
> On 24/6/2004, at 3:29 PM, Gavin Sinclair wrote:
>> I mentioned recently that my 'extensions' project doesn't have a
>> default file that gets loaded.  Thus you would have to do this:
>>   require_gem 'extensions'
>>   require 'extensions/string'
>> It occured to me today that this is an option:
>>   require_gem 'extensions/string'
> I assume this implies that you would have a hierarchical gem namespace,
> and that each one of the 'extensions' thingies (like "string") would be
> a separate gem?

I think all he was asking is that when we see:

   require_gem 'extensions/string', ">= 1.0"

That we treat it as ...

   require_gem 'extensions', ">= 1.0"
   require 'extensions/string'

No hierarchical gems required.

If it really is that simple, then I have no problem with it.

-- Jim Weirich     jim at weirichhouse.org    http://onestepback.org
"Beware of bugs in the above code; I have only proved it correct,
not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)

More information about the Rubygems-developers mailing list