sorbet-rails 0.7.23 → 0.7.27

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -0
  3. data/lib/sorbet-rails/active_record_rbi_formatter.rb +1 -1
  4. data/lib/sorbet-rails/model_plugins/active_record_querying.rb +1 -1
  5. data/lib/sorbet-rails/model_rbi_formatter.rb +4 -1
  6. data/spec/test_data/v5.2/expected_active_record_base.rbi +4 -4
  7. data/spec/test_data/v5.2/expected_active_record_relation.rbi +4 -4
  8. data/spec/test_data/v5.2/expected_attachment.rbi +2 -2
  9. data/spec/test_data/v5.2/expected_blob.rbi +2 -2
  10. data/spec/test_data/v5.2/expected_headmaster.rbi +2 -2
  11. data/spec/test_data/v5.2/expected_internal_metadata.rbi +2 -2
  12. data/spec/test_data/v5.2/expected_potion.rbi +2 -2
  13. data/spec/test_data/v5.2/expected_robe.rbi +2 -2
  14. data/spec/test_data/v5.2/expected_schema_migration.rbi +2 -2
  15. data/spec/test_data/v5.2/expected_school.rbi +2 -2
  16. data/spec/test_data/v5.2/expected_spell/habtm_spell_books.rbi +2 -2
  17. data/spec/test_data/v5.2/expected_spell.rbi +2 -2
  18. data/spec/test_data/v5.2/expected_spell_book/habtm_spells.rbi +2 -2
  19. data/spec/test_data/v5.2/expected_spell_book.rbi +2 -2
  20. data/spec/test_data/v5.2/expected_squib.rbi +2 -2
  21. data/spec/test_data/v5.2/expected_subject/habtm_wizards.rbi +2 -2
  22. data/spec/test_data/v5.2/expected_subject.rbi +2 -2
  23. data/spec/test_data/v5.2/expected_wand.rbi +2 -2
  24. data/spec/test_data/v5.2/expected_wizard/habtm_subjects.rbi +2 -2
  25. data/spec/test_data/v5.2/expected_wizard.rbi +2 -2
  26. data/spec/test_data/v5.2/expected_wizard_wo_spellbook.rbi +2 -2
  27. data/spec/test_data/v6.0/expected_active_record_base.rbi +4 -4
  28. data/spec/test_data/v6.0/expected_active_record_relation.rbi +4 -4
  29. data/spec/test_data/v6.0/expected_attachment.rbi +2 -2
  30. data/spec/test_data/v6.0/expected_blob.rbi +2 -2
  31. data/spec/test_data/v6.0/expected_headmaster.rbi +2 -2
  32. data/spec/test_data/v6.0/expected_internal_metadata.rbi +2 -2
  33. data/spec/test_data/v6.0/expected_potion.rbi +2 -2
  34. data/spec/test_data/v6.0/expected_robe.rbi +2 -2
  35. data/spec/test_data/v6.0/expected_schema_migration.rbi +2 -2
  36. data/spec/test_data/v6.0/expected_school.rbi +2 -2
  37. data/spec/test_data/v6.0/expected_spell/habtm_spell_books.rbi +2 -2
  38. data/spec/test_data/v6.0/expected_spell.rbi +2 -2
  39. data/spec/test_data/v6.0/expected_spell_book/habtm_spells.rbi +2 -2
  40. data/spec/test_data/v6.0/expected_spell_book.rbi +2 -2
  41. data/spec/test_data/v6.0/expected_squib.rbi +2 -2
  42. data/spec/test_data/v6.0/expected_subject/habtm_wizards.rbi +2 -2
  43. data/spec/test_data/v6.0/expected_subject.rbi +2 -2
  44. data/spec/test_data/v6.0/expected_wand.rbi +2 -2
  45. data/spec/test_data/v6.0/expected_wizard/habtm_subjects.rbi +2 -2
  46. data/spec/test_data/v6.0/expected_wizard.rbi +2 -2
  47. data/spec/test_data/v6.0/expected_wizard_wo_spellbook.rbi +2 -2
  48. data/spec/test_data/v6.1/expected_active_record_base.rbi +4 -4
  49. data/spec/test_data/v6.1/expected_active_record_relation.rbi +4 -4
  50. data/spec/test_data/v6.1/expected_attachment.rbi +2 -2
  51. data/spec/test_data/v6.1/expected_blob.rbi +2 -2
  52. data/spec/test_data/v6.1/expected_headmaster.rbi +2 -2
  53. data/spec/test_data/v6.1/expected_internal_metadata.rbi +2 -2
  54. data/spec/test_data/v6.1/expected_potion.rbi +2 -2
  55. data/spec/test_data/v6.1/expected_record.rbi +2 -2
  56. data/spec/test_data/v6.1/expected_robe.rbi +2 -2
  57. data/spec/test_data/v6.1/expected_schema_migration.rbi +2 -2
  58. data/spec/test_data/v6.1/expected_school.rbi +2 -2
  59. data/spec/test_data/v6.1/expected_spell/habtm_spell_books.rbi +2 -2
  60. data/spec/test_data/v6.1/expected_spell.rbi +2 -2
  61. data/spec/test_data/v6.1/expected_spell_book/habtm_spells.rbi +2 -2
  62. data/spec/test_data/v6.1/expected_spell_book.rbi +2 -2
  63. data/spec/test_data/v6.1/expected_squib.rbi +2 -2
  64. data/spec/test_data/v6.1/expected_subject/habtm_wizards.rbi +2 -2
  65. data/spec/test_data/v6.1/expected_subject.rbi +2 -2
  66. data/spec/test_data/v6.1/expected_variant_record.rbi +2 -2
  67. data/spec/test_data/v6.1/expected_wand.rbi +2 -2
  68. data/spec/test_data/v6.1/expected_wizard/habtm_subjects.rbi +2 -2
  69. data/spec/test_data/v6.1/expected_wizard.rbi +2 -2
  70. data/spec/test_data/v6.1/expected_wizard_wo_spellbook.rbi +2 -2
  71. metadata +1 -1
