sorbet-rails 0.6.5 → 0.7.3
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 +60 -11
- 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/bundled_rbi/typed_enum.rbi +7 -0
- data/lib/sorbet-rails.rb +1 -3
- data/lib/sorbet-rails/active_record_rbi_formatter.rb +2 -2
- data/lib/sorbet-rails/config.rb +12 -0
- data/lib/sorbet-rails/dependent_gem_rbis/activerecord.rbi +3 -0
- data/lib/sorbet-rails/deprecation.rb +1 -0
- data/lib/sorbet-rails/gem_plugins/kaminari_plugin.rb +8 -0
- data/lib/sorbet-rails/helper_rbi_formatter.rb +1 -1
- data/lib/sorbet-rails/job_rbi_formatter.rb +75 -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 +40 -1
- data/lib/sorbet-rails/model_plugins/active_record_attribute.rb +12 -112
- data/lib/sorbet-rails/model_plugins/active_record_querying.rb +2 -2
- data/lib/sorbet-rails/model_plugins/active_record_serialized_attribute.rb +68 -0
- data/lib/sorbet-rails/model_plugins/base.rb +6 -8
- data/lib/sorbet-rails/model_plugins/plugins.rb +3 -0
- data/lib/sorbet-rails/model_rbi_formatter.rb +3 -3
- data/lib/sorbet-rails/model_utils.rb +5 -2
- data/lib/sorbet-rails/rails_mixins/generated_url_helpers.rb +2 -3
- data/lib/sorbet-rails/rails_mixins/pluck_to_tstruct.rb +54 -7
- data/lib/sorbet-rails/railtie.rb +0 -2
- data/lib/sorbet-rails/routes_rbi_formatter.rb +6 -2
- data/lib/sorbet-rails/sorbet_utils.rb +152 -150
- data/lib/sorbet-rails/tasks/rails_rbi.rake +9 -8
- data/sorbet-rails.gemspec +2 -2
- data/spec/bin/run_spec.sh +1 -1
- data/spec/generators/rails-template.rb +16 -0
- data/spec/generators/sorbet_test_cases.rb +29 -57
- data/spec/job_rbi_formatter_spec.rb +1 -1
- data/spec/pluck_to_tstruct_spec.rb +115 -16
- 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/sorbet_spec.rb +5 -5
- data/spec/support/v5.0/Gemfile +1 -1
- data/spec/support/v5.0/Gemfile.lock +15 -14
- data/spec/support/v5.0/app/controllers/application_controller.rb +1 -1
- data/spec/support/v5.0/app/models/headmaster.rb +1 -1
- data/spec/support/v5.0/app/models/potion.rb +1 -1
- data/spec/support/v5.0/app/models/robe.rb +1 -1
- data/spec/support/v5.0/app/models/school.rb +1 -1
- data/spec/support/v5.0/app/models/spell.rb +1 -1
- data/spec/support/v5.0/app/models/subject.rb +1 -1
- data/spec/support/v5.0/app/models/wizard.rb +5 -0
- data/spec/support/v5.0/config/environments/development.rb +1 -1
- data/spec/support/v5.0/config/environments/production.rb +1 -1
- data/spec/support/v5.0/config/environments/test.rb +1 -1
- data/spec/support/v5.0/config/initializers/wrap_parameters.rb +1 -1
- data/spec/support/v5.0/config/routes.rb +1 -1
- data/spec/support/v5.0/db/migrate/20190620000015_add_serialized_to_wizards.rb +9 -0
- data/spec/support/v5.0/db/schema.rb +8 -4
- data/spec/support/v5.0/sorbet_test_cases.rb +29 -57
- data/spec/support/v5.1/Gemfile.lock +13 -12
- data/spec/support/v5.1/app/controllers/application_controller.rb +1 -1
- data/spec/support/v5.1/app/models/headmaster.rb +1 -1
- data/spec/support/v5.1/app/models/school.rb +1 -1
- data/spec/support/v5.1/app/models/wizard.rb +5 -0
- data/spec/support/v5.1/config/environments/production.rb +1 -1
- data/spec/support/v5.1/config/initializers/wrap_parameters.rb +1 -1
- data/spec/support/v5.1/config/routes.rb +1 -1
- data/spec/support/v5.1/db/migrate/20190620000015_add_serialized_to_wizards.rb +9 -0
- data/spec/support/v5.1/db/schema.rb +5 -1
- data/spec/support/v5.1/sorbet_test_cases.rb +29 -57
- data/spec/support/v5.2/Gemfile +1 -1
- data/spec/support/v5.2/Gemfile.lock +15 -14
- data/spec/support/v5.2/app/models/headmaster.rb +1 -1
- data/spec/support/v5.2/app/models/school.rb +1 -1
- data/spec/support/v5.2/app/models/wizard.rb +5 -0
- data/spec/support/v5.2/config/environments/development.rb +1 -1
- data/spec/support/v5.2/config/environments/production.rb +1 -1
- data/spec/support/v5.2/config/environments/test.rb +1 -1
- data/spec/support/v5.2/config/initializers/wrap_parameters.rb +1 -1
- data/spec/support/v5.2/config/routes.rb +1 -1
- data/spec/support/v5.2/db/migrate/20190620000015_add_serialized_to_wizards.rb +9 -0
- data/spec/support/v5.2/db/schema.rb +5 -1
- data/spec/support/v5.2/sorbet_test_cases.rb +29 -57
- data/spec/support/v6.0/.gitignore +6 -0
- data/spec/support/v6.0/Gemfile +3 -3
- data/spec/support/v6.0/Gemfile.lock +82 -80
- data/spec/support/v6.0/app/models/wizard.rb +5 -0
- data/spec/support/v6.0/bin/bundle +22 -13
- data/spec/support/v6.0/config/environments/development.rb +1 -1
- data/spec/support/v6.0/config/environments/production.rb +1 -1
- data/spec/support/v6.0/config/environments/test.rb +2 -2
- data/spec/support/v6.0/config/routes.rb +1 -1
- data/spec/support/v6.0/db/migrate/20190620000015_add_serialized_to_wizards.rb +9 -0
- data/spec/support/v6.0/db/schema.rb +5 -1
- data/spec/support/v6.0/sorbet_test_cases.rb +29 -57
- data/spec/support/v6.0/tmp/pids/.keep +0 -0
- data/spec/test_data/v5.0/expected_application_job.rbi +2 -2
- data/spec/test_data/v5.0/expected_award_house_point_hourglasses.rbi +2 -2
- 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 +26 -2
- data/spec/test_data/v5.0/expected_internal_metadata.rbi +2 -2
- data/spec/test_data/v5.0/expected_potion.rbi +14 -2
- data/spec/test_data/v5.0/expected_robe.rbi +14 -2
- data/spec/test_data/v5.0/expected_routes.rbi +4 -0
- data/spec/test_data/v5.0/expected_schema_migration.rbi +2 -2
- data/spec/test_data/v5.0/expected_school.rbi +14 -2
- data/spec/test_data/v5.0/expected_spell.rbi +2 -2
- data/spec/test_data/v5.0/expected_spell/habtm_spell_books.rbi +26 -2
- data/spec/test_data/v5.0/expected_spell_book.rbi +23 -11
- data/spec/test_data/v5.0/expected_spell_book/habtm_spells.rbi +26 -2
- data/spec/test_data/v5.0/expected_squib.rbi +65 -2
- data/spec/test_data/v5.0/expected_subject.rbi +2 -2
- data/spec/test_data/v5.0/expected_subject/habtm_wizards.rbi +26 -2
- data/spec/test_data/v5.0/expected_wand.rbi +24 -12
- data/spec/test_data/v5.0/expected_wizard.rbi +123 -60
- data/spec/test_data/v5.0/expected_wizard/habtm_subjects.rbi +26 -2
- data/spec/test_data/v5.0/expected_wizard_wo_spellbook.rbi +123 -60
- data/spec/test_data/v5.1/expected_application_job.rbi +2 -2
- data/spec/test_data/v5.1/expected_award_house_point_hourglasses.rbi +2 -2
- 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 +26 -2
- data/spec/test_data/v5.1/expected_internal_metadata.rbi +2 -2
- data/spec/test_data/v5.1/expected_potion.rbi +14 -2
- data/spec/test_data/v5.1/expected_robe.rbi +14 -2
- data/spec/test_data/v5.1/expected_routes.rbi +4 -0
- data/spec/test_data/v5.1/expected_schema_migration.rbi +2 -2
- data/spec/test_data/v5.1/expected_school.rbi +14 -2
- data/spec/test_data/v5.1/expected_spell.rbi +2 -2
- data/spec/test_data/v5.1/expected_spell/habtm_spell_books.rbi +26 -2
- data/spec/test_data/v5.1/expected_spell_book.rbi +23 -11
- data/spec/test_data/v5.1/expected_spell_book/habtm_spells.rbi +26 -2
- data/spec/test_data/v5.1/expected_squib.rbi +65 -2
- data/spec/test_data/v5.1/expected_subject.rbi +2 -2
- data/spec/test_data/v5.1/expected_subject/habtm_wizards.rbi +26 -2
- data/spec/test_data/v5.1/expected_wand.rbi +24 -12
- data/spec/test_data/v5.1/expected_wizard.rbi +123 -60
- data/spec/test_data/v5.1/expected_wizard/habtm_subjects.rbi +26 -2
- data/spec/test_data/v5.1/expected_wizard_wo_spellbook.rbi +123 -60
- data/spec/test_data/v5.2/expected_application_job.rbi +2 -2
- data/spec/test_data/v5.2/expected_attachment.rbi +26 -2
- data/spec/test_data/v5.2/expected_award_house_point_hourglasses.rbi +2 -2
- data/spec/test_data/v5.2/expected_blob.rbi +27 -3
- 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 +26 -2
- data/spec/test_data/v5.2/expected_internal_metadata.rbi +2 -2
- data/spec/test_data/v5.2/expected_potion.rbi +14 -2
- data/spec/test_data/v5.2/expected_robe.rbi +14 -2
- data/spec/test_data/v5.2/expected_routes.rbi +4 -0
- data/spec/test_data/v5.2/expected_schema_migration.rbi +2 -2
- data/spec/test_data/v5.2/expected_school.rbi +14 -2
- data/spec/test_data/v5.2/expected_spell.rbi +2 -2
- data/spec/test_data/v5.2/expected_spell/habtm_spell_books.rbi +26 -2
- data/spec/test_data/v5.2/expected_spell_book.rbi +23 -11
- data/spec/test_data/v5.2/expected_spell_book/habtm_spells.rbi +26 -2
- data/spec/test_data/v5.2/expected_squib.rbi +91 -4
- data/spec/test_data/v5.2/expected_subject.rbi +2 -2
- data/spec/test_data/v5.2/expected_subject/habtm_wizards.rbi +26 -2
- data/spec/test_data/v5.2/expected_wand.rbi +24 -12
- data/spec/test_data/v5.2/expected_wizard.rbi +149 -62
- data/spec/test_data/v5.2/expected_wizard/habtm_subjects.rbi +26 -2
- data/spec/test_data/v5.2/expected_wizard_wo_spellbook.rbi +149 -62
- data/spec/test_data/v6.0/expected_application_job.rbi +2 -2
- data/spec/test_data/v6.0/expected_attachment.rbi +26 -2
- data/spec/test_data/v6.0/expected_award_house_point_hourglasses.rbi +2 -2
- data/spec/test_data/v6.0/expected_blob.rbi +27 -3
- 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 +26 -2
- data/spec/test_data/v6.0/expected_internal_metadata.rbi +2 -2
- data/spec/test_data/v6.0/expected_potion.rbi +14 -2
- data/spec/test_data/v6.0/expected_robe.rbi +14 -2
- data/spec/test_data/v6.0/expected_routes.rbi +4 -0
- data/spec/test_data/v6.0/expected_schema_migration.rbi +2 -2
- data/spec/test_data/v6.0/expected_school.rbi +14 -2
- data/spec/test_data/v6.0/expected_spell.rbi +2 -2
- data/spec/test_data/v6.0/expected_spell/habtm_spell_books.rbi +26 -2
- data/spec/test_data/v6.0/expected_spell_book.rbi +23 -11
- data/spec/test_data/v6.0/expected_spell_book/habtm_spells.rbi +26 -2
- data/spec/test_data/v6.0/expected_squib.rbi +91 -4
- data/spec/test_data/v6.0/expected_subject.rbi +2 -2
- data/spec/test_data/v6.0/expected_subject/habtm_wizards.rbi +26 -2
- data/spec/test_data/v6.0/expected_wand.rbi +24 -12
- data/spec/test_data/v6.0/expected_wizard.rbi +149 -62
- data/spec/test_data/v6.0/expected_wizard/habtm_subjects.rbi +26 -2
- data/spec/test_data/v6.0/expected_wizard_wo_spellbook.rbi +149 -62
- data/spec/tstruct_comparable.rb +13 -0
- metadata +61 -15
- data/lib/bundled_rbi/parameters.rbi +0 -28
- data/lib/sorbet-rails/custom_types/boolean_string.rb +0 -42
- data/lib/sorbet-rails/custom_types/integer_string.rb +0 -45
- data/lib/sorbet-rails/rails_mixins/custom_params_methods.rb +0 -57
- data/spec/boolean_string_spec.rb +0 -59
- data/spec/custom_params_methods_spec.rb +0 -138
- data/spec/integer_string_spec.rb +0 -46
@@ -165,7 +165,7 @@ module ActiveRecord::InternalMetadata::QueryMethodsReturningRelation
|
|
165
165
|
load: T.nilable(T::Boolean),
|
166
166
|
error_on_ignore: T.nilable(T::Boolean),
|
167
167
|
block: T.nilable(T.proc.params(e: ActiveRecord::InternalMetadata::ActiveRecord_Relation).void)
|
168
|
-
).returns(
|
168
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
169
169
|
end
|
170
170
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
171
171
|
end
|
@@ -266,7 +266,7 @@ module ActiveRecord::InternalMetadata::QueryMethodsReturningAssociationRelation
|
|
266
266
|
load: T.nilable(T::Boolean),
|
267
267
|
error_on_ignore: T.nilable(T::Boolean),
|
268
268
|
block: T.nilable(T.proc.params(e: ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation).void)
|
269
|
-
).returns(
|
269
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
270
270
|
end
|
271
271
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
272
272
|
end
|
@@ -11,8 +11,20 @@ module Potion::GeneratedAssociationMethods
|
|
11
11
|
sig { returns(T.nilable(::Wizard)) }
|
12
12
|
def wizard; end
|
13
13
|
|
14
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
15
|
+
def build_wizard(*args, &block); end
|
16
|
+
|
17
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
18
|
+
def create_wizard(*args, &block); end
|
19
|
+
|
20
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
21
|
+
def create_wizard!(*args, &block); end
|
22
|
+
|
14
23
|
sig { params(value: T.nilable(::Wizard)).void }
|
15
24
|
def wizard=(value); end
|
25
|
+
|
26
|
+
sig { returns(T.nilable(::Wizard)) }
|
27
|
+
def reload_wizard; end
|
16
28
|
end
|
17
29
|
|
18
30
|
module Potion::CustomFinderMethods
|
@@ -135,7 +147,7 @@ module Potion::QueryMethodsReturningRelation
|
|
135
147
|
load: T.nilable(T::Boolean),
|
136
148
|
error_on_ignore: T.nilable(T::Boolean),
|
137
149
|
block: T.nilable(T.proc.params(e: Potion::ActiveRecord_Relation).void)
|
138
|
-
).returns(
|
150
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
139
151
|
end
|
140
152
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
141
153
|
end
|
@@ -236,7 +248,7 @@ module Potion::QueryMethodsReturningAssociationRelation
|
|
236
248
|
load: T.nilable(T::Boolean),
|
237
249
|
error_on_ignore: T.nilable(T::Boolean),
|
238
250
|
block: T.nilable(T.proc.params(e: Potion::ActiveRecord_AssociationRelation).void)
|
239
|
-
).returns(
|
251
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
240
252
|
end
|
241
253
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
242
254
|
end
|
@@ -31,8 +31,20 @@ module Robe::GeneratedAssociationMethods
|
|
31
31
|
sig { returns(T.nilable(::Wizard)) }
|
32
32
|
def wizard; end
|
33
33
|
|
34
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
35
|
+
def build_wizard(*args, &block); end
|
36
|
+
|
37
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
38
|
+
def create_wizard(*args, &block); end
|
39
|
+
|
40
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
41
|
+
def create_wizard!(*args, &block); end
|
42
|
+
|
34
43
|
sig { params(value: T.nilable(::Wizard)).void }
|
35
44
|
def wizard=(value); end
|
45
|
+
|
46
|
+
sig { returns(T.nilable(::Wizard)) }
|
47
|
+
def reload_wizard; end
|
36
48
|
end
|
37
49
|
|
38
50
|
module Robe::CustomFinderMethods
|
@@ -156,7 +168,7 @@ module Robe::QueryMethodsReturningRelation
|
|
156
168
|
load: T.nilable(T::Boolean),
|
157
169
|
error_on_ignore: T.nilable(T::Boolean),
|
158
170
|
block: T.nilable(T.proc.params(e: Robe::ActiveRecord_Relation).void)
|
159
|
-
).returns(
|
171
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
160
172
|
end
|
161
173
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
162
174
|
end
|
@@ -257,7 +269,7 @@ module Robe::QueryMethodsReturningAssociationRelation
|
|
257
269
|
load: T.nilable(T::Boolean),
|
258
270
|
error_on_ignore: T.nilable(T::Boolean),
|
259
271
|
block: T.nilable(T.proc.params(e: Robe::ActiveRecord_AssociationRelation).void)
|
260
|
-
).returns(
|
272
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
261
273
|
end
|
262
274
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
263
275
|
end
|
@@ -138,7 +138,7 @@ module ActiveRecord::SchemaMigration::QueryMethodsReturningRelation
|
|
138
138
|
load: T.nilable(T::Boolean),
|
139
139
|
error_on_ignore: T.nilable(T::Boolean),
|
140
140
|
block: T.nilable(T.proc.params(e: ActiveRecord::SchemaMigration::ActiveRecord_Relation).void)
|
141
|
-
).returns(
|
141
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
142
142
|
end
|
143
143
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
144
144
|
end
|
@@ -239,7 +239,7 @@ module ActiveRecord::SchemaMigration::QueryMethodsReturningAssociationRelation
|
|
239
239
|
load: T.nilable(T::Boolean),
|
240
240
|
error_on_ignore: T.nilable(T::Boolean),
|
241
241
|
block: T.nilable(T.proc.params(e: ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation).void)
|
242
|
-
).returns(
|
242
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
243
243
|
end
|
244
244
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
245
245
|
end
|
@@ -31,8 +31,20 @@ module School::GeneratedAssociationMethods
|
|
31
31
|
sig { returns(::Headmaster) }
|
32
32
|
def headmaster; end
|
33
33
|
|
34
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Headmaster).void)).returns(::Headmaster) }
|
35
|
+
def build_headmaster(*args, &block); end
|
36
|
+
|
37
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Headmaster).void)).returns(::Headmaster) }
|
38
|
+
def create_headmaster(*args, &block); end
|
39
|
+
|
40
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Headmaster).void)).returns(::Headmaster) }
|
41
|
+
def create_headmaster!(*args, &block); end
|
42
|
+
|
34
43
|
sig { params(value: ::Headmaster).void }
|
35
44
|
def headmaster=(value); end
|
45
|
+
|
46
|
+
sig { returns(::Headmaster) }
|
47
|
+
def reload_headmaster; end
|
36
48
|
end
|
37
49
|
|
38
50
|
module School::CustomFinderMethods
|
@@ -156,7 +168,7 @@ module School::QueryMethodsReturningRelation
|
|
156
168
|
load: T.nilable(T::Boolean),
|
157
169
|
error_on_ignore: T.nilable(T::Boolean),
|
158
170
|
block: T.nilable(T.proc.params(e: School::ActiveRecord_Relation).void)
|
159
|
-
).returns(
|
171
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
160
172
|
end
|
161
173
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
162
174
|
end
|
@@ -257,7 +269,7 @@ module School::QueryMethodsReturningAssociationRelation
|
|
257
269
|
load: T.nilable(T::Boolean),
|
258
270
|
error_on_ignore: T.nilable(T::Boolean),
|
259
271
|
block: T.nilable(T.proc.params(e: School::ActiveRecord_AssociationRelation).void)
|
260
|
-
).returns(
|
272
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
261
273
|
end
|
262
274
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
263
275
|
end
|
@@ -159,7 +159,7 @@ module Spell::QueryMethodsReturningRelation
|
|
159
159
|
load: T.nilable(T::Boolean),
|
160
160
|
error_on_ignore: T.nilable(T::Boolean),
|
161
161
|
block: T.nilable(T.proc.params(e: Spell::ActiveRecord_Relation).void)
|
162
|
-
).returns(
|
162
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
163
163
|
end
|
164
164
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
165
165
|
end
|
@@ -260,7 +260,7 @@ module Spell::QueryMethodsReturningAssociationRelation
|
|
260
260
|
load: T.nilable(T::Boolean),
|
261
261
|
error_on_ignore: T.nilable(T::Boolean),
|
262
262
|
block: T.nilable(T.proc.params(e: Spell::ActiveRecord_AssociationRelation).void)
|
263
|
-
).returns(
|
263
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
264
264
|
end
|
265
265
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
266
266
|
end
|
@@ -31,14 +31,38 @@ module Spell::HABTM_SpellBooks::GeneratedAssociationMethods
|
|
31
31
|
sig { returns(T.nilable(::Spell)) }
|
32
32
|
def left_side; end
|
33
33
|
|
34
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Spell).void)).returns(::Spell) }
|
35
|
+
def build_left_side(*args, &block); end
|
36
|
+
|
37
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Spell).void)).returns(::Spell) }
|
38
|
+
def create_left_side(*args, &block); end
|
39
|
+
|
40
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Spell).void)).returns(::Spell) }
|
41
|
+
def create_left_side!(*args, &block); end
|
42
|
+
|
34
43
|
sig { params(value: T.nilable(::Spell)).void }
|
35
44
|
def left_side=(value); end
|
36
45
|
|
46
|
+
sig { returns(T.nilable(::Spell)) }
|
47
|
+
def reload_left_side; end
|
48
|
+
|
37
49
|
sig { returns(::SpellBook) }
|
38
50
|
def spell_book; end
|
39
51
|
|
52
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::SpellBook).void)).returns(::SpellBook) }
|
53
|
+
def build_spell_book(*args, &block); end
|
54
|
+
|
55
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::SpellBook).void)).returns(::SpellBook) }
|
56
|
+
def create_spell_book(*args, &block); end
|
57
|
+
|
58
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::SpellBook).void)).returns(::SpellBook) }
|
59
|
+
def create_spell_book!(*args, &block); end
|
60
|
+
|
40
61
|
sig { params(value: ::SpellBook).void }
|
41
62
|
def spell_book=(value); end
|
63
|
+
|
64
|
+
sig { returns(::SpellBook) }
|
65
|
+
def reload_spell_book; end
|
42
66
|
end
|
43
67
|
|
44
68
|
module Spell::HABTM_SpellBooks::CustomFinderMethods
|
@@ -162,7 +186,7 @@ module Spell::HABTM_SpellBooks::QueryMethodsReturningRelation
|
|
162
186
|
load: T.nilable(T::Boolean),
|
163
187
|
error_on_ignore: T.nilable(T::Boolean),
|
164
188
|
block: T.nilable(T.proc.params(e: Spell::HABTM_SpellBooks::ActiveRecord_Relation).void)
|
165
|
-
).returns(
|
189
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
166
190
|
end
|
167
191
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
168
192
|
end
|
@@ -263,7 +287,7 @@ module Spell::HABTM_SpellBooks::QueryMethodsReturningAssociationRelation
|
|
263
287
|
load: T.nilable(T::Boolean),
|
264
288
|
error_on_ignore: T.nilable(T::Boolean),
|
265
289
|
block: T.nilable(T.proc.params(e: Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation).void)
|
266
|
-
).returns(
|
290
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
267
291
|
end
|
268
292
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
269
293
|
end
|
@@ -65,15 +65,6 @@ module SpellBook::GeneratedAttributeMethods
|
|
65
65
|
def wizard_id?; end
|
66
66
|
end
|
67
67
|
|
68
|
-
class SpellBook::BookType < T::Enum
|
69
|
-
enums do
|
70
|
-
Unclassified = new(%q{unclassified})
|
71
|
-
Biology = new(%q{biology})
|
72
|
-
DarkArt = new(%q{dark_art})
|
73
|
-
end
|
74
|
-
|
75
|
-
end
|
76
|
-
|
77
68
|
module SpellBook::GeneratedAssociationMethods
|
78
69
|
sig { returns(::Spell::ActiveRecord_Associations_CollectionProxy) }
|
79
70
|
def spells; end
|
@@ -87,8 +78,20 @@ module SpellBook::GeneratedAssociationMethods
|
|
87
78
|
sig { returns(::Wizard) }
|
88
79
|
def wizard; end
|
89
80
|
|
81
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
82
|
+
def build_wizard(*args, &block); end
|
83
|
+
|
84
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
85
|
+
def create_wizard(*args, &block); end
|
86
|
+
|
87
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
88
|
+
def create_wizard!(*args, &block); end
|
89
|
+
|
90
90
|
sig { params(value: ::Wizard).void }
|
91
91
|
def wizard=(value); end
|
92
|
+
|
93
|
+
sig { returns(::Wizard) }
|
94
|
+
def reload_wizard; end
|
92
95
|
end
|
93
96
|
|
94
97
|
module SpellBook::CustomFinderMethods
|
@@ -136,6 +139,15 @@ class SpellBook < ApplicationRecord
|
|
136
139
|
|
137
140
|
sig { params(value: SpellBook::BookType).void }
|
138
141
|
def typed_book_type=(value); end
|
142
|
+
|
143
|
+
class BookType < T::Enum
|
144
|
+
enums do
|
145
|
+
Unclassified = new(%q{unclassified})
|
146
|
+
Biology = new(%q{biology})
|
147
|
+
DarkArt = new(%q{dark_art})
|
148
|
+
end
|
149
|
+
|
150
|
+
end
|
139
151
|
end
|
140
152
|
|
141
153
|
class SpellBook::ActiveRecord_Relation < ActiveRecord::Relation
|
@@ -302,7 +314,7 @@ module SpellBook::QueryMethodsReturningRelation
|
|
302
314
|
load: T.nilable(T::Boolean),
|
303
315
|
error_on_ignore: T.nilable(T::Boolean),
|
304
316
|
block: T.nilable(T.proc.params(e: SpellBook::ActiveRecord_Relation).void)
|
305
|
-
).returns(
|
317
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
306
318
|
end
|
307
319
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
308
320
|
end
|
@@ -403,7 +415,7 @@ module SpellBook::QueryMethodsReturningAssociationRelation
|
|
403
415
|
load: T.nilable(T::Boolean),
|
404
416
|
error_on_ignore: T.nilable(T::Boolean),
|
405
417
|
block: T.nilable(T.proc.params(e: SpellBook::ActiveRecord_AssociationRelation).void)
|
406
|
-
).returns(
|
418
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
407
419
|
end
|
408
420
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
409
421
|
end
|
@@ -31,14 +31,38 @@ module SpellBook::HABTM_Spells::GeneratedAssociationMethods
|
|
31
31
|
sig { returns(T.nilable(::SpellBook)) }
|
32
32
|
def left_side; end
|
33
33
|
|
34
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::SpellBook).void)).returns(::SpellBook) }
|
35
|
+
def build_left_side(*args, &block); end
|
36
|
+
|
37
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::SpellBook).void)).returns(::SpellBook) }
|
38
|
+
def create_left_side(*args, &block); end
|
39
|
+
|
40
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::SpellBook).void)).returns(::SpellBook) }
|
41
|
+
def create_left_side!(*args, &block); end
|
42
|
+
|
34
43
|
sig { params(value: T.nilable(::SpellBook)).void }
|
35
44
|
def left_side=(value); end
|
36
45
|
|
46
|
+
sig { returns(T.nilable(::SpellBook)) }
|
47
|
+
def reload_left_side; end
|
48
|
+
|
37
49
|
sig { returns(::Spell) }
|
38
50
|
def spell; end
|
39
51
|
|
52
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Spell).void)).returns(::Spell) }
|
53
|
+
def build_spell(*args, &block); end
|
54
|
+
|
55
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Spell).void)).returns(::Spell) }
|
56
|
+
def create_spell(*args, &block); end
|
57
|
+
|
58
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Spell).void)).returns(::Spell) }
|
59
|
+
def create_spell!(*args, &block); end
|
60
|
+
|
40
61
|
sig { params(value: ::Spell).void }
|
41
62
|
def spell=(value); end
|
63
|
+
|
64
|
+
sig { returns(::Spell) }
|
65
|
+
def reload_spell; end
|
42
66
|
end
|
43
67
|
|
44
68
|
module SpellBook::HABTM_Spells::CustomFinderMethods
|
@@ -162,7 +186,7 @@ module SpellBook::HABTM_Spells::QueryMethodsReturningRelation
|
|
162
186
|
load: T.nilable(T::Boolean),
|
163
187
|
error_on_ignore: T.nilable(T::Boolean),
|
164
188
|
block: T.nilable(T.proc.params(e: SpellBook::HABTM_Spells::ActiveRecord_Relation).void)
|
165
|
-
).returns(
|
189
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
166
190
|
end
|
167
191
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
168
192
|
end
|
@@ -263,7 +287,7 @@ module SpellBook::HABTM_Spells::QueryMethodsReturningAssociationRelation
|
|
263
287
|
load: T.nilable(T::Boolean),
|
264
288
|
error_on_ignore: T.nilable(T::Boolean),
|
265
289
|
block: T.nilable(T.proc.params(e: SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation).void)
|
266
|
-
).returns(
|
290
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
267
291
|
end
|
268
292
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
269
293
|
end
|
@@ -111,6 +111,44 @@ module Squib::ActiveRelation_WhereNot
|
|
111
111
|
def not(opts, *rest); end
|
112
112
|
end
|
113
113
|
|
114
|
+
module Squib::GeneratedSerializedAttributeMethods
|
115
|
+
sig { returns(T.nilable(T.any(T::Array[T.untyped], T::Boolean, Float, T::Hash[T.untyped, T.untyped], Integer, String))) }
|
116
|
+
def newt_subjects; end
|
117
|
+
|
118
|
+
sig { params(value: T.nilable(T.any(T::Array[T.untyped], T::Boolean, Float, T::Hash[T.untyped, T.untyped], Integer, String))).void }
|
119
|
+
def newt_subjects=(value); end
|
120
|
+
|
121
|
+
sig { returns(T::Boolean) }
|
122
|
+
def newt_subjects?; end
|
123
|
+
|
124
|
+
sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
|
125
|
+
def owl_results; end
|
126
|
+
|
127
|
+
sig { params(value: T.nilable(T::Hash[T.untyped, T.untyped])).void }
|
128
|
+
def owl_results=(value); end
|
129
|
+
|
130
|
+
sig { returns(T::Boolean) }
|
131
|
+
def owl_results?; end
|
132
|
+
|
133
|
+
sig { returns(T.nilable(T.any(T::Array[T.untyped], T::Boolean, Float, T::Hash[T.untyped, T.untyped], Integer, String))) }
|
134
|
+
def patronus_characteristics; end
|
135
|
+
|
136
|
+
sig { params(value: T.nilable(T.any(T::Array[T.untyped], T::Boolean, Float, T::Hash[T.untyped, T.untyped], Integer, String))).void }
|
137
|
+
def patronus_characteristics=(value); end
|
138
|
+
|
139
|
+
sig { returns(T::Boolean) }
|
140
|
+
def patronus_characteristics?; end
|
141
|
+
|
142
|
+
sig { returns(T.nilable(T::Array[T.untyped])) }
|
143
|
+
def pets; end
|
144
|
+
|
145
|
+
sig { params(value: T.nilable(T::Array[T.untyped])).void }
|
146
|
+
def pets=(value); end
|
147
|
+
|
148
|
+
sig { returns(T::Boolean) }
|
149
|
+
def pets?; end
|
150
|
+
end
|
151
|
+
|
114
152
|
module Squib::GeneratedAttributeMethods
|
115
153
|
sig { returns(T.nilable(String)) }
|
116
154
|
def broom; end
|
@@ -252,9 +290,21 @@ module Squib::GeneratedAssociationMethods
|
|
252
290
|
sig { returns(T.nilable(::School)) }
|
253
291
|
def school; end
|
254
292
|
|
293
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::School).void)).returns(::School) }
|
294
|
+
def build_school(*args, &block); end
|
295
|
+
|
296
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::School).void)).returns(::School) }
|
297
|
+
def create_school(*args, &block); end
|
298
|
+
|
299
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::School).void)).returns(::School) }
|
300
|
+
def create_school!(*args, &block); end
|
301
|
+
|
255
302
|
sig { params(value: T.nilable(::School)).void }
|
256
303
|
def school=(value); end
|
257
304
|
|
305
|
+
sig { returns(T.nilable(::School)) }
|
306
|
+
def reload_school; end
|
307
|
+
|
258
308
|
sig { returns(::SpellBook::ActiveRecord_Associations_CollectionProxy) }
|
259
309
|
def spell_books; end
|
260
310
|
|
@@ -276,8 +326,20 @@ module Squib::GeneratedAssociationMethods
|
|
276
326
|
sig { returns(T.nilable(::Wand)) }
|
277
327
|
def wand; end
|
278
328
|
|
329
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wand).void)).returns(::Wand) }
|
330
|
+
def build_wand(*args, &block); end
|
331
|
+
|
332
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wand).void)).returns(::Wand) }
|
333
|
+
def create_wand(*args, &block); end
|
334
|
+
|
335
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wand).void)).returns(::Wand) }
|
336
|
+
def create_wand!(*args, &block); end
|
337
|
+
|
279
338
|
sig { params(value: T.nilable(::Wand)).void }
|
280
339
|
def wand=(value); end
|
340
|
+
|
341
|
+
sig { returns(T.nilable(::Wand)) }
|
342
|
+
def reload_wand; end
|
281
343
|
end
|
282
344
|
|
283
345
|
module Squib::CustomFinderMethods
|
@@ -299,6 +361,7 @@ end
|
|
299
361
|
|
300
362
|
class Squib < Wizard
|
301
363
|
include Squib::EnumInstanceMethods
|
364
|
+
include Squib::GeneratedSerializedAttributeMethods
|
302
365
|
include Squib::GeneratedAttributeMethods
|
303
366
|
include Squib::GeneratedAssociationMethods
|
304
367
|
extend Squib::CustomFinderMethods
|
@@ -668,7 +731,7 @@ module Squib::QueryMethodsReturningRelation
|
|
668
731
|
load: T.nilable(T::Boolean),
|
669
732
|
error_on_ignore: T.nilable(T::Boolean),
|
670
733
|
block: T.nilable(T.proc.params(e: Squib::ActiveRecord_Relation).void)
|
671
|
-
).returns(
|
734
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
672
735
|
end
|
673
736
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
674
737
|
end
|
@@ -769,7 +832,7 @@ module Squib::QueryMethodsReturningAssociationRelation
|
|
769
832
|
load: T.nilable(T::Boolean),
|
770
833
|
error_on_ignore: T.nilable(T::Boolean),
|
771
834
|
block: T.nilable(T.proc.params(e: Squib::ActiveRecord_AssociationRelation).void)
|
772
|
-
).returns(
|
835
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
773
836
|
end
|
774
837
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
775
838
|
end
|