* Updates to make annotate smarter about when to touch a model
* Recognize column+type, and don't change a file unless the column+type combination of the new schema are different than that of the old (i.e., don't regenerate if columns happen to be in a different order. That's just how life is sometimes)
* Recognize column+type, and don't change a file unless the column+type combination of the new schema are different than that of the old (i.e., don't regenerate if columns happen to be in a different order. That's just how life is sometimes)
* Grab old specification even if it has \r\n as line endings rather than pure \ns
* Grab old specification even if it has \r\n as line endings rather than pure \ns
* Various warning and specification fixes
* Various warning and specification fixes
* Fix "no such file to load -- annotate/annotate_models (MissingSourceFile)" error (require statements in tasks now use full path to lib files)
* Fix "no such file to load -- annotate/annotate_models (MissingSourceFile)" error (require statements in tasks now use full path to lib files)
* warn about macros, to mitigate when we're included during a production run, not just a rakefile run -- possibly at the expense of too much noise
* warn about macros, to mitigate when we're included during a production run, not just a rakefile run -- possibly at the expense of too much noise
* Adding rake as a runtime dependency
* Adding rake as a runtime dependency
* If the schema is already in the model file, it will be replaced into the same location. If it didn't previously exist, it'll be placed according to the "position", as before.
* If the schema is already in the model file, it will be replaced into the same location. If it didn't previously exist, it'll be placed according to the "position", as before.
* Allow task loading from Rakefile for gems (plugin installation already auto-detects).
* Allow task loading from Rakefile for gems (plugin installation already auto-detects).
* Add skip_on_db_migrate option as well for people that don't want it
* Add skip_on_db_migrate option as well for people that don't want it
* Fix options parsing to convert strings to proper booleans. Change annotate to use opt
* Fix options parsing to convert strings to proper booleans
ions hash instead of ENV.
* Add support for Fabrication fabricators
* Add support for Fabrication fabricators
* Leave magic encoding comment intact
* Leave magic encoding comment intact
* Fix issue #14 - RuntimeError: Already memoized
* Fix issue #14 - RuntimeError: Already memoized
...
@@ -57,6 +57,10 @@
...
@@ -57,6 +57,10 @@
no replacement. It will be removed on or after 2011-10-01.`
no replacement. It will be removed on or after 2011-10-01.`
* Fix handling of files with no trailing newline when putting annotations at
* Fix handling of files with no trailing newline when putting annotations at
the end of the file.
the end of the file.
* Now works on tables with no primary key.
* Add --format=markdown option
* "Table name" annotation (if table name is different from model name)
* "Human name" annotation (enabling translation to non-English locales)