sorbet-rails 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitattributes +1 -2
- data/.gitignore +2 -1
- data/.travis.yml +1 -1
- data/README.md +51 -4
- data/Rakefile +3 -3
- data/lib/bundled_rbi/customizabel_rbi_formatter.rbi +29 -0
- data/lib/bundled_rbi/pluck_to_tstruct.rbi +2 -1
- data/lib/sorbet-rails.rb +1 -1
- data/lib/sorbet-rails/config.rb +11 -0
- data/lib/sorbet-rails/deprecation.rb +1 -0
- data/lib/sorbet-rails/gem_plugins/kaminari_plugin.rb +8 -0
- data/lib/sorbet-rails/job_rbi_formatter.rb +73 -62
- data/lib/sorbet-rails/mailer_rbi_formatter.rb +40 -27
- data/lib/sorbet-rails/model_column_utils.rb +129 -0
- data/lib/sorbet-rails/model_plugins/active_record_assoc.rb +28 -1
- data/lib/sorbet-rails/model_plugins/active_record_attribute.rb +0 -102
- data/lib/sorbet-rails/model_plugins/base.rb +0 -10
- data/lib/sorbet-rails/model_utils.rb +5 -2
- data/lib/sorbet-rails/rails_mixins/pluck_to_tstruct.rb +17 -7
- data/lib/sorbet-rails/sorbet_utils.rb +152 -150
- data/lib/sorbet-rails/tasks/rails_rbi.rake +3 -3
- data/sorbet-rails.gemspec +1 -1
- data/spec/job_rbi_formatter_spec.rb +1 -1
- data/spec/pluck_to_tstruct_spec.rb +74 -1
- data/spec/rails_helper.rb +2 -2
- data/spec/rake_rails_rbi_jobs_spec.rb +20 -0
- data/spec/rake_rails_rbi_mailers_spec.rb +21 -0
- data/spec/support/v5.0/Gemfile +1 -1
- data/spec/support/v5.0/Gemfile.lock +8 -8
- data/spec/support/v5.1/Gemfile.lock +6 -6
- data/spec/support/v5.2/Gemfile +1 -1
- data/spec/support/v5.2/Gemfile.lock +8 -8
- data/spec/support/v6.0/.gitignore +6 -0
- data/spec/support/v6.0/Gemfile +3 -3
- data/spec/support/v6.0/Gemfile.lock +76 -75
- data/spec/support/v6.0/bin/bundle +22 -13
- data/spec/support/v6.0/config/environments/test.rb +1 -1
- data/spec/support/v6.0/tmp/pids/.keep +0 -0
- data/spec/test_data/v5.0/expected_custom_application_job.rbi +21 -0
- data/spec/test_data/v5.0/expected_custom_application_mailer.rbi +6 -0
- data/spec/test_data/v5.0/expected_custom_award_house_point_hourglasses.rbi +21 -0
- data/spec/test_data/v5.0/expected_custom_daily_prophet_mailer.rbi +8 -0
- data/spec/test_data/v5.0/expected_custom_hogwarts_acceptance_mailer.rbi +21 -0
- data/spec/test_data/v5.0/expected_headmaster.rbi +18 -0
- data/spec/test_data/v5.0/expected_potion.rbi +9 -0
- data/spec/test_data/v5.0/expected_robe.rbi +9 -0
- data/spec/test_data/v5.0/expected_school.rbi +9 -0
- data/spec/test_data/v5.0/expected_spell/habtm_spell_books.rbi +18 -0
- data/spec/test_data/v5.0/expected_spell_book.rbi +9 -0
- data/spec/test_data/v5.0/expected_spell_book/habtm_spells.rbi +18 -0
- data/spec/test_data/v5.0/expected_squib.rbi +18 -0
- data/spec/test_data/v5.0/expected_subject/habtm_wizards.rbi +18 -0
- data/spec/test_data/v5.0/expected_wand.rbi +9 -0
- data/spec/test_data/v5.0/expected_wizard.rbi +18 -0
- data/spec/test_data/v5.0/expected_wizard/habtm_subjects.rbi +18 -0
- data/spec/test_data/v5.0/expected_wizard_wo_spellbook.rbi +18 -0
- data/spec/test_data/v5.1/expected_custom_application_job.rbi +21 -0
- data/spec/test_data/v5.1/expected_custom_application_mailer.rbi +6 -0
- data/spec/test_data/v5.1/expected_custom_award_house_point_hourglasses.rbi +21 -0
- data/spec/test_data/v5.1/expected_custom_daily_prophet_mailer.rbi +8 -0
- data/spec/test_data/v5.1/expected_custom_hogwarts_acceptance_mailer.rbi +21 -0
- data/spec/test_data/v5.1/expected_headmaster.rbi +18 -0
- data/spec/test_data/v5.1/expected_potion.rbi +9 -0
- data/spec/test_data/v5.1/expected_robe.rbi +9 -0
- data/spec/test_data/v5.1/expected_school.rbi +9 -0
- data/spec/test_data/v5.1/expected_spell/habtm_spell_books.rbi +18 -0
- data/spec/test_data/v5.1/expected_spell_book.rbi +9 -0
- data/spec/test_data/v5.1/expected_spell_book/habtm_spells.rbi +18 -0
- data/spec/test_data/v5.1/expected_squib.rbi +18 -0
- data/spec/test_data/v5.1/expected_subject/habtm_wizards.rbi +18 -0
- data/spec/test_data/v5.1/expected_wand.rbi +9 -0
- data/spec/test_data/v5.1/expected_wizard.rbi +18 -0
- data/spec/test_data/v5.1/expected_wizard/habtm_subjects.rbi +18 -0
- data/spec/test_data/v5.1/expected_wizard_wo_spellbook.rbi +18 -0
- data/spec/test_data/v5.2/expected_attachment.rbi +18 -0
- data/spec/test_data/v5.2/expected_blob.rbi +19 -1
- data/spec/test_data/v5.2/expected_custom_application_job.rbi +21 -0
- data/spec/test_data/v5.2/expected_custom_application_mailer.rbi +6 -0
- data/spec/test_data/v5.2/expected_custom_award_house_point_hourglasses.rbi +21 -0
- data/spec/test_data/v5.2/expected_custom_daily_prophet_mailer.rbi +8 -0
- data/spec/test_data/v5.2/expected_custom_hogwarts_acceptance_mailer.rbi +21 -0
- data/spec/test_data/v5.2/expected_headmaster.rbi +18 -0
- data/spec/test_data/v5.2/expected_potion.rbi +9 -0
- data/spec/test_data/v5.2/expected_robe.rbi +9 -0
- data/spec/test_data/v5.2/expected_school.rbi +9 -0
- data/spec/test_data/v5.2/expected_spell/habtm_spell_books.rbi +18 -0
- data/spec/test_data/v5.2/expected_spell_book.rbi +9 -0
- data/spec/test_data/v5.2/expected_spell_book/habtm_spells.rbi +18 -0
- data/spec/test_data/v5.2/expected_squib.rbi +38 -2
- data/spec/test_data/v5.2/expected_subject/habtm_wizards.rbi +18 -0
- data/spec/test_data/v5.2/expected_wand.rbi +9 -0
- data/spec/test_data/v5.2/expected_wizard.rbi +38 -2
- data/spec/test_data/v5.2/expected_wizard/habtm_subjects.rbi +18 -0
- data/spec/test_data/v5.2/expected_wizard_wo_spellbook.rbi +38 -2
- data/spec/test_data/v6.0/expected_attachment.rbi +18 -0
- data/spec/test_data/v6.0/expected_blob.rbi +19 -1
- data/spec/test_data/v6.0/expected_custom_application_job.rbi +21 -0
- data/spec/test_data/v6.0/expected_custom_application_mailer.rbi +6 -0
- data/spec/test_data/v6.0/expected_custom_award_house_point_hourglasses.rbi +21 -0
- data/spec/test_data/v6.0/expected_custom_daily_prophet_mailer.rbi +8 -0
- data/spec/test_data/v6.0/expected_custom_hogwarts_acceptance_mailer.rbi +21 -0
- data/spec/test_data/v6.0/expected_headmaster.rbi +18 -0
- data/spec/test_data/v6.0/expected_potion.rbi +9 -0
- data/spec/test_data/v6.0/expected_robe.rbi +9 -0
- data/spec/test_data/v6.0/expected_school.rbi +9 -0
- data/spec/test_data/v6.0/expected_spell/habtm_spell_books.rbi +18 -0
- data/spec/test_data/v6.0/expected_spell_book.rbi +9 -0
- data/spec/test_data/v6.0/expected_spell_book/habtm_spells.rbi +18 -0
- data/spec/test_data/v6.0/expected_squib.rbi +38 -2
- data/spec/test_data/v6.0/expected_subject/habtm_wizards.rbi +18 -0
- data/spec/test_data/v6.0/expected_wand.rbi +9 -0
- data/spec/test_data/v6.0/expected_wizard.rbi +38 -2
- data/spec/test_data/v6.0/expected_wizard/habtm_subjects.rbi +18 -0
- data/spec/test_data/v6.0/expected_wizard_wo_spellbook.rbi +38 -2
- metadata +45 -1
@@ -31,12 +31,30 @@ module Subject::HABTM_Wizards::GeneratedAssociationMethods
|
|
31
31
|
sig { returns(T.nilable(::Subject)) }
|
32
32
|
def left_side; end
|
33
33
|
|
34
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Subject).void)).returns(::Subject) }
|
35
|
+
def build_left_side(*args, &block); end
|
36
|
+
|
37
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Subject).void)).returns(::Subject) }
|
38
|
+
def create_left_side(*args, &block); end
|
39
|
+
|
40
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Subject).void)).returns(::Subject) }
|
41
|
+
def create_left_side!(*args, &block); end
|
42
|
+
|
34
43
|
sig { params(value: T.nilable(::Subject)).void }
|
35
44
|
def left_side=(value); end
|
36
45
|
|
37
46
|
sig { returns(T.nilable(::Wizard)) }
|
38
47
|
def wizard; end
|
39
48
|
|
49
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
50
|
+
def build_wizard(*args, &block); end
|
51
|
+
|
52
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
53
|
+
def create_wizard(*args, &block); end
|
54
|
+
|
55
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
56
|
+
def create_wizard!(*args, &block); end
|
57
|
+
|
40
58
|
sig { params(value: T.nilable(::Wizard)).void }
|
41
59
|
def wizard=(value); end
|
42
60
|
end
|
@@ -184,6 +184,15 @@ module Wand::GeneratedAssociationMethods
|
|
184
184
|
sig { returns(::Wizard) }
|
185
185
|
def wizard; end
|
186
186
|
|
187
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
188
|
+
def build_wizard(*args, &block); end
|
189
|
+
|
190
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
191
|
+
def create_wizard(*args, &block); end
|
192
|
+
|
193
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
194
|
+
def create_wizard!(*args, &block); end
|
195
|
+
|
187
196
|
sig { params(value: ::Wizard).void }
|
188
197
|
def wizard=(value); end
|
189
198
|
end
|
@@ -1074,7 +1074,7 @@ module Wizard::GeneratedAssociationMethods
|
|
1074
1074
|
sig { returns(::ActiveStorage::Attachment::ActiveRecord_Associations_CollectionProxy) }
|
1075
1075
|
def hats_attachments; end
|
1076
1076
|
|
1077
|
-
sig { returns(T::Array[
|
1077
|
+
sig { returns(T::Array[T.untyped]) }
|
1078
1078
|
def hats_attachment_ids; end
|
1079
1079
|
|
1080
1080
|
sig { params(value: T::Enumerable[::ActiveStorage::Attachment]).void }
|
@@ -1083,7 +1083,7 @@ module Wizard::GeneratedAssociationMethods
|
|
1083
1083
|
sig { returns(::ActiveStorage::Blob::ActiveRecord_Associations_CollectionProxy) }
|
1084
1084
|
def hats_blobs; end
|
1085
1085
|
|
1086
|
-
sig { returns(T::Array[
|
1086
|
+
sig { returns(T::Array[T.untyped]) }
|
1087
1087
|
def hats_blob_ids; end
|
1088
1088
|
|
1089
1089
|
sig { params(value: T::Enumerable[::ActiveStorage::Blob]).void }
|
@@ -1092,18 +1092,45 @@ module Wizard::GeneratedAssociationMethods
|
|
1092
1092
|
sig { returns(T.nilable(::School)) }
|
1093
1093
|
def school; end
|
1094
1094
|
|
1095
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::School).void)).returns(::School) }
|
1096
|
+
def build_school(*args, &block); end
|
1097
|
+
|
1098
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::School).void)).returns(::School) }
|
1099
|
+
def create_school(*args, &block); end
|
1100
|
+
|
1101
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::School).void)).returns(::School) }
|
1102
|
+
def create_school!(*args, &block); end
|
1103
|
+
|
1095
1104
|
sig { params(value: T.nilable(::School)).void }
|
1096
1105
|
def school=(value); end
|
1097
1106
|
|
1098
1107
|
sig { returns(T.nilable(::ActiveStorage::Attachment)) }
|
1099
1108
|
def school_photo_attachment; end
|
1100
1109
|
|
1110
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Attachment).void)).returns(::ActiveStorage::Attachment) }
|
1111
|
+
def build_school_photo_attachment(*args, &block); end
|
1112
|
+
|
1113
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Attachment).void)).returns(::ActiveStorage::Attachment) }
|
1114
|
+
def create_school_photo_attachment(*args, &block); end
|
1115
|
+
|
1116
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Attachment).void)).returns(::ActiveStorage::Attachment) }
|
1117
|
+
def create_school_photo_attachment!(*args, &block); end
|
1118
|
+
|
1101
1119
|
sig { params(value: T.nilable(::ActiveStorage::Attachment)).void }
|
1102
1120
|
def school_photo_attachment=(value); end
|
1103
1121
|
|
1104
1122
|
sig { returns(T.nilable(::ActiveStorage::Blob)) }
|
1105
1123
|
def school_photo_blob; end
|
1106
1124
|
|
1125
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Blob).void)).returns(::ActiveStorage::Blob) }
|
1126
|
+
def build_school_photo_blob(*args, &block); end
|
1127
|
+
|
1128
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Blob).void)).returns(::ActiveStorage::Blob) }
|
1129
|
+
def create_school_photo_blob(*args, &block); end
|
1130
|
+
|
1131
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Blob).void)).returns(::ActiveStorage::Blob) }
|
1132
|
+
def create_school_photo_blob!(*args, &block); end
|
1133
|
+
|
1107
1134
|
sig { params(value: T.nilable(::ActiveStorage::Blob)).void }
|
1108
1135
|
def school_photo_blob=(value); end
|
1109
1136
|
|
@@ -1128,6 +1155,15 @@ module Wizard::GeneratedAssociationMethods
|
|
1128
1155
|
sig { returns(T.nilable(::Wand)) }
|
1129
1156
|
def wand; end
|
1130
1157
|
|
1158
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wand).void)).returns(::Wand) }
|
1159
|
+
def build_wand(*args, &block); end
|
1160
|
+
|
1161
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wand).void)).returns(::Wand) }
|
1162
|
+
def create_wand(*args, &block); end
|
1163
|
+
|
1164
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wand).void)).returns(::Wand) }
|
1165
|
+
def create_wand!(*args, &block); end
|
1166
|
+
|
1131
1167
|
sig { params(value: T.nilable(::Wand)).void }
|
1132
1168
|
def wand=(value); end
|
1133
1169
|
|
@@ -31,12 +31,30 @@ module Wizard::HABTM_Subjects::GeneratedAssociationMethods
|
|
31
31
|
sig { returns(T.nilable(::Wizard)) }
|
32
32
|
def left_side; end
|
33
33
|
|
34
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
35
|
+
def build_left_side(*args, &block); end
|
36
|
+
|
37
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
38
|
+
def create_left_side(*args, &block); end
|
39
|
+
|
40
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
41
|
+
def create_left_side!(*args, &block); end
|
42
|
+
|
34
43
|
sig { params(value: T.nilable(::Wizard)).void }
|
35
44
|
def left_side=(value); end
|
36
45
|
|
37
46
|
sig { returns(T.nilable(::Subject)) }
|
38
47
|
def subject; end
|
39
48
|
|
49
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Subject).void)).returns(::Subject) }
|
50
|
+
def build_subject(*args, &block); end
|
51
|
+
|
52
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Subject).void)).returns(::Subject) }
|
53
|
+
def create_subject(*args, &block); end
|
54
|
+
|
55
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Subject).void)).returns(::Subject) }
|
56
|
+
def create_subject!(*args, &block); end
|
57
|
+
|
40
58
|
sig { params(value: T.nilable(::Subject)).void }
|
41
59
|
def subject=(value); end
|
42
60
|
end
|
@@ -1074,7 +1074,7 @@ module Wizard::GeneratedAssociationMethods
|
|
1074
1074
|
sig { returns(::ActiveStorage::Attachment::ActiveRecord_Associations_CollectionProxy) }
|
1075
1075
|
def hats_attachments; end
|
1076
1076
|
|
1077
|
-
sig { returns(T::Array[
|
1077
|
+
sig { returns(T::Array[T.untyped]) }
|
1078
1078
|
def hats_attachment_ids; end
|
1079
1079
|
|
1080
1080
|
sig { params(value: T::Enumerable[::ActiveStorage::Attachment]).void }
|
@@ -1083,7 +1083,7 @@ module Wizard::GeneratedAssociationMethods
|
|
1083
1083
|
sig { returns(::ActiveStorage::Blob::ActiveRecord_Associations_CollectionProxy) }
|
1084
1084
|
def hats_blobs; end
|
1085
1085
|
|
1086
|
-
sig { returns(T::Array[
|
1086
|
+
sig { returns(T::Array[T.untyped]) }
|
1087
1087
|
def hats_blob_ids; end
|
1088
1088
|
|
1089
1089
|
sig { params(value: T::Enumerable[::ActiveStorage::Blob]).void }
|
@@ -1092,18 +1092,45 @@ module Wizard::GeneratedAssociationMethods
|
|
1092
1092
|
sig { returns(T.nilable(T.untyped)) }
|
1093
1093
|
def school; end
|
1094
1094
|
|
1095
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: T.untyped).void)).returns(T.untyped) }
|
1096
|
+
def build_school(*args, &block); end
|
1097
|
+
|
1098
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: T.untyped).void)).returns(T.untyped) }
|
1099
|
+
def create_school(*args, &block); end
|
1100
|
+
|
1101
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: T.untyped).void)).returns(T.untyped) }
|
1102
|
+
def create_school!(*args, &block); end
|
1103
|
+
|
1095
1104
|
sig { params(value: T.nilable(T.untyped)).void }
|
1096
1105
|
def school=(value); end
|
1097
1106
|
|
1098
1107
|
sig { returns(T.nilable(::ActiveStorage::Attachment)) }
|
1099
1108
|
def school_photo_attachment; end
|
1100
1109
|
|
1110
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Attachment).void)).returns(::ActiveStorage::Attachment) }
|
1111
|
+
def build_school_photo_attachment(*args, &block); end
|
1112
|
+
|
1113
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Attachment).void)).returns(::ActiveStorage::Attachment) }
|
1114
|
+
def create_school_photo_attachment(*args, &block); end
|
1115
|
+
|
1116
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Attachment).void)).returns(::ActiveStorage::Attachment) }
|
1117
|
+
def create_school_photo_attachment!(*args, &block); end
|
1118
|
+
|
1101
1119
|
sig { params(value: T.nilable(::ActiveStorage::Attachment)).void }
|
1102
1120
|
def school_photo_attachment=(value); end
|
1103
1121
|
|
1104
1122
|
sig { returns(T.nilable(::ActiveStorage::Blob)) }
|
1105
1123
|
def school_photo_blob; end
|
1106
1124
|
|
1125
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Blob).void)).returns(::ActiveStorage::Blob) }
|
1126
|
+
def build_school_photo_blob(*args, &block); end
|
1127
|
+
|
1128
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Blob).void)).returns(::ActiveStorage::Blob) }
|
1129
|
+
def create_school_photo_blob(*args, &block); end
|
1130
|
+
|
1131
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Blob).void)).returns(::ActiveStorage::Blob) }
|
1132
|
+
def create_school_photo_blob!(*args, &block); end
|
1133
|
+
|
1107
1134
|
sig { params(value: T.nilable(::ActiveStorage::Blob)).void }
|
1108
1135
|
def school_photo_blob=(value); end
|
1109
1136
|
|
@@ -1122,6 +1149,15 @@ module Wizard::GeneratedAssociationMethods
|
|
1122
1149
|
sig { returns(T.nilable(::Wand)) }
|
1123
1150
|
def wand; end
|
1124
1151
|
|
1152
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wand).void)).returns(::Wand) }
|
1153
|
+
def build_wand(*args, &block); end
|
1154
|
+
|
1155
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wand).void)).returns(::Wand) }
|
1156
|
+
def create_wand(*args, &block); end
|
1157
|
+
|
1158
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wand).void)).returns(::Wand) }
|
1159
|
+
def create_wand!(*args, &block); end
|
1160
|
+
|
1125
1161
|
sig { params(value: T.nilable(::Wand)).void }
|
1126
1162
|
def wand=(value); end
|
1127
1163
|
|
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.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chan Zuckerberg Initiative
|
@@ -200,6 +200,7 @@ files:
|
|
200
200
|
- Rakefile
|
201
201
|
- SECURITY.md
|
202
202
|
- bin/sorbet
|
203
|
+
- lib/bundled_rbi/customizabel_rbi_formatter.rbi
|
203
204
|
- lib/bundled_rbi/pluck_to_tstruct.rbi
|
204
205
|
- lib/bundled_rbi/type_assert.rbi
|
205
206
|
- lib/bundled_rbi/typed_enum.rbi
|
@@ -222,6 +223,7 @@ files:
|
|
222
223
|
- lib/sorbet-rails/helper_rbi_formatter.rb
|
223
224
|
- lib/sorbet-rails/job_rbi_formatter.rb
|
224
225
|
- lib/sorbet-rails/mailer_rbi_formatter.rb
|
226
|
+
- lib/sorbet-rails/model_column_utils.rb
|
225
227
|
- lib/sorbet-rails/model_plugins/active_record_assoc.rb
|
226
228
|
- lib/sorbet-rails/model_plugins/active_record_attribute.rb
|
227
229
|
- lib/sorbet-rails/model_plugins/active_record_enum.rb
|
@@ -617,12 +619,18 @@ files:
|
|
617
619
|
- spec/support/v6.0/sorbet_test_cases.rb
|
618
620
|
- spec/support/v6.0/storage/.keep
|
619
621
|
- spec/support/v6.0/tmp/.keep
|
622
|
+
- spec/support/v6.0/tmp/pids/.keep
|
620
623
|
- spec/support/v6.0/vendor/.keep
|
621
624
|
- spec/test_data/v5.0/expected_active_record_base.rbi
|
622
625
|
- spec/test_data/v5.0/expected_active_record_relation.rbi
|
623
626
|
- spec/test_data/v5.0/expected_application_job.rbi
|
624
627
|
- spec/test_data/v5.0/expected_application_mailer.rbi
|
625
628
|
- spec/test_data/v5.0/expected_award_house_point_hourglasses.rbi
|
629
|
+
- spec/test_data/v5.0/expected_custom_application_job.rbi
|
630
|
+
- spec/test_data/v5.0/expected_custom_application_mailer.rbi
|
631
|
+
- spec/test_data/v5.0/expected_custom_award_house_point_hourglasses.rbi
|
632
|
+
- spec/test_data/v5.0/expected_custom_daily_prophet_mailer.rbi
|
633
|
+
- spec/test_data/v5.0/expected_custom_hogwarts_acceptance_mailer.rbi
|
626
634
|
- spec/test_data/v5.0/expected_daily_prophet_mailer.rbi
|
627
635
|
- spec/test_data/v5.0/expected_habtm_subjects.rbi
|
628
636
|
- spec/test_data/v5.0/expected_habtm_wizards.rbi
|
@@ -655,6 +663,11 @@ files:
|
|
655
663
|
- spec/test_data/v5.1/expected_application_job.rbi
|
656
664
|
- spec/test_data/v5.1/expected_application_mailer.rbi
|
657
665
|
- spec/test_data/v5.1/expected_award_house_point_hourglasses.rbi
|
666
|
+
- spec/test_data/v5.1/expected_custom_application_job.rbi
|
667
|
+
- spec/test_data/v5.1/expected_custom_application_mailer.rbi
|
668
|
+
- spec/test_data/v5.1/expected_custom_award_house_point_hourglasses.rbi
|
669
|
+
- spec/test_data/v5.1/expected_custom_daily_prophet_mailer.rbi
|
670
|
+
- spec/test_data/v5.1/expected_custom_hogwarts_acceptance_mailer.rbi
|
658
671
|
- spec/test_data/v5.1/expected_daily_prophet_mailer.rbi
|
659
672
|
- spec/test_data/v5.1/expected_habtm_subjects.rbi
|
660
673
|
- spec/test_data/v5.1/expected_habtm_wizards.rbi
|
@@ -689,6 +702,11 @@ files:
|
|
689
702
|
- spec/test_data/v5.2/expected_attachment.rbi
|
690
703
|
- spec/test_data/v5.2/expected_award_house_point_hourglasses.rbi
|
691
704
|
- spec/test_data/v5.2/expected_blob.rbi
|
705
|
+
- spec/test_data/v5.2/expected_custom_application_job.rbi
|
706
|
+
- spec/test_data/v5.2/expected_custom_application_mailer.rbi
|
707
|
+
- spec/test_data/v5.2/expected_custom_award_house_point_hourglasses.rbi
|
708
|
+
- spec/test_data/v5.2/expected_custom_daily_prophet_mailer.rbi
|
709
|
+
- spec/test_data/v5.2/expected_custom_hogwarts_acceptance_mailer.rbi
|
692
710
|
- spec/test_data/v5.2/expected_daily_prophet_mailer.rbi
|
693
711
|
- spec/test_data/v5.2/expected_habtm_subjects.rbi
|
694
712
|
- spec/test_data/v5.2/expected_habtm_wizards.rbi
|
@@ -723,6 +741,11 @@ files:
|
|
723
741
|
- spec/test_data/v6.0/expected_attachment.rbi
|
724
742
|
- spec/test_data/v6.0/expected_award_house_point_hourglasses.rbi
|
725
743
|
- spec/test_data/v6.0/expected_blob.rbi
|
744
|
+
- spec/test_data/v6.0/expected_custom_application_job.rbi
|
745
|
+
- spec/test_data/v6.0/expected_custom_application_mailer.rbi
|
746
|
+
- spec/test_data/v6.0/expected_custom_award_house_point_hourglasses.rbi
|
747
|
+
- spec/test_data/v6.0/expected_custom_daily_prophet_mailer.rbi
|
748
|
+
- spec/test_data/v6.0/expected_custom_hogwarts_acceptance_mailer.rbi
|
726
749
|
- spec/test_data/v6.0/expected_daily_prophet_mailer.rbi
|
727
750
|
- spec/test_data/v6.0/expected_habtm_subjects.rbi
|
728
751
|
- spec/test_data/v6.0/expected_habtm_wizards.rbi
|
@@ -1145,12 +1168,18 @@ test_files:
|
|
1145
1168
|
- spec/support/v6.0/sorbet_test_cases.rb
|
1146
1169
|
- spec/support/v6.0/storage/.keep
|
1147
1170
|
- spec/support/v6.0/tmp/.keep
|
1171
|
+
- spec/support/v6.0/tmp/pids/.keep
|
1148
1172
|
- spec/support/v6.0/vendor/.keep
|
1149
1173
|
- spec/test_data/v5.0/expected_active_record_base.rbi
|
1150
1174
|
- spec/test_data/v5.0/expected_active_record_relation.rbi
|
1151
1175
|
- spec/test_data/v5.0/expected_application_job.rbi
|
1152
1176
|
- spec/test_data/v5.0/expected_application_mailer.rbi
|
1153
1177
|
- spec/test_data/v5.0/expected_award_house_point_hourglasses.rbi
|
1178
|
+
- spec/test_data/v5.0/expected_custom_application_job.rbi
|
1179
|
+
- spec/test_data/v5.0/expected_custom_application_mailer.rbi
|
1180
|
+
- spec/test_data/v5.0/expected_custom_award_house_point_hourglasses.rbi
|
1181
|
+
- spec/test_data/v5.0/expected_custom_daily_prophet_mailer.rbi
|
1182
|
+
- spec/test_data/v5.0/expected_custom_hogwarts_acceptance_mailer.rbi
|
1154
1183
|
- spec/test_data/v5.0/expected_daily_prophet_mailer.rbi
|
1155
1184
|
- spec/test_data/v5.0/expected_habtm_subjects.rbi
|
1156
1185
|
- spec/test_data/v5.0/expected_habtm_wizards.rbi
|
@@ -1183,6 +1212,11 @@ test_files:
|
|
1183
1212
|
- spec/test_data/v5.1/expected_application_job.rbi
|
1184
1213
|
- spec/test_data/v5.1/expected_application_mailer.rbi
|
1185
1214
|
- spec/test_data/v5.1/expected_award_house_point_hourglasses.rbi
|
1215
|
+
- spec/test_data/v5.1/expected_custom_application_job.rbi
|
1216
|
+
- spec/test_data/v5.1/expected_custom_application_mailer.rbi
|
1217
|
+
- spec/test_data/v5.1/expected_custom_award_house_point_hourglasses.rbi
|
1218
|
+
- spec/test_data/v5.1/expected_custom_daily_prophet_mailer.rbi
|
1219
|
+
- spec/test_data/v5.1/expected_custom_hogwarts_acceptance_mailer.rbi
|
1186
1220
|
- spec/test_data/v5.1/expected_daily_prophet_mailer.rbi
|
1187
1221
|
- spec/test_data/v5.1/expected_habtm_subjects.rbi
|
1188
1222
|
- spec/test_data/v5.1/expected_habtm_wizards.rbi
|
@@ -1217,6 +1251,11 @@ test_files:
|
|
1217
1251
|
- spec/test_data/v5.2/expected_attachment.rbi
|
1218
1252
|
- spec/test_data/v5.2/expected_award_house_point_hourglasses.rbi
|
1219
1253
|
- spec/test_data/v5.2/expected_blob.rbi
|
1254
|
+
- spec/test_data/v5.2/expected_custom_application_job.rbi
|
1255
|
+
- spec/test_data/v5.2/expected_custom_application_mailer.rbi
|
1256
|
+
- spec/test_data/v5.2/expected_custom_award_house_point_hourglasses.rbi
|
1257
|
+
- spec/test_data/v5.2/expected_custom_daily_prophet_mailer.rbi
|
1258
|
+
- spec/test_data/v5.2/expected_custom_hogwarts_acceptance_mailer.rbi
|
1220
1259
|
- spec/test_data/v5.2/expected_daily_prophet_mailer.rbi
|
1221
1260
|
- spec/test_data/v5.2/expected_habtm_subjects.rbi
|
1222
1261
|
- spec/test_data/v5.2/expected_habtm_wizards.rbi
|
@@ -1251,6 +1290,11 @@ test_files:
|
|
1251
1290
|
- spec/test_data/v6.0/expected_attachment.rbi
|
1252
1291
|
- spec/test_data/v6.0/expected_award_house_point_hourglasses.rbi
|
1253
1292
|
- spec/test_data/v6.0/expected_blob.rbi
|
1293
|
+
- spec/test_data/v6.0/expected_custom_application_job.rbi
|
1294
|
+
- spec/test_data/v6.0/expected_custom_application_mailer.rbi
|
1295
|
+
- spec/test_data/v6.0/expected_custom_award_house_point_hourglasses.rbi
|
1296
|
+
- spec/test_data/v6.0/expected_custom_daily_prophet_mailer.rbi
|
1297
|
+
- spec/test_data/v6.0/expected_custom_hogwarts_acceptance_mailer.rbi
|
1254
1298
|
- spec/test_data/v6.0/expected_daily_prophet_mailer.rbi
|
1255
1299
|
- spec/test_data/v6.0/expected_habtm_subjects.rbi
|
1256
1300
|
- spec/test_data/v6.0/expected_habtm_wizards.rbi
|