aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/ruby_version_check.rb
blob: aea3d2339cccf57256176575d49d044266c9f9ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
if RUBY_VERSION < '2.2.0'
  desc = defined?(RUBY_DESCRIPTION) ? RUBY_DESCRIPTION : "ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE})"
  abort <<-end_message

    Rails 5 requires to run on Ruby 2.2.0 or newer.

    You're running
      #{desc}

    Please upgrade to Ruby 2.2.0 or newer to continue.

  end_message
end