diff options
author | Jake Howerton <jake.howerton@gmail.com> | 2008-05-16 01:29:55 -0400 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-05-16 10:35:09 +0100 |
commit | 3baf810482303126c75daa7915e200030d1755e0 (patch) | |
tree | d3159582cdd4f8437fa3cd97ef134d957a7ec969 /activemodel/Rakefile | |
parent | 5a3fd46d42f05a241b3178af60d38fe5e0cebee6 (diff) | |
download | rails-3baf810482303126c75daa7915e200030d1755e0.tar.gz rails-3baf810482303126c75daa7915e200030d1755e0.tar.bz2 rails-3baf810482303126c75daa7915e200030d1755e0.zip |
Add rdoc task to activemodel. [#156 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Diffstat (limited to 'activemodel/Rakefile')
-rw-r--r-- | activemodel/Rakefile | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/activemodel/Rakefile b/activemodel/Rakefile index cb9a61773f..87e9b547f3 100644 --- a/activemodel/Rakefile +++ b/activemodel/Rakefile @@ -1,4 +1,16 @@ #!/usr/bin/env ruby $LOAD_PATH << File.join(File.dirname(__FILE__), 'vendor', 'rspec', 'lib') require 'rake' -require 'spec/rake/spectask'
\ No newline at end of file +require 'spec/rake/spectask' +require 'rake/rdoctask' + +# Generate the RDoc documentation +Rake::RDocTask.new { |rdoc| + rdoc.rdoc_dir = 'doc' + rdoc.title = "Active Model" + rdoc.options << '--line-numbers' << '--inline-source' << '-A cattr_accessor=object' + rdoc.options << '--charset' << 'utf-8' + rdoc.template = "#{ENV['template']}.rb" if ENV['template'] + rdoc.rdoc_files.include('README', 'CHANGES') + rdoc.rdoc_files.include('lib/**/*.rb') +}
\ No newline at end of file |