mirror of
https://github.com/github/rails.git
synced 2026-04-04 03:00:58 -04:00
include bugfix to [e792d4ab70] 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:
@@ -78,11 +78,12 @@ module Rails
|
||||
# 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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user