sorbet-rails 0.7.32 → 0.7.33

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/publish-gem.yml +9 -19
  3. data/README.md +0 -2
  4. data/lib/sorbet-rails/active_record_rbi_formatter.rb +3 -3
  5. data/lib/sorbet-rails/model_rbi_formatter.rb +3 -3
  6. data/sorbet-rails.gemspec +2 -2
  7. data/spec/support/v5.2/Gemfile.lock +76 -67
  8. data/spec/support/v6.0/Gemfile.lock +93 -85
  9. data/spec/support/v6.1/Gemfile +1 -1
  10. data/spec/support/v6.1/Gemfile.lock +115 -108
  11. data/spec/test_data/v5.2/expected_active_record_relation.rbi +2 -2
  12. data/spec/test_data/v5.2/expected_attachment.rbi +3 -3
  13. data/spec/test_data/v5.2/expected_blob.rbi +3 -3
  14. data/spec/test_data/v5.2/expected_habtm_subjects.rbi +3 -3
  15. data/spec/test_data/v5.2/expected_habtm_wizards.rbi +3 -3
  16. data/spec/test_data/v5.2/expected_headmaster.rbi +3 -3
  17. data/spec/test_data/v5.2/expected_internal_metadata.rbi +3 -3
  18. data/spec/test_data/v5.2/expected_potion.rbi +3 -3
  19. data/spec/test_data/v5.2/expected_robe.rbi +3 -3
  20. data/spec/test_data/v5.2/expected_schema_migration.rbi +3 -3
  21. data/spec/test_data/v5.2/expected_school.rbi +3 -3
  22. data/spec/test_data/v5.2/expected_spell/habtm_spell_books.rbi +3 -3
  23. data/spec/test_data/v5.2/expected_spell.rbi +3 -3
  24. data/spec/test_data/v5.2/expected_spell_book/habtm_spell_books.rbi +3 -3
  25. data/spec/test_data/v5.2/expected_spell_book/habtm_spells.rbi +3 -3
  26. data/spec/test_data/v5.2/expected_spell_book.rbi +3 -3
  27. data/spec/test_data/v5.2/expected_squib.rbi +3 -3
  28. data/spec/test_data/v5.2/expected_subject/habtm_wizards.rbi +3 -3
  29. data/spec/test_data/v5.2/expected_subject.rbi +3 -3
  30. data/spec/test_data/v5.2/expected_wand.rbi +3 -3
  31. data/spec/test_data/v5.2/expected_wizard/habtm_subjects.rbi +3 -3
  32. data/spec/test_data/v5.2/expected_wizard.rbi +3 -3
  33. data/spec/test_data/v5.2/expected_wizard_wo_spellbook.rbi +3 -3
  34. data/spec/test_data/v6.0/expected_active_record_relation.rbi +2 -2
  35. data/spec/test_data/v6.0/expected_attachment.rbi +3 -3
  36. data/spec/test_data/v6.0/expected_blob.rbi +3 -3
  37. data/spec/test_data/v6.0/expected_habtm_subjects.rbi +3 -3
  38. data/spec/test_data/v6.0/expected_habtm_wizards.rbi +3 -3
  39. data/spec/test_data/v6.0/expected_headmaster.rbi +3 -3
  40. data/spec/test_data/v6.0/expected_internal_metadata.rbi +3 -3
  41. data/spec/test_data/v6.0/expected_potion.rbi +3 -3
  42. data/spec/test_data/v6.0/expected_robe.rbi +3 -3
  43. data/spec/test_data/v6.0/expected_schema_migration.rbi +3 -3
  44. data/spec/test_data/v6.0/expected_school.rbi +3 -3
  45. data/spec/test_data/v6.0/expected_spell/habtm_spell_books.rbi +3 -3
  46. data/spec/test_data/v6.0/expected_spell.rbi +3 -3
  47. data/spec/test_data/v6.0/expected_spell_book/habtm_spell_books.rbi +3 -3
  48. data/spec/test_data/v6.0/expected_spell_book/habtm_spells.rbi +3 -3
  49. data/spec/test_data/v6.0/expected_spell_book.rbi +3 -3
  50. data/spec/test_data/v6.0/expected_squib.rbi +3 -3
  51. data/spec/test_data/v6.0/expected_subject/habtm_wizards.rbi +3 -3
  52. data/spec/test_data/v6.0/expected_subject.rbi +3 -3
  53. data/spec/test_data/v6.0/expected_wand.rbi +3 -3
  54. data/spec/test_data/v6.0/expected_wizard/habtm_subjects.rbi +3 -3
  55. data/spec/test_data/v6.0/expected_wizard.rbi +3 -3
  56. data/spec/test_data/v6.0/expected_wizard_wo_spellbook.rbi +3 -3
  57. data/spec/test_data/v6.1/expected_active_record_relation.rbi +2 -2
  58. data/spec/test_data/v6.1/expected_attachment.rbi +3 -3
  59. data/spec/test_data/v6.1/expected_blob.rbi +3 -3
  60. data/spec/test_data/v6.1/expected_habtm_subjects.rbi +3 -3
  61. data/spec/test_data/v6.1/expected_habtm_wizards.rbi +3 -3
  62. data/spec/test_data/v6.1/expected_headmaster.rbi +3 -3
  63. data/spec/test_data/v6.1/expected_internal_metadata.rbi +3 -3
  64. data/spec/test_data/v6.1/expected_potion.rbi +3 -3
  65. data/spec/test_data/v6.1/expected_record.rbi +3 -3
  66. data/spec/test_data/v6.1/expected_robe.rbi +3 -3
  67. data/spec/test_data/v6.1/expected_schema_migration.rbi +3 -3
  68. data/spec/test_data/v6.1/expected_school.rbi +3 -3
  69. data/spec/test_data/v6.1/expected_spell/habtm_spell_books.rbi +3 -3
  70. data/spec/test_data/v6.1/expected_spell.rbi +3 -3
  71. data/spec/test_data/v6.1/expected_spell_book/habtm_spell_books.rbi +3 -3
  72. data/spec/test_data/v6.1/expected_spell_book/habtm_spells.rbi +3 -3
  73. data/spec/test_data/v6.1/expected_spell_book.rbi +3 -3
  74. data/spec/test_data/v6.1/expected_squib.rbi +3 -3
  75. data/spec/test_data/v6.1/expected_subject/habtm_wizards.rbi +3 -3
  76. data/spec/test_data/v6.1/expected_subject.rbi +3 -3
  77. data/spec/test_data/v6.1/expected_variant_record.rbi +3 -3
  78. data/spec/test_data/v6.1/expected_wand.rbi +3 -3
  79. data/spec/test_data/v6.1/expected_wizard/habtm_subjects.rbi +3 -3
  80. data/spec/test_data/v6.1/expected_wizard.rbi +3 -3
  81. data/spec/test_data/v6.1/expected_wizard_wo_spellbook.rbi +3 -3
  82. 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