@@ -172,7 +172,7 @@ module ActiveStorage::VariantRecord::QueryMethodsReturningRelation
172
172
  sig { params(block: T.proc.params(e: ActiveStorage::VariantRecord).returns(T::Boolean)).returns(T::Array[ActiveStorage::VariantRecord]) }
173
173
  def select(&block); end
174
174
 
175
- sig { params(args: T.any(String, Symbol)).returns(ActiveStorage::VariantRecord::ActiveRecord_Relation) }
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
178
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::VariantRecord::ActiveRecord_Relation) }
@@ -288,7 +288,7 @@ module ActiveStorage::VariantRecord::QueryMethodsReturningAssociationRelation
288
288
  sig { params(block: T.proc.params(e: ActiveStorage::VariantRecord).returns(T::Boolean)).returns(T::Array[ActiveStorage::VariantRecord]) }
289
289
  def select(&block); end
290
290
 
291
- sig { params(args: T.any(String, Symbol)).returns(ActiveStorage::VariantRecord::ActiveRecord_AssociationRelation) }
291
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(ActiveStorage::VariantRecord::ActiveRecord_AssociationRelation) }
292
292
  def select_columns(*args); end
293
293
 
294
294
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::VariantRecord::ActiveRecord_AssociationRelation) }
@@ -463,7 +463,7 @@ module Wand::QueryMethodsReturningRelation
463
463
  sig { params(block: T.proc.params(e: Wand).returns(T::Boolean)).returns(T::Array[Wand]) }
464
464
  def select(&block); end
465
465
 
