public
Description: git-based blog engine
Homepage: http://www.matthias-georgi.de/shinmun
Clone URL: git://github.com/georgi/shinmun.git
georgi (author)
Wed May 06 10:59:46 -0700 2009
commit  caa04c5e670fd0bfe24fbbbe2dd84fe389836772
tree    756f690006f4d51f092b9cd9292a38273ce519dd
parent  7a9b5fe94dbeb0412d810300964b12c4324c0c36
shinmun / Rakefile
100644 41 lines (35 sloc) 0.91 kb
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
36
37
38
39
40
41
require 'rake'
require 'rake/rdoctask'
 
begin
  require 'spec/rake/spectask'
rescue LoadError
  puts <<-EOS
To use rspec for testing you must install the rspec gem:
gem install rspec
EOS
  exit(0)
end
 
desc "Run all specs"
Spec::Rake::SpecTask.new(:spec) do |t|
  t.spec_opts = ['-cfs']
  t.spec_files = FileList['test/**/*_spec.rb']
end
 
desc "Print SpecDocs"
Spec::Rake::SpecTask.new(:doc) do |t|
  t.spec_opts = ["--format", "specdoc"]
  t.spec_files = FileList['test/*_spec.rb']
end
 
desc "Generate RDoc documentation"
Rake::RDocTask.new(:rdoc) do |rdoc|
  rdoc.options << '--line-numbers' << '--inline-source' <<
    '--main' << 'README.md' <<
    '--title' << 'Shinmun Documentation' <<
    '--charset' << 'utf-8'
  rdoc.rdoc_dir = "doc"
  rdoc.rdoc_files.include 'README.md'
  Dir['lib/**/*.rb'].each do |file|
    rdoc.rdoc_files.include file
  end
end
 
desc "Run the rspec"
task :default => :spec