Skip to content

Commit a3003d3

Browse files
committed
Convert documentation files to Markdown
1 parent d16182f commit a3003d3

File tree

10 files changed

+409
-393
lines changed

10 files changed

+409
-393
lines changed

.document

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
spec/**/*.rb
22
lib/**/*.rb
33
-
4-
README.rdoc
5-
CHANGELOG.rdoc
6-
TODO.rdoc
4+
README.md
5+
CHANGELOG.md
6+
TODO.md

AUTHORS.rdoc renamed to AUTHORS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
== Authors
1+
## Authors
22

33
- Original code by: Dave Thomas -- Pragmatic Programmers, LLC <http://agilewebdevelopment.com/plugins/annotate_models>
44
- Overhauled by: Alex Chaffee <http://alexch.github.com> [email protected]
55
- Gemmed by: Cuong Tran <http://github.com/ctran> [email protected]
66
- Maintained by: Alex Chaffee and Cuong Tran
77
- Homepage: http://github.com/ctran/annotate_models
88

9-
With help from:
9+
### With help from:
1010

1111
- Jack Danger - http://github.com/JackDanger
1212
- Michael Bumann - http://github.com/bumi

CHANGELOG.md

Lines changed: 245 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,245 @@
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+
- support for composite_primary_keys (garysweaver)
78+
- bug fix for annotate_one_file (vlado)
79+
80+
81+
## 2.6.0.beta1
82+
83+
- It's now possible to use Annotate in standalone ActiveRecord (non-Rails) projects again.
84+
- Adding note that Markdown is actually MultiMarkdown, and recommending the use
85+
of the `kramdown` engine for parsing it.
86+
- Improved Markdown formatting considerably.
87+
- Bugfix: Needed to use inline-code tag for column and table names,
88+
otherwise underscores would cause havok with the formatting.
89+
- Bugfix: Markdown syntax was incorrect
90+
(can't have trailing spaces before the closing marker for an emphasis tag).
91+
- Bugfix: Remove-annotations wasn't properly finding test/spec files,
92+
and wasn't even looking for FactoryGirl factories under the new naming convention.
93+
- Bugfix: Load the Rakefile from the current directory, not the first
94+
Rakefile in our load path.
95+
- Added support for new FactoryGirl naming convention.
96+
- Fix behavior of route annotations in newer versions of Rake that don't
97+
spit out the CWD as their first line of output.
98+
- Overhauled integration testing system to be much easier to work with,
99+
better compartmentalized, and so forth -- at the cost that you must be
100+
using RVM to utilize it. (It'll spit out appropriate pending messages if
101+
you don't.) Also includes a mode for "tinkering" by hand with a scenario,
102+
and won't let you run it through rspect if the repo is in a dirty state.
103+
Added appropriate rake tasks to help with all of this.
104+
- Routes can now be appended, pre-pended, or removed -- and do sane things in all cases.
105+
- Expose all `position_*` variables as CLI params.
106+
- Make `ENV ['position']` work as a default for all the `ENV ['position_*']` variables.
107+
- Make rake tasks more resilient to unusual circumstances / code loading behavior.
108+
- Resolve annotate vs. annotate_models ambiguity once and for all by
109+
settling on `annotate_models` *and* `annotate_routes`. This avoids a name
110+
collision with RMagick while not needlessly overloading the term.
111+
- Fixed that schema kept prepending additional newlines
112+
- Updates to make annotate smarter about when to touch a model
113+
- Recognize column+type, and don't change a file unless the column+type
114+
combination of the new schema are different than that of the old (i.e.,
115+
don't regenerate if columns happen to be in a different order. That's just
116+
how life is sometimes)
117+
- Change annotate to use options hash instead of ENV.
118+
119+
120+
## 2.5.0
121+
122+
- Works better with Rails 3
123+
- Bugfix: schema kept prepending additional newlines
124+
- Updates to make annotate smarter about when to touch a model
125+
- Recognize column+type, and don't change a file unless the column+type
126+
combination of the new schema are different than that of the old (i.e.,
127+
don't regenerate if columns happen to be in a different order. That's just
128+
how life is sometimes.)
129+
- Grab old specification even if it has `\r\n` as line endings rather than pure `\n`s
130+
- Various warning and specification fixes
131+
- Fix "no such file to load -- annotate/annotate_models (MissingSourceFile)"
132+
error (require statements in tasks now use full path to lib files)
133+
- warn about macros, to mitigate when we're included during a production
134+
run, not just a rakefile run -- possibly at the expense of too much noise
135+
- Adding rake as a runtime dependency
136+
- If the schema is already in the model file, it will be replaced into the same location.
137+
If it didn't previously exist, it'll be placed according to the "position", as before.
138+
- Allow task loading from Rakefile for gems (plugin installation already auto-detects).
139+
- Add skip_on_db_migrate option as well for people that don't want it
140+
- Fix options parsing to convert strings to proper booleans
141+
- Add support for Fabrication fabricators
142+
- Leave magic encoding comment intact
143+
- Fix issue #14 - RuntimeError: Already memoized
144+
- Count a model as 'annotated' if any of its tests/fixtures are annotated
145+
- Support FactoryGirl
146+
- Support :change migrations (Rails 3.1)
147+
- Allow models with non-standard capitalization
148+
- Widen type column so we can handle longtexts with chopping things off.
149+
- Skip trying to get list of models from commandline when running via Rake
150+
(was preventing the use of multiple rake tasks in one command if one of them was `db:migrate`).
151+
- Add ability to skip annotations for a model by adding
152+
`# -*- SkipSchemaAnnotations` anywhere in the file.
153+
- Don't show column limits for integer and boolean types.
154+
- Add sorting for columns and indexes.
155+
(Helpful for out-of-order migration execution. Use `--sort` if you want this.)
156+
- Annotate unit tests in subfolders.
157+
- Add generator to install rakefile that automatically annotates on `db:migrate`.
158+
- Correct Gemfile to clarify which environments need which gems.
159+
- Add an .rvmrc to facilitate clean development.
160+
- Refactor out ActiveRecord monkey-patch to permit extending without side-effects.
161+
- Use ObjectSpace to locate models to facilitate handling of models with
162+
non-standard capitalization.
163+
Note that this still requires that the inflector be configured to understand
164+
the special case.
165+
- Shore up test cases a bit.
166+
- Merge against many of the older branches on Github whose functionality is
167+
already reflected to reduce confusion about what is and is not implemented here.
168+
- Accept String or Symbol for :position (et al) options.
169+
- Add RDoc output formatting as an option.
170+
- Add Markdown output formatting as an option.
171+
- Add option to force annotation regeneration.
172+
- Add new configuration option for controlling where info is placed in
173+
fixtures/factories.
174+
- Fix for models without tables.
175+
- Fix gemspec generation now that Jeweler looks at Gemfile.
176+
- Fix warning: `NOTE: Gem::Specification#default_executable= is deprecated
177+
with no replacement. It will be removed on or after 2011-10-01.`
178+
- Fix handling of files with no trailing newline when putting annotations at
179+
the end of the file.
180+
- Now works on tables with no primary key.
181+
- `--format=markdown` option
182+
- `--trace` option to help debug "Unable to annotate" errors
183+
- "Table name" annotation (if table name is different from model name)
184+
- "Human name" annotation (enabling translation to non-English locales)
185+
- Fix JRuby ObjectSpace compatibility bug (https://github.com/ctran/annotate_models/pull/85)
186+
- Fix FactoryGirl compatibility bug (https://github.com/ctran/annotate_models/pull/82)
187+
188+
189+
## 2.4.2 2009-11-21
190+
- Annotates `(spec|test)/factories/<model>_factory.rb` files
191+
192+
## 2.4.1 2009-11-20
193+
194+
- Annotates thoughtbot's factory_girl factories (`test/factories/<model>_factory.rb`)
195+
- Move default annotation position back to top
196+
197+
198+
## 2.4.0 2009-12-13
199+
- Incorporated lots of patches from the Github community,
200+
including support for Blueprints fixtures
201+
- Several bug fixes
202+
203+
## 2.1 2009-10-18
204+
205+
- New options
206+
- `-R` to require additional files before loading the models
207+
- `-i` to show database indexes in annotations
208+
- `-e` to exclude annotating tests or fixtures
209+
- `-m` to include the migration version number in the annotation
210+
- `--model-dir` to annotate model files stored a different place than `app/models`
211+
212+
- Ignore unknown macros ('acts_as_whatever')
213+
214+
215+
## 2.0 2009-02-03
216+
217+
- Add annotate_models plugin fork additions
218+
- Annotates Rspec and Test Unit models
219+
- Annotates Object Daddy exemplars
220+
- Annotates geometrical columns
221+
222+
- Add AnnotateRoutes rake task
223+
- Up gem structure to newgem defaults
224+
225+
226+
## 1.0.4 2008-09-04
227+
228+
- Only update modified models since last run, thanks to sant0sk1
229+
230+
## 1.0.3 2008-05-02
231+
232+
- Add misc changes from Dustin Sallings and Henrik N
233+
- Remove trailing whitespace
234+
- More intuitive info messages
235+
- Update README file with update-to-date example
236+
237+
## 1.0.2 2008-03-22
238+
239+
- Add contributions from Michael Bumann (http://github.com/bumi)
240+
- added an option "position" to choose to put the annotation,
241+
- spec/fixtures now also get annotated
242+
- added a task to remove the annotations
243+
- these options can be specified from command line as `-d` and `-p [before|after]`
244+
245+

0 commit comments

Comments
 (0)