summaryrefslogtreecommitdiffstats
path: root/vendor/gems/coderay-0.9.7/Rakefile
blob: 05d0144dec921d5da3c97bca101ea893846dafdd (plain)
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
require 'rake/rdoctask'

ROOT = '.'
LIB_ROOT = File.join ROOT, 'lib'
EXTRA_RDOC_FILES = %w(lib/README FOLDERS)

task :default => :test

if File.directory? 'rake_tasks'
  
  # load rake tasks from subfolder
  for task_file in Dir['rake_tasks/*.rake'].sort
    load task_file
  end
  
else
  
  # fallback tasks when rake_tasks folder is not present
  desc 'Run CodeRay tests (basic)'
  task :test do
    ruby './test/functional/suite.rb'
    ruby './test/functional/for_redcloth.rb'
  end
  
  desc 'Generate documentation for CodeRay'
  Rake::RDocTask.new :doc do |rd|
    rd.title = 'CodeRay Documentation'
    rd.main = 'lib/README'
    rd.rdoc_files.add Dir['lib']
    rd.rdoc_files.add 'lib/README'
    rd.rdoc_files.add 'FOLDERS'
    rd.rdoc_dir = 'doc'
  end
  
end