diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-02-27 20:40:10 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-02-27 20:40:10 +0000 |
commit | 12e1eae87e517d844a03053c12a5eec6ab2719ce (patch) | |
tree | f70da5a16a6f0d3cc63aca2b9abbadb03d97391c /railties | |
parent | f46515619ff84547d4b24f34bb197685a6a58d0f (diff) | |
download | rails-12e1eae87e517d844a03053c12a5eec6ab2719ce.tar.gz rails-12e1eae87e517d844a03053c12a5eec6ab2719ce.tar.bz2 rails-12e1eae87e517d844a03053c12a5eec6ab2719ce.zip |
Added early failure if the Ruby version isn't 1.8.2 or above #735
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@808 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties')
-rw-r--r-- | railties/CHANGELOG | 2 | ||||
-rwxr-xr-x | railties/bin/rails | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/railties/CHANGELOG b/railties/CHANGELOG index d979b06ac5..1b7e6c0da9 100644 --- a/railties/CHANGELOG +++ b/railties/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Added early failure if the Ruby version isn't 1.8.2 or above #735 + * Fixed the missing shebang in main "rails" script #736 * Removed the obsolete -i/--index option from the WEBrick servlet #743 diff --git a/railties/bin/rails b/railties/bin/rails index b3a25d6d59..4fba694d1f 100755 --- a/railties/bin/rails +++ b/railties/bin/rails @@ -1,5 +1,8 @@ #!/usr/local/bin/ruby + +puts "Rails requires Ruby 1.8.2" and exit if RUBY_VERSION < "1.8.2" + require File.dirname(__FILE__) + '/../lib/rails_generator' require 'rails_generator/scripts/generate' Rails::Generator::Base.use_application_sources! -Rails::Generator::Scripts::Generate.new.run(ARGV, :generator => 'app') +Rails::Generator::Scripts::Generate.new.run(ARGV, :generator => 'app')
\ No newline at end of file |