Permalink
Browse files

r2960@asus: jeremy | 2005-07-09 02:12:35 -0700

 Ticket 1674 - Ruby version check
 r2961@asus:  jeremy | 2005-07-09 02:50:54 -0700
 Require RAILS_VERSION >= 1.8.2 and RAILS_RELEASE_DATE >= 2004-12-25.
 r2962@asus:  jeremy | 2005-07-09 02:54:49 -0700
 minimum_release -> min_release typo
 r2963@asus:  jeremy | 2005-07-09 02:56:14 -0700
 updated changelog


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1778 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
jeremy committed Jul 9, 2005
1 parent 1704172 commit 4bed0ab99d6f3ec49d41a6c862871e568a9225a8
Showing with 12 additions and 1 deletion.
  1. +2 −0 railties/CHANGELOG
  2. +10 −1 railties/bin/rails
View
@@ -1,5 +1,7 @@
*SVN*
+* Extend Ruby version check to include RUBY_RELEASE_DATE >= '2005-12-25', the final Ruby 1.8.2 release. #1674 [court3nay@gmail.com]
+
* Improved documentation for environment config files. #1625 [court3nay@gmail.com]
*0.13.0*
View
@@ -1,4 +1,13 @@
-abort "Rails requires Ruby 1.8.2" if RUBY_VERSION < "1.8.2"
+min_release = "1.8.2 (2004-12-25)"
+ruby_release = "#{RUBY_VERSION} (#{RUBY_RELEASE_DATE})"
+if ruby_release < min_release
+ abort <<-end_message
+
+ Rails requires Ruby version #{min_release} or later.
+ You're running #{ruby_release}; please upgrade to continue.
+
+ end_message
+end
Signal.trap("INT") { puts; exit }

0 comments on commit 4bed0ab

Please sign in to comment.