sorbet-rails 0.7.27 → 0.7.33

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci-master.yml +2 -0
  3. data/.github/workflows/publish-gem.yml +9 -19
  4. data/README.md +14 -2
  5. data/lib/sorbet-rails/active_record_rbi_formatter.rb +3 -3
  6. data/lib/sorbet-rails/gem_plugins/aasm_plugin.rb +7 -2
  7. data/lib/sorbet-rails/model_column_utils.rb +1 -1
  8. data/lib/sorbet-rails/model_plugins/active_record_assoc.rb +1 -1
  9. data/lib/sorbet-rails/model_plugins/active_record_querying.rb +13 -0
  10. data/lib/sorbet-rails/model_rbi_formatter.rb +3 -3
  11. data/lib/sorbet-rails/rails_mixins/custom_finder_methods.rb +8 -0
  12. data/sorbet-rails.gemspec +2 -2
  13. data/spec/custom_finder_methods_spec.rb +23 -0
  14. data/spec/sorbet_spec.rb +3 -0
  15. data/spec/support/v5.2/Gemfile.lock +76 -67
  16. data/spec/support/v6.0/Gemfile.lock +93 -85
  17. data/spec/support/v6.1/Gemfile +1 -1
  18. data/spec/support/v6.1/Gemfile.lock +115 -108
  19. data/spec/support/v6.1/sorbet_test_cases.rb +3 -0
  20. data/spec/test_data/v5.2/expected_active_record_relation.rbi +2 -2
  21. data/spec/test_data/v5.2/expected_attachment.rbi +3 -3
  22. data/spec/test_data/v5.2/expected_blob.rbi +3 -3
  23. data/spec/test_data/v5.2/expected_habtm_subjects.rbi +3 -3
  24. data/spec/test_data/v5.2/expected_habtm_wizards.rbi +3 -3
  25. data/spec/test_data/v5.2/expected_headmaster.rbi +3 -3
  26. data/spec/test_data/v5.2/expected_internal_metadata.rbi +3 -3
  27. data/spec/test_data/v5.2/expected_potion.rbi +3 -3
  28. data/spec/test_data/v5.2/expected_robe.rbi +3 -3
  29. data/spec/test_data/v5.2/expected_schema_migration.rbi +3 -3
  30. data/spec/test_data/v5.2/expected_school.rbi +3 -3
  31. data/spec/test_data/v5.2/expected_spell/habtm_spell_books.rbi +3 -3
  32. data/spec/test_data/v5.2/expected_spell.rbi +3 -3
  33. data/spec/test_data/v5.2/expected_spell_book/habtm_spell_books.rbi +3 -3
  34. data/spec/test_data/v5.2/expected_spell_book/habtm_spells.rbi +3 -3
  35. data/spec/test_data/v5.2/expected_spell_book.rbi +3 -3
  36. data/spec/test_data/v5.2/expected_squib.rbi +3 -3
  37. data/spec/test_data/v5.2/expected_subject/habtm_wizards.rbi +3 -3
  38. data/spec/test_data/v5.2/expected_subject.rbi +3 -3
  39. data/spec/test_data/v5.2/expected_wand.rbi +3 -3
  40. data/spec/test_data/v5.2/expected_wizard/habtm_subjects.rbi +3 -3
  41. data/spec/test_data/v5.2/expected_wizard.rbi +3 -3
  42. data/spec/test_data/v5.2/expected_wizard_wo_spellbook.rbi +6 -6
  43. data/spec/test_data/v6.0/expected_active_record_relation.rbi +2 -2
  44. data/spec/test_data/v6.0/expected_attachment.rbi +3 -3
  45. data/spec/test_data/v6.0/expected_blob.rbi +3 -3
  46. data/spec/test_data/v6.0/expected_habtm_subjects.rbi +3 -3
  47. data/spec/test_data/v6.0/expected_habtm_wizards.rbi +3 -3
  48. data/spec/test_data/v6.0/expected_headmaster.rbi +3 -3
  49. data/spec/test_data/v6.0/expected_internal_metadata.rbi +3 -3
  50. data/spec/test_data/v6.0/expected_potion.rbi +3 -3
  51. data/spec/test_data/v6.0/expected_robe.rbi +3 -3
  52. data/spec/test_data/v6.0/expected_schema_migration.rbi +3 -3
  53. data/spec/test_data/v6.0/expected_school.rbi +3 -3
  54. data/spec/test_data/v6.0/expected_spell/habtm_spell_books.rbi +3 -3
  55. data/spec/test_data/v6.0/expected_spell.rbi +3 -3
  56. data/spec/test_data/v6.0/expected_spell_book/habtm_spell_books.rbi +3 -3
  57. data/spec/test_data/v6.0/expected_spell_book/habtm_spells.rbi +3 -3
  58. data/spec/test_data/v6.0/expected_spell_book.rbi +3 -3
  59. data/spec/test_data/v6.0/expected_squib.rbi +3 -3
  60. data/spec/test_data/v6.0/expected_subject/habtm_wizards.rbi +3 -3
  61. data/spec/test_data/v6.0/expected_subject.rbi +3 -3
  62. data/spec/test_data/v6.0/expected_wand.rbi +3 -3
  63. data/spec/test_data/v6.0/expected_wizard/habtm_subjects.rbi +3 -3
  64. data/spec/test_data/v6.0/expected_wizard.rbi +3 -3
  65. data/spec/test_data/v6.0/expected_wizard_wo_spellbook.rbi +6 -6
  66. data/spec/test_data/v6.1/expected_active_record_relation.rbi +2 -2
  67. data/spec/test_data/v6.1/expected_attachment.rbi +9 -3
  68. data/spec/test_data/v6.1/expected_blob.rbi +9 -3
  69. data/spec/test_data/v6.1/expected_habtm_subjects.rbi +3 -3
  70. data/spec/test_data/v6.1/expected_habtm_wizards.rbi +3 -3
  71. data/spec/test_data/v6.1/expected_headmaster.rbi +9 -3
  72. data/spec/test_data/v6.1/expected_internal_metadata.rbi +9 -3
  73. data/spec/test_data/v6.1/expected_potion.rbi +9 -3
  74. data/spec/test_data/v6.1/expected_record.rbi +9 -3
  75. data/spec/test_data/v6.1/expected_robe.rbi +9 -3
  76. data/spec/test_data/v6.1/expected_schema_migration.rbi +9 -3
  77. data/spec/test_data/v6.1/expected_school.rbi +9 -3
  78. data/spec/test_data/v6.1/expected_spell/habtm_spell_books.rbi +9 -3
  79. data/spec/test_data/v6.1/expected_spell.rbi +9 -3
  80. data/spec/test_data/v6.1/expected_spell_book/habtm_spell_books.rbi +3 -3
  81. data/spec/test_data/v6.1/expected_spell_book/habtm_spells.rbi +9 -3
  82. data/spec/test_data/v6.1/expected_spell_book.rbi +9 -3
  83. data/spec/test_data/v6.1/expected_squib.rbi +9 -3
  84. data/spec/test_data/v6.1/expected_subject/habtm_wizards.rbi +9 -3
  85. data/spec/test_data/v6.1/expected_subject.rbi +9 -3
  86. data/spec/test_data/v6.1/expected_variant_record.rbi +9 -3
  87. data/spec/test_data/v6.1/expected_wand.rbi +9 -3
  88. data/spec/test_data/v6.1/expected_wizard/habtm_subjects.rbi +9 -3
  89. data/spec/test_data/v6.1/expected_wizard.rbi +9 -3
  90. data/spec/test_data/v6.1/expected_wizard_wo_spellbook.rbi +12 -6
  91. metadata +3 -3
