Skip to content
Newer
Older
100644 20 lines (16 sloc) 409 Bytes
b177a54 @zenspider Added todo task to aggregate spec excludes.
zenspider authored Jan 16, 2008
1 # -*- ruby -*-
2
3 task :todo do
4 excludes = Hash.new 0
d348928 Fixed 'rake todo', broken after last mspec change
Ryan Davis authored Feb 25, 2008
5 Find.find "spec/tags" do |path|
6 next unless File.file? path
7 next unless File.size? path
8 dir = File.dirname(path).sub(/^\../, '')
9
10 excludes[dir] += File.readlines(path).size
b177a54 @zenspider Added todo task to aggregate spec excludes.
zenspider authored Jan 17, 2008
11 end
12
59a2bf2 @zenspider Added total
zenspider authored Jan 22, 2008
13 total = 0
b177a54 @zenspider Added todo task to aggregate spec excludes.
zenspider authored Jan 17, 2008
14 excludes.sort_by { |_, v| -v }.each do |dir, count|
d348928 Fixed 'rake todo', broken after last mspec change
Ryan Davis authored Feb 25, 2008
15 puts "%3d: %s" % [count, dir]
59a2bf2 @zenspider Added total
zenspider authored Jan 22, 2008
16 total += count
b177a54 @zenspider Added todo task to aggregate spec excludes.
zenspider authored Jan 17, 2008
17 end
59a2bf2 @zenspider Added total
zenspider authored Jan 22, 2008
18 puts "%3d: TOTAL" % total
b177a54 @zenspider Added todo task to aggregate spec excludes.
zenspider authored Jan 17, 2008
19 end
Something went wrong with that request. Please try again.