v2.0.3 -
Show latest stable
-
2 notes
- Superclass:
Object
- 1.0.0
- 1.1.6
- 1.2.6
- 2.0.3 (0)
- 2.1.0 (38)
- 2.2.1 (0)
- 2.3.8 (0)
- 3.0.0 (0)
- 3.0.9 (-2)
- 3.1.0 (0)
- 3.2.1 (0)
- 3.2.8 (0)
- 3.2.13 (0)
- 4.0.2 (0)
- 4.1.8 (0)
- 4.2.1 (0)
- 4.2.7 (0)
- 4.2.9 (0)
- 5.0.0.1 (0)
- 5.1.7 (0)
- 5.2.3 (0)
- 6.0.0
- 6.1.3.1
- 6.1.7.7
- 7.0.0
- 7.1.3.2
- 7.1.3.4
- What's this?
Register or
log in
to add new notes.
noxyu3m -
July 23, 2008
5 thanks
Custom annotation types
For group work you may need something more than FIXME, OPTIMIZE and TODO. Just create new rake file and place it to lib/tasks:
require 'source_annotation_extractor' task :notes do SourceAnnotationExtractor.enumerate "WTF|OMG", :tag => true end namespace :notes do desc "Enumerate all WTF annotations" task :wtf do SourceAnnotationExtractor.enumerate "WTF" end desc "Enumerate all OMG annotations" task :omg do SourceAnnotationExtractor.enumerate "OMG" end end
or create an array of new types and generate tasks dynamicaly.
pallan -
January 27, 2009
1 thank
Add Rspec files to the annotations
By default the annotations search the ‘test’ folder, but not the ‘spec’ folder if you are using Rspec. To get those specs involved do this:
require 'source_annotation_extractor' class SourceAnnotationExtractor def find(dirs=%w(app lib spec)) dirs.inject({}) { |h, dir| h.update(find_in(dir)) } end end
If you have other folders you want to check, just add them to the dirs list.