@@ -476,7 +476,7 @@ class Squib::ActiveRecord_Relation < ActiveRecord::Relation
476
476
  include Squib::ActiveRelation_WhereNot
477
477
  include Squib::CustomFinderMethods
478
478
  include Squib::QueryMethodsReturningRelation
479
- Elem = type_member(fixed: Squib)
479
+ Elem = type_member {{fixed: Squib}}
480
480
 
481
481
  sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
482
482
  def Alastor_Mad_Eye_Moody(*args); end
@@ -624,7 +624,7 @@ class Squib::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelatio
624
624
  include Squib::ActiveRelation_WhereNot
625
625
  include Squib::CustomFinderMethods
626
626
  include Squib::QueryMethodsReturningAssociationRelation
627
- Elem = type_member(fixed: Squib)
627
+ Elem = type_member {{fixed: Squib}}
628
628
 
629
629
  sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
630
630
  def Alastor_Mad_Eye_Moody(*args); end
@@ -771,7 +771,7 @@ end
771
771
  class Squib::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
772
772
  include Squib::CustomFinderMethods
773
773
  include Squib::QueryMethodsReturningAssociationRelation
774
- Elem = type_member(fixed: Squib)
774
+ Elem = type_member {{fixed: Squib}}
775
775
 
776
776
  sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
