summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2005-11-05 16:18:36 +0000
committermurphy <murphy@rubychan.de>2005-11-05 16:18:36 +0000
commit681b5008d2cf42bf61503a91ffe48c17430141ab (patch)
tree385a0877ffccd8f861bb3bd97232404f3329e386 /Rakefile
parentc09c3f8db6f8ffefe0dc1c181ce20b4f84804cb3 (diff)
downloadcoderay-681b5008d2cf42bf61503a91ffe48c17430141ab.tar.gz
Improved code statistics!
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/Rakefile b/Rakefile
index d9ede8f..0f509c0 100644
--- a/Rakefile
+++ b/Rakefile
@@ -38,10 +38,16 @@ end
desc 'Report code statistics (LOC) from the application'
task :stats => :copy_files do
- require 'code_statistics'
+ require 'rake_helpers/code_statistics'
CodeStatistics.new(
- ["Main", "lib"]
- ).to_s
+ ['Main', 'lib'],
+ ['CodeRay', 'lib/coderay/'],
+ [' Scanners', 'lib/coderay/scanners'],
+ [' Encoders', 'lib/coderay/encoders'],
+ [' Helpers', 'lib/coderay/helpers'],
+ ['Test', 'test/**', /\/\w+.rb$/],
+ ['Demo Tests', 'demo/**']
+ ).print
end
desc 'Test CodeRay Demos'