Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Autoload gems

#12

Add an Env method for autoloading gems. Search the gem paths for tap.yml files and load each when autoloading is enabled.

By default, when there is no tap.yml file, autoload gems.

Gem.path.each do |dir|
  Dir.glob( File.join(dir, "gem/*/tap.yml") ) do |config_file|
    # load config_file
  end
end

Reported by bahuvrihi · April 25th, 2008 @ 10:27 PM

State: resolved
Milestone: Tap 0.10.0
Assigned to: bahuvrihi bahuvrihi

Activity

  1. bahuvrihi
    bahuvrihi
    • Assigned user set to bahuvrihi
    • State changed from new to resolved

    Autoloading through Env.instance.discover_gems method. Gems are discovered by default if tap.yml doesn't exist. revision 253

    April 26th, 2008 @ 09:25 AM

  2. bahuvrihi
    bahuvrihi
    • State changed from resolved to open

    Gem discovery code doesn't take into account gem versions; at present it directly loads ANY gem directory with a tap.yml file. This needs to be rectified to only load the most current gem.

    April 26th, 2008 @ 09:56 AM

  3. bahuvrihi
    bahuvrihi
    • State changed from open to resolved

    Only the most current version of a gem is loaded now. revision 254

    April 26th, 2008 @ 10:21 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.