mirror of
https://github.com/github/rails.git
synced 2026-01-11 07:38:05 -05:00
+ Fixed deprecated usage in gemspecs. Bumped the version to 2.3.12 so I could test locally with actual installs. If this is bad form for this project, please beat me up and I'll split them out.
25 lines
647 B
Ruby
Executable File
25 lines
647 B
Ruby
Executable File
#!/usr/bin/env ruby
|
|
require 'rake'
|
|
require 'rake/testtask'
|
|
require 'rdoc/task'
|
|
|
|
task :default => :test
|
|
|
|
Rake::TestTask.new do |t|
|
|
t.libs << "test"
|
|
t.pattern = 'test/**/*_test.rb'
|
|
t.verbose = true
|
|
t.warning = true
|
|
end
|
|
|
|
# Generate the RDoc documentation
|
|
RDoc::Task.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
|