sorbet-rails 0.7.5 → 0.7.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +1 -1
  3. data/.github/workflows/publish-gem.yml +7 -1
  4. data/Gemfile +0 -2
  5. data/README.md +11 -1
  6. data/lib/sorbet-rails/model_plugins/active_record_querying.rb +25 -1
  7. data/lib/sorbet-rails/model_utils.rb +14 -7
  8. data/lib/sorbet-rails/rails_mixins/custom_finder_methods.rb +4 -0
  9. data/sorbet-rails.gemspec +1 -1
  10. data/spec/generators/sorbet_test_cases.rb +9 -0
  11. data/spec/support/v5.2/Gemfile.lock +1 -1
  12. data/spec/support/v5.2/sorbet_test_cases.rb +9 -0
  13. data/spec/support/v6.0/Gemfile.lock +1 -1
  14. data/spec/support/v6.0/sorbet_test_cases.rb +9 -0
  15. data/spec/support/v6.1/sorbet_test_cases.rb +9 -0
  16. data/spec/test_data/v5.2/expected_attachment.rbi +12 -6
  17. data/spec/test_data/v5.2/expected_blob.rbi +12 -6
  18. data/spec/test_data/v5.2/expected_headmaster.rbi +12 -6
  19. data/spec/test_data/v5.2/expected_internal_metadata.rbi +12 -6
  20. data/spec/test_data/v5.2/expected_potion.rbi +12 -6
  21. data/spec/test_data/v5.2/expected_robe.rbi +12 -6
  22. data/spec/test_data/v5.2/expected_schema_migration.rbi +12 -6
  23. data/spec/test_data/v5.2/expected_school.rbi +12 -6
  24. data/spec/test_data/v5.2/expected_spell/habtm_spell_books.rbi +12 -6
  25. data/spec/test_data/v5.2/expected_spell.rbi +12 -6
  26. data/spec/test_data/v5.2/expected_spell_book/habtm_spells.rbi +12 -6
  27. data/spec/test_data/v5.2/expected_spell_book.rbi +12 -6
  28. data/spec/test_data/v5.2/expected_squib.rbi +12 -6
  29. data/spec/test_data/v5.2/expected_subject/habtm_wizards.rbi +12 -6
  30. data/spec/test_data/v5.2/expected_subject.rbi +12 -6
  31. data/spec/test_data/v5.2/expected_wand.rbi +12 -6
  32. data/spec/test_data/v5.2/expected_wizard/habtm_subjects.rbi +12 -6
  33. data/spec/test_data/v5.2/expected_wizard.rbi +12 -6
  34. data/spec/test_data/v5.2/expected_wizard_wo_spellbook.rbi +12 -6
  35. data/spec/test_data/v6.0/expected_attachment.rbi +12 -6
  36. data/spec/test_data/v6.0/expected_blob.rbi +12 -6
  37. data/spec/test_data/v6.0/expected_headmaster.rbi +12 -6
  38. data/spec/test_data/v6.0/expected_internal_metadata.rbi +12 -6
  39. data/spec/test_data/v6.0/expected_potion.rbi +12 -6
  40. data/spec/test_data/v6.0/expected_robe.rbi +12 -6
  41. data/spec/test_data/v6.0/expected_schema_migration.rbi +12 -6
  42. data/spec/test_data/v6.0/expected_school.rbi +12 -6
  43. data/spec/test_data/v6.0/expected_spell/habtm_spell_books.rbi +12 -6
  44. data/spec/test_data/v6.0/expected_spell.rbi +12 -6
  45. data/spec/test_data/v6.0/expected_spell_book/habtm_spells.rbi +12 -6
  46. data/spec/test_data/v6.0/expected_spell_book.rbi +12 -6
  47. data/spec/test_data/v6.0/expected_squib.rbi +12 -6
  48. data/spec/test_data/v6.0/expected_subject/habtm_wizards.rbi +12 -6
  49. data/spec/test_data/v6.0/expected_subject.rbi +12 -6
  50. data/spec/test_data/v6.0/expected_wand.rbi +12 -6
  51. data/spec/test_data/v6.0/expected_wizard/habtm_subjects.rbi +12 -6
  52. data/spec/test_data/v6.0/expected_wizard.rbi +12 -6
  53. data/spec/test_data/v6.0/expected_wizard_wo_spellbook.rbi +12 -6
  54. data/spec/test_data/v6.1/expected_attachment.rbi +12 -6
  55. data/spec/test_data/v6.1/expected_blob.rbi +12 -6
  56. data/spec/test_data/v6.1/expected_headmaster.rbi +12 -6
  57. data/spec/test_data/v6.1/expected_internal_metadata.rbi +12 -6
  58. data/spec/test_data/v6.1/expected_potion.rbi +12 -6
  59. data/spec/test_data/v6.1/expected_record.rbi +12 -6
  60. data/spec/test_data/v6.1/expected_robe.rbi +12 -6
  61. data/spec/test_data/v6.1/expected_schema_migration.rbi +12 -6
  62. data/spec/test_data/v6.1/expected_school.rbi +12 -6
  63. data/spec/test_data/v6.1/expected_spell/habtm_spell_books.rbi +12 -6
  64. data/spec/test_data/v6.1/expected_spell.rbi +12 -6
  65. data/spec/test_data/v6.1/expected_spell_book/habtm_spells.rbi +12 -6
  66. data/spec/test_data/v6.1/expected_spell_book.rbi +12 -6
  67. data/spec/test_data/v6.1/expected_squib.rbi +12 -6
  68. data/spec/test_data/v6.1/expected_subject/habtm_wizards.rbi +12 -6
  69. data/spec/test_data/v6.1/expected_subject.rbi +12 -6
  70. data/spec/test_data/v6.1/expected_variant_record.rbi +12 -6
  71. data/spec/test_data/v6.1/expected_wand.rbi +12 -6
  72. data/spec/test_data/v6.1/expected_wizard/habtm_subjects.rbi +12 -6
  73. data/spec/test_data/v6.1/expected_wizard.rbi +12 -6
  74. data/spec/test_data/v6.1/expected_wizard_wo_spellbook.rbi +12 -6
  75. metadata +2 -2
