Permalink
Browse files

include bugfix to [e792d4a] for rubygems 1.0.1. Gem::DependencyList#d…

…ependency_order was bombing with nil specs passed in from a frozen gem. [#122]
  • Loading branch information...
1 parent 0697d17 commit 92e2e5990cc2aa4f699c286ac5d1f73e27ede548 rick committed May 6, 2008
Showing with 3 additions and 2 deletions.
  1. +3 −2 railties/lib/rails/plugin/locator.rb
@@ -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"

0 comments on commit 92e2e59

Please sign in to comment.