include bugfix to [e792d4ab70448f79142fdf492390682ff5ea6398] for rubygems 1.0.1. Gem::DependencyList#dependency_order was bombing with nil specs passed in from a frozen gem. [#122]

This commit is contained in:
rick 2008-05-06 01:20:59 -07:00
parent 0697d17d12
commit 92e2e5990c

@ -78,11 +78,12 @@ def locate_plugins_under(base_path)
# a <tt>rails/init.rb</tt> file.
class GemLocator < Locator
def plugins
specs = initializer.configuration.gems.map(&:specification)
specs + Gem.loaded_specs.values.select do |spec|
specs = initializer.configuration.gems.map(&:specification)
specs += Gem.loaded_specs.values.select do |spec|
spec.loaded_from && # prune stubs
File.exist?(File.join(spec.full_gem_path, "rails", "init.rb"))
end
specs.compact!
require "rubygems/dependency_list"