annotate 3.0.3 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  module Annotate
2
2
  def self.version
3
- '3.0.3'
3
+ '3.1.0'
4
4
  end
5
5
  end
@@ -7,6 +7,7 @@ if Rails.env.development?
7
7
  # You can override any of these by setting an environment variable of the
8
8
  # same name.
9
9
  Annotate.set_defaults(
10
+ 'active_admin' => 'false',
10
11
  'additional_file_patterns' => [],
11
12
  'routes' => 'false',
12
13
  'models' => 'true',
@@ -41,6 +42,7 @@ if Rails.env.development?
41
42
  'skip_on_db_migrate' => 'false',
42
43
  'format_bare' => 'true',
43
44
  'format_rdoc' => 'false',
45
+ 'format_yard' => 'false',
44
46
  'format_markdown' => 'false',
45
47
  'sort' => 'false',
46
48
  'force' => 'false',
@@ -11,46 +11,47 @@ task annotate_models: :environment do
11
11
  require "#{annotate_lib}/annotate/active_record_patch"
12
12
 
13
13
  options = {is_rake: true}
14
- ENV['position'] = options[:position] = Annotate.fallback(ENV['position'], 'before')
14
+ ENV['position'] = options[:position] = Annotate::Helpers.fallback(ENV['position'], 'before')
15
15
  options[:additional_file_patterns] = ENV['additional_file_patterns'] ? ENV['additional_file_patterns'].split(',') : []
16
- options[:position_in_class] = Annotate.fallback(ENV['position_in_class'], ENV['position'])
17
- options[:position_in_fixture] = Annotate.fallback(ENV['position_in_fixture'], ENV['position'])
18
- options[:position_in_factory] = Annotate.fallback(ENV['position_in_factory'], ENV['position'])
19
- options[:position_in_test] = Annotate.fallback(ENV['position_in_test'], ENV['position'])
20
- options[:position_in_serializer] = Annotate.fallback(ENV['position_in_serializer'], ENV['position'])
21
- options[:show_foreign_keys] = Annotate.true?(ENV['show_foreign_keys'])
22
- options[:show_complete_foreign_keys] = Annotate.true?(ENV['show_complete_foreign_keys'])
23
- options[:show_indexes] = Annotate.true?(ENV['show_indexes'])
24
- options[:simple_indexes] = Annotate.true?(ENV['simple_indexes'])
16
+ options[:position_in_class] = Annotate::Helpers.fallback(ENV['position_in_class'], ENV['position'])
17
+ options[:position_in_fixture] = Annotate::Helpers.fallback(ENV['position_in_fixture'], ENV['position'])
18
+ options[:position_in_factory] = Annotate::Helpers.fallback(ENV['position_in_factory'], ENV['position'])
19
+ options[:position_in_test] = Annotate::Helpers.fallback(ENV['position_in_test'], ENV['position'])
20
+ options[:position_in_serializer] = Annotate::Helpers.fallback(ENV['position_in_serializer'], ENV['position'])
21
+ options[:show_foreign_keys] = Annotate::Helpers.true?(ENV['show_foreign_keys'])
22
+ options[:show_complete_foreign_keys] = Annotate::Helpers.true?(ENV['show_complete_foreign_keys'])
23
+ options[:show_indexes] = Annotate::Helpers.true?(ENV['show_indexes'])
24
+ options[:simple_indexes] = Annotate::Helpers.true?(ENV['simple_indexes'])
25
25
  options[:model_dir] = ENV['model_dir'] ? ENV['model_dir'].split(',') : ['app/models']
26
26
  options[:root_dir] = ENV['root_dir']
27
- options[:include_version] = Annotate.true?(ENV['include_version'])
27
+ options[:include_version] = Annotate::Helpers.true?(ENV['include_version'])
28
28
  options[:require] = ENV['require'] ? ENV['require'].split(',') : []
29
- options[:exclude_tests] = Annotate.true?(ENV['exclude_tests'])
30
- options[:exclude_factories] = Annotate.true?(ENV['exclude_factories'])
31
- options[:exclude_fixtures] = Annotate.true?(ENV['exclude_fixtures'])
32
- options[:exclude_serializers] = Annotate.true?(ENV['exclude_serializers'])
33
- options[:exclude_scaffolds] = Annotate.true?(ENV['exclude_scaffolds'])
34
- options[:exclude_controllers] = Annotate.true?(ENV.fetch('exclude_controllers', 'true'))
35
- options[:exclude_helpers] = Annotate.true?(ENV.fetch('exclude_helpers', 'true'))
36
- options[:exclude_sti_subclasses] = Annotate.true?(ENV['exclude_sti_subclasses'])
37
- options[:ignore_model_sub_dir] = Annotate.true?(ENV['ignore_model_sub_dir'])
38
- options[:format_bare] = Annotate.true?(ENV['format_bare'])
39
- options[:format_rdoc] = Annotate.true?(ENV['format_rdoc'])
40
- options[:format_markdown] = Annotate.true?(ENV['format_markdown'])
41
- options[:sort] = Annotate.true?(ENV['sort'])
42
- options[:force] = Annotate.true?(ENV['force'])
43
- options[:frozen] = Annotate.true?(ENV['frozen'])
44
- options[:classified_sort] = Annotate.true?(ENV['classified_sort'])
45
- options[:trace] = Annotate.true?(ENV['trace'])
46
- options[:wrapper_open] = Annotate.fallback(ENV['wrapper_open'], ENV['wrapper'])
47
- options[:wrapper_close] = Annotate.fallback(ENV['wrapper_close'], ENV['wrapper'])
29
+ options[:exclude_tests] = Annotate::Helpers.true?(ENV['exclude_tests'])
30
+ options[:exclude_factories] = Annotate::Helpers.true?(ENV['exclude_factories'])
31
+ options[:exclude_fixtures] = Annotate::Helpers.true?(ENV['exclude_fixtures'])
32
+ options[:exclude_serializers] = Annotate::Helpers.true?(ENV['exclude_serializers'])
33
+ options[:exclude_scaffolds] = Annotate::Helpers.true?(ENV['exclude_scaffolds'])
34
+ options[:exclude_controllers] = Annotate::Helpers.true?(ENV.fetch('exclude_controllers', 'true'))
35
+ options[:exclude_helpers] = Annotate::Helpers.true?(ENV.fetch('exclude_helpers', 'true'))
36
+ options[:exclude_sti_subclasses] = Annotate::Helpers.true?(ENV['exclude_sti_subclasses'])
37
+ options[:ignore_model_sub_dir] = Annotate::Helpers.true?(ENV['ignore_model_sub_dir'])
38
+ options[:format_bare] = Annotate::Helpers.true?(ENV['format_bare'])
39
+ options[:format_rdoc] = Annotate::Helpers.true?(ENV['format_rdoc'])
40
+ options[:format_yard] = Annotate::Helpers.true?(ENV['format_yard'])
41
+ options[:format_markdown] = Annotate::Helpers.true?(ENV['format_markdown'])
42
+ options[:sort] = Annotate::Helpers.true?(ENV['sort'])
43
+ options[:force] = Annotate::Helpers.true?(ENV['force'])
44
+ options[:frozen] = Annotate::Helpers.true?(ENV['frozen'])
45
+ options[:classified_sort] = Annotate::Helpers.true?(ENV['classified_sort'])
46
+ options[:trace] = Annotate::Helpers.true?(ENV['trace'])
47
+ options[:wrapper_open] = Annotate::Helpers.fallback(ENV['wrapper_open'], ENV['wrapper'])
48
+ options[:wrapper_close] = Annotate::Helpers.fallback(ENV['wrapper_close'], ENV['wrapper'])
48
49
  options[:ignore_columns] = ENV.fetch('ignore_columns', nil)
49
50
  options[:ignore_routes] = ENV.fetch('ignore_routes', nil)
50
- options[:hide_limit_column_types] = Annotate.fallback(ENV['hide_limit_column_types'], '')
51
- options[:hide_default_column_types] = Annotate.fallback(ENV['hide_default_column_types'], '')
52
- options[:with_comment] = Annotate.true?(ENV['with_comment'])
53
- options[:ignore_unknown_models] = Annotate.true?(ENV.fetch('ignore_unknown_models', 'false'))
51
+ options[:hide_limit_column_types] = Annotate::Helpers.fallback(ENV['hide_limit_column_types'], '')
52
+ options[:hide_default_column_types] = Annotate::Helpers.fallback(ENV['hide_default_column_types'], '')
53
+ options[:with_comment] = Annotate::Helpers.true?(ENV['with_comment'])
54
+ options[:ignore_unknown_models] = Annotate::Helpers.true?(ENV.fetch('ignore_unknown_models', 'false'))
54
55
 
55
56
  AnnotateModels.do_annotations(options)
56
57
  end
@@ -64,6 +65,6 @@ task remove_annotation: :environment do
64
65
  options[:model_dir] = ENV['model_dir']
65
66
  options[:root_dir] = ENV['root_dir']
66
67
  options[:require] = ENV['require'] ? ENV['require'].split(',') : []
67
- options[:trace] = Annotate.true?(ENV['trace'])
68
+ options[:trace] = Annotate::Helpers.true?(ENV['trace'])
68
69
  AnnotateModels.remove_annotations(options)
69
70
  end
@@ -23,11 +23,11 @@ module Annotate
23
23
  @@working = false
24
24
 
25
25
  def self.update_annotations
26
- unless @@working || Annotate.skip_on_migration?
26
+ unless @@working || Annotate::Helpers.skip_on_migration?
27
27
  @@working = true
28
28
 
29
- self.update_models if Annotate.include_models?
30
- self.update_routes if Annotate.include_routes?
29
+ self.update_models if Annotate::Helpers.include_models?
30
+ self.update_routes if Annotate::Helpers.include_routes?
31
31
  end
32
32
  end
33
33
 
@@ -4,12 +4,12 @@ task :annotate_routes => :environment do
4
4
  require "#{annotate_lib}/annotate/annotate_routes"
5
5
 
6
6
  options={}
7
- ENV['position'] = options[:position] = Annotate.fallback(ENV['position'], 'before')
8
- options[:position_in_routes] = Annotate.fallback(ENV['position_in_routes'], ENV['position'])
9
- options[:ignore_routes] = Annotate.fallback(ENV['ignore_routes'], nil)
7
+ ENV['position'] = options[:position] = Annotate::Helpers.fallback(ENV['position'], 'before')
8
+ options[:position_in_routes] = Annotate::Helpers.fallback(ENV['position_in_routes'], ENV['position'])
9
+ options[:ignore_routes] = Annotate::Helpers.fallback(ENV['ignore_routes'], nil)
10
10
  options[:require] = ENV['require'] ? ENV['require'].split(',') : []
11
- options[:wrapper_open] = Annotate.fallback(ENV['wrapper_open'], ENV['wrapper'])
12
- options[:wrapper_close] = Annotate.fallback(ENV['wrapper_close'], ENV['wrapper'])
11
+ options[:wrapper_open] = Annotate::Helpers.fallback(ENV['wrapper_open'], ENV['wrapper'])
12
+ options[:wrapper_close] = Annotate::Helpers.fallback(ENV['wrapper_close'], ENV['wrapper'])
13
13
  AnnotateRoutes.do_annotations(options)
14
14
  end
15
15
 
@@ -0,0 +1,41 @@
1
+ Colons can be used to align columns.
2
+
3
+ | Tables | Are | Cool |
4
+ | ------------- |:-------------:| -----:|
5
+ | col 3 is | right-aligned | $1600 |
6
+ | col 2 is | centered | $12 |
7
+ | zebra stripes | are neat | $1 |
8
+
9
+ There must be at least 3 dashes separating each header cell.
10
+ The outer pipes (|) are optional, and you don't need to make the
11
+ raw Markdown line up prettily. You can also use inline Markdown.
12
+
13
+ Markdown | Less | Pretty
14
+ --- | --- | ---
15
+ *Still* | `renders` | **nicely**
16
+ 1 | 2 | 3
17
+
18
+
19
+ ## Route Map
20
+
21
+  Prefix | Verb | URI Pattern | Controller#Action
22
+ --------- | ---------- | --------------- | --------------------
23
+ myaction1 | GET | /url1(.:format) | mycontroller1#action
24
+ myaction2 | POST | /url2(.:format) | mycontroller2#action
25
+  myaction3 | DELETE-GET | /url3(.:format) | mycontroller3#action \n")
26
+
27
+
28
+
29
+ Table name: `users`
30
+
31
+ ### Columns
32
+
33
+ Name | Type | Attributes
34
+ ----------------------- | ------------------ | ---------------------------
35
+ **`id`** | `integer` | `not null, primary key`
36
+ **`foreign_thing_id`** | `integer` | `not null`
37
+
38
+ ### Foreign Keys
39
+
40
+ * `fk_rails_...` (_ON DELETE => on_delete_value ON UPDATE => on_update_value_):
41
+ * **`foreign_thing_id => foreign_things.id`**
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: annotate
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.3
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Chaffee
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2019-11-09 00:00:00.000000000 Z
15
+ date: 2020-02-20 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rake
@@ -66,16 +66,14 @@ executables:
66
66
  - annotate
67
67
  extensions: []
68
68
  extra_rdoc_files:
69
- - README.rdoc
70
- - CHANGELOG.rdoc
71
- - TODO.rdoc
69
+ - README.md
70
+ - CHANGELOG.md
72
71
  files:
73
- - AUTHORS.rdoc
74
- - CHANGELOG.rdoc
72
+ - AUTHORS.md
73
+ - CHANGELOG.md
75
74
  - LICENSE.txt
76
- - README.rdoc
77
- - RELEASE.rdoc
78
- - TODO.rdoc
75
+ - README.md
76
+ - RELEASE.md
79
77
  - annotate.gemspec
80
78
  - bin/annotate
81
79
  - lib/annotate.rb
@@ -83,6 +81,7 @@ files:
83
81
  - lib/annotate/annotate_models.rb
84
82
  - lib/annotate/annotate_routes.rb
85
83
  - lib/annotate/constants.rb
84
+ - lib/annotate/helpers.rb
86
85
  - lib/annotate/parser.rb
87
86
  - lib/annotate/tasks.rb
88
87
  - lib/annotate/version.rb
@@ -92,6 +91,7 @@ files:
92
91
  - lib/tasks/annotate_models.rake
93
92
  - lib/tasks/annotate_models_migrate.rake
94
93
  - lib/tasks/annotate_routes.rake
94
+ - potato.md
95
95
  homepage: http://github.com/ctran/annotate_models
96
96
  licenses:
97
97
  - Ruby
@@ -1,245 +0,0 @@
1
- == 3.0.3
2
- * Use a less error-prone way of specifying gem files (#662)
3
- * Update rake requirement from >= 10.4, < 13.0 to >= 10.4, < 14.0 (#659)
4
- * Bump nokogiri from 1.6.6.2 to 1.10.4 in /spec/integration/rails_4.2.0 (#655)
5
- * Defaults annotate models to true (#671)
6
- * Bump loofah from 2.3.0 to 2.3.1 in /spec/integration/rails_4.2.0 (#681)
7
-
8
- == 3.0.2
9
- * Fixes `LoadError` due to gemspec not referencing `parser.rb`, issue #657 (#660)
10
- * Changes `--additional_file_patterns` to use dashes `--additional-file-patterns` for consistency (#649)
11
- * Refactor: moving constants into `constants.rb` (#653)
12
-
13
- == 3.0.1
14
- * Skipped as an official release, used the 3.0.1 patch for setting up Github Actions (#619)
15
-
16
- == 3.0.0
17
- * Added `--models` CLI option fixing issue #563 (#647)
18
- * Added `--additional_file_patterns` option for additional file patterns (#633) (#636) (#637)
19
- * Refactored CLI parser (#646)
20
- * Fixed BigDecimal.new deprecation warning (#634)
21
- * Fixed annotations for columns with long data types (#622)
22
- * Made methods private in AnnotateRoutes (#598)
23
-
24
- See https://github.com/ctran/annotate_models/releases/tag/v3.0.0
25
-
26
- == 2.7.5
27
- See https://github.com/ctran/annotate_models/releases/tag/v2.7.5
28
-
29
- == 2.7.3
30
- See https://github.com/ctran/annotate_models/releases/tag/v2.7.3
31
-
32
- == 2.7.2
33
- See https://github.com/ctran/annotate_models/releases/tag/v2.7.2
34
-
35
- == 2.7.1
36
- See https://github.com/ctran/annotate_models/releases/tag/v2.7.1
37
-
38
- == 2.7.0
39
- See https://github.com/ctran/annotate_models/releases/tag/v2.7.0
40
-
41
- == 2.6.9
42
- * Support foreigh key (#241)
43
- * Check if model has skip tag in annotate_model_file (#167)
44
- * Fix issue where serializer-related flags weren't being honored (#246)
45
- * Prefer SQL column type over normalized AR type (#231)
46
-
47
- == 2.6.8
48
- * Nothing annotated unless options[:model_dir] is specified, #234
49
-
50
- == 2.6.7
51
- * Nothing annotated unless options[:model_dir] is specified, #234
52
-
53
- == 2.6.6
54
- * Makes it possible to wrap annotations, #225
55
- * Fix single model generation, #214
56
- * Fix default value for Rails 4.2, #212
57
- * Don't crash on inherited models in subdirectories, #232
58
- * Process model_dir in rake task, #197
59
-
60
- == 2.6.4
61
- * Skip "models/concerns", #194
62
- * Fix #173 where annotate says "Nothing to annotate" in rails 4.2
63
- * Display an error message if not run from the root of the project, #186
64
- * Support rails 4.0 new default test directory, #182
65
- * Add an option to show timestamp in routes "-timestamp", #136
66
- * Skip plain ruby objects if they have the same class name as an ActiveRecord object, #121
67
-
68
- == 2.6.3
69
- * Fix bug of annotate position in routes (#158)
70
-
71
- == 2.6.2
72
- * Retain the current annotate block unless --force is specified
73
- * Always load models, since they may not be autoloaded by Rails
74
- * The pg array type is now detected (see #158)
75
-
76
- == 2.6.0.beta2
77
-
78
- * support for composite_primary_keys (garysweaver)
79
- * bug fix for annotate_one_file (vlado)
80
-
81
- == 2.6.0.beta1
82
-
83
- * It's now possible to use Annotate in standalone ActiveRecord (non-Rails)
84
- projects again.
85
- * Adding note that Markdown is actually MultiMarkdown, and recommending the use
86
- of the `kramdown` engine for parsing it.
87
- * Improved Markdown formatting considerably.
88
- * Bugfix: Needed to use inline-code tag for column and table names, otherwise
89
- underscores would cause havok with the formatting.
90
- * Bugfix: Markdown syntax was incorrect (can't have trailing spaces before the
91
- closing marker for an emphasis tag).
92
- * Bugfix: Remove-annotations wasn't properly finding test/spec files, and
93
- wasn't even looking for FactoryGirl factories under the new naming
94
- convention.
95
- * Bugfix: Load the Rakefile from the current directory, not the first Rakefile
96
- in our load path.
97
- * Added support for new FactoryGirl naming convention.
98
- * Fix behavior of route annotations in newer versions of Rake that don't spit
99
- out the CWD as their first line of output.
100
- * Overhauled integration testing system to be much easier to work with, better
101
- compartmentalized, and so forth -- at the cost that you must be using RVM to
102
- utilize it. (It'll spit out appropriate pending messages if you don't.)
103
- Also includes a mode for "tinkering" by hand with a scenario, and won't let
104
- you run it through rspect if the repo is in a dirty state. Added appropriate
105
- rake tasks to help with all of this.
106
- * Routes can now be appended, pre-pended, or removed -- and do sane things in
107
- all cases.
108
- * Expose all `position_*` variables as CLI params.
109
- * Make `ENV ['position']` work as a default for all the `ENV ['position_*']`
110
- variables.
111
- * Make rake tasks more resilient to unusual circumstances / code loading
112
- behavior.
113
- * Resolve annotate vs. annotate_models ambiguity once and for all by settling
114
- on `annotate_models` _and_ `annotate_routes`. This avoids a name collision
115
- with RMagick while not needlessly overloading the term.
116
- * Fixed that schema kept prepending additional newlines
117
- * Updates to make annotate smarter about when to touch a model
118
- * Recognize column+type, and don't change a file unless the column+type
119
- combination of the new schema are different than that of the old (i.e., don't
120
- regenerate if columns happen to be in a different order. That's just how life
121
- is sometimes)
122
- * Change annotate to use options hash instead of ENV.
123
-
124
- == 2.5.0
125
-
126
- * Works better with Rails 3
127
- * Bugfix: schema kept prepending additional newlines
128
- * Updates to make annotate smarter about when to touch a model
129
- * 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.)
130
- * Grab old specification even if it has \r\n as line endings rather than pure \ns
131
- * Various warning and specification fixes
132
- * Fix "no such file to load -- annotate/annotate_models (MissingSourceFile)"
133
- error (require statements in tasks now use full path to lib files)
134
- * warn about macros, to mitigate when we're included during a production run,
135
- not just a rakefile run -- possibly at the expense of too much noise
136
- * Adding rake as a runtime dependency
137
- * If the schema is already in the model file, it will be replaced into the same
138
- location. If it didn't previously exist, it'll be placed according to the
139
- "position", as before.
140
- * Allow task loading from Rakefile for gems (plugin installation already
141
- auto-detects).
142
- * Add skip_on_db_migrate option as well for people that don't want it
143
- * Fix options parsing to convert strings to proper booleans
144
- * Add support for Fabrication fabricators
145
- * Leave magic encoding comment intact
146
- * Fix issue #14 - RuntimeError: Already memoized
147
- * Count a model as 'annotated' if any of its tests/fixtures are annotated
148
- * Support FactoryGirl
149
- * Support :change migrations (Rails 3.1)
150
- * Allow models with non-standard capitalization
151
- * Widen type column so we can handle longtexts with chopping things off.
152
- * Skip trying to get list of models from commandline when running via Rake (was
153
- preventing the use of multiple rake tasks in one command if one of them was
154
- db:migrate).
155
- * Add ability to skip annotations for a model by adding
156
- '# -*- SkipSchemaAnnotations' anywhere in the file.
157
- * Don't show column limits for integer and boolean types.
158
- * Add sorting for columns and indexes. (Helpful for out-of-order migration
159
- execution. Use --sort if you want this.)
160
- * Annotate unit tests in subfolders.
161
- * Add generator to install rakefile that automatically annotates on db:migrate.
162
- * Correct Gemfile to clarify which environments need which gems.
163
- * Add an .rvmrc to facilitate clean development.
164
- * Refactor out ActiveRecord monkey-patch to permit extending without
165
- side-effects.
166
- * Use ObjectSpace to locate models to facilitate handling of models with
167
- non-standard capitalization.
168
- Note that this still requires that the inflector be configured to understand
169
- the special case.
170
- * Shore up test cases a bit.
171
- * Merge against many of the older branches on Github whose functionality is
172
- already reflected to reduce confusion about what is and is not implemented
173
- here.
174
- * Accept String or Symbol for :position (et al) options.
175
- * Add RDoc output formatting as an option.
176
- * Add Markdown output formatting as an option.
177
- * Add option to force annotation regeneration.
178
- * Add new configuration option for controlling where info is placed in
179
- fixtures/factories.
180
- * Fix for models without tables.
181
- * Fix gemspec generation now that Jeweler looks at Gemfile.
182
- * Fix warning: `NOTE: Gem::Specification#default_executable= is deprecated with
183
- no replacement. It will be removed on or after 2011-10-01.`
184
- * Fix handling of files with no trailing newline when putting annotations at
185
- the end of the file.
186
- * Now works on tables with no primary key.
187
- * --format=markdown option
188
- * --trace option to help debug "Unable to annotate" errors
189
- * "Table name" annotation (if table name is different from model name)
190
- * "Human name" annotation (enabling translation to non-English locales)
191
- * Fix JRuby ObjectSpace compatibility bug (https://github.com/ctran/annotate_models/pull/85)
192
- * Fix FactoryGirl compatibility bug (https://github.com/ctran/annotate_models/pull/82)
193
-
194
- == 2.4.2 2009-11-21
195
-
196
- * Annotates (spec|test)/factories/<model>_factory.rb files
197
-
198
- == 2.4.1 2009-11-20
199
-
200
- * Annotates thoughtbot's factory_girl factories (test/factories/<model>_factory.rb)
201
- * Move default annotation position back to top
202
-
203
- == 2.4.0 2009-12-13
204
-
205
- * Incorporated lots of patches from the Github community, including support for
206
- Blueprints fixtures
207
- * Several bug fixes
208
-
209
- == 2.1 2009-10-18
210
-
211
- * New options
212
- * -R to require additional files before loading the models
213
- * -i to show database indexes in annotations
214
- * -e to exclude annotating tests or fixtures
215
- * -m to include the migration version number in the annotation
216
- * --model-dir to annotate model files stored a different place than app/models
217
- * Ignore unknown macros ('acts_as_whatever')
218
-
219
- == 2.0 2009-02-03
220
-
221
- * Add annotate_models plugin fork additions
222
- * Annotates Rspec and Test Unit models
223
- * Annotates Object Daddy exemplars
224
- * Annotates geometrical columns
225
- * Add AnnotateRoutes rake task
226
- * Up gem structure to newgem defaults
227
-
228
- == 1.0.4 2008-09-04
229
-
230
- * Only update modified models since last run, thanks to sant0sk1
231
-
232
- == 1.0.3 2008-05-02
233
-
234
- * Add misc changes from Dustin Sallings and Henrik N
235
- * Remove trailing whitespace
236
- * More intuitive info messages
237
- * Update README file with update-to-date example
238
-
239
- == 1.0.2 2008-03-22
240
-
241
- * Add contributions from Michael Bumann (http://github.com/bumi)
242
- * added an option "position" to choose to put the annotation,
243
- * spec/fixtures now also get annotated
244
- * added a task to remove the annotations
245
- * these options can be specified from command line as -d and -p [before|after]