diff options
author | murphy <murphy@rubychan.de> | 2005-11-05 16:18:36 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2005-11-05 16:18:36 +0000 |
commit | 681b5008d2cf42bf61503a91ffe48c17430141ab (patch) | |
tree | 385a0877ffccd8f861bb3bd97232404f3329e386 /Rakefile | |
parent | c09c3f8db6f8ffefe0dc1c181ce20b4f84804cb3 (diff) | |
download | coderay-681b5008d2cf42bf61503a91ffe48c17430141ab.tar.gz |
Improved code statistics!
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -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'
|