Sha256: 7fffbcd01a1374a2fde63327a18edf14c3d85bccc67bed3311478b9b6dfd80af

Contents?: true

Size: 366 Bytes

Versions: 4

Compression:

Stored size: 366 Bytes

Contents

STATS_DIRECTORIES = [
  %w(Library            lib/),
  %w(Feature\ tests     features/),
  %w(Unit\ tests        spec/)
].collect { |name, dir| [ name, "#{dir}" ] }.select { |name, dir| File.directory?(dir) }

desc "Report code statistics (KLOCs, etc) from the application"
task :stats do
  require 'code_statistics'
  CodeStatistics.new(*STATS_DIRECTORIES).to_s
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tailor-0.1.3 lib/tasks/stats.rake
tailor-0.1.2 lib/tasks/stats.rake
tailor-0.1.1 lib/tasks/stats.rake
tailor-0.1.0 lib/tasks/stats.rake