Skip to content

Latest commit

 

History

History
152 lines (111 loc) · 9.24 KB

File metadata and controls

152 lines (111 loc) · 9.24 KB

Change log

master (unreleased)

0.13.1

  • Change enum method return type from void to untyped #366
  • Fix enum methods generation to only include defined methods #368
  • Remove stale sig/rbs_rails/utils directory #367
  • Fix argument types for will_save_change_to_attribute method #370
  • Add missing migration for label column on users table #374
  • Add from: and to: keyword argument types to saved_change_to_? #375
  • Support for composed_of aggregation RBS generation #373
  • Fix belongs_to builder methods to accept optional argument #380
  • Generate RBS signatures for accepts_nested_attributes_for setters #381
  • Allow Integer and Symbol in enum attribute setter signatures #379
  • Determine primary key types for has_many and has_and_belongs_to_many associations #376
  • fix: Use attr_accessor for check_db_migrations to allow setting false #385

Bug fixes

0.13.0

New features

  • Enable type generation for models with composite primary keys #358
  • Add optional arguments for column_changed? and column_previously_changed? #357
  • Check database migrations before generating types for models #342
  • Integrate model_dependencies.rbs to each model signatures #345
  • Do not update RBS file if the signature nothing changed #346
  • support alias attribute in enum definitions #325
  • active_record: Support #id_value alias for #id column #350
  • Allow overrides methods in subclasses #317
  • feat: Add command line interface for rbs_rails #335
  • feat: Display class name when RBS generation fails #334
  • Support no-arguments in create_** method for has_one associations #333
  • Add #{attribute}_before_type_cast and #{attribute}_for_database methods for attributes #322
  • Support has_and_belongs_to_many #272
  • Support special directory structures, such as when using packs-rails #323
  • enum: Support Rails 7 style enum definitions #311
  • add generate columns aliased by alias_attibute #318
  • Add additional enum methods #312
  • enum: Support array-style enum declarations #310
  • Support resolve-type-names header #304
  • Install _RbsRailsPathHelpers to ActionController::Base by default #279
  • Override types of CollectionProxy #289
  • path_helpers: Support Rails 8.0 #283
  • Reimplement enum inspector via spy #296
  • generated rbs for activerecord models respects serialize (common cases) #293

Bug fixes

  • Avoid reusing the same object when generating attribute aliases #361
  • Use Prism instead of parser/current to suppress warnings #362
  • Fix: Ruby::UnresolvedOverloading error when calling ::ActiveRecord::Relation#select #353
  • CI: Fix broken testcases #336
  • fix: external library models not saved to correct path structure #324
  • Fix #{attribute}_before_type_cast and {#attribute}_for_database methods test #330
  • test: Adjust expectations for Blog model #327
  • Fix #233: Support enum name including unexpected characters #285
  • test: Update db/schema.rb on test app #307
  • Fix #277: CollectionProxy should include Enumerable explicitly #278

misc

  • CI: Hello Ruby 4.0! #359
  • deps: Drop Rails 6 support #355
  • test: Share build results across tests to reduce build times #337
  • CI: Add GitHub Actions workflow for releasing gem #309
  • test: Upgrade testing Rails app to 7.2 #321
  • Manage types of this gem using RBS::Inline #300
  • rake: Remove deprecated --silent option from rbs validate #306
  • CI: Test with ruby 3.4 💎 #301
  • sig: Remove sig/rake.rbs #295
  • Add path helper method tests #292
  • deps: Add benchmark gem to test/app/Gemfile #294

0.12.1

  • Drop support for old Rubies. #284
  • Make type names absolute to avoid referring to incorrect class. #265
  • Avoid to create directory on initialization. #261
  • Make build_* methods parameters optional. #258
  • Skip to define rake tasks when rbs_rails is not able to load. #251

0.12.0

  • Support RBS v3. #246
  • Ignore _scope as enum field name. #249

0.11.0 (2022-03-24)

New Features

  • Add rails generator to generate rbs.rake. #217

Bug Fixes

  • Do not expose polyfil RBSs. #218

0.10.1 (2022-03-23)

Bug Fixes

  • Generate dependency types of relations. #216

0.10.0 (2022-03-18)

New Features

  • Support has_secure_password. #193
  • Support Active Storage. #195

Bug Fixes

  • Use absolute path for class names to avoid using incorrect class. #201
  • Fix NoMethodError on enum with _default option. #208

0.9.0 (2021-09-18)

New Features

  • Support delegated_type association. #181

Bug Fixes

  • Fix error on a table that doesn't have the PK. #121
  • Quote variable names to avoid syntax errors. #178
  • Add scope methods to ActiveRecord_Associations_CollectionProxy. #182
  • Make has_one association optional. #180
  • Omit some methods for polymorphic associations. #184
  • Include enum methods to GeneratedRelationMethods. #183
  • Include _ActiveRecord_Relation to CollectionProxy. #189

0.8.2 (2021-02-20)

  • Add ActiveRecord::AttributeMethods::Dirty methods #104
  • Define find method based on primary key #105

0.8.1 (2021-01-09)

  • Skip generation RBS fro class that doesn't have table in DB. #95

0.8.0 (2020-12-31)

  • [BREAKING] Move RBS files that are copied by rbs_rails:copy_signature_files task to ruby/gem_rbs repository #90
  • Allow all kinds of argument for scope #89

0.7.0 (2020-12-28)

  • [BREAKING] Re-structure signature directory. #86
  • Generate ActiveRecord models with namespaces and superclasses. #87