comparison vendor/gems/coderay-0.9.7/Rakefile @ 210:0579821a129a

Update to Redmine trunk rev 4802
author Chris Cannam
date Tue, 08 Feb 2011 13:51:46 +0000
parents
children
comparison
equal deleted inserted replaced
128:07fa8a8b56a8 210:0579821a129a
1 require 'rake/rdoctask'
2
3 ROOT = '.'
4 LIB_ROOT = File.join ROOT, 'lib'
5 EXTRA_RDOC_FILES = %w(lib/README FOLDERS)
6
7 task :default => :test
8
9 if File.directory? 'rake_tasks'
10
11 # load rake tasks from subfolder
12 for task_file in Dir['rake_tasks/*.rake'].sort
13 load task_file
14 end
15
16 else
17
18 # fallback tasks when rake_tasks folder is not present
19 desc 'Run CodeRay tests (basic)'
20 task :test do
21 ruby './test/functional/suite.rb'
22 ruby './test/functional/for_redcloth.rb'
23 end
24
25 desc 'Generate documentation for CodeRay'
26 Rake::RDocTask.new :doc do |rd|
27 rd.title = 'CodeRay Documentation'
28 rd.main = 'lib/README'
29 rd.rdoc_files.add Dir['lib']
30 rd.rdoc_files.add 'lib/README'
31 rd.rdoc_files.add 'FOLDERS'
32 rd.rdoc_dir = 'doc'
33 end
34
35 end