Sha256: 478325284af771c255fa53d0c1985b7414f35654a2cf490fc87437e7c61ae11f

Contents?: true

Size: 1.27 KB

Versions: 1

Compression:

Stored size: 1.27 KB

Contents

# railties/lib/rails/tasks/statistics.rake

module RailsStats
  module Rake
    STATS_DIRECTORIES = [
      %w(Controllers        app/controllers),
      %w(Helpers            app/helpers),
      %w(Models             app/models),
      %w(Mailers            app/mailers),
      %w(Observers          app/observers),
      %w(Javascripts        app/assets/javascripts),
      %w(Libraries          lib/),
      %w(APIs               app/apis),
      %w(Controller\ tests  test/controllers),
      %w(Helper\ tests      test/helpers),
      %w(Model\ tests       test/models),
      %w(Mailer\ tests      test/mailers),
      %w(Integration\ tests test/integration),
      %w(Functional\ tests\ (old)  test/functional),
      %w(Unit\ tests \ (old)       test/unit),
      %w(Controller\ tests  spec/controllers),
      %w(Helper\ tests      spec/helpers),
      %w(Model\ tests       spec/models),
      %w(Mailer\ tests      spec/mailers),
      %w(Integration\ tests spec/integration),
      %w(Integration\ tests spec/integrations),
      %w(Request\ tests spec/requests),
      %w(Library\ tests spec/lib),
      %w(Cucumber\ tests features),
    ]

    def calculate(root_directory)
      puts "\nDirectory: #{root_directory}\n\n"
      CodeStatistics.new(root_directory).to_s
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_stats-0.0.4 lib/rails_stats/rake.rb