@@ -70,9 +70,6 @@ module Spell::QueryMethodsReturningRelation
70
70
  sig { params(block: T.nilable(T.proc.void)).returns(Spell::ActiveRecord_Relation) }
71
71
  def unscoped(&block); end
72
72
 
73
- sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
74
- def select(*args); end
75
-
76
73
  sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
77
74
  def reselect(*args); end
78
75
 
@@ -160,6 +157,12 @@ module Spell::QueryMethodsReturningRelation
160
157
  sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
161
158
  def only(*args); end
162
159
 
160
+ sig { params(block: T.proc.params(e: Spell).returns(T::Boolean)).returns(T::Array[Spell]) }
161
+ def select(&block); end
162
+
163
+ sig { params(args: T.any(String, Symbol)).returns(Spell::ActiveRecord_Relation) }
164
+ def select_columns(*args); end
165
+
163
166
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Spell::ActiveRecord_Relation) }
164
167
  def extending(*args, &block); end
165
168
 
@@ -183,9 +186,6 @@ module Spell::QueryMethodsReturningAssociationRelation
183
186
  sig { params(block: T.nilable(T.proc.void)).returns(Spell::ActiveRecord_Relation) }
184
187
  def unscoped(&block); end
185
188
 
186
- sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
187
- def select(*args); end
188
-
189
189
  sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
190
190
  def reselect(*args); end
191
191
 
@@ -273,6 +273,12 @@ module Spell::QueryMethodsReturningAssociationRelation
273
273
  sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
274
274
  def only(*args); end
275
275
 
