tasks/annotations.rake in webby-0.7.4 vs tasks/annotations.rake in webby-0.8.0
- old
+ new
@@ -3,26 +3,18 @@
if HAVE_BONES
desc "Enumerate all annotations"
task :notes do
Bones::AnnotationExtractor.enumerate(
- PROJ, "OPTIMIZE|FIXME|TODO", :tag => true)
+ PROJ, PROJ.annotation_tags.join('|'), :tag => true)
end
namespace :notes do
- desc "Enumerate all OPTIMIZE annotations"
- task :optimize do
- Bones::AnnotationExtractor.enumerate(PROJ, "OPTIMIZE")
- end
-
- desc "Enumerate all FIXME annotations"
- task :fixme do
- Bones::AnnotationExtractor.enumerate(PROJ, "FIXME")
- end
-
- desc "Enumerate all TODO annotations"
- task :todo do
- Bones::AnnotationExtractor.enumerate(PROJ, "TODO")
+ PROJ.annotation_tags.each do |tag|
+ desc "Enumerate all #{tag} annotations"
+ task tag.downcase.to_sym do
+ Bones::AnnotationExtractor.enumerate(PROJ, tag)
+ end
end
end
end # if HAVE_BONES