提交 e73445ba 编写于 作者: D David Heinemeier Hansson

Merge branch 'master' of git@github.com:rails/rails

......@@ -302,7 +302,7 @@ def check_gem_dependencies
if unloaded_gems.size > 0
@gems_dependencies_loaded = false
# don't print if the gems rake tasks are being run
unless $rails_gem_installer
unless $rails_rake_task
abort <<-end_error
Missing these required gems:
#{unloaded_gems.map { |gem| "#{gem.name} #{gem.requirement}" } * "\n "}
......@@ -379,6 +379,7 @@ def load_view_paths
# Eager load application classes
def load_application_classes
return if $rails_rake_task
if configuration.cache_classes
configuration.eager_load_paths.each do |load_path|
matcher = /\A#{Regexp.escape(load_path)}(.*)\.rb\Z/
......
......@@ -17,13 +17,13 @@ end
namespace :gems do
task :base do
$rails_gem_installer = true
$rails_rake_task = true
Rake::Task[:environment].invoke
end
desc "Build any native extensions for unpacked gems"
task :build do
$rails_gem_installer = true
$rails_rake_task = true
require 'rails/gem_builder'
Dir[File.join(Rails::GemDependency.unpacked_path, '*')].each do |gem_dir|
spec_file = File.join(gem_dir, '.specification')
......
task :default => :test
task :environment do
$rails_rake_task = true
require(File.join(RAILS_ROOT, 'config', 'environment'))
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册