Commit 952013ef by Alex Chaffee

documentation

parent 5b3d4459
......@@ -72,6 +72,11 @@ To automatically annotate after running 'rake db:migrate':
[needs more clarity] unpack the gem into vendor/plugins, or maybe vendor/gems, or maybe just require tasks/migrate.rake.
If you install annotate_models as a plugin, it will automatically
adjust your <tt>rake db:migrate</tt> tasks so that they update the
annotations in your model files for you once the migration is
completed.
== OPTIONS
Usage: annotate [options] [model_file]*
......@@ -81,15 +86,11 @@ To automatically annotate after running 'rake db:migrate':
-v, --version Show the current version of this gem
-m, --show-migration Include the migration version number in the annotation
-i, --show-indexes List the table's database indexes in the annotation
-s, --simple-indexes Concat the column's related indexes in the annotation
--model-dir dir Annotate model files stored in dir rather than app/models
-R, --require path Additional files to require before loading models
-e, --exclude [tests,fixtures] Do not annotate fixtures, test files, or both
If you install annotate_models as a plugin, it will automatically
adjust your <tt>rake db:migrate</tt> tasks so that they update the
annotations in your model files for you once the migration is
completed.
== WARNING
......@@ -111,29 +112,13 @@ to an automatically created comment block.
Released under the same license as Ruby. No Support. No Warranty.
== Author:
Original code by:
Dave Thomas -- Pragmatic Programmers, LLC
AnnotateModels mods by:
Alexander Semyonov ( http://github.com/rotuka/annotate_models )
AnnotateRoutes originally by:
== AUTHOR:
Gavin Montague ( http://github.com/govan/annotate-routes )
Original code by: Dave Thomas -- Pragmatic Programmers, LLC
Overhauled by: Alex Chaffee
Gemmed by: Cuong Tran
Maintained by: Alex Chaffee and Cuong Tran
== Forked from:
http://github.com/ctran/annotate_models
== Modifications
- alex@pivotallabs.com
=======
Modifications by:
- Alex Chaffee - http://github.com/alexch - alex@pivotallabs.com
......@@ -145,13 +130,9 @@ Modifications by:
- Neal Clark - http://github.com/nclark
- Jacqui Maher - http://github.com/jacqui
- Nick Plante - http://github.com/zapnap - http://blog.zerosum.org
- Pedro Visintin - http://github.com/peterpunk - http://www.pedrovisintin.com
- Bob Potter - http://github.com/bpot
- Gavin Montague - http://github.com/govan/
- Alexander Semyonov - http://github.com/rotuka/
and many others that I may have missed to add.
<<<<<<< HEAD
Primary maintainers: Cuong Tran and Alex Chaffee
=======
== This fork
Marcos Piccinini ( http://github.com/nofxx/annotate )
>>>>>>> nofxx/master
......@@ -273,7 +273,8 @@ module AnnotateModels
rescue Exception => e
puts "Unable to annotate #{file}: #{e.inspect}"
puts ""
puts e.backtrace.join("\n\t")
# todo: check if all backtrace lines are in "gems" -- if so, it's an annotate bug, so print the whole stack trace.
# puts e.backtrace.join("\n\t")
end
end
if annotated.empty?
......
......@@ -2,3 +2,4 @@ TODO
-----
change default position back to "top" for all
add "top" and "bottom" as synonyms for "before" and "after"
change 'exclude' to 'only' (double negatives are not unconfusing)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment