Froze rails gems
[depot.git] / vendor / rails / railties / lib / tasks / annotations.rake
1 require 'source_annotation_extractor'
2
3 desc "Enumerate all annotations"
4 task :notes do
5 SourceAnnotationExtractor.enumerate "OPTIMIZE|FIXME|TODO", :tag => true
6 end
7
8 namespace :notes do
9 ["OPTIMIZE", "FIXME", "TODO"].each do |annotation|
10 desc "Enumerate all #{annotation} annotations"
11 task annotation.downcase.intern do
12 SourceAnnotationExtractor.enumerate annotation
13 end
14 end
15
16 desc "Enumerate a custom annotation, specify with ANNOTATION=WTFHAX"
17 task :custom do
18 SourceAnnotationExtractor.enumerate ENV['ANNOTATION']
19 end
20 end