Sha256: c07f2be8278fb9868019190145163efa187331bb35b281fb8298038294249e93

Contents?: true

Size: 589 Bytes

Versions: 16

Compression:

Stored size: 589 Bytes

Contents

# frozen_string_literal: true

if defined?(Rails) && Rails.env.development?
  require 'rspec/core/rake_task'

  # rubocop:disable Rails/RakeEnvironment because this is just an
  #   helper command, no need for an application bootstrap
  task :stats do
    require 'rails/code_statistics'

    [
      [:unshift, 'Consumer', 'app/consumers']
    ].each do |method, type, dir|
      next unless File.directory? dir

      STATS_DIRECTORIES.send(method, [type, dir])
      CodeStatistics::TEST_TYPES << type if type.include? 'specs'
    end
  end
  # rubocop:enable Rails/RakeEnvironment
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
rimless-1.8.0 lib/rimless/tasks/stats.rake
rimless-1.7.7 lib/rimless/tasks/stats.rake
rimless-1.7.6 lib/rimless/tasks/stats.rake
rimless-1.7.5 lib/rimless/tasks/stats.rake
rimless-1.7.4 lib/rimless/tasks/stats.rake
rimless-1.7.3 lib/rimless/tasks/stats.rake
rimless-1.7.2 lib/rimless/tasks/stats.rake
rimless-1.7.1 lib/rimless/tasks/stats.rake
rimless-1.7.0 lib/rimless/tasks/stats.rake
rimless-1.6.0 lib/rimless/tasks/stats.rake
rimless-1.5.1 lib/rimless/tasks/stats.rake
rimless-1.5.0 lib/rimless/tasks/stats.rake
rimless-1.4.2 lib/rimless/tasks/stats.rake
rimless-1.4.1 lib/rimless/tasks/stats.rake
rimless-1.4.0 lib/rimless/tasks/stats.rake
rimless-1.3.0 lib/rimless/tasks/stats.rake