diff options
author | claudiob <claudiob@gmail.com> | 2014-12-26 13:53:09 +0100 |
---|---|---|
committer | claudiob <claudiob@gmail.com> | 2014-12-26 13:53:09 +0100 |
commit | d3b098b8289ffaa8486f526dc53204123ed581f3 (patch) | |
tree | 271bc563bdd5f261db20dea82c6fdbc43fc9079b /railties/lib | |
parent | 5fed875e908ba5fd78c19c8977b0bba5f660e992 (diff) | |
download | rails-d3b098b8289ffaa8486f526dc53204123ed581f3.tar.gz rails-d3b098b8289ffaa8486f526dc53204123ed581f3.tar.bz2 rails-d3b098b8289ffaa8486f526dc53204123ed581f3.zip |
Require Ruby 2.2 for Rails 5.0
Stems from [this comment](https://github.com/rails/rails/pull/18203#issuecomment-68138096) by @robin850
and by the blog post http://weblog.rubyonrails.org/2014/12/19/Rails-4-2-final
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/ruby_version_check.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/lib/rails/ruby_version_check.rb b/railties/lib/rails/ruby_version_check.rb index edfe5cb786..aea3d2339c 100644 --- a/railties/lib/rails/ruby_version_check.rb +++ b/railties/lib/rails/ruby_version_check.rb @@ -1,13 +1,13 @@ -if RUBY_VERSION < '2.1.0' +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.1 or newer. + Rails 5 requires to run on Ruby 2.2.0 or newer. You're running #{desc} - Please upgrade to Ruby 2.1.0 or newer to continue. + Please upgrade to Ruby 2.2.0 or newer to continue. end_message end |