Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,10 @@ | ||
min_release = "1.8.7" | ||
ruby_release = "#{RUBY_VERSION} (#{RUBY_RELEASE_DATE})" | ||
if ruby_release < min_release | ||
if ruby_release < '1.8.7' || (ruby_release > '1.8' && ruby_release < '1.9.2') | ||
This comment has been minimized.
Sorry, something went wrong. |
||
abort <<-end_message | ||
Rails requires Ruby version #{min_release} or later. | ||
Rails 3 requires Ruby 1.8.7 or 1.9.2. | ||
You're running #{ruby_release}; please upgrade to continue. | ||
end_message | ||
elsif RUBY_VERSION == '1.9.1' | ||
abort <<-EOS | ||
Rails 3 does not work with Ruby 1.9.1. Please upgrade to 1.9.2. | ||
EOS | ||
end |
6 comments
on commit 1a56548
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about people running ruby_release = '1.8.7' ? [sorry edited <= to =]
Example:
ruby -v
ruby 1.8.7 (2009-12-24 patchlevel 248) [i686-darwin10.3.0], MBARI 0x6770, Ruby Enterprise Edition 2010.01
rails s
Rails 3 requires Ruby 1.8.7 or 1.9.2.
You're running 1.8.7 (2009-12-24); please upgrade to continue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say they upgrade.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stefan, fixed in be43ad6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
many thanks :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a thread with more info about the 1.9.1 problems?
I've been using 1.9.1p378 with Rails 3 from beta1 to beta3
Should I expect things to break if I bump to beta4 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@melito Not sure about beta4 but edge currently doesn't work on 1.9.1. I'd recommend using 1.9.2-head since it will be released pretty soon, and the Rails test suite makes 1.9.1 segfault. I recently discussed the issue with some of the Rails guys and they feel pretty strongly that supporting 1.9.1 will not be worth the effort given the imminent release of 1.9.2.
$ ruby /home/rubys/git/rails/bin/rails -v