public
Description: A process execution library which doesn't suck.
Clone URL: git://github.com/codahale/ropen.git
Pinched rake stats from Merb, who probably lifted it from Rails, who 
probably lifted it from somewhere else.
codahale (author)
Mon May 19 18:17:34 -0700 2008
commit  af7a3c050f28c9fe190b6a222eaf52ecef0514ef
tree    c65e9276a427b1f95e870fb352a583b3cbf3df7b
parent  fe0ead104ff1b1dc4037c68b9d218c9ebbeb33b1
...
15
16
17
 
 
 
 
 
 
 
 
 
 
 
 
18
19
20
...
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
0
@@ -15,6 +15,18 @@ CLOBBER.include(
0
   "doc/coverage"
0
 )
0
 
0
+STATS_DIRECTORIES = [
0
+ ['Code', 'lib/'],
0
+ ['Unit tests', 'spec']
0
+].collect { |name, dir| [ name, "./#{dir}" ] }.
0
+ select { |name, dir| File.directory?(dir) }
0
+
0
+desc "Report code statistics (KLOCs, etc) from the application"
0
+task :stats do
0
+ require File.join(File.dirname(__FILE__), "tools", "code_statistics")
0
+ CodeStatistics.new(*STATS_DIRECTORIES).to_s
0
+end
0
+
0
 namespace :spec do
0
   desc "Run all specs and store html output in doc/specs.html"
0
   Spec::Rake::SpecTask.new('html') do |t|

Comments

    No one has commented yet.