276
+ sig { params(block: T.proc.params(e: Spell).returns(T::Boolean)).returns(T::Array[Spell]) }
277
+ def select(&block); end
278
+
279
+ sig { params(args: T.any(String, Symbol)).returns(Spell::ActiveRecord_AssociationRelation) }
280
+ def select_columns(*args); end
281
+
276
282
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Spell::ActiveRecord_AssociationRelation) }
277
283
  def extending(*args, &block); end
278
284
 
@@ -97,9 +97,6 @@ module SpellBook::HABTM_Spells::QueryMethodsReturningRelation
97
97
  sig { params(block: T.nilable(T.proc.void)).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
98
98
  def unscoped(&block); end
99
99
 
100
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
101
- def select(*args); end
102
-
103
100
  sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
104
101
  def reselect(*args); end
105
102
 
@@ -187,6 +184,12 @@ module SpellBook::HABTM_Spells::QueryMethodsReturningRelation
187
184
  sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
188
185
  def only(*args); end
189
186
 
187
+ sig { params(block: T.proc.params(e: SpellBook::HABTM_Spells).returns(T::Boolean)).returns(T::Array[SpellBook::HABTM_Spells]) }
188
+ def select(&block); end
189
+
190
+ sig { params(args: T.any(String, Symbol)).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
191
+ def select_columns(*args); end
192
+
190
193
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
191
194
  def extending(*args, &block); end
192
195
 
@@ -210,9 +213,6 @@ module SpellBook::HABTM_Spells::QueryMethodsReturningAssociationRelation
210
213
  sig { params(block: T.nilable(T.proc.void)).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
211
214
  def unscoped(&block); end
212
215
 
213
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
214
- def select(*args); end
215
-
216
216
  sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
217
217
  def reselect(*args); end
218
218
 
@@ -300,6 +300,12 @@ module SpellBook::HABTM_Spells::QueryMethodsReturningAssociationRelation
300
300
  sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
301
301
  def only(*args); end
302
302
 
303
+ sig { params(block: T.proc.params(e: SpellBook::HABTM_Spells).returns(T::Boolean)).returns(T::Array[SpellBook::HABTM_Spells]) }
304
+ def select(&block); end
305
+
306
+ sig { params(args: T.any(String, Symbol)).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
307
+ def select_columns(*args); end
308
+
303
309
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
304
310
  def extending(*args, &block); end
305
311
 
@@ -261,9 +261,6 @@ module SpellBook::QueryMethodsReturningRelation
261
261
  sig { params(block: T.nilable(T.proc.void)).returns(SpellBook::ActiveRecord_Relation) }
262
262
  def unscoped(&block); end
263
263
 
264
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
265
- def select(*args); end
266
-
267
264
  sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
268
265
  def reselect(*args); end
269
266
 
@@ -351,6 +348,12 @@ module SpellBook::QueryMethodsReturningRelation
351
348
  sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
352
349
  def only(*args); end
353
350
 
351
+ sig { params(block: T.proc.params(e: SpellBook).returns(T::Boolean)).returns(T::Array[SpellBook]) }
352
+ def select(&block); end
353
+
354
+ sig { params(args: T.any(String, Symbol)).returns(SpellBook::ActiveRecord_Relation) }
355
+ def select_columns(*args); end
356
+
354
357
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::ActiveRecord_Relation) }
355
358
  def extending(*args, &block); end
356
359
 
@@ -374,9 +377,6 @@ module SpellBook::QueryMethodsReturningAssociationRelation
374
377
  sig { params(block: T.nilable(T.proc.void)).returns(SpellBook::ActiveRecord_Relation) }
375
378
  def unscoped(&block); end
376
379
 
377
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
378
- def select(*args); end
379
-
380
380
  sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
381
381
  def reselect(*args); end
382
382
 
@@ -464,6 +464,12 @@ module SpellBook::QueryMethodsReturningAssociationRelation
464
464
  sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
465
465
  def only(*args); end
466
466
 
467
+ sig { params(block: T.proc.params(e: SpellBook).returns(T::Boolean)).returns(T::Array[SpellBook]) }
468
+ def select(&block); end
469
+
470
+ sig { params(args: T.any(String, Symbol)).returns(SpellBook::ActiveRecord_AssociationRelation) }
471
+ def select_columns(*args); end
472
+
467
473
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::ActiveRecord_AssociationRelation) }
468
474
  def extending(*args, &block); end
