Annotate Models Versions Save

Annotate Rails classes with schema and routes info

v3.2.0

2 years ago

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

New Contributors

Full Changelog: https://github.com/ctran/annotate_models/compare/v3.1.0...v3.2.0

v3.1.1-release

3 years ago

v2.7.4

5 years ago
  • Fix with_comment format in annotate_models_rake #560

v2.7.3

6 years ago

v2.7.2

6 years ago

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

v2.7.0

8 years ago

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

v2.6.10

8 years ago

Revert "Prefer SQL column type over normalized AR type"

v2.6.9

9 years ago
  • 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

9 years ago
  • Nothing annotated unless options[:model_dir] is specified, #234