Sha256: e72d8de5f2fa88c0cb068af3b792f706caeba725aa3a80c5d25fc35b33d7e2ff

Contents?: true

Size: 365 Bytes

Versions: 5

Compression:

Stored size: 365 Bytes

Contents

if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.2.2") && RUBY_ENGINE == "ruby"
  desc = defined?(RUBY_DESCRIPTION) ? RUBY_DESCRIPTION : "ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE})"
  abort <<-end_message

    Rails 5 requires Ruby 2.2.2 or newer.

    You're running
      #{desc}

    Please upgrade to Ruby 2.2.2 or newer to continue.

  end_message
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
railties-5.1.7 lib/rails/ruby_version_check.rb
railties-5.1.7.rc1 lib/rails/ruby_version_check.rb
railties-5.1.6.2 lib/rails/ruby_version_check.rb
railties-5.1.6.1 lib/rails/ruby_version_check.rb
railties-5.1.6 lib/rails/ruby_version_check.rb