diff options
author | Jeremy Daer <jeremydaer@gmail.com> | 2018-02-17 13:02:18 -0800 |
---|---|---|
committer | Jeremy Daer <jeremydaer@gmail.com> | 2018-02-17 15:34:57 -0800 |
commit | d4eb0dc89ee6b476e2e10869dc282a96f956c6c7 (patch) | |
tree | 40007170fb8b42d77f93766e0a429b1fbc8db919 /railties/lib | |
parent | 33886e28f1c06b7f252c1db0e433794b00c54a2f (diff) | |
download | rails-d4eb0dc89ee6b476e2e10869dc282a96f956c6c7.tar.gz rails-d4eb0dc89ee6b476e2e10869dc282a96f956c6c7.tar.bz2 rails-d4eb0dc89ee6b476e2e10869dc282a96f956c6c7.zip |
Rails 6 requires Ruby 2.4.1+
Skipping over 2.4.0 to sidestep the `"symbol_from_string".to_sym.dup` bug.
References #32028
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/command.rb | 1 | ||||
-rw-r--r-- | railties/lib/rails/ruby_version_check.rb | 6 |
2 files changed, 3 insertions, 4 deletions
diff --git a/railties/lib/rails/command.rb b/railties/lib/rails/command.rb index 812e846837..078e9f937f 100644 --- a/railties/lib/rails/command.rb +++ b/railties/lib/rails/command.rb @@ -4,7 +4,6 @@ require "active_support" require "active_support/dependencies/autoload" require "active_support/core_ext/enumerable" require "active_support/core_ext/object/blank" -require "active_support/core_ext/hash/transform_values" require "thor" diff --git a/railties/lib/rails/ruby_version_check.rb b/railties/lib/rails/ruby_version_check.rb index 5c532e28de..f8d3311156 100644 --- a/railties/lib/rails/ruby_version_check.rb +++ b/railties/lib/rails/ruby_version_check.rb @@ -1,15 +1,15 @@ # frozen_string_literal: true -if RUBY_VERSION < "2.3.0" && RUBY_ENGINE == "ruby" +if RUBY_VERSION < "2.4.1" && RUBY_ENGINE == "ruby" desc = defined?(RUBY_DESCRIPTION) ? RUBY_DESCRIPTION : "ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE})" abort <<-end_message - Rails 6 requires Ruby 2.3.0 or newer. + Rails 6 requires Ruby 2.4.1 or newer. You're running #{desc} - Please upgrade to Ruby 2.3.0 or newer to continue. + Please upgrade to Ruby 2.4.1 or newer to continue. end_message end |