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

Gavin Sinclair gsinclair at soyabean.com.au
Thu Jun 24 09:29:26 EDT 2004


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'

It's easy to implement, seems logical, and breaks nothing.  Of course,
you can still have

  require_gem 'extensions/string', '> 0.3'

Any problems with this?

Gavin



More information about the Rubygems-developers mailing list