777
777
  def Alastor_Mad_Eye_Moody(*args); end
@@ -1027,6 +1027,9 @@ module Squib::QueryMethodsReturningRelation
1027
1027
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Squib::ActiveRecord_Relation) }
1028
1028
  def select_columns(*args); end
1029
1029
 
1030
+ sig { params(args: Symbol).returns(Squib::ActiveRecord_Relation) }
1031
+ def where_missing(*args); end
1032
+
1030
1033
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Squib::ActiveRecord_Relation) }
1031
1034
  def extending(*args, &block); end
1032
1035
 
@@ -1143,6 +1146,9 @@ module Squib::QueryMethodsReturningAssociationRelation
1143
1146
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Squib::ActiveRecord_AssociationRelation) }
1144
1147
  def select_columns(*args); end
1145
1148
 
1149
+ sig { params(args: Symbol).returns(Squib::ActiveRecord_AssociationRelation) }
1150
+ def where_missing(*args); end
1151
+
1146
1152
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Squib::ActiveRecord_AssociationRelation) }
1147
1153
  def extending(*args, &block); end
1148
1154
 
@@ -190,6 +190,9 @@ module Subject::HABTM_Wizards::QueryMethodsReturningRelation
190
190
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
191
191
  def select_columns(*args); end
192
192
 
193
+ sig { params(args: Symbol).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
194
+ def where_missing(*args); end
195
+
193
196
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
194
197
  def extending(*args, &block); end
195
198
 
@@ -306,6 +309,9 @@ module Subject::HABTM_Wizards::QueryMethodsReturningAssociationRelation
306
309
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
307
310
  def select_columns(*args); end
308
311
 
312
+ sig { params(args: Symbol).returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
313
+ def where_missing(*args); end
314
+
309
315
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
310
316
  def extending(*args, &block); end
311
317
 
@@ -326,20 +332,20 @@ class Subject::HABTM_Wizards::ActiveRecord_Relation < ActiveRecord::Relation
326
332
  include Subject::HABTM_Wizards::ActiveRelation_WhereNot
327
333
  include Subject::HABTM_Wizards::CustomFinderMethods
328
334
  include Subject::HABTM_Wizards::QueryMethodsReturningRelation
329
- Elem = type_member(fixed: Subject::HABTM_Wizards)
335
+ Elem = type_member {{fixed: Subject::HABTM_Wizards}}
330
336
  end
331
337
 
332
338
  class Subject::HABTM_Wizards::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
333
339
  include Subject::HABTM_Wizards::ActiveRelation_WhereNot
334
340
  include Subject::HABTM_Wizards::CustomFinderMethods
335
341
  include Subject::HABTM_Wizards::QueryMethodsReturningAssociationRelation
336
- Elem = type_member(fixed: Subject::HABTM_Wizards)
342
+ Elem = type_member {{fixed: Subject::HABTM_Wizards}}
337
343
  end
338
344
 
339
345
  class Subject::HABTM_Wizards::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
340
346
  include Subject::HABTM_Wizards::CustomFinderMethods
341
347
  include Subject::HABTM_Wizards::QueryMethodsReturningAssociationRelation
342
- Elem = type_member(fixed: Subject::HABTM_Wizards)
348
+ Elem = type_member {{fixed: Subject::HABTM_Wizards}}
343
349
 
344
350
  sig { params(records: T.any(Subject::HABTM_Wizards, T::Array[Subject::HABTM_Wizards])).returns(T.self_type) }
345
351
  def <<(*records); end
@@ -163,6 +163,9 @@ module Subject::QueryMethodsReturningRelation
163
163
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Subject::ActiveRecord_Relation) }
164
164
  def select_columns(*args); end
