mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
10 lines
273 B
Ruby
10 lines
273 B
Ruby
min_release = "1.8.7"
|
|
ruby_release = "#{RUBY_VERSION} (#{RUBY_RELEASE_DATE})"
|
|
if 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
|