#12 ✓resolved
bahuvrihi

Autoload gems

Reported by bahuvrihi | April 25th, 2008 @ 10:27 PM | in Tap 0.10.0

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

Comments and changes to this ticket

  • bahuvrihi

    bahuvrihi April 26th, 2008 @ 09:25 AM

    • 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

  • bahuvrihi

    bahuvrihi April 26th, 2008 @ 09:56 AM

    • 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.

  • bahuvrihi

    bahuvrihi April 26th, 2008 @ 10:21 AM

    • State changed from “open” to “resolved”

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

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A framework for making configurable, file-based tasks and workflows.

People watching this ticket

Tags

Pages