165
165
 
166
+ sig { params(args: Symbol).returns(Subject::ActiveRecord_Relation) }
167
+ def where_missing(*args); end
168
+
166
169
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Subject::ActiveRecord_Relation) }
167
170
  def extending(*args, &block); end
168
171
 
@@ -279,6 +282,9 @@ module Subject::QueryMethodsReturningAssociationRelation
279
282
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Subject::ActiveRecord_AssociationRelation) }
280
283
  def select_columns(*args); end
281
284
 
285
+ sig { params(args: Symbol).returns(Subject::ActiveRecord_AssociationRelation) }
286
+ def where_missing(*args); end
287
+
282
288
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Subject::ActiveRecord_AssociationRelation) }
283
289
  def extending(*args, &block); end
284
290
 
@@ -299,20 +305,20 @@ class Subject::ActiveRecord_Relation < ActiveRecord::Relation
299
305
  include Subject::ActiveRelation_WhereNot
300
306
  include Subject::CustomFinderMethods
301
307
  include Subject::QueryMethodsReturningRelation
302
- Elem = type_member(fixed: Subject)
308
+ Elem = type_member {{fixed: Subject}}
303
309
  end
304
310
 
305
311
  class Subject::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
306
312
  include Subject::ActiveRelation_WhereNot
307
313
  include Subject::CustomFinderMethods
308
314
  include Subject::QueryMethodsReturningAssociationRelation
309
- Elem = type_member(fixed: Subject)
315
+ Elem = type_member {{fixed: Subject}}
310
316
  end
311
317
 
312
318
  class Subject::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
313
319
  include Subject::CustomFinderMethods
314
320
  include Subject::QueryMethodsReturningAssociationRelation
315
- Elem = type_member(fixed: Subject)
321
+ Elem = type_member {{fixed: Subject}}
316
322
 
317
323
  sig { params(records: T.any(Subject, T::Array[Subject])).returns(T.self_type) }
318
324
  def <<(*records); end
@@ -38,7 +38,7 @@ class ActiveStorage::VariantRecord::ActiveRecord_Relation < ActiveRecord::Relati
38
38
  include ActiveStorage::VariantRecord::ActiveRelation_WhereNot
39
39
  include ActiveStorage::VariantRecord::CustomFinderMethods
40
40
  include ActiveStorage::VariantRecord::QueryMethodsReturningRelation
41
- Elem = type_member(fixed: ActiveStorage::VariantRecord)
41
+ Elem = type_member {{fixed: ActiveStorage::VariantRecord}}
42
42
 
43
43
  sig { params(args: T.untyped).returns(ActiveStorage::VariantRecord::ActiveRecord_Relation) }
44
44
  def with_attached_image(*args); end
@@ -48,7 +48,7 @@ class ActiveStorage::VariantRecord::ActiveRecord_AssociationRelation < ActiveRec
48
48
  include ActiveStorage::VariantRecord::ActiveRelation_WhereNot
49
49
  include ActiveStorage::VariantRecord::CustomFinderMethods
50
50
  include ActiveStorage::VariantRecord::QueryMethodsReturningAssociationRelation
51
- Elem = type_member(fixed: ActiveStorage::VariantRecord)
51
+ Elem = type_member {{fixed: ActiveStorage::VariantRecord}}
52
52
 
53
53
  sig { params(args: T.untyped).returns(ActiveStorage::VariantRecord::ActiveRecord_AssociationRelation) }
54
54
  def with_attached_image(*args); end
@@ -57,7 +57,7 @@ end
57
57
  class ActiveStorage::VariantRecord::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
58
58
  include ActiveStorage::VariantRecord::CustomFinderMethods
59
59
  include ActiveStorage::VariantRecord::QueryMethodsReturningAssociationRelation
60
- Elem = type_member(fixed: ActiveStorage::VariantRecord)
60
+ Elem = type_member {{fixed: ActiveStorage::VariantRecord}}
61
61
 
