Sha256: ec4e04a113c70572a0200e467114f63e2e733dd2321d8f8c058a75881b93ea6a

Contents?: true

Size: 608 Bytes

Versions: 16

Compression:

Stored size: 608 Bytes

Contents

require 'rails/source_annotation_extractor'

desc "Enumerate all annotations (use notes:optimize, :fixme, :todo for focus)"
task :notes do
  SourceAnnotationExtractor.enumerate "OPTIMIZE|FIXME|TODO", :tag => true
end

namespace :notes do
  ["OPTIMIZE", "FIXME", "TODO"].each do |annotation|
    # desc "Enumerate all #{annotation} annotations"
    task annotation.downcase.intern do
      SourceAnnotationExtractor.enumerate annotation
    end
  end

  desc "Enumerate a custom annotation, specify with ANNOTATION=CUSTOM"
  task :custom do
    SourceAnnotationExtractor.enumerate ENV['ANNOTATION']
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
git-topic-0.2.7.3 lib/tasks/annotations.rake
git-topic-0.2.7.2 lib/tasks/annotations.rake
git-topic-0.2.7.1 lib/tasks/annotations.rake
git-topic-0.2.7 lib/tasks/annotations.rake
git-topic-0.2.6.1 lib/tasks/annotations.rake
git-topic-0.2.6 lib/tasks/annotations.rake
git-topic-0.2.5 lib/tasks/annotations.rake
git-topic-0.2.4.1 lib/tasks/annotations.rake
git-topic-0.2.4 lib/tasks/annotations.rake
git-topic-0.2.3.3 lib/tasks/annotations.rake
git-topic-0.2.3.2 lib/tasks/annotations.rake
git-topic-0.2.3.1 lib/tasks/annotations.rake
git-topic-0.2.3 lib/tasks/annotations.rake
git-topic-0.2.2 lib/tasks/annotations.rake
git-topic-0.2.1 lib/tasks/annotations.rake
git-topic-0.1.6.4 lib/tasks/annotations.rake