diff options
author | raggi <jftucker@gmail.com> | 2010-11-25 04:03:04 +0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-25 06:49:55 +0800 |
commit | cb1570936d70d624f72229c8a19ffbe3a10cc5ca (patch) | |
tree | 3746c6234f843d968e92ccbdac2343718851a71d | |
parent | d8692985feb4db9fe8d113549535b658fe6058e5 (diff) | |
download | rails-cb1570936d70d624f72229c8a19ffbe3a10cc5ca.tar.gz rails-cb1570936d70d624f72229c8a19ffbe3a10cc5ca.tar.bz2 rails-cb1570936d70d624f72229c8a19ffbe3a10cc5ca.zip |
Rakefiles are executables, and rake loads rake, not rakefile code
-rwxr-xr-x[-rw-r--r--] | Rakefile | 2 | ||||
-rwxr-xr-x[-rw-r--r--] | actionmailer/Rakefile | 2 | ||||
-rwxr-xr-x[-rw-r--r--] | actionpack/Rakefile | 2 | ||||
-rwxr-xr-x[-rw-r--r--] | activemodel/Rakefile | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | activerecord/Rakefile | 2 | ||||
-rwxr-xr-x[-rw-r--r--] | activeresource/Rakefile | 2 | ||||
-rwxr-xr-x[-rw-r--r--] | activesupport/Rakefile | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | railties/Rakefile | 2 | ||||
-rwxr-xr-x[-rw-r--r--] | railties/lib/rails/generators/rails/app/templates/Rakefile | 2 | ||||
-rw-r--r-- | railties/lib/rails/generators/rails/plugin/templates/Rakefile.tt | 2 | ||||
-rwxr-xr-x[-rw-r--r--] | railties/lib/rails/generators/rails/plugin_new/templates/Rakefile | 4 |
11 files changed, 9 insertions, 11 deletions
diff --git a/Rakefile b/Rakefile index 8c72312f28..1f3c770c77 100644..100755 --- a/Rakefile +++ b/Rakefile @@ -1,7 +1,7 @@ +#!/usr/bin/env rake gem 'rdoc', '>= 2.5.10' require 'rdoc' -require 'rake' require 'rdoc/task' require 'net/http' diff --git a/actionmailer/Rakefile b/actionmailer/Rakefile index cba6e93c8a..123ef9bbbf 100644..100755 --- a/actionmailer/Rakefile +++ b/actionmailer/Rakefile @@ -1,4 +1,4 @@ -require 'rake' +#!/usr/bin/env rake require 'rake/testtask' require 'rake/packagetask' require 'rake/gempackagetask' diff --git a/actionpack/Rakefile b/actionpack/Rakefile index a6ce08113f..9030db9f7a 100644..100755 --- a/actionpack/Rakefile +++ b/actionpack/Rakefile @@ -1,4 +1,4 @@ -require 'rake' +#!/usr/bin/env rake require 'rake/testtask' require 'rake/packagetask' require 'rake/gempackagetask' diff --git a/activemodel/Rakefile b/activemodel/Rakefile index 0372c7a03e..0372c7a03e 100644..100755 --- a/activemodel/Rakefile +++ b/activemodel/Rakefile diff --git a/activerecord/Rakefile b/activerecord/Rakefile index 395c72dfbc..f9b77c1799 100644..100755 --- a/activerecord/Rakefile +++ b/activerecord/Rakefile @@ -1,4 +1,4 @@ -require 'rake' +#!/usr/bin/env rake require 'rake/testtask' require 'rake/packagetask' require 'rake/gempackagetask' diff --git a/activeresource/Rakefile b/activeresource/Rakefile index 905241acc0..cf01bc1389 100644..100755 --- a/activeresource/Rakefile +++ b/activeresource/Rakefile @@ -1,4 +1,4 @@ -require 'rake' +#!/usr/bin/env rake require 'rake/testtask' require 'rake/packagetask' require 'rake/gempackagetask' diff --git a/activesupport/Rakefile b/activesupport/Rakefile index d117ca6356..d117ca6356 100644..100755 --- a/activesupport/Rakefile +++ b/activesupport/Rakefile diff --git a/railties/Rakefile b/railties/Rakefile index 9504661c0e..5137bee761 100644..100755 --- a/railties/Rakefile +++ b/railties/Rakefile @@ -1,4 +1,4 @@ -require 'rake' +#!/usr/bin/env rake require 'rake/testtask' require 'rake/gempackagetask' diff --git a/railties/lib/rails/generators/rails/app/templates/Rakefile b/railties/lib/rails/generators/rails/app/templates/Rakefile index d83cafc3be..4dc1023f1f 100644..100755 --- a/railties/lib/rails/generators/rails/app/templates/Rakefile +++ b/railties/lib/rails/generators/rails/app/templates/Rakefile @@ -1,7 +1,7 @@ +#!/usr/bin/env rake # Add your own tasks in files placed in lib/tasks ending in .rake, # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. require File.expand_path('../config/application', __FILE__) -require 'rake' <%= app_const %>.load_tasks diff --git a/railties/lib/rails/generators/rails/plugin/templates/Rakefile.tt b/railties/lib/rails/generators/rails/plugin/templates/Rakefile.tt index 733e321c94..77149ae351 100644 --- a/railties/lib/rails/generators/rails/plugin/templates/Rakefile.tt +++ b/railties/lib/rails/generators/rails/plugin/templates/Rakefile.tt @@ -1,4 +1,4 @@ -require 'rake' +#!/usr/bin/env rake require 'rake/testtask' require 'rake/rdoctask' diff --git a/railties/lib/rails/generators/rails/plugin_new/templates/Rakefile b/railties/lib/rails/generators/rails/plugin_new/templates/Rakefile index 88f50f9f04..12350309bf 100644..100755 --- a/railties/lib/rails/generators/rails/plugin_new/templates/Rakefile +++ b/railties/lib/rails/generators/rails/plugin_new/templates/Rakefile @@ -1,12 +1,10 @@ -# encoding: UTF-8 -require 'rubygems' +#!/usr/bin/env rake begin require 'bundler/setup' rescue LoadError puts 'You must `gem install bundler` and `bundle install` to run rake tasks' end -require 'rake' require 'rake/rdoctask' Rake::RDocTask.new(:rdoc) do |rdoc| |