62
62
  sig { params(args: T.untyped).returns(ActiveStorage::VariantRecord::ActiveRecord_AssociationRelation) }
63
63
  def with_attached_image(*args); end
@@ -175,6 +175,9 @@ module ActiveStorage::VariantRecord::QueryMethodsReturningRelation
175
175
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(ActiveStorage::VariantRecord::ActiveRecord_Relation) }
176
176
  def select_columns(*args); end
177
177
 
178
+ sig { params(args: Symbol).returns(ActiveStorage::VariantRecord::ActiveRecord_Relation) }
179
+ def where_missing(*args); end
180
+
178
181
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::VariantRecord::ActiveRecord_Relation) }
179
182
  def extending(*args, &block); end
180
183
 
@@ -291,6 +294,9 @@ module ActiveStorage::VariantRecord::QueryMethodsReturningAssociationRelation
291
294
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(ActiveStorage::VariantRecord::ActiveRecord_AssociationRelation) }
292
295
  def select_columns(*args); end
293
296
 
297
+ sig { params(args: Symbol).returns(ActiveStorage::VariantRecord::ActiveRecord_AssociationRelation) }
298
+ def where_missing(*args); end
299
+
294
300
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::VariantRecord::ActiveRecord_AssociationRelation) }
295
301
  def extending(*args, &block); end
296
302
 
@@ -266,7 +266,7 @@ class Wand::ActiveRecord_Relation < ActiveRecord::Relation
266
266
  include Wand::ActiveRelation_WhereNot
267
267
  include Wand::CustomFinderMethods
268
268
  include Wand::QueryMethodsReturningRelation
269
- Elem = type_member(fixed: Wand)
269
+ Elem = type_member {{fixed: Wand}}
270
270
 
271
271
  sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
272
272
  def basilisk_horn(*args); end
@@ -297,7 +297,7 @@ class Wand::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
297
297
  include Wand::ActiveRelation_WhereNot
298
298
  include Wand::CustomFinderMethods
299
299
  include Wand::QueryMethodsReturningAssociationRelation
300
- Elem = type_member(fixed: Wand)
300
+ Elem = type_member {{fixed: Wand}}
301
301
 
302
302
  sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
303
303
  def basilisk_horn(*args); end
@@ -327,7 +327,7 @@ end
327
327
  class Wand::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
328
328
  include Wand::CustomFinderMethods
329
329
  include Wand::QueryMethodsReturningAssociationRelation
330
- Elem = type_member(fixed: Wand)
330
+ Elem = type_member {{fixed: Wand}}
331
331
 
332
332
  sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
333
333
  def basilisk_horn(*args); end
@@ -466,6 +466,9 @@ module Wand::QueryMethodsReturningRelation
466
466
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Wand::ActiveRecord_Relation) }
467
467
  def select_columns(*args); end
468
468
 
469
+ sig { params(args: Symbol).returns(Wand::ActiveRecord_Relation) }
470
+ def where_missing(*args); end
471
+
469
472
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
470
473
  def extending(*args, &block); end
471
474
 
@@ -582,6 +585,9 @@ module Wand::QueryMethodsReturningAssociationRelation
582
585
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Wand::ActiveRecord_AssociationRelation) }
583
586
  def select_columns(*args); end
584
587
 
588
+ sig { params(args: Symbol).returns(Wand::ActiveRecord_AssociationRelation) }
589
+ def where_missing(*args); end
590
+
585
591
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
586
592
  def extending(*args, &block); end
587
593
 
@@ -190,6 +190,9 @@ module Wizard::HABTM_Subjects::QueryMethodsReturningRelation
190
190
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Wizard::HABTM_Subjects::ActiveRecord_Relation) }
191
191
  def select_columns(*args); end
192
192
 
193
+ sig { params(args: Symbol).returns(Wizard::HABTM_Subjects::ActiveRecord_Relation) }
194
+ def where_missing(*args); end
195
+
193
196
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wizard::HABTM_Subjects::ActiveRecord_Relation) }
194
197
  def extending(*args, &block); end
195
198
 
@@ -306,6 +309,9 @@ module Wizard::HABTM_Subjects::QueryMethodsReturningAssociationRelation
306
309
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation) }
307
310
  def select_columns(*args); end
