Sha256: 9a13adbe0680797e3a857a45c4484d671b42bd06d5df897ad35a441f7e7b8c55
Contents?: true
Size: 599 Bytes
Versions: 4
Compression:
Stored size: 599 Bytes
Contents
STATS_DIRECTORIES = [ %w(Controllers app/controllers), %w(Helpers app/helpers), %w(Models app/models), %w(Libraries lib/), %w(APIs app/apis), %w(Integration\ tests test/integration), %w(Functional\ tests test/functional), %w(Unit\ tests test/unit) ].collect { |name, dir| [ name, "#{Dir.pwd}/#{dir}" ] }.select { |name, dir| File.directory?(dir) } desc "Report code statistics (KLOCs, etc) from the application" task :stats do require File.join(File.dirname(__FILE__), '..', 'code_statistics', 'code_statistics') CodeStatistics::CodeStatistics.new(*STATS_DIRECTORIES).to_s end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
code_statistics-0.1.3 | lib/tasks/code_stats.rb |
code_statistics-0.1.2 | lib/tasks/code_stats.rb |
code_statistics-0.1.1 | lib/tasks/code_stats.rb |
code_statistics-0.1.0 | lib/tasks/code_stats.rb |