sr / dst
watch download tarball
public
Description: todo-list manager I wrote back in 2008 with the help of Gregory Brown in order to learn Ruby and TDD
Homepage: http://atonie.org/2008/dst
Clone URL: git://github.com/sr/dst.git
dst / Rakefile
100644 45 lines (37 sloc) 1.25 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
42
43
44
45
require 'rubygems'
require 'rake'
require 'spec/rake/spectask'
 
Version = '0.0.1'
 
begin
  require 'echoe'
 
  Echoe.new('dst', Version) do |p|
    p.summary = 'a KISS GTD manager for the command line lovers.'
    p.description = 'a KISS GTD manager for the command line lovers.'
    p.url = 'http://atonie.org/2008/dst'
    p.author = 'Simon Rozet'
    p.email = 'simon@rozet.name'
    p.dependencies << 'activerecord >=2.0.2'
    p.clean_pattern << 'report.html'
    p.clean_pattern << 'coverage'
  end
rescue LoadError => boom
  puts 'You are missing a dependency required for meta-operations on this gem.'
  puts boom.to_s.capitalize
end
 
desc 'Install the package as a gem, without generating documentation'
task :install_gem_no_doc => [:clean, :package] do
  sh "#{'sudo ' unless Hoe::WINDOZE }gem install pkg/*.gem --no-rdoc --no-ri"
end
 
task :default => 'spec'
desc 'Run specs'
Spec::Rake::SpecTask.new do |t|
  t.spec_opts = ['--format', 'specdoc', '--colour', '--diff']
end
 
desc 'Generate coverage reports'
Spec::Rake::SpecTask.new('spec:coverage') do |t|
  t.rcov = true
end
 
desc 'Generate a nice HTML report of spec results'
Spec::Rake::SpecTask.new('spec:report') do |t|
  t.spec_opts = ['--format', 'html:report.html', '--diff']
end