aboutsummaryrefslogblamecommitdiffstats
path: root/activemodel/Rakefile
blob: 283380db9643c9f268948052ac403acd036a9592 (plain) (tree)
1
2
3
4
5
6
7
8
9
                   
              
                       

                       



                          
                                                         
                  

   
                                 
                            



                                                                                     
                                                                                    

                                              
   
#!/usr/bin/env ruby
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'

task :default => :test

Rake::TestTask.new do |t| 
  t.libs << "test"
  t.test_files = Dir.glob("test/cases/**/*_test.rb").sort
  t.verbose = true
end

# Generate the RDoc documentation
Rake::RDocTask.new do |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'] ? "#{ENV['template']}.rb" : '../doc/template/horo'
  rdoc.rdoc_files.include('README', 'CHANGES')
  rdoc.rdoc_files.include('lib/**/*.rb')
end