Skip to content
This repository
Browse code

Rakefiles are executables, and rake loads rake, not rakefile code

  • Loading branch information...
commit cb1570936d70d624f72229c8a19ffbe3a10cc5ca 1 parent d869298
James Tucker authored November 25, 2010 tenderlove committed November 25, 2010
2  Rakefile 100644 → 100755
... ...
@@ -1,7 +1,7 @@
  1
+#!/usr/bin/env rake
1 2
 gem 'rdoc', '>= 2.5.10'
2 3
 require 'rdoc'
3 4
 
4  
-require 'rake'
5 5
 require 'rdoc/task'
6 6
 require 'net/http'
7 7
 
2  actionmailer/Rakefile 100644 → 100755
... ...
@@ -1,4 +1,4 @@
1  
-require 'rake'
  1
+#!/usr/bin/env rake
2 2
 require 'rake/testtask'
3 3
 require 'rake/packagetask'
4 4
 require 'rake/gempackagetask'
2  actionpack/Rakefile 100644 → 100755
... ...
@@ -1,4 +1,4 @@
1  
-require 'rake'
  1
+#!/usr/bin/env rake
2 2
 require 'rake/testtask'
3 3
 require 'rake/packagetask'
4 4
 require 'rake/gempackagetask'
0  activemodel/Rakefile 100644 → 100755
File mode changed
2  activerecord/Rakefile 100644 → 100755
... ...
@@ -1,4 +1,4 @@
1  
-require 'rake'
  1
+#!/usr/bin/env rake
2 2
 require 'rake/testtask'
3 3
 require 'rake/packagetask'
4 4
 require 'rake/gempackagetask'
2  activeresource/Rakefile 100644 → 100755
... ...
@@ -1,4 +1,4 @@
1  
-require 'rake'
  1
+#!/usr/bin/env rake
2 2
 require 'rake/testtask'
3 3
 require 'rake/packagetask'
4 4
 require 'rake/gempackagetask'
0  activesupport/Rakefile 100644 → 100755
File mode changed
2  railties/Rakefile 100644 → 100755
... ...
@@ -1,4 +1,4 @@
1  
-require 'rake'
  1
+#!/usr/bin/env rake
2 2
 require 'rake/testtask'
3 3
 require 'rake/gempackagetask'
4 4
 
2  railties/lib/rails/generators/rails/app/templates/Rakefile 100644 → 100755
... ...
@@ -1,7 +1,7 @@
  1
+#!/usr/bin/env rake
1 2
 # Add your own tasks in files placed in lib/tasks ending in .rake,
2 3
 # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3 4
 
4 5
 require File.expand_path('../config/application', __FILE__)
5  
-require 'rake'
6 6
 
7 7
 <%= app_const %>.load_tasks
2  railties/lib/rails/generators/rails/plugin/templates/Rakefile.tt
... ...
@@ -1,4 +1,4 @@
1  
-require 'rake'
  1
+#!/usr/bin/env rake
2 2
 require 'rake/testtask'
3 3
 require 'rake/rdoctask'
4 4
 
4  railties/lib/rails/generators/rails/plugin_new/templates/Rakefile 100644 → 100755
... ...
@@ -1,12 +1,10 @@
1  
-# encoding: UTF-8
2  
-require 'rubygems'
  1
+#!/usr/bin/env rake
3 2
 begin
4 3
   require 'bundler/setup'
5 4
 rescue LoadError
6 5
   puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
7 6
 end
8 7
 
9  
-require 'rake'
10 8
 require 'rake/rdoctask'
11 9
 
12 10
 Rake::RDocTask.new(:rdoc) do |rdoc|

0 notes on commit cb15709

Please sign in to comment.
Something went wrong with that request. Please try again.