don't allow ruby 2.2 with rails 3

Change-Id: I0544ad72d48ace97a1c9ba85f34ee4a961d4460d
Reviewed-on: https://gerrit.instructure.com/46325
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Rob Orton <rob@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
This commit is contained in:
Cody Cutrer 2014-12-26 16:59:47 -07:00
parent 0d71b6b8ea
commit 30ef04deee
1 changed files with 2 additions and 0 deletions

View File

@ -38,6 +38,8 @@ if RUBY_VERSION == "2.0.0"
ruby '2.0.0', :engine => 'ruby', :engine_version => '2.0.0'
elsif RUBY_VERSION >= "2.1" && RUBY_VERSION < "2.2"
ruby RUBY_VERSION, :engine => 'ruby', :engine_version => RUBY_VERSION
elsif RUBY_VERSION >= "2.2" && CANVAS_RAILS3
fail "Ruby newer than 2.1 is UNSUPPORTED unless running Rails 4"
elsif RUBY_VERSION >= "2.2"
warn "Ruby newer than 2.1 is very UNSUPPORTED"
ruby RUBY_VERSION, :engine => 'ruby', :engine_version => RUBY_VERSION