$stderr.puts%(Missing the Rails #{version} gem. Please `gem install -v=#{version} rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.)
ifload_error.message=~/Could not find RubyGem rails/
exit1
STDERR.puts%(Missing the Rails #{version} gem. Please `gem install -v=#{version} rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.)
exit1
else
raise
end
end
end
class<<self
class<<self
...
@@ -106,60 +110,5 @@ module Rails
...
@@ -106,60 +110,5 @@ module Rails
end
end
end
end
# TODO: Workaround for #7013 to be removed for 1.2.0
# Loads i18n 0.4.2 before Rails loads any more recent gem
# 0.5.0 is not compatible with the old interpolation syntax
# Plugins will have to migrate to the new syntax for 1.2.0
require'rubygems'
begin
gem'i18n','0.4.2'
rescueGem::LoadError=>load_error
$stderr.puts%(Missing the i18n 0.4.2 gem. Please `gem install -v=0.4.2 i18n`)
exit1
end
# TODO: Workaround for rubygems > 1.5 compatibility (#133), to be removed
# for Rails > 2.3.5
#
# Fixes the deprecation warning about removal of version_requirements for
# rubygems < 1.5 and provide a workaround for rubygems >= 1.5 where that
# method was finally removed.
moduleRails
# See lib/gems/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb