aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/Rakefile')
-rwxr-xr-xactionpack/Rakefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/actionpack/Rakefile b/actionpack/Rakefile
index 8bf12fecd6..0cdd8e1683 100755
--- a/actionpack/Rakefile
+++ b/actionpack/Rakefile
@@ -46,8 +46,12 @@ Rake::RDocTask.new { |rdoc|
rdoc.title = "Action Pack -- On rails from request to response"
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.template = "#{ENV['template']}.rb" if ENV['template']
- rdoc.rdoc_files.include('README', 'RUNNING_UNIT_TESTS', 'CHANGELOG')
- rdoc.rdoc_files.include('lib/**/*.rb')
+ if ENV['DOC_FILES']
+ rdoc.rdoc_files.include(ENV['DOC_FILES'].split(/,\s*/))
+ else
+ rdoc.rdoc_files.include('README', 'RUNNING_UNIT_TESTS', 'CHANGELOG')
+ rdoc.rdoc_files.include('lib/**/*.rb')
+ end
}
# Create compressed packages
@@ -144,4 +148,4 @@ task :release => [ :package ] do
puts release_command
system(release_command)
end
-end \ No newline at end of file
+end