mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
8ed0b89bbd
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", commit707a433870
. - Revert "Fix segmentation fault in ActionPack tests", commit22e0a22d5f
. I'm also bumping the Ruby version check to 2.2.1 to prevent future segfaults.
13 lines
339 B
Ruby
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
|