-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathRakefile
48 lines (38 loc) · 1022 Bytes
/
Rakefile
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
46
47
48
# -*- ruby -*-
require 'rubygems'
require 'hoe'
# Hoe.plugin :compiler
# Hoe.plugin :gem_prelude_sucks
# Hoe.plugin :inline
# Hoe.plugin :racc
Hoe.plugin :bundler
Hoe.plugin :git
Hoe.plugin :rubyforge
Hoe.plugin :gemspec
Hoe.spec 'correct-horse-battery-staple' do
developer('Robert Sanders', '[email protected]')
dependency 'commander', '>= 4.0'
dependency 'fastercsv', '>= 1.5.3'
dependency 'json', '>= 1.6.0'
## these are all optional
# dependency 'redis', '>= 2.2.2'
# dependency 'hiredis', '>= 0.4.0'
# dependency 'tupalo-kdtree', '>= 0.2.3'
# dependency 'sqlite3', '>= 1.3.0'
end
namespace :chbs do
task :generate_corpus => "corpus/tvscripts.json"
file "corpus/tvscripts.json" do |task|
sh "./script/generate_all"
end
task :corpus => "corpus/tvscripts.json"
task :clean do
sh "rm -f corpus/*"
end
end
task :corpus => "chbs:corpus"
["spec"].each do |task|
Rake::Task[task].prerequisites.unshift "chbs:corpus"
end
task :clean => "chbs:clean"
# -*- mode: Ruby -*-