469
475
 
@@ -934,9 +934,6 @@ module Squib::QueryMethodsReturningRelation
934
934
  sig { params(block: T.nilable(T.proc.void)).returns(Squib::ActiveRecord_Relation) }
935
935
  def unscoped(&block); end
936
936
 
937
- sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
938
- def select(*args); end
939
-
940
937
  sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
941
938
  def reselect(*args); end
942
939
 
@@ -1024,6 +1021,12 @@ module Squib::QueryMethodsReturningRelation
1024
1021
  sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
1025
1022
  def only(*args); end
1026
1023
 
1024
+ sig { params(block: T.proc.params(e: Squib).returns(T::Boolean)).returns(T::Array[Squib]) }
1025
+ def select(&block); end
1026
+
1027
+ sig { params(args: T.any(String, Symbol)).returns(Squib::ActiveRecord_Relation) }
1028
+ def select_columns(*args); end
1029
+
1027
1030
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Squib::ActiveRecord_Relation) }
1028
1031
  def extending(*args, &block); end
1029
1032
 
@@ -1047,9 +1050,6 @@ module Squib::QueryMethodsReturningAssociationRelation
1047
1050
  sig { params(block: T.nilable(T.proc.void)).returns(Squib::ActiveRecord_Relation) }
1048
1051
  def unscoped(&block); end
1049
1052
 
1050
- sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
1051
- def select(*args); end
1052
-
1053
1053
  sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
1054
1054
  def reselect(*args); end
1055
1055
 
@@ -1137,6 +1137,12 @@ module Squib::QueryMethodsReturningAssociationRelation
1137
1137
  sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
1138
1138
  def only(*args); end
1139
1139
 
1140
+ sig { params(block: T.proc.params(e: Squib).returns(T::Boolean)).returns(T::Array[Squib]) }
1141
+ def select(&block); end
1142
+
1143
+ sig { params(args: T.any(String, Symbol)).returns(Squib::ActiveRecord_AssociationRelation) }
1144
+ def select_columns(*args); end
1145
+
1140
1146
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Squib::ActiveRecord_AssociationRelation) }
1141
1147
  def extending(*args, &block); end
1142
1148
 
