README.rdoc in annotate-3.0.0 vs README.rdoc in annotate-3.0.2

- old
+ new

@@ -161,11 +161,11 @@ == Options Usage: annotate [options] [model_file]* - --additional_file_patterns Additional file paths or globs to annotate, separated by commas (e.g. `/foo/bar/%model_name%/*.rb,/baz/%model_name%.rb`) + --additional-file-patterns Additional file paths or globs to annotate, separated by commas (e.g. `/foo/bar/%model_name%/*.rb,/baz/%model_name%.rb`) -d, --delete Remove annotations from all model files or the routes.rb file -p [before|top|after|bottom], Place the annotations at the top (before) or the bottom (after) of the model/test/fixture/factory/route/serializer file(s) --position --pc, --position-in-class [before|top|after|bottom] Place the annotations at the top (before) or the bottom (after) of the model file @@ -214,21 +214,21 @@ --hide-default-column-types VALUES don't show default for given column types, separated by commas (e.g. `json,jsonb,hstore`) --ignore-unknown-models don't display warnings for bad model files --with-comment include database comments in model annotations -=== Option: +additional_file_patterns+ +=== Option: +additional-file-patterns+ -CLI: +--additional_file_patterns+<br> -Ruby: +:additional_file_patterns+ +CLI: +--additional-file-patterns+<br> +Ruby: +:additional-file-patterns+ Provide additional paths for the gem to annotate. These paths can include globs. It is recommended to use absolute paths. Here are some examples: -- <code>/app/lib/decorates/%MODEL_NAME%/&ast;.rb</code> -- <code>/app/lib/forms/%PLURALIZED_MODEL_NAME%/&ast;&ast;/&ast;.rb</code> -- <code>/app/lib/forms/%TABLE_NAME%/&ast;.rb</code> +- <code>/app/lib/decorates/%MODEL_NAME%/*.rb</code> +- <code>/app/lib/forms/%PLURALIZED_MODEL_NAME%/**/*.rb</code> +- <code>/app/lib/forms/%TABLE_NAME%/*.rb</code> The appropriate model will be inferred using the <code>%*%</code> syntax, annotating any matching files. It works with existing filename resolutions (options for which can be found in the +resolve_filename+ method of +annotate_models.rb+).