[Rubygems-developers] require_gem/autorequire vs require.

Gavin Sinclair gsinclair at soyabean.com.au
Wed Jun 1 09:28:52 EDT 2005

On Wednesday, June 1, 2005, 11:00:40 PM, Jim wrote:

>> I think I like 'Gem.activate' for namespace reasons ... there currently exists
>> a method by that name in the library, but is used only internally as far as I
>> know and I think we can safely hijack its name.

> I don't understand how you would use Gem.activate.
> If I start a new app, what do I do? Something like?:

>   require 'rubygems'
>   Gem.activate('rake', '1.1.1')

> I think I like the simple activate, or even activate_gem better.

>     activate_gem 'RubyInline', '= 3.2.2'
>     require 'inline'

The only difference is the name:

      Gem.activate 'RubyInline', '= 3.2.2'
      require 'inline'

Not sure what your point is about "starting a new app".  But like I
said, the only difference is the name.


More information about the Rubygems-developers mailing list