@@ -97,9 +97,6 @@ module Subject::HABTM_Wizards::QueryMethodsReturningRelation
97
97
  sig { params(block: T.nilable(T.proc.void)).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
98
98
  def unscoped(&block); end
99
99
 
100
- sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
101
- def select(*args); end
102
-
103
100
  sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
104
101
  def reselect(*args); end
105
102
 
@@ -187,6 +184,12 @@ module Subject::HABTM_Wizards::QueryMethodsReturningRelation
187
184
  sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
188
185
  def only(*args); end
189
186
 
187
+ sig { params(block: T.proc.params(e: Subject::HABTM_Wizards).returns(T::Boolean)).returns(T::Array[Subject::HABTM_Wizards]) }
188
+ def select(&block); end
189
+
190
+ sig { params(args: T.any(String, Symbol)).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
191
+ def select_columns(*args); end
192
+
190
193
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
191
194
  def extending(*args, &block); end
192
195
 
@@ -210,9 +213,6 @@ module Subject::HABTM_Wizards::QueryMethodsReturningAssociationRelation
210
213
  sig { params(block: T.nilable(T.proc.void)).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
211
214
  def unscoped(&block); end
212
215
 
213
- sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
214
- def select(*args); end
215
-
216
216
  sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
217
217
  def reselect(*args); end
218
218
 
@@ -300,6 +300,12 @@ module Subject::HABTM_Wizards::QueryMethodsReturningAssociationRelation
300
300
  sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
301
301
  def only(*args); end
302
302
 
303
+ sig { params(block: T.proc.params(e: Subject::HABTM_Wizards).returns(T::Boolean)).returns(T::Array[Subject::HABTM_Wizards]) }
304
+ def select(&block); end
305
+
306
+ sig { params(args: T.any(String, Symbol)).returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
307
+ def select_columns(*args); end
308
+
303
309
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
304
310
  def extending(*args, &block); end
305
311
 
@@ -70,9 +70,6 @@ module Subject::QueryMethodsReturningRelation
70
70
  sig { params(block: T.nilable(T.proc.void)).returns(Subject::ActiveRecord_Relation) }
71
71
  def unscoped(&block); end
72
72
 
73
- sig { params(args: T.untyped).returns(Subject::ActiveRecord_Relation) }
74
- def select(*args); end
75
-
76
73
  sig { params(args: T.untyped).returns(Subject::ActiveRecord_Relation) }
77
74
  def reselect(*args); end
78
75
 
@@ -160,6 +157,12 @@ module Subject::QueryMethodsReturningRelation
160
157
  sig { params(args: T.untyped).returns(Subject::ActiveRecord_Relation) }
161
158
  def only(*args); end
162
159
 
160
+ sig { params(block: T.proc.params(e: Subject).returns(T::Boolean)).returns(T::Array[Subject]) }
161
+ def select(&block); end
162
+
163
+ sig { params(args: T.any(String, Symbol)).returns(Subject::ActiveRecord_Relation) }
164
+ def select_columns(*args); end
165
+
163
166
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Subject::ActiveRecord_Relation) }
164
167
  def extending(*args, &block); end
165
168
 
@@ -183,9 +186,6 @@ module Subject::QueryMethodsReturningAssociationRelation
183
186
  sig { params(block: T.nilable(T.proc.void)).returns(Subject::ActiveRecord_Relation) }
184
187
  def unscoped(&block); end
185
188
 
186
- sig { params(args: T.untyped).returns(Subject::ActiveRecord_AssociationRelation) }
187
- def select(*args); end
188
-
189
189
  sig { params(args: T.untyped).returns(Subject::ActiveRecord_AssociationRelation) }
190
190
  def reselect(*args); end
191
191
 
@@ -273,6 +273,12 @@ module Subject::QueryMethodsReturningAssociationRelation
273
273
  sig { params(args: T.untyped).returns(Subject::ActiveRecord_AssociationRelation) }
274
274
  def only(*args); end
275
275
 
276
+ sig { params(block: T.proc.params(e: Subject).returns(T::Boolean)).returns(T::Array[Subject]) }
277
+ def select(&block); end
278
+
279
+ sig { params(args: T.any(String, Symbol)).returns(Subject::ActiveRecord_AssociationRelation) }
280
+ def select_columns(*args); end
281
+
276
282
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Subject::ActiveRecord_AssociationRelation) }
277
283
  def extending(*args, &block); end
278
284
 
@@ -82,9 +82,6 @@ module ActiveStorage::VariantRecord::QueryMethodsReturningRelation
82
82
  sig { params(block: T.nilable(T.proc.void)).returns(ActiveStorage::VariantRecord::ActiveRecord_Relation) }
83
83
  def unscoped(&block); end
84
84
 
85
- sig { params(args: T.untyped).returns(ActiveStorage::VariantRecord::ActiveRecord_Relation) }
86
- def select(*args); end
87
-
88
85
  sig { params(args: T.untyped).returns(ActiveStorage::VariantRecord::ActiveRecord_Relation) }
89
86
  def reselect(*args); end
90
87
 
