mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Rakefiles are executables, and rake loads rake, not rakefile code
This commit is contained in:
parent
d8692985fe
commit
cb1570936d
11 changed files with 9 additions and 11 deletions
2
Rakefile
Normal file → Executable file
2
Rakefile
Normal file → Executable file
|
@ -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
Normal file → Executable file
2
actionmailer/Rakefile
Normal file → Executable file
|
@ -1,4 +1,4 @@
|
|||
require 'rake'
|
||||
#!/usr/bin/env rake
|
||||
require 'rake/testtask'
|
||||
require 'rake/packagetask'
|
||||
require 'rake/gempackagetask'
|
||||
|
|
2
actionpack/Rakefile
Normal file → Executable file
2
actionpack/Rakefile
Normal file → Executable file
|
@ -1,4 +1,4 @@
|
|||
require 'rake'
|
||||
#!/usr/bin/env rake
|
||||
require 'rake/testtask'
|
||||
require 'rake/packagetask'
|
||||
require 'rake/gempackagetask'
|
||||
|
|
0
activemodel/Rakefile
Normal file → Executable file
0
activemodel/Rakefile
Normal file → Executable file
2
activerecord/Rakefile
Normal file → Executable file
2
activerecord/Rakefile
Normal file → Executable file
|
@ -1,4 +1,4 @@
|
|||
require 'rake'
|
||||
#!/usr/bin/env rake
|
||||
require 'rake/testtask'
|
||||
require 'rake/packagetask'
|
||||
require 'rake/gempackagetask'
|
||||
|
|
2
activeresource/Rakefile
Normal file → Executable file
2
activeresource/Rakefile
Normal file → Executable file
|
@ -1,4 +1,4 @@
|
|||
require 'rake'
|
||||
#!/usr/bin/env rake
|
||||
require 'rake/testtask'
|
||||
require 'rake/packagetask'
|
||||
require 'rake/gempackagetask'
|
||||
|
|
0
activesupport/Rakefile
Normal file → Executable file
0
activesupport/Rakefile
Normal file → Executable file
2
railties/Rakefile
Normal file → Executable file
2
railties/Rakefile
Normal file → Executable file
|
@ -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
Normal file → Executable file
2
railties/lib/rails/generators/rails/app/templates/Rakefile
Normal file → Executable file
|
@ -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
|
||||
|
|
|
@ -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
Normal file → Executable file
4
railties/lib/rails/generators/rails/plugin_new/templates/Rakefile
Normal file → Executable file
|
@ -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|
|
||||
|
|
Loading…
Reference in a new issue