Sha256: c446c52e9bfdd38ba3afa03ad0e71c1b060337abaee2f85ce9bfc75e950b19f8

Contents?: true

Size: 574 Bytes

Versions: 5

Compression:

Stored size: 574 Bytes

Contents

STATS_DIRECTORIES = [
  %w(Helpers           app/helpers), 
  %w(Controllers       app/controllers), 
  %w(APIs              app/apis),
  %w(Components        components),
  %w(Functional\ tests test/functional),
  %w(Models            app/models),
  %w(Unit\ tests       test/unit),
  %w(Libraries         lib/)
].collect { |name, dir| [ name, "#{RAILS_ROOT}/#{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

5 entries across 5 versions & 1 rubygems

Version Path
rails-0.14.1 lib/tasks/statistics.rake
rails-0.14.2 lib/tasks/statistics.rake
rails-0.14.3 lib/tasks/statistics.rake
rails-0.14.4 lib/tasks/statistics.rake
rails-1.0.0 lib/tasks/statistics.rake