Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Rails master version check is broken.

#4837

http://github.com/rails/rails/commit/1a5654851e23b081c331bb3a7e0d0f...

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.

Solution 1:
explicit version conditions

   unless %W{1.8.7 1.9.2}.include?(RUBY_VERSION)
     abort ...

   end

Solution 2:
some sort of range conditional but im not sure the criteria.

   if ruby_release < '1.8.7' || (ruby_release > '1.8.8' && ruby_release < '1.9.2')
      abort ...

   end

Reported by stefanpenner · June 11th, 2010 @ 10:38 PM

State: resolved
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. Paul Rosania
    Paul Rosania
    • Tag set to ruby 1.8.7, critical

    I think the check that you want is:

    if ruby_release < '1.8.7' || (ruby_release > '1.9' && ruby_release < '1.9.2')
    

    June 12th, 2010 @ 12:07 AM

  2. Yehuda Katz (wycats)
    Yehuda Katz (wycats)
    • State changed from new to resolved

    June 12th, 2010 @ 12:49 AM