Instiki 0.16.3: Rails 2.3.0
Instiki now runs on the Rails 2.3.0 Candidate Release. Among other improvements, this means that it now automagically selects between WEBrick and Mongrel. Just run ./instiki --daemon
This commit is contained in:
parent
43aadecc99
commit
4e14ccc74d
893 changed files with 71965 additions and 28511 deletions
27
vendor/rails/railties/lib/tasks/framework.rake
vendored
27
vendor/rails/railties/lib/tasks/framework.rake
vendored
|
@ -78,7 +78,13 @@ namespace :rails do
|
|||
end
|
||||
|
||||
desc "Update both configs, scripts and public/javascripts from Rails"
|
||||
task :update => [ "update:scripts", "update:javascripts", "update:configs" ]
|
||||
task :update => [ "update:scripts", "update:javascripts", "update:configs", "update:application_controller" ]
|
||||
|
||||
desc "Applies the template supplied by LOCATION=/path/to/template"
|
||||
task :template do
|
||||
require 'rails_generator/generators/applications/app/template_runner'
|
||||
Rails::TemplateRunner.new(ENV["LOCATION"])
|
||||
end
|
||||
|
||||
namespace :update do
|
||||
desc "Add new scripts to the application script/ directory"
|
||||
|
@ -114,5 +120,24 @@ namespace :rails do
|
|||
require 'railties_path'
|
||||
FileUtils.cp(RAILTIES_PATH + '/environments/boot.rb', RAILS_ROOT + '/config/boot.rb')
|
||||
end
|
||||
|
||||
desc "Rename application.rb to application_controller.rb"
|
||||
task :application_controller do
|
||||
old_style = RAILS_ROOT + '/app/controllers/application.rb'
|
||||
new_style = RAILS_ROOT + '/app/controllers/application_controller.rb'
|
||||
if File.exists?(old_style) && !File.exists?(new_style)
|
||||
FileUtils.mv(old_style, new_style)
|
||||
puts "#{old_style} has been renamed to #{new_style}, update your SCM as necessary"
|
||||
end
|
||||
end
|
||||
|
||||
desc "Generate dispatcher files in RAILS_ROOT/public"
|
||||
task :generate_dispatchers do
|
||||
require 'railties_path'
|
||||
FileUtils.cp(RAILTIES_PATH + '/dispatches/config.ru', RAILS_ROOT + '/config.ru')
|
||||
FileUtils.cp(RAILTIES_PATH + '/dispatches/dispatch.fcgi', RAILS_ROOT + '/public/dispatch.fcgi')
|
||||
FileUtils.cp(RAILTIES_PATH + '/dispatches/dispatch.rb', RAILS_ROOT + '/public/dispatch.rb')
|
||||
FileUtils.cp(RAILTIES_PATH + '/dispatches/dispatch.rb', RAILS_ROOT + '/public/dispatch.cgi')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue