# File lib/hoe.rb, line 211
  def self.load_plugins
    loaded, found = {}, {}

    Gem.find_files("hoe/*.rb").reverse.each do |path|
      found[File.basename(path, ".rb").intern] = path
    end

    :keep_doing_this while found.map { |name, plugin|
      next unless Hoe.plugins.include? name
      next if loaded[name]
      begin
        warn "loading #{plugin}" if $DEBUG
        loaded[name] = load plugin
      rescue LoadError => e
        warn "error loading #{plugin.inspect}: #{e.message}. skipping..."
      end
    }.any?
  end