1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/lib/rails/ruby_version_check.rb
Genadi Samokovarov 8ed0b89bbd Revert work arounds for upstream Ruby 2.2.0 kwargs bug
The bug caused a segfault and you can find more info about it at:
https://bugs.ruby-lang.org/issues/10685.

We did a couple of work arounds, but 2.2.1 rolled out and those aren't
needed anymore.

Here are the reverted commits:

- Revert "Work around for upstream Ruby bug #10685",
  commit 707a433870.

- Revert "Fix segmentation fault in ActionPack tests",
  commit 22e0a22d5f.

I'm also bumping the Ruby version check to 2.2.1 to prevent future
segfaults.
2015-03-05 17:39:22 +02:00

13 lines
339 B
Ruby

if RUBY_VERSION < '2.2.1' && RUBY_ENGINE == 'ruby'
desc = defined?(RUBY_DESCRIPTION) ? RUBY_DESCRIPTION : "ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE})"
abort <<-end_message
Rails 5 requires to run on Ruby 2.2.1 or newer.
You're running
#{desc}
Please upgrade to Ruby 2.2.1 or newer to continue.
end_message
end