Upgrade to Rails 2.3.14 with Prototype 1.7 (#9609).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7844 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2011-11-19 13:27:51 +00:00
parent 8ec1231dbc
commit b019875819
3 changed files with 2150 additions and 3920 deletions

View File

@ -67,8 +67,12 @@ module Rails
gem 'rails' gem 'rails'
end end
rescue Gem::LoadError => load_error rescue Gem::LoadError => load_error
$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.) if load_error.message =~ /Could not find RubyGem rails/
exit 1 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.)
exit 1
else
raise
end
end end
class << self class << self
@ -111,17 +115,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'
rescue Gem::LoadError => load_error
$stderr.puts %(Missing the i18n 0.4.2 gem. Please `gem install -v=0.4.2 i18n`)
exit 1
end
# All that for this: # All that for this:
Rails.boot! Rails.boot!

View File

@ -5,7 +5,7 @@
# ENV['RAILS_ENV'] ||= 'production' # ENV['RAILS_ENV'] ||= 'production'
# Specifies gem version of Rails to use when vendor/rails is not present # Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION = '2.3.11' unless defined? RAILS_GEM_VERSION RAILS_GEM_VERSION = '2.3.14' unless defined? RAILS_GEM_VERSION
if RUBY_VERSION >= '1.9' if RUBY_VERSION >= '1.9'
Encoding.default_external = 'UTF-8' Encoding.default_external = 'UTF-8'

File diff suppressed because it is too large Load Diff