Releases: ctran/annotate_models
Releases · ctran/annotate_models
v3.2.0
What's Changed
- Fix undefined method error when spatial column does not have
srid
(#920) @oieioi - Fix: use klass.table_name instead of guessing from associated models (#847) @ocarta-l
- Bump nokogiri from 1.11.2 to 1.11.7 in /spec/integration/rails_6.0.2.1 (#886) @dependabot
- Bump puma from 4.3.7 to 5.3.2 in /spec/integration/rails_5.2.4.1 (#887) @dependabot
get_loaded_model_by_path
is supposed to be nil-safe (#883) @sato11- Fix CI builds and update dependencies (#884) @ctran
- Fix ci: conflicts with removed gems (#865) @ocarta-l
- Allow
get_loaded_model
to succeed when$LOAD_PATH
contains non-string values (#848) @Hamms - Bump rack from 2.1.2 to 2.2.3 in /spec/integration/rails_5.2.4.1 (#820) @dependabot
- Bump rack from 2.1.2 to 2.2.3 in /spec/integration/rails_6.0.2.1 (#819) @dependabot
- Bump websocket-extensions from 0.1.4 to 0.1.5 in /spec/integration/rails_6.0.2.1 (#813) @dependabot
- Bump websocket-extensions from 0.1.4 to 0.1.5 in /spec/integration/rails_5.2.4.1 (#812) @dependabot
- Bump puma from 4.3.3 to 4.3.5 in /spec/integration/rails_5.2.4.1 (#809) @dependabot
- Bump puma from 4.3.3 to 4.3.5 in /spec/integration/rails_6.0.2.1 (#808) @dependabot
- Use ruby/setup-ruby since actions/ruby is deprecated (#855) @ctran
- Fix typo invlaid -> invalid (#835) @olleolleolle
- Enable bundler caching for travis (#853) @Taher-Ghaleb
- Automate release notes with release-drafter.yml (#846) @ctran
- Fix: RuntimeError: Don't know how to build task 'db:migrate' (#844) @onk
- Only return valid models from get_loaded_model_by_path (#801) @macobo
- load :set_annotation_options before running :annotate_routes (#803) @javawizard
- Add annotation hooks for db-specific migration tasks (#686) @paul-mannino
- ActiveAdmin: Allow for both singular and plural model names (#776) @vfonic
- Adding option to skip loading models from subdirectories (#767) @ethanbresler
- gemspec: Add metadata URIs (#798) @olleolleolle
- Move some code to AnnotateModels::FilePatterns (#794) @nard-tech
- Fix typos (#795) @henrik
- Add methods to AnnotateRoutes::HeaderGenerator and refactor methods (#792) @nard-tech
- Fix output for multiline column comments (#779) @tmr08c
- Reactors AnnotateModels.get_schema_info (#791) @tmr08c
- Refactor AnnotateRoutes by adding AnnotateRoutes::HeaderGenerator (#790) @nard-tech
- Fix "undefined method `<'" error message (#774) @erikkessler1
- Turn on integration tests in CI (#788) @drwl
- Add integration test for
rails g annotate:install
(#783) @drwl - Some project clean up (#786) @drwl
What's Changed
- Factory Girl -> Factory Bot by @henrik in #759
- Refactor test cases of AnnotateRoutes - completed version by @nard-tech in #760
- Bump nokogiri from 1.10.7 to 1.10.8 in /spec/integration/rails_6.0.2.1 by @dependabot in #765
- Bump nokogiri from 1.10.7 to 1.10.8 in /spec/integration/rails_5.2.4.1 by @dependabot in #766
- Bump puma from 3.12.2 to 4.3.3 in /spec/integration/rails_5.2.4.1 by @dependabot in #769
- Bump puma from 4.3.1 to 4.3.3 in /spec/integration/rails_6.0.2.1 by @dependabot in #771
- [Revert #677] Fix column default annotations by @drwl in #768
- Bump project required ruby version to >= 2.4 by @drwl in #772
- Refactor by adding AnnotateRoutes::Helpers by @nard-tech in #770
- Make travis.yml valid and to unblock gem releases by @drwl in #782
- Some project clean up by @drwl in #786
- Add integration test for
rails g annotate:install
by @drwl in #783 - Turn on integration tests in CI by @drwl in #788
- Fix "undefined method `<'" error message by @erikkessler1 in #774
- Refactor AnnotateRoutes by adding AnnotateRoutes::HeaderGenerator by @nard-tech in #790
- Reactors AnnotateModels.get_schema_info by @tmr08c in #791
- Fix output for multiline column comments by @tmr08c in #779
- Add methods to AnnotateRoutes::HeaderGenerator and refactor methods by @nard-tech in #792
- Fix typos by @henrik in #795
- Move some code to AnnotateModels::FilePatterns by @nard-tech in #794
- gemspec: Add metadata URIs by @olleolleolle in #798
- Adding option to skip loading models from subdirectories by @ethanbresler in #767
- ActiveAdmin: Allow for both singular and plural model names by @vfonic in #776
- Add annotation hooks for db-specific migration tasks by @paul-mannino in #686
- load :set_annotation_options before running :annotate_routes by @javawizard in #803
- Only return valid models from get_loaded_model_by_path by @macobo in #801
- Fix: RuntimeError: Don't know how to build task 'db:migrate' by @onk in #844
- Automate release notes with release-drafter.yml by @ctran in #846
- Enable bundler caching for travis by @Taher-Ghaleb in #853
- Fix typo invlaid -> invalid by @olleolleolle in #835
- Use ruby/setup-ruby since actions/ruby is deprecated by @ctran in #855
- Bump puma from 4.3.3 to 4.3.5 in /spec/integration/rails_6.0.2.1 by @dependabot in #808
- Bump puma from 4.3.3 to 4.3.5 in /spec/integration/rails_5.2.4.1 by @dependabot in #809
- Bump websocket-extensions from 0.1.4 to 0.1.5 in /spec/integration/rails_5.2.4.1 by @dependabot in #812
- Bump websocket-extensions from 0.1.4 to 0.1.5 in /spec/integration/rails_6.0.2.1 by @dependabot in #813
- Bump rack from 2.1.2 to 2.2.3 in /spec/integration/rails_6.0.2.1 by @dependabot in #819
- Bump rack from 2.1.2 to 2.2.3 in /spec/integration/rails_5.2.4.1 by @dependabot in #820
- Allow
get_loaded_model
to succeed when$LOAD_PATH
contains non-string values by @Hamms in #848 - Fix ci: conflicts with removed gems by @ocarta-l in #865
- Fix CI builds and update dependencies by @ctran in #884
get_loaded_model_by_path
is supposed to be nil-safe by @sato11 in #883- Bump puma from 4.3.7 to 5.3.2 in /spec/integration/rails_5.2.4.1 by @dependabot in #887
- Bump nokogiri from 1.11.2 to 1.11.7 in /spec/integration/rails_6.0.2.1 by @dependabot in #886
- Fix: use klass.table_name instead of guessing from associated models by @ocarta-l in #847
- Fix undefined method error when spatial column does not have
srid
by @oieioi in #920 - Loosen activerecord restriction to work with rails 7 by @dabit in #912
- Bump puma from 5.3.2 to 5.6.1 in /spec/integration/rails_5.2.4.1 by @dependabot in #925
- Bump addressable from 2.7.0 to 2.8.0 in /spec/integration/rails_6.0.2.1 by @dependabot in #889
New Contributors
- @henrik made their first contribution in #759
- @erikkessler1 made their first contribution in #774
- @tmr08c made their first contribution in #791
- @ethanbresler made their first contribution in #767
- @vfonic made their first contribution in #776
- @paul-mannino made their first contribution in #686
- @javawizard made their first contribution in #803
- @macobo made their first contribution in #801
- @onk made their first contribution in #844
- @Taher-Ghaleb made their first contribution in #853
- @Hamms made their first contribution in #848
- @ocarta-l made their first contribution in #865
- @sato11 made their first contribution in #883
- @dabit made their first contribution in #912
Full Changelog: v3.1.0...v3.2.0
v3.1.1
v3.1.1-release v3.1.1-release
v2.7.4
v2.7.3
v2.7.2
v2.7.1
Mostly bug fixes. See https://github.com/ctran/annotate_models/issues?q=milestone%3Av2.7.1+is%3Aclosed
v2.7.0 - Happy new year!
This release contains many bug fixes and enhancements with contributions from so many folks. Thanks!
Bug fixes
- Fix
Unable to annotate foreign_keys
#282 - Fix
Not finding model AB::Thing in ab/thing.rb
#271 - Fix
annotate -e
doesn't skip serializers by default #270 - Fix
Wrapping creates a newline before the close statement
#268 - Fix
'skip_on_db_migrate' => 'false'
#252 - Work with with Rails 5.0 #288
Improvements
- Ignore 'already initialized constant' warnings when models are in additional configured auto load roots #281
- Annotate additional subdirectories #286, #299
- Hide column size for certain column types #278
- Ignore bad model files #251
- Support "routes" => "true" in auto_annotate_models.rake #245
- Ignore default value for jsonb column #250
Revert incompatible change
Revert "Prefer SQL column type over normalized AR type"
v2.6.9 - Add foreign key support
v2.6.8 - Minor bug fix
- Nothing annotated unless options[:model_dir] is specified, #234