mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
48e7edc31b
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3982 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
17 lines
465 B
Ruby
17 lines
465 B
Ruby
min_release = "1.8.2 (2004-12-25)"
|
|
ruby_release = "#{RUBY_VERSION} (#{RUBY_RELEASE_DATE})"
|
|
if ruby_release =~ /1\.8\.3/
|
|
abort <<-end_message
|
|
|
|
Rails does not work with Ruby version 1.8.3.
|
|
Please upgrade to version 1.8.4 or downgrade to 1.8.2.
|
|
|
|
end_message
|
|
elsif ruby_release < min_release
|
|
abort <<-end_message
|
|
|
|
Rails requires Ruby version #{min_release} or later.
|
|
You're running #{ruby_release}; please upgrade to continue.
|
|
|
|
end_message
|
|
end
|