308
311
 
312
+ sig { params(args: Symbol).returns(Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation) }
313
+ def where_missing(*args); end
314
+
309
315
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation) }
310
316
  def extending(*args, &block); end
311
317
 
@@ -326,20 +332,20 @@ class Wizard::HABTM_Subjects::ActiveRecord_Relation < ActiveRecord::Relation
326
332
  include Wizard::HABTM_Subjects::ActiveRelation_WhereNot
327
333
  include Wizard::HABTM_Subjects::CustomFinderMethods
328
334
  include Wizard::HABTM_Subjects::QueryMethodsReturningRelation
329
- Elem = type_member(fixed: Wizard::HABTM_Subjects)
335
+ Elem = type_member {{fixed: Wizard::HABTM_Subjects}}
330
336
  end
331
337
 
332
338
  class Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
333
339
  include Wizard::HABTM_Subjects::ActiveRelation_WhereNot
334
340
  include Wizard::HABTM_Subjects::CustomFinderMethods
335
341
  include Wizard::HABTM_Subjects::QueryMethodsReturningAssociationRelation
336
- Elem = type_member(fixed: Wizard::HABTM_Subjects)
342
+ Elem = type_member {{fixed: Wizard::HABTM_Subjects}}
337
343
  end
338
344
 
339
345
  class Wizard::HABTM_Subjects::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
340
346
  include Wizard::HABTM_Subjects::CustomFinderMethods
341
347
  include Wizard::HABTM_Subjects::QueryMethodsReturningAssociationRelation
342
- Elem = type_member(fixed: Wizard::HABTM_Subjects)
348
+ Elem = type_member {{fixed: Wizard::HABTM_Subjects}}
343
349
 
344
350
  sig { params(records: T.any(Wizard::HABTM_Subjects, T::Array[Wizard::HABTM_Subjects])).returns(T.self_type) }
345
351
  def <<(*records); end
@@ -552,7 +552,7 @@ class Wizard::ActiveRecord_Relation < ActiveRecord::Relation
552
552
  include Wizard::ActiveRelation_WhereNot
553
553
  include Wizard::CustomFinderMethods
554
554
  include Wizard::QueryMethodsReturningRelation
555
- Elem = type_member(fixed: Wizard)
555
+ Elem = type_member {{fixed: Wizard}}
556
556
 
557
557
  sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
558
558
  def Alastor_Mad_Eye_Moody(*args); end
@@ -700,7 +700,7 @@ class Wizard::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelati
700
700
  include Wizard::ActiveRelation_WhereNot
701
701
  include Wizard::CustomFinderMethods
702
702
  include Wizard::QueryMethodsReturningAssociationRelation
703
- Elem = type_member(fixed: Wizard)
703
+ Elem = type_member {{fixed: Wizard}}
704
704
 
705
705
  sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
706
706
  def Alastor_Mad_Eye_Moody(*args); end
@@ -847,7 +847,7 @@ end
847
847
  class Wizard::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
848
848
  include Wizard::CustomFinderMethods
849
849
  include Wizard::QueryMethodsReturningAssociationRelation
850
- Elem = type_member(fixed: Wizard)
850
+ Elem = type_member {{fixed: Wizard}}
851
851
 
852
852
  sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
853
853
  def Alastor_Mad_Eye_Moody(*args); end
@@ -1103,6 +1103,9 @@ module Wizard::QueryMethodsReturningRelation
1103
1103
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Wizard::ActiveRecord_Relation) }
1104
1104
  def select_columns(*args); end
1105
1105
 
1106
+ sig { params(args: Symbol).returns(Wizard::ActiveRecord_Relation) }
1107
+ def where_missing(*args); end
1108
+
1106
1109
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wizard::ActiveRecord_Relation) }
1107
1110
  def extending(*args, &block); end
1108
1111
 
@@ -1219,6 +1222,9 @@ module Wizard::QueryMethodsReturningAssociationRelation
1219
1222
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Wizard::ActiveRecord_AssociationRelation) }
1220
1223
  def select_columns(*args); end
1221
1224
 
