mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Update ruby_version_check.
This commit is contained in:
parent
632fa15fa4
commit
4fa615a866
2 changed files with 2 additions and 14 deletions
|
@ -1,7 +1,5 @@
|
|||
script: 'ci/travis.rb'
|
||||
rvm:
|
||||
- 1.8.7
|
||||
- 1.9.2
|
||||
- 1.9.3
|
||||
env:
|
||||
- "GEM=railties"
|
||||
|
|
|
@ -1,23 +1,13 @@
|
|||
if RUBY_VERSION < '1.8.7'
|
||||
if RUBY_VERSION < '1.9.3'
|
||||
desc = defined?(RUBY_DESCRIPTION) ? RUBY_DESCRIPTION : "ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE})"
|
||||
abort <<-end_message
|
||||
|
||||
Rails 3 requires Ruby 1.8.7 or 1.9.2.
|
||||
Rails 4 requires Ruby 1.9.3+.
|
||||
|
||||
You're running
|
||||
#{desc}
|
||||
|
||||
Please upgrade to continue.
|
||||
|
||||
end_message
|
||||
elsif RUBY_VERSION > '1.9' and RUBY_VERSION < '1.9.2'
|
||||
$stderr.puts <<-end_message
|
||||
|
||||
Rails 3 doesn't officially support Ruby 1.9.1 since recent stable
|
||||
releases have segfaulted the test suite. Please upgrade to Ruby 1.9.2.
|
||||
|
||||
You're running
|
||||
#{RUBY_DESCRIPTION}
|
||||
|
||||
end_message
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue