public
Description: Natural-looking Finder Queries for ActiveRecord
Homepage: http://www.thoughtbot.com/projects/squirrel
Clone URL: git://github.com/thoughtbot/squirrel.git
jyurek (author)
Thu Jun 26 13:08:38 -0700 2008
commit  89b6ee959fd06aecdd46a7576639a3f91be99902
tree    7d490b3c43a3557702bc63af23fef4831eeb2a78
parent  d21c08dfb1e89ce657aeeebdaa96bdfdc500b33b
squirrel / Rakefile
100644 42 lines (34 sloc) 1.034 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
 
desc 'Default: run unit tests.'
task :default => [:clean, :test]
 
desc "Delete test-generated files"
task :clean do
  %w(sqlite sqlite3).each do |db_name|
    rm_f File.join(File.dirname(__FILE__), "squirrel.#{db_name}.db")
  end
  rm_f File.join(File.dirname(__FILE__), 'test', 'debug.log')
end
 
desc 'Test the squirrel plugin.'
Rake::TestTask.new(:test) do |t|
  t.libs << 'lib'
  t.pattern = 'test/**/*_test.rb'
  t.verbose = true
end
 
desc "Clean the docs directory"
task :clean_docs do
  `rm -rf doc/`
end
 
desc 'Generate documentation for the squirrel plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = 'doc'
  rdoc.title = 'Squirrel'
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.rdoc_files.include('README')
  rdoc.rdoc_files.include('lib/**/*.rb')
end
 
desc 'Update documentation on website'
task :sync_docs => [:clean_docs, :rdoc] do
  `rsync -ave ssh doc/ dev@dev.thoughtbot.com:/home/dev/www/dev.thoughtbot.com/squirrel`
end