1225
+ sig { params(args: Symbol).returns(Wizard::ActiveRecord_AssociationRelation) }
1226
+ def where_missing(*args); end
1227
+
1222
1228
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wizard::ActiveRecord_AssociationRelation) }
1223
1229
  def extending(*args, &block); end
1224
1230
 
@@ -552,7 +552,7 @@ class Wizard::ActiveRecord_Relation < ActiveRecord::Relation
552
552
  include Wizard::ActiveRelation_WhereNot
553
553
  include Wizard::CustomFinderMethods
554
554
  include Wizard::QueryMethodsReturningRelation
555
- Elem = type_member(fixed: Wizard)
555
+ Elem = type_member {{fixed: Wizard}}
556
556
 
557
557
  sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
558
558
  def Alastor_Mad_Eye_Moody(*args); end
@@ -700,7 +700,7 @@ class Wizard::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelati
700
700
  include Wizard::ActiveRelation_WhereNot
701
701
  include Wizard::CustomFinderMethods
702
702
  include Wizard::QueryMethodsReturningAssociationRelation
703
- Elem = type_member(fixed: Wizard)
703
+ Elem = type_member {{fixed: Wizard}}
704
704
 
705
705
  sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
706
706
  def Alastor_Mad_Eye_Moody(*args); end
@@ -847,7 +847,7 @@ end
847
847
  class Wizard::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
848
848
  include Wizard::CustomFinderMethods
849
849
  include Wizard::QueryMethodsReturningAssociationRelation
850
- Elem = type_member(fixed: Wizard)
850
+ Elem = type_member {{fixed: Wizard}}
851
851
 
852
852
  sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
853
853
  def Alastor_Mad_Eye_Moody(*args); end
@@ -1103,6 +1103,9 @@ module Wizard::QueryMethodsReturningRelation
1103
1103
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Wizard::ActiveRecord_Relation) }
1104
1104
  def select_columns(*args); end
1105
1105
 
1106
+ sig { params(args: Symbol).returns(Wizard::ActiveRecord_Relation) }
1107
+ def where_missing(*args); end
1108
+
1106
1109
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wizard::ActiveRecord_Relation) }
1107
1110
  def extending(*args, &block); end
1108
1111
 
@@ -1219,6 +1222,9 @@ module Wizard::QueryMethodsReturningAssociationRelation
1219
1222
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Wizard::ActiveRecord_AssociationRelation) }
1220
1223
  def select_columns(*args); end
1221
1224
 
1225
+ sig { params(args: Symbol).returns(Wizard::ActiveRecord_AssociationRelation) }
1226
+ def where_missing(*args); end
1227
+
1222
1228
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wizard::ActiveRecord_AssociationRelation) }
1223
1229
  def extending(*args, &block); end
1224
1230
 
@@ -1254,7 +1260,7 @@ module Wizard::GeneratedAssociationMethods
1254
1260
  sig { params(value: T::Enumerable[::ActiveStorage::Blob]).void }
1255
1261
  def hats_blobs=(value); end
1256
1262
 
1257
- sig { returns(T.nilable(T.untyped)) }
1263
+ sig { returns(T.untyped) }
1258
1264
  def school; end
1259
1265
 
1260
1266
  sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: T.untyped).void)).returns(T.untyped) }
@@ -1266,10 +1272,10 @@ module Wizard::GeneratedAssociationMethods
1266
1272
  sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: T.untyped).void)).returns(T.untyped) }
1267
1273
  def create_school!(*args, &block); end
1268
1274
 
1269
- sig { params(value: T.nilable(T.untyped)).void }
1275
+ sig { params(value: T.untyped).void }
1270
1276
  def school=(value); end
1271
1277
 
1272
- sig { returns(T.nilable(T.untyped)) }
1278
+ sig { returns(T.untyped) }
1273
1279
  def reload_school; end
1274
1280
 
1275
1281
  sig { returns(T.nilable(::ActiveStorage::Attachment)) }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sorbet-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.27
4
+ version: 0.7.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chan Zuckerberg Initiative
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '0.5'
33
+ version: 0.5.9892
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '0.5'
40
+ version: 0.5.9892
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: sorbet-coerce
43
43
  requirement: !ruby/object:Gem::Requirement