2015-03-05 08:53:49 -05:00
|
|
|
if RUBY_VERSION < '2.2.1' && RUBY_ENGINE == 'ruby'
|
2010-06-11 19:14:41 -04:00
|
|
|
desc = defined?(RUBY_DESCRIPTION) ? RUBY_DESCRIPTION : "ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE})"
|
2006-03-19 13:55:31 -05:00
|
|
|
abort <<-end_message
|
|
|
|
|
2015-03-05 08:53:49 -05:00
|
|
|
Rails 5 requires to run on Ruby 2.2.1 or newer.
|
2010-06-11 14:02:47 -04:00
|
|
|
|
2010-06-11 19:14:41 -04:00
|
|
|
You're running
|
|
|
|
#{desc}
|
|
|
|
|
2015-03-05 08:53:49 -05:00
|
|
|
Please upgrade to Ruby 2.2.1 or newer to continue.
|
2010-06-11 19:14:41 -04:00
|
|
|
|
2006-03-19 13:55:31 -05:00
|
|
|
end_message
|
|
|
|
end
|