DefV / custom_timestamps

Use different columns then created_at and updated_at for timestamps

This URL has Read+Write access

Jan De Poorter (author)
Mon May 04 04:44:12 -0700 2009
commit  028fe2a2a3f180ec381de239ff0bfc89624684c5
tree    4315a5a7912c985d51de97420a7b6b374d0a24fb
parent  9a01783dcc2fb1b5beee60baaf9a03ea3d28d54c
custom_timestamps / Rakefile
100644 24 lines (20 sloc) 0.589 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
 
desc 'Default: run unit tests.'
task :default => :test
 
desc 'Test the custom_timestamps plugin.'
Rake::TestTask.new(:test) do |t|
  t.libs << 'lib'
  t.libs << 'test'
  t.pattern = 'test/**/*_test.rb'
  t.verbose = true
end
 
desc 'Generate documentation for the custom_timestamps plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title = 'CustomTimestamps'
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.rdoc_files.include('README')
  rdoc.rdoc_files.include('lib/**/*.rb')
end