Add the gem load paths before the framework is loaded, so certain gems like RedCloth and BlueCloth can be frozen. [#320 state:resolved]

This commit is contained in:
rick 2008-06-08 14:30:14 -04:00
parent faad1e32a8
commit 51e4106dcc
2 changed files with 6 additions and 4 deletions

@ -1,5 +1,7 @@
*Edge*
* Add the gem load paths before the framework is loaded, so certain gems like RedCloth and BlueCloth can be frozen.
* Fix discrepancies with loading rails/init.rb from gems.
* Plugins check for the gem init path (rails/init.rb) before the standard plugin init path (init.rb) [Jacek Becela]

@ -113,10 +113,10 @@ def process
check_ruby_version
install_gem_spec_stubs
set_load_path
add_gem_load_paths
require_frameworks
set_autoload_paths
add_gem_load_paths
add_plugin_load_paths
load_environment
@ -242,12 +242,12 @@ def add_plugin_load_paths
def add_gem_load_paths
unless @configuration.gems.empty?
require "rubygems"
@configuration.gems.each &:add_load_paths
@configuration.gems.each { |gem| gem.add_load_paths }
end
end
def load_gems
@configuration.gems.each(&:load)
@configuration.gems.each { |gem| gem.load }
end
def check_gem_dependencies