Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 7
- Log:
Initial import of RForum 0.2 sources from a downloaded Tarball.
RForum is a Ruby On Rails based forum and mail gateway service.
- Author:
- adh
- Date:
- Sat Jul 22 18:43:13 +0100 2006
- Size:
- 1767 Bytes
- Properties:
- Property svn:executable is set
1 | require 'rake' |
2 | require 'rake/testtask' |
3 | require 'rake/rdoctask' |
4 | require 'rake/packagetask' |
5 | |
6 | $VERBOSE = nil |
7 | |
8 | |
9 | require File.dirname(__FILE__) + '/config/environment' |
10 | require 'code_statistics' |
11 | require 'tasks/rails' |
12 | |
13 | desc 'create a .tar.gz package' |
14 | Rake::PackageTask.new('rforum', '0.2') do |p| |
15 | p.need_tar_gz = true |
16 | p.package_files.include('*', '**/*') |
17 | p.package_files.exclude(/\.svn/, 'log/*', 'pkg', 'rdoc', '*.tmproj', 'modules', 'module_packages', 'ferret_index/*') |
18 | end |
19 | |
20 | desc 'Create & upload documentation, create package' |
21 | task :release => [ :rdoc, :upload_rdoc, :clobber_package, :package ] |
22 | |
23 | desc 'Report code statistics (KLOCs, etc) from the application' |
24 | task :stats do |
25 | CodeStatistics.new( |
26 | ['Controllers', 'app/controllers'], |
27 | ['Helpers', 'app/helpers'], |
28 | ['Models', 'app/models'], |
29 | ['Units', 'test/unit'], |
30 | ['Functionals', 'test/functional'], |
31 | ['Libraries', 'lib'], |
32 | ['Scripts', 'script'] |
33 | ).to_s |
34 | end |
35 | |
36 | Rake::RDocTask.new('rdoc') do |rdoc| |
37 | rdoc.rdoc_dir = 'rdoc' |
38 | rdoc.title = 'RForum Documentation' |
39 | rdoc.options << '--line-numbers --inline-source' |
40 | rdoc.rdoc_files.include('README') |
41 | rdoc.rdoc_files.include('LICENSE') |
42 | rdoc.rdoc_files.include('app/**/*.rb') |
43 | rdoc.rdoc_files.include('lib/*.rb') |
44 | end |
45 | |
46 | desc 'Upload rdoc to website' |
47 | task :upload_rdoc do |
48 | system "rsync -rz --delete rdoc/ rforum.andreas-s.net:/var/www/rforum.andreas-s.net/public/rdoc/" |
49 | system "ssh rforum.andreas-s.net 'chmod -R o+rX /var/www/rforum.andreas-s.net/public/rdoc'" |
50 | end |
51 | |
52 | # Shorthand aliases for test targets |
53 | |
54 | desc 'Shorthand for test_unit target' |
55 | task :ut => [:test_units] |
56 | |
57 | desc 'Shorthand for test_functional target' |
58 | task :ft => [:test_functional] |
59 | |
60 | desc 'Run all the tests without extra work' |
61 | task :t => [ :test_units, :test_functional ] |