@@ -172,6 +169,12 @@ module ActiveStorage::VariantRecord::QueryMethodsReturningRelation
172
169
  sig { params(args: T.untyped).returns(ActiveStorage::VariantRecord::ActiveRecord_Relation) }
173
170
  def only(*args); end
174
171
 
172
+ sig { params(block: T.proc.params(e: ActiveStorage::VariantRecord).returns(T::Boolean)).returns(T::Array[ActiveStorage::VariantRecord]) }
173
+ def select(&block); end
174
+
175
+ sig { params(args: T.any(String, Symbol)).returns(ActiveStorage::VariantRecord::ActiveRecord_Relation) }
176
+ def select_columns(*args); end
177
+
175
178
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::VariantRecord::ActiveRecord_Relation) }
176
179
  def extending(*args, &block); end
177
180
 
@@ -195,9 +198,6 @@ module ActiveStorage::VariantRecord::QueryMethodsReturningAssociationRelation
195
198
  sig { params(block: T.nilable(T.proc.void)).returns(ActiveStorage::VariantRecord::ActiveRecord_Relation) }
196
199
  def unscoped(&block); end
197
200
 
198
- sig { params(args: T.untyped).returns(ActiveStorage::VariantRecord::ActiveRecord_AssociationRelation) }
199
- def select(*args); end
200
-
201
201
  sig { params(args: T.untyped).returns(ActiveStorage::VariantRecord::ActiveRecord_AssociationRelation) }
202
202
  def reselect(*args); end
203
203
 
@@ -285,6 +285,12 @@ module ActiveStorage::VariantRecord::QueryMethodsReturningAssociationRelation
285
285
  sig { params(args: T.untyped).returns(ActiveStorage::VariantRecord::ActiveRecord_AssociationRelation) }
286
286
  def only(*args); end
287
287
 
288
+ sig { params(block: T.proc.params(e: ActiveStorage::VariantRecord).returns(T::Boolean)).returns(T::Array[ActiveStorage::VariantRecord]) }
289
+ def select(&block); end
290
+
291
+ sig { params(args: T.any(String, Symbol)).returns(ActiveStorage::VariantRecord::ActiveRecord_AssociationRelation) }
292
+ def select_columns(*args); end
293
+
288
294
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::VariantRecord::ActiveRecord_AssociationRelation) }
289
295
  def extending(*args, &block); end
290
296
 
