Froze rails gems
[depot.git] / vendor / rails / railties / lib / tasks / statistics.rake
1 STATS_DIRECTORIES = [
2 %w(Controllers app/controllers),
3 %w(Helpers app/helpers),
4 %w(Models app/models),
5 %w(Libraries lib/),
6 %w(APIs app/apis),
7 %w(Components components),
8 %w(Integration\ tests test/integration),
9 %w(Functional\ tests test/functional),
10 %w(Unit\ tests test/unit)
11
12 ].collect { |name, dir| [ name, "#{RAILS_ROOT}/#{dir}" ] }.select { |name, dir| File.directory?(dir) }
13
14 desc "Report code statistics (KLOCs, etc) from the application"
15 task :stats do
16 require 'code_statistics'
17 CodeStatistics.new(*STATS_DIRECTORIES).to_s
18 end