[Rubygems-developers] Gem Names not correlated to require name

Jim Freeze rubygems at freeze.org
Tue Sep 30 23:50:42 EDT 2008


Hi Jim

On Tue, Sep 30, 2008 at 10:26 PM, Jim Weirich <jim.weirich at gmail.com> wrote:
>
> Are you asking for this:
>
>   def bunny_foo_foo(gem_name)
>     gem gem_name
>     require the_default_load_file_for_gem(gem_name)
>   end

I am not up to speed with the exact nature of gem. Is it the same as:

  def bunny_foo_foo(gem_name)
    require 'rubygems'
    require the_default_load_file_for_gem(gem_name)
  end

I'm assuming the gem bascially stages a gem for later requiring.

> or are you asking for:
>
>   def bunny_foo_foo(gem_name)
>     require the_default_load_file_for_gem(gem_name)
>   end

One way to write this would be to
   def bunny_foo_foo(gem_name)
     require File.join(path_to(gem_name), "lib/bootstrap")
   end




-- 
Jim Freeze


More information about the Rubygems-developers mailing list