@@ -373,9 +373,6 @@ module Wand::QueryMethodsReturningRelation
373
373
  sig { params(block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
374
374
  def unscoped(&block); end
375
375
 
376
- sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
377
- def select(*args); end
378
-
379
376
  sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
380
377
  def reselect(*args); end
381
378
 
@@ -463,6 +460,12 @@ module Wand::QueryMethodsReturningRelation
463
460
  sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
464
461
  def only(*args); end
465
462
 
463
+ sig { params(block: T.proc.params(e: Wand).returns(T::Boolean)).returns(T::Array[Wand]) }
464
+ def select(&block); end
465
+
466
+ sig { params(args: T.any(String, Symbol)).returns(Wand::ActiveRecord_Relation) }
467
+ def select_columns(*args); end
468
+
466
469
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
467
470
  def extending(*args, &block); end
468
471
 
@@ -486,9 +489,6 @@ module Wand::QueryMethodsReturningAssociationRelation
486
489
  sig { params(block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
487
490
  def unscoped(&block); end
488
491
 
489
- sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
490
- def select(*args); end
491
-
492
492
  sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
493
493
  def reselect(*args); end
494
494
 
@@ -576,6 +576,12 @@ module Wand::QueryMethodsReturningAssociationRelation
576
576
  sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
577
577
  def only(*args); end
578
578
 
579
+ sig { params(block: T.proc.params(e: Wand).returns(T::Boolean)).returns(T::Array[Wand]) }
580
+ def select(&block); end
581
+
582
+ sig { params(args: T.any(String, Symbol)).returns(Wand::ActiveRecord_AssociationRelation) }
583
+ def select_columns(*args); end
584
+
579
585
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
580
586
  def extending(*args, &block); end
581
587
 
@@ -97,9 +97,6 @@ module Wizard::HABTM_Subjects::QueryMethodsReturningRelation
97
97
  sig { params(block: T.nilable(T.proc.void)).returns(Wizard::HABTM_Subjects::ActiveRecord_Relation) }
98
98
  def unscoped(&block); end
99
99
 
100
- sig { params(args: T.untyped).returns(Wizard::HABTM_Subjects::ActiveRecord_Relation) }
101
- def select(*args); end
102
-
103
100
  sig { params(args: T.untyped).returns(Wizard::HABTM_Subjects::ActiveRecord_Relation) }
104
101
  def reselect(*args); end
105
102
 
@@ -187,6 +184,12 @@ module Wizard::HABTM_Subjects::QueryMethodsReturningRelation
187
184
  sig { params(args: T.untyped).returns(Wizard::HABTM_Subjects::ActiveRecord_Relation) }
188
185
  def only(*args); end
189
186
 
187
+ sig { params(block: T.proc.params(e: Wizard::HABTM_Subjects).returns(T::Boolean)).returns(T::Array[Wizard::HABTM_Subjects]) }
188
+ def select(&block); end
189
+
190
+ sig { params(args: T.any(String, Symbol)).returns(Wizard::HABTM_Subjects::ActiveRecord_Relation) }
191
+ def select_columns(*args); end
192
+
190
193
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wizard::HABTM_Subjects::ActiveRecord_Relation) }
191
194
  def extending(*args, &block); end
192
195
 
@@ -210,9 +213,6 @@ module Wizard::HABTM_Subjects::QueryMethodsReturningAssociationRelation
210
213
  sig { params(block: T.nilable(T.proc.void)).returns(Wizard::HABTM_Subjects::ActiveRecord_Relation) }
211
214
  def unscoped(&block); end
212
215
 
213
- sig { params(args: T.untyped).returns(Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation) }
214
- def select(*args); end
215
-
216
216
  sig { params(args: T.untyped).returns(Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation) }
217
217
  def reselect(*args); end
218
218
 
@@ -300,6 +300,12 @@ module Wizard::HABTM_Subjects::QueryMethodsReturningAssociationRelation
300
300
  sig { params(args: T.untyped).returns(Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation) }
301
301
  def only(*args); end
302
302
 
303
+ sig { params(block: T.proc.params(e: Wizard::HABTM_Subjects).returns(T::Boolean)).returns(T::Array[Wizard::HABTM_Subjects]) }
304
+ def select(&block); end
305
+
306
+ sig { params(args: T.any(String, Symbol)).returns(Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation) }
307
+ def select_columns(*args); end
308
+
303
309
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation) }
304
310
  def extending(*args, &block); end
305
311
 
@@ -1010,9 +1010,6 @@ module Wizard::QueryMethodsReturningRelation
1010
1010
  sig { params(block: T.nilable(T.proc.void)).returns(Wizard::ActiveRecord_Relation) }
1011
1011
  def unscoped(&block); end
1012
1012
 
1013
- sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
1014
- def select(*args); end
1015
-
1016
1013
  sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
1017
1014
  def reselect(*args); end
1018
1015
 
@@ -1100,6 +1097,12 @@ module Wizard::QueryMethodsReturningRelation
1100
1097
  sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
1101
1098
  def only(*args); end
1102
1099
 
1100
+ sig { params(block: T.proc.params(e: Wizard).returns(T::Boolean)).returns(T::Array[Wizard]) }
1101
+ def select(&block); end
1102
+
1103
+ sig { params(args: T.any(String, Symbol)).returns(Wizard::ActiveRecord_Relation) }
1104
+ def select_columns(*args); end
1105
+
1103
1106
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wizard::ActiveRecord_Relation) }
1104
1107
  def extending(*args, &block); end
