aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/commands/performance/benchmarker.rb2
-rw-r--r--railties/lib/commands/performance/profiler.rb1
-rw-r--r--railties/lib/rails_generator/generators/applications/app/app_generator.rb9
3 files changed, 5 insertions, 7 deletions
diff --git a/railties/lib/commands/performance/benchmarker.rb b/railties/lib/commands/performance/benchmarker.rb
index b12cf57215..47b0940039 100644
--- a/railties/lib/commands/performance/benchmarker.rb
+++ b/railties/lib/commands/performance/benchmarker.rb
@@ -1,5 +1,3 @@
-#!/usr/local/bin/ruby
-
if ARGV.empty?
puts "Usage: ./script/perform benchmarker [times] 'Person.expensive_way' 'Person.another_expensive_way' ..."
exit 1
diff --git a/railties/lib/commands/performance/profiler.rb b/railties/lib/commands/performance/profiler.rb
index f599ad6635..83e763abda 100644
--- a/railties/lib/commands/performance/profiler.rb
+++ b/railties/lib/commands/performance/profiler.rb
@@ -1,4 +1,3 @@
-#!/usr/local/bin/ruby
if ARGV.empty?
$stderr.puts "Usage: ./script/perform profiler 'Person.expensive_method(10)' [times]"
exit(1)
diff --git a/railties/lib/rails_generator/generators/applications/app/app_generator.rb b/railties/lib/rails_generator/generators/applications/app/app_generator.rb
index aee2cced24..2713854b61 100644
--- a/railties/lib/rails_generator/generators/applications/app/app_generator.rb
+++ b/railties/lib/rails_generator/generators/applications/app/app_generator.rb
@@ -16,7 +16,8 @@ class AppGenerator < Rails::Generator::Base
end
def manifest
- script_options = { :chmod => 0755, :shebang => options[:shebang] }
+ script_options = { :chmod => 0755 }
+ dispatcher_options = { :chmod => 0755, :shebang => options[:shebang] }
record do |m|
# Root directory and all subdirectories.
@@ -53,9 +54,9 @@ class AppGenerator < Rails::Generator::Base
end
# Dispatches
- m.file "dispatches/dispatch.rb", "public/dispatch.rb", script_options
- m.file "dispatches/dispatch.rb", "public/dispatch.cgi", script_options
- m.file "dispatches/dispatch.fcgi", "public/dispatch.fcgi", script_options
+ m.file "dispatches/dispatch.rb", "public/dispatch.rb", dispatcher_options
+ m.file "dispatches/dispatch.rb", "public/dispatch.cgi", dispatcher_options
+ m.file "dispatches/dispatch.fcgi", "public/dispatch.fcgi", dispatcher_options
# HTML files
%w(404 500 index).each do |file|