466
- sig { params(args: T.any(String, Symbol)).returns(Wand::ActiveRecord_Relation) }
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
469
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
@@ -579,7 +579,7 @@ module Wand::QueryMethodsReturningAssociationRelation
579
579
  sig { params(block: T.proc.params(e: Wand).returns(T::Boolean)).returns(T::Array[Wand]) }
580
580
  def select(&block); end
581
581
 
582
- sig { params(args: T.any(String, Symbol)).returns(Wand::ActiveRecord_AssociationRelation) }
582
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Wand::ActiveRecord_AssociationRelation) }
583
583
  def select_columns(*args); end
584
584
 
585
585
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
@@ -187,7 +187,7 @@ module Wizard::HABTM_Subjects::QueryMethodsReturningRelation
187
187
  sig { params(block: T.proc.params(e: Wizard::HABTM_Subjects).returns(T::Boolean)).returns(T::Array[Wizard::HABTM_Subjects]) }
188
188
  def select(&block); end
189
189
 
190
- sig { params(args: T.any(String, Symbol)).returns(Wizard::HABTM_Subjects::ActiveRecord_Relation) }
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
193
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wizard::HABTM_Subjects::ActiveRecord_Relation) }
@@ -303,7 +303,7 @@ module Wizard::HABTM_Subjects::QueryMethodsReturningAssociationRelation
303
303
  sig { params(block: T.proc.params(e: Wizard::HABTM_Subjects).returns(T::Boolean)).returns(T::Array[Wizard::HABTM_Subjects]) }
304
304
  def select(&block); end
305
305
 
306
- sig { params(args: T.any(String, Symbol)).returns(Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation) }
306
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation) }
307
307
  def select_columns(*args); end
308
308
 
309
309
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation) }
@@ -1100,7 +1100,7 @@ module Wizard::QueryMethodsReturningRelation
1100
1100
  sig { params(block: T.proc.params(e: Wizard).returns(T::Boolean)).returns(T::Array[Wizard]) }
1101
1101
  def select(&block); end
1102
1102
 
1103
- sig { params(args: T.any(String, Symbol)).returns(Wizard::ActiveRecord_Relation) }
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
1106
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wizard::ActiveRecord_Relation) }
@@ -1216,7 +1216,7 @@ module Wizard::QueryMethodsReturningAssociationRelation
1216
1216
  sig { params(block: T.proc.params(e: Wizard).returns(T::Boolean)).returns(T::Array[Wizard]) }
1217
1217
  def select(&block); end
1218
1218
 
1219
- sig { params(args: T.any(String, Symbol)).returns(Wizard::ActiveRecord_AssociationRelation) }
1219
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Wizard::ActiveRecord_AssociationRelation) }
1220
1220
  def select_columns(*args); end
1221
1221
 
1222
1222
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wizard::ActiveRecord_AssociationRelation) }
@@ -1100,7 +1100,7 @@ module Wizard::QueryMethodsReturningRelation
1100
1100
  sig { params(block: T.proc.params(e: Wizard).returns(T::Boolean)).returns(T::Array[Wizard]) }
1101
1101
  def select(&block); end
1102
1102
 
1103
- sig { params(args: T.any(String, Symbol)).returns(Wizard::ActiveRecord_Relation) }
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
1106
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wizard::ActiveRecord_Relation) }
@@ -1216,7 +1216,7 @@ module Wizard::QueryMethodsReturningAssociationRelation
1216
1216
  sig { params(block: T.proc.params(e: Wizard).returns(T::Boolean)).returns(T::Array[Wizard]) }
1217
1217
  def select(&block); end
1218
1218
 
1219
- sig { params(args: T.any(String, Symbol)).returns(Wizard::ActiveRecord_AssociationRelation) }
1219
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Wizard::ActiveRecord_AssociationRelation) }
1220
1220
  def select_columns(*args); end
1221
1221
 
1222
1222
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wizard::ActiveRecord_AssociationRelation) }
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.23
4
+ version: 0.7.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chan Zuckerberg Initiative