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
上级 f4651561
*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
......
#!/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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册