Commit 33860941 by Jon Frisby

Updating documentation.

parent efa5699a
== HEAD
* Add sorting for columns and indexes. (Helpful for out-of-order migration execution!)
* BugFix for models without tables.
* Annotate unit tests in subfolders.
* Add generator to install rakefile that automatically annotates on db:migrate.
* Fix gemspec generation now that Jeweler looks at Gemfile.
* Correct Gemfile to clarify which environments need which gems.
* Add an .rvmrc to facilitate clean development.
* Refactor out ActiveRecord monkey-patch to permit extending without side-effects.
* Use ObjectSpace to locate models to facilitate handling of models with non-standard capitalization.
Note that this still requires that the inflector be configured to understand the special case.
* Merge away a few branches whose changes we already have in order to clean up the Github network graph.
* Fix warning: `NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01.`
== 2.1 2009-10-18 == 2.1 2009-10-18
* New options * New options
...@@ -5,7 +20,7 @@ ...@@ -5,7 +20,7 @@
* -i to show database indexes in annotations * -i to show database indexes in annotations
* -e to exclude annotating tests or fixtures * -e to exclude annotating tests or fixtures
* -m to include the migration version number in the annotation * -m to include the migration version number in the annotation
* --model-dir to annotate model files stored a different place than app/models * --model-dir to annotate model files stored a different place than app/models
* Ignore unknown macros ('acts_as_whatever') * Ignore unknown macros ('acts_as_whatever')
== 2.0 2009-02-03 == 2.0 2009-02-03
......
...@@ -41,7 +41,7 @@ Also, if you pass the -r option, it'll annotate routes.rb with the output of "ra ...@@ -41,7 +41,7 @@ Also, if you pass the -r option, it'll annotate routes.rb with the output of "ra
Into Gemfile from Github: Into Gemfile from Github:
gem 'annotate', :git => 'git://github.com/ctran/annotate_models.git' gem 'annotate', :git => 'git://github.com/ctran/annotate_models.git'
Into environment gems From Rubygems.org: Into environment gems From Rubygems.org:
...@@ -75,28 +75,14 @@ To annotate routes.rb: ...@@ -75,28 +75,14 @@ To annotate routes.rb:
annotate -r annotate -r
To automatically annotate after running 'rake db:migrate': To automatically annotate after running 'rake db:migrate', ensure you've added
annotate_models to your Rails project's Gemfile, and run this:
[*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 rails g annotate_models:install
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. To get the same behavior from a gem, add the following to
your Rakefile:
require 'annotate/tasks' This will produce a .rake file that will ensure annotation happens after
migration (but only in development mode), and provide configuration options
To customize the behavior of annotate when it is running as a Rake you can use to tailor the output.
task, use the following (in your Rakefile or wherever):
ENV['position_in_class'] = "before"
ENV['position_in_fixture'] = "before"
ENV['show_indexes'] = "false"
ENV['include_version'] = "false"
ENV['exclude_tests'] = "false"
ENV['exclude_fixtures'] = "false"
ENV['skip_on_db_migrate'] = "false"
== OPTIONS == OPTIONS
...@@ -141,6 +127,7 @@ Original code by: Dave Thomas -- Pragmatic Programmers, LLC ...@@ -141,6 +127,7 @@ Original code by: Dave Thomas -- Pragmatic Programmers, LLC
Overhauled by: Alex Chaffee Overhauled by: Alex Chaffee
Gemmed by: Cuong Tran Gemmed by: Cuong Tran
Maintained by: Alex Chaffee and Cuong Tran Maintained by: Alex Chaffee and Cuong Tran
Integration by: Jon Frisby
Modifications by: Modifications by:
...@@ -158,5 +145,6 @@ Modifications by: ...@@ -158,5 +145,6 @@ Modifications by:
- Gavin Montague - http://github.com/govan/ - Gavin Montague - http://github.com/govan/
- Alexander Semyonov - http://github.com/rotuka/ - Alexander Semyonov - http://github.com/rotuka/
- Ian Duggan http://github.com/ijcd/ - Ian Duggan http://github.com/ijcd/
- Jon Frisby http://github.com/mrjoy/
and many others that I may have missed to add. and many others that I may have missed to add.
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