To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / vendor / gems / coderay-0.9.7 / Rakefile @ 442:753f1380d6bc

History | View | Annotate | Download (771 Bytes)

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