Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit cb1570936d70d624f72229c8a19ffbe3a10cc5ca 1 parent d869298
James Tucker raggi authored tenderlove committed
2  Rakefile 100644 → 100755
View
@@ -1,7 +1,7 @@
+#!/usr/bin/env rake
gem 'rdoc', '>= 2.5.10'
require 'rdoc'
-require 'rake'
require 'rdoc/task'
require 'net/http'
2  actionmailer/Rakefile 100644 → 100755
View
@@ -1,4 +1,4 @@
-require 'rake'
+#!/usr/bin/env rake
require 'rake/testtask'
require 'rake/packagetask'
require 'rake/gempackagetask'
2  actionpack/Rakefile 100644 → 100755
View
@@ -1,4 +1,4 @@
-require 'rake'
+#!/usr/bin/env rake
require 'rake/testtask'
require 'rake/packagetask'
require 'rake/gempackagetask'
0  activemodel/Rakefile 100644 → 100755
View
File mode changed
2  activerecord/Rakefile 100644 → 100755
View
@@ -1,4 +1,4 @@
-require 'rake'
+#!/usr/bin/env rake
require 'rake/testtask'
require 'rake/packagetask'
require 'rake/gempackagetask'
2  activeresource/Rakefile 100644 → 100755
View
@@ -1,4 +1,4 @@
-require 'rake'
+#!/usr/bin/env rake
require 'rake/testtask'
require 'rake/packagetask'
require 'rake/gempackagetask'
0  activesupport/Rakefile 100644 → 100755
View
File mode changed
2  railties/Rakefile 100644 → 100755
View
@@ -1,4 +1,4 @@
-require 'rake'
+#!/usr/bin/env rake
require 'rake/testtask'
require 'rake/gempackagetask'
2  railties/lib/rails/generators/rails/app/templates/Rakefile 100644 → 100755
View
@@ -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
2  railties/lib/rails/generators/rails/plugin/templates/Rakefile.tt
View
@@ -1,4 +1,4 @@
-require 'rake'
+#!/usr/bin/env rake
require 'rake/testtask'
require 'rake/rdoctask'
4 railties/lib/rails/generators/rails/plugin_new/templates/Rakefile 100644 → 100755
View
@@ -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|
Please sign in to comment.
Something went wrong with that request. Please try again.