Sha256: de03223d58e7446d8470204c4cf89ffa5a5599b1967648fc6676310067b4684d

Contents?: true

Size: 688 Bytes

Versions: 9

Compression:

Stored size: 688 Bytes

Contents

# frozen_string_literal: true

require 'rspec/core/rake_task'

desc 'Report code statistics (KLOCs, etc)'
task :stats do
  puts Countless::Statistics.new
end

desc 'Enumerate all annotations'
task :notes do
  puts Countless::Annotations.new
end

namespace :notes do
  Countless.configuration.annotation_tags.each do |annotation|
    task annotation.downcase.to_sym do
      puts Countless::Annotations.new("@?#{annotation}")
    end
  end

  task :custom do
    annotation = ENV.fetch('ANNOTATION')
    puts Countless::Annotations.new("@?#{annotation}")
  rescue KeyError
    puts 'No annotation was specified.'
    puts "Usage: ANNOTATION='FIXME' rake notes:custom"
    exit 1
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
countless-1.5.0 lib/countless/rake_tasks.rake
countless-1.4.2 lib/countless/rake_tasks.rake
countless-1.4.1 lib/countless/rake_tasks.rake
countless-1.4.0 lib/countless/rake_tasks.rake
countless-1.3.4 lib/countless/rake_tasks.rake
countless-1.3.3 lib/countless/rake_tasks.rake
countless-1.3.2 lib/countless/rake_tasks.rake
countless-1.3.1 lib/countless/rake_tasks.rake
countless-1.3.0 lib/countless/rake_tasks.rake