Sha256: ea95c88c1864d51d1374668e4cefee30d79c72467f40616847e36047294ae548

Contents?: true

Size: 588 Bytes

Versions: 61

Compression:

Stored size: 588 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, "#{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

61 entries across 61 versions & 10 rubygems

Version Path
rails-2.3.18 lib/tasks/statistics.rake
rails_csi-2.3.5.p8 lib/tasks/statistics.rake
rails-2.3.17 lib/tasks/statistics.rake
rails_csi-2.3.5.p7 lib/tasks/statistics.rake
rails_csi-2.3.5.p6 lib/tasks/statistics.rake
rails-2.3.16 lib/tasks/statistics.rake
rails-2.3.15 lib/tasks/statistics.rake
radiant-1.0.0 ruby-debug/ruby/1.8/gems/rails-2.3.14/lib/tasks/statistics.rake
vanity-1.7.1 vendor/ruby/1.9.1/gems/rails-2.3.12/lib/tasks/statistics.rake
rails-2.3.14 lib/tasks/statistics.rake
kajam-1.0.3.rc2 vendor/rails/railties/lib/tasks/statistics.rake
rails-2.3.12 lib/tasks/statistics.rake
radiant-1.0.0.rc2 vendor/rails/railties/lib/tasks/statistics.rake
radiant-1.0.0.rc1 vendor/rails/railties/lib/tasks/statistics.rake
webroar-0.5.0 src/admin_panel/vendor/rails/railties/lib/tasks/statistics.rake
rails-2.3.11 lib/tasks/statistics.rake
radiantcms-couchrest_model-0.2.4 vendor/rails/railties/lib/tasks/statistics.rake
radiantcms-couchrest_model-0.2.2 vendor/rails/railties/lib/tasks/statistics.rake
radiantcms-couchrest_model-0.2.1 vendor/rails/railties/lib/tasks/statistics.rake
radiantcms-couchrest_model-0.2 vendor/rails/railties/lib/tasks/statistics.rake