Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 206
- Log:
Initial import of Gullery, an open source photo gallery:
http://nubyonrails.com/pages/gullery
- Author:
- rool
- Date:
- Sun May 20 19:05:59 +0100 2007
- Size:
- 1374 Bytes
1 | require 'rake' |
2 | require 'rake/testtask' |
3 | require 'rake/rdoctask' |
4 | |
5 | desc 'Default: run unit tests.' |
6 | task :default => [:clean, :test] |
7 | |
8 | desc "Delete test-generated files" |
9 | task :clean do |
10 | %w(sqlite sqlite3).each do |db_name| |
11 | rm_f File.join(File.dirname(__FILE__), 'test', "plugin.#{db_name}.db") |
12 | end |
13 | rm_f File.join(File.dirname(__FILE__), 'test', 'debug.log') |
14 | end |
15 | |
16 | desc 'Test the plugin.' |
17 | Rake::TestTask.new(:test) do |t| |
18 | t.libs << 'lib' |
19 | t.pattern = 'test/**/*_test.rb' |
20 | t.verbose = true |
21 | end |
22 | |
23 | desc 'Generate documentation for the plugin.' |
24 | Rake::RDocTask.new(:rdoc) do |rdoc| |
25 | rdoc.rdoc_dir = 'rdoc' |
26 | rdoc.title = 'ActiveRecord Fixtures' |
27 | rdoc.options << '--line-numbers' << '--inline-source' |
28 | rdoc.rdoc_files.include('README') |
29 | rdoc.rdoc_files.include('lib/**/*.rb') |
30 | end |
31 | |
32 | # |
33 | # def sort_files(glob, pattern) |
34 | # %(for f in #{glob}; do grep "#{pattern}" $f > x; sort x > y; if ! diff x y > z ; then echo $f; echo; cat z; fi; done; rm -f x y z) |
35 | # end |
36 | # |
37 | # namespace :zentest do |
38 | # |
39 | # desc "Generates test stub code for libraries" |
40 | # task :lib do |
41 | # tests = Dir["test/*_test.rb"] |
42 | # libs = Dir["lib/*.rb"] |
43 | # ruby "-S -I. ZenTest -r #{tests.join ' '} #{libs.join ' '}" |
44 | # end |
45 | # |
46 | # task :sort do |
47 | # sh sort_files('lib/*.rb', 'def ') |
48 | # sh sort_files('test/*_test.rb', 'def.test_') |
49 | # end |
50 | # |
51 | # task :audit_libs => [ :lib, :sort ] |
52 | # |
53 | # end |
54 | # |