Sha256: 0529c5715a31e3dd2e0cf5bfbd262a6b257688db3394355a06361b24532a43c6

Contents?: true

Size: 366 Bytes

Versions: 10

Compression:

Stored size: 366 Bytes

Contents

require 'code_statistics'

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
  CodeStatistics.new(*STATS_DIRECTORIES).to_s
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
tailor-1.1.3 tasks/stats.rake
tailor-1.1.2 tasks/stats.rake
tailor-1.1.1 tasks/stats.rake
tailor-1.1.0 tasks/stats.rake
tailor-1.0.1 tasks/stats.rake
tailor-1.0.0 tasks/stats.rake
tailor-1.0.0.alpha2 tasks/stats.rake
tailor-1.0.0.alpha tasks/stats.rake
tailor-0.1.5 tasks/stats.rake
tailor-0.1.4 tasks/stats.rake