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

Chad Fowler chad at chadfowler.com
Sat Jun 26 05:04:21 EDT 2004


On 26/6/2004, at 3:53 AM, Gavin Sinclair wrote:

> On Saturday, June 26, 2004, 3:30:26 AM, Jim 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.
>
>
> Yep, that's what I had in mind.  "Hierarchical gems" gives me the
> heebie jeebies :)
>

Oh good ;)



More information about the Rubygems-developers mailing list