Skip to content

Releases: ctran/annotate_models

v3.2.0

10 Feb 06:35
Compare
Choose a tag to compare

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

Full Changelog: v3.1.0...v3.2.0

v3.1.1

03 Jan 20:42
c9e85d3
Compare
Choose a tag to compare
v3.1.1-release

v3.1.1-release

v2.7.4

03 Jun 22:08
Compare
Choose a tag to compare
  • Fix with_comment format in annotate_models_rake #560

v2.7.3

21 Apr 17:31
Compare
Choose a tag to compare
Mostly bug fixes

v2.7.2

02 Jun 01:39
Compare
Choose a tag to compare

Ruby 2.4, Rake 12, new options, support for Rails 5, etc

v2.7.1

09 May 07:08
Compare
Choose a tag to compare

v2.7.0 - Happy new year!

30 Dec 06:26
Compare
Choose a tag to compare

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

26 May 13:23
Compare
Choose a tag to compare

Revert "Prefer SQL column type over normalized AR type"

v2.6.9 - Add foreign key support

22 May 00:39
Compare
Choose a tag to compare
  • Add foreign key support #241, thanks to @subakva
  • Check if model has skip tag in annotate_model_file (#167)
  • Fix issue where serializer-related flags weren't being honored (#246)
  • Prefer SQL column type over normalized AR type (#231)

Please note that this version produces incompatible annotations.

v2.6.8 - Minor bug fix

12 Mar 05:03
Compare
Choose a tag to compare
  • Nothing annotated unless options[:model_dir] is specified, #234