[Rubygems-developers] Suggestion: require_gem 'x/y'
Gavin Sinclair
gsinclair at soyabean.com.au
Fri Jun 25 21:53:13 EDT 2004
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 :)
Gavin
More information about the Rubygems-developers
mailing list