1105
1108
 
@@ -1123,9 +1126,6 @@ module Wizard::QueryMethodsReturningAssociationRelation
1123
1126
  sig { params(block: T.nilable(T.proc.void)).returns(Wizard::ActiveRecord_Relation) }
1124
1127
  def unscoped(&block); end
1125
1128
 
1126
- sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
1127
- def select(*args); end
1128
-
1129
1129
  sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
1130
1130
  def reselect(*args); end
1131
1131
 
@@ -1213,6 +1213,12 @@ module Wizard::QueryMethodsReturningAssociationRelation
1213
1213
  sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
1214
1214
  def only(*args); end
1215
1215
 
1216
+ sig { params(block: T.proc.params(e: Wizard).returns(T::Boolean)).returns(T::Array[Wizard]) }
1217
+ def select(&block); end
1218
+
1219
+ sig { params(args: T.any(String, Symbol)).returns(Wizard::ActiveRecord_AssociationRelation) }
1220
+ def select_columns(*args); end
1221
+
1216
1222
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wizard::ActiveRecord_AssociationRelation) }
1217
1223
  def extending(*args, &block); end
1218
1224
 
@@ -1010,9 +1010,6 @@ module Wizard::QueryMethodsReturningRelation
1010
1010
  sig { params(block: T.nilable(T.proc.void)).returns(Wizard::ActiveRecord_Relation) }
1011
1011
  def unscoped(&block); end
1012
1012
 
1013
- sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
1014
- def select(*args); end
1015
-
1016
1013
  sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
1017
1014
  def reselect(*args); end
1018
1015
 
@@ -1100,6 +1097,12 @@ module Wizard::QueryMethodsReturningRelation
1100
1097
  sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
1101
1098
  def only(*args); end
1102
1099
 
1100
+ sig { params(block: T.proc.params(e: Wizard).returns(T::Boolean)).returns(T::Array[Wizard]) }
1101
+ def select(&block); end
1102
+
1103
+ sig { params(args: T.any(String, Symbol)).returns(Wizard::ActiveRecord_Relation) }
1104
+ def select_columns(*args); end
1105
+
1103
1106
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wizard::ActiveRecord_Relation) }
1104
1107
  def extending(*args, &block); end
1105
1108
 
@@ -1123,9 +1126,6 @@ module Wizard::QueryMethodsReturningAssociationRelation
1123
1126
  sig { params(block: T.nilable(T.proc.void)).returns(Wizard::ActiveRecord_Relation) }
1124
1127
  def unscoped(&block); end
1125
1128
 
1126
- sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
1127
- def select(*args); end
1128
-
1129
1129
  sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
1130
1130
  def reselect(*args); end
1131
1131
 
@@ -1213,6 +1213,12 @@ module Wizard::QueryMethodsReturningAssociationRelation
1213
1213
  sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
1214
1214
  def only(*args); end
1215
1215
 
1216
+ sig { params(block: T.proc.params(e: Wizard).returns(T::Boolean)).returns(T::Array[Wizard]) }
1217
+ def select(&block); end
1218
+
1219
+ sig { params(args: T.any(String, Symbol)).returns(Wizard::ActiveRecord_AssociationRelation) }
1220
+ def select_columns(*args); end
1221
+
1216
1222
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wizard::ActiveRecord_AssociationRelation) }
1217
1223
  def extending(*args, &block); end
1218
1224
 
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.5
4
+ version: 0.7.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chan Zuckerberg Initiative
@@ -689,7 +689,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
689
689
  - !ruby/object:Gem::Version
690
690
  version: '0'
691
691
  requirements: []
692
- rubygems_version: 3.1.2
692
+ rubygems_version: 3.1.6
693
693
  signing_key:
694
694
  specification_version: 4
695
695
  summary: Set of tools to make Sorbet work with Rails seamlessly.