2010-06-11 19:14:41 -04:00
|
|
|
if RUBY_VERSION < '1.8.7'
|
|
|
|
desc = defined?(RUBY_DESCRIPTION) ? RUBY_DESCRIPTION : "ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE})"
|
2006-03-19 13:55:31 -05:00
|
|
|
abort <<-end_message
|
|
|
|
|
2010-06-11 14:02:47 -04:00
|
|
|
Rails 3 requires Ruby 1.8.7 or 1.9.2.
|
|
|
|
|
2010-06-11 19:14:41 -04:00
|
|
|
You're running
|
|
|
|
#{desc}
|
|
|
|
|
|
|
|
Please upgrade to continue.
|
|
|
|
|
|
|
|
end_message
|
|
|
|
elsif RUBY_VERSION > '1.9' and RUBY_VERSION < '1.9.2'
|
|
|
|
$stderr.puts <<-end_message
|
|
|
|
|
|
|
|
Rails 3 doesn't officially support Ruby 1.9.1 since recent stable
|
2010-09-20 00:02:11 -04:00
|
|
|
releases have segfaulted the test suite. Please upgrade to Ruby 1.9.2.
|
2010-06-11 19:14:41 -04:00
|
|
|
|
|
|
|
You're running
|
|
|
|
#{RUBY_DESCRIPTION}
|
2006-03-19 13:55:31 -05:00
|
|
|
|
|
|
|
end_message
|
|
|
|
end
|