-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathRakefile
42 lines (31 loc) · 1006 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
# -*- ruby -*-
require "rubygems"
require "hoe"
Hoe.spec "struggle" do
developer("Andrew A Smith", "[email protected]")
self.readme_file = "README.md"
self.extra_rdoc_files = FileList['*.md']
license ""
# license "MIT" # this should match the license in the README
end
task :progress do
done = `grep require lib/struggle/events/card_events.rb | \
grep -v TODO | wc -l`
left = `grep TODO lib/struggle/events/card_events.rb | wc -l`
puts "Event Implementation Progress:"
puts "\tDone: %s" % done.strip
puts "\tRemaining: %s" % left.strip
puts "\t%.f%% Complete" % [done.to_f / (done.to_i + left.to_i) * 100]
end
task :whatnext do
exec "grep TODO lib/struggle/events/card_events.rb"
end
task :console do
# Rather than run IRB inline, shell out. This produces a cleaner backtrace
# that excludes rake context when an error is encountered.
exec "irb -Ilib -rstruggle -EUTF-8"
end
task :ctags do
sh "ctags --extra=+f -R *"
end
# vim: syntax=ruby