2006-03-19 18:55:31 +00:00
|
|
|
ruby_release = "#{RUBY_VERSION} (#{RUBY_RELEASE_DATE})"
|
2010-06-11 18:02:47 +00:00
|
|
|
if ruby_release < '1.8.7' || (ruby_release > '1.8' && ruby_release < '1.9.2')
|
2006-03-19 18:55:31 +00:00
|
|
|
abort <<-end_message
|
|
|
|
|
2010-06-11 18:02:47 +00:00
|
|
|
Rails 3 requires Ruby 1.8.7 or 1.9.2.
|
|
|
|
|
2006-03-19 18:55:31 +00:00
|
|
|
You're running #{ruby_release}; please upgrade to continue.
|
|
|
|
|
|
|
|
end_message
|
|
|
|
end
|