提交 3baf8104 编写于 作者: J Jake Howerton 提交者: Pratik Naik

Add rdoc task to activemodel. [#156 state:resolved]

Signed-off-by: NPratik Naik <pratiknaik@gmail.com>
上级 5a3fd46d
#!/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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册