@@ -332,20 +332,20 @@ class Subject::HABTM_Wizards::ActiveRecord_Relation < ActiveRecord::Relation
332
332
  include Subject::HABTM_Wizards::ActiveRelation_WhereNot
333
333
  include Subject::HABTM_Wizards::CustomFinderMethods
334
334
  include Subject::HABTM_Wizards::QueryMethodsReturningRelation
335
- Elem = type_member(fixed: Subject::HABTM_Wizards)
335
+ Elem = type_member {{fixed: Subject::HABTM_Wizards}}
336
336
  end
337
337
 
338
338
  class Subject::HABTM_Wizards::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
339
339
  include Subject::HABTM_Wizards::ActiveRelation_WhereNot
340
340
  include Subject::HABTM_Wizards::CustomFinderMethods
341
341
  include Subject::HABTM_Wizards::QueryMethodsReturningAssociationRelation
342
- Elem = type_member(fixed: Subject::HABTM_Wizards)
342
+ Elem = type_member {{fixed: Subject::HABTM_Wizards}}
343
343
  end
344
344
 
345
345
  class Subject::HABTM_Wizards::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
346
346
  include Subject::HABTM_Wizards::CustomFinderMethods
347
347
  include Subject::HABTM_Wizards::QueryMethodsReturningAssociationRelation
348
- Elem = type_member(fixed: Subject::HABTM_Wizards)
348
+ Elem = type_member {{fixed: Subject::HABTM_Wizards}}
349
349
 
350
350
  sig { params(records: T.any(Subject::HABTM_Wizards, T::Array[Subject::HABTM_Wizards])).returns(T.self_type) }
351
351
  def <<(*records); end
@@ -305,20 +305,20 @@ class Subject::ActiveRecord_Relation < ActiveRecord::Relation
305
305
  include Subject::ActiveRelation_WhereNot
306
306
  include Subject::CustomFinderMethods
307
307
  include Subject::QueryMethodsReturningRelation
308
- Elem = type_member(fixed: Subject)
308
+ Elem = type_member {{fixed: Subject}}
309
309
  end
310
310
 
311
311
  class Subject::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
312
312
  include Subject::ActiveRelation_WhereNot
313
313
  include Subject::CustomFinderMethods
314
314
  include Subject::QueryMethodsReturningAssociationRelation
315
- Elem = type_member(fixed: Subject)
315
+ Elem = type_member {{fixed: Subject}}
316
316
  end
317
317
 
318
318
  class Subject::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
319
319
  include Subject::CustomFinderMethods
320
320
  include Subject::QueryMethodsReturningAssociationRelation
321
- Elem = type_member(fixed: Subject)
321
+ Elem = type_member {{fixed: Subject}}
322
322
 
323
323
  sig { params(records: T.any(Subject, T::Array[Subject])).returns(T.self_type) }
324
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
@@ -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
@@ -332,20 +332,20 @@ class Wizard::HABTM_Subjects::ActiveRecord_Relation < ActiveRecord::Relation
332
332
  include Wizard::HABTM_Subjects::ActiveRelation_WhereNot
333
333
  include Wizard::HABTM_Subjects::CustomFinderMethods
334
334
  include Wizard::HABTM_Subjects::QueryMethodsReturningRelation
335
- Elem = type_member(fixed: Wizard::HABTM_Subjects)
335
+ Elem = type_member {{fixed: Wizard::HABTM_Subjects}}
336
336
  end
337
337
 
338
338
  class Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
339
339
  include Wizard::HABTM_Subjects::ActiveRelation_WhereNot
340
340
  include Wizard::HABTM_Subjects::CustomFinderMethods
341
341
  include Wizard::HABTM_Subjects::QueryMethodsReturningAssociationRelation
342
- Elem = type_member(fixed: Wizard::HABTM_Subjects)
342
+ Elem = type_member {{fixed: Wizard::HABTM_Subjects}}
343
343
  end
344
344
 
345
345
  class Wizard::HABTM_Subjects::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
346
346
  include Wizard::HABTM_Subjects::CustomFinderMethods
347
347
  include Wizard::HABTM_Subjects::QueryMethodsReturningAssociationRelation
348
- Elem = type_member(fixed: Wizard::HABTM_Subjects)
348
+ Elem = type_member {{fixed: Wizard::HABTM_Subjects}}
349
349
 
350
350
  sig { params(records: T.any(Wizard::HABTM_Subjects, T::Array[Wizard::HABTM_Subjects])).returns(T.self_type) }
351
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
@@ -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
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.32
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