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
@@ -2,10 +2,10 @@
|
|
2
2
|
# This is an autogenerated file for Rails' jobs.
|
3
3
|
# Please rerun bundle exec rake rails_rbi:jobs to regenerate.
|
4
4
|
class ApplicationJob
|
5
|
-
sig { params(_: T.untyped).
|
5
|
+
sig { params(_: T.untyped).returns(ApplicationJob) }
|
6
6
|
def self.perform_later(*_); end
|
7
7
|
|
8
|
-
sig { params(_: T.untyped).
|
8
|
+
sig { params(_: T.untyped).returns(ApplicationJob) }
|
9
9
|
def self.perform_now(*_); end
|
10
10
|
|
11
11
|
sig do
|
@@ -11,14 +11,38 @@ module ActiveStorage::Attachment::GeneratedAssociationMethods
|
|
11
11
|
sig { returns(::ActiveStorage::Blob) }
|
12
12
|
def blob; end
|
13
13
|
|
14
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Blob).void)).returns(::ActiveStorage::Blob) }
|
15
|
+
def build_blob(*args, &block); end
|
16
|
+
|
17
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Blob).void)).returns(::ActiveStorage::Blob) }
|
18
|
+
def create_blob(*args, &block); end
|
19
|
+
|
20
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Blob).void)).returns(::ActiveStorage::Blob) }
|
21
|
+
def create_blob!(*args, &block); end
|
22
|
+
|
14
23
|
sig { params(value: ::ActiveStorage::Blob).void }
|
15
24
|
def blob=(value); end
|
16
25
|
|
26
|
+
sig { returns(::ActiveStorage::Blob) }
|
27
|
+
def reload_blob; end
|
28
|
+
|
17
29
|
sig { returns(T.untyped) }
|
18
30
|
def record; end
|
19
31
|
|
32
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: T.untyped).void)).returns(T.untyped) }
|
33
|
+
def build_record(*args, &block); end
|
34
|
+
|
35
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: T.untyped).void)).returns(T.untyped) }
|
36
|
+
def create_record(*args, &block); end
|
37
|
+
|
38
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: T.untyped).void)).returns(T.untyped) }
|
39
|
+
def create_record!(*args, &block); end
|
40
|
+
|
20
41
|
sig { params(value: T.untyped).void }
|
21
42
|
def record=(value); end
|
43
|
+
|
44
|
+
sig { returns(T.untyped) }
|
45
|
+
def reload_record; end
|
22
46
|
end
|
23
47
|
|
24
48
|
module ActiveStorage::Attachment::CustomFinderMethods
|
@@ -153,7 +177,7 @@ module ActiveStorage::Attachment::QueryMethodsReturningRelation
|
|
153
177
|
load: T.nilable(T::Boolean),
|
154
178
|
error_on_ignore: T.nilable(T::Boolean),
|
155
179
|
block: T.nilable(T.proc.params(e: ActiveStorage::Attachment::ActiveRecord_Relation).void)
|
156
|
-
).returns(
|
180
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
157
181
|
end
|
158
182
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
159
183
|
end
|
@@ -266,7 +290,7 @@ module ActiveStorage::Attachment::QueryMethodsReturningAssociationRelation
|
|
266
290
|
load: T.nilable(T::Boolean),
|
267
291
|
error_on_ignore: T.nilable(T::Boolean),
|
268
292
|
block: T.nilable(T.proc.params(e: ActiveStorage::Attachment::ActiveRecord_AssociationRelation).void)
|
269
|
-
).returns(
|
293
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
270
294
|
end
|
271
295
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
272
296
|
end
|
@@ -2,10 +2,10 @@
|
|
2
2
|
# This is an autogenerated file for Rails' jobs.
|
3
3
|
# Please rerun bundle exec rake rails_rbi:jobs to regenerate.
|
4
4
|
class AwardHousePointHourglasses
|
5
|
-
sig { params(student: Wizard, point: Integer).
|
5
|
+
sig { params(student: Wizard, point: Integer).returns(AwardHousePointHourglasses) }
|
6
6
|
def self.perform_later(student:, point:); end
|
7
7
|
|
8
|
-
sig { params(student: Wizard, point: Integer).
|
8
|
+
sig { params(student: Wizard, point: Integer).returns(AwardHousePointHourglasses) }
|
9
9
|
def self.perform_now(student:, point:); end
|
10
10
|
|
11
11
|
sig do
|
@@ -195,7 +195,7 @@ module ActiveStorage::Blob::QueryMethodsReturningRelation
|
|
195
195
|
load: T.nilable(T::Boolean),
|
196
196
|
error_on_ignore: T.nilable(T::Boolean),
|
197
197
|
block: T.nilable(T.proc.params(e: ActiveStorage::Blob::ActiveRecord_Relation).void)
|
198
|
-
).returns(
|
198
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
199
199
|
end
|
200
200
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
201
201
|
end
|
@@ -308,7 +308,7 @@ module ActiveStorage::Blob::QueryMethodsReturningAssociationRelation
|
|
308
308
|
load: T.nilable(T::Boolean),
|
309
309
|
error_on_ignore: T.nilable(T::Boolean),
|
310
310
|
block: T.nilable(T.proc.params(e: ActiveStorage::Blob::ActiveRecord_AssociationRelation).void)
|
311
|
-
).returns(
|
311
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
312
312
|
end
|
313
313
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
314
314
|
end
|
@@ -317,7 +317,7 @@ module ActiveStorage::Blob::GeneratedAssociationMethods
|
|
317
317
|
sig { returns(::ActiveStorage::Attachment::ActiveRecord_Associations_CollectionProxy) }
|
318
318
|
def attachments; end
|
319
319
|
|
320
|
-
sig { returns(T::Array[
|
320
|
+
sig { returns(T::Array[T.untyped]) }
|
321
321
|
def attachment_ids; end
|
322
322
|
|
323
323
|
sig { params(value: T::Enumerable[::ActiveStorage::Attachment]).void }
|
@@ -326,15 +326,39 @@ module ActiveStorage::Blob::GeneratedAssociationMethods
|
|
326
326
|
sig { returns(T.nilable(::ActiveStorage::Attachment)) }
|
327
327
|
def preview_image_attachment; end
|
328
328
|
|
329
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Attachment).void)).returns(::ActiveStorage::Attachment) }
|
330
|
+
def build_preview_image_attachment(*args, &block); end
|
331
|
+
|
332
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Attachment).void)).returns(::ActiveStorage::Attachment) }
|
333
|
+
def create_preview_image_attachment(*args, &block); end
|
334
|
+
|
335
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Attachment).void)).returns(::ActiveStorage::Attachment) }
|
336
|
+
def create_preview_image_attachment!(*args, &block); end
|
337
|
+
|
329
338
|
sig { params(value: T.nilable(::ActiveStorage::Attachment)).void }
|
330
339
|
def preview_image_attachment=(value); end
|
331
340
|
|
341
|
+
sig { returns(T.nilable(::ActiveStorage::Attachment)) }
|
342
|
+
def reload_preview_image_attachment; end
|
343
|
+
|
332
344
|
sig { returns(T.nilable(::ActiveStorage::Blob)) }
|
333
345
|
def preview_image_blob; end
|
334
346
|
|
347
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Blob).void)).returns(::ActiveStorage::Blob) }
|
348
|
+
def build_preview_image_blob(*args, &block); end
|
349
|
+
|
350
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Blob).void)).returns(::ActiveStorage::Blob) }
|
351
|
+
def create_preview_image_blob(*args, &block); end
|
352
|
+
|
353
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Blob).void)).returns(::ActiveStorage::Blob) }
|
354
|
+
def create_preview_image_blob!(*args, &block); end
|
355
|
+
|
335
356
|
sig { params(value: T.nilable(::ActiveStorage::Blob)).void }
|
336
357
|
def preview_image_blob=(value); end
|
337
358
|
|
359
|
+
sig { returns(T.nilable(::ActiveStorage::Blob)) }
|
360
|
+
def reload_preview_image_blob; end
|
361
|
+
|
338
362
|
sig { returns(T.nilable(ActiveStorage::Attached::One)) }
|
339
363
|
def preview_image; end
|
340
364
|
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# typed: strong
|
2
|
+
# == Custom Generator ==
|
3
|
+
# This is an autogenerated file for Rails' jobs.
|
4
|
+
# Please rerun bundle exec rake rails_rbi:jobs to regenerate.
|
5
|
+
class ApplicationJob
|
6
|
+
sig { params(_: T.untyped).returns(ApplicationJob) }
|
7
|
+
def self.perform_later(*_); end
|
8
|
+
|
9
|
+
sig { params(_: T.untyped).returns(ApplicationJob) }
|
10
|
+
def self.perform_now(*_); end
|
11
|
+
|
12
|
+
sig do
|
13
|
+
params(
|
14
|
+
wait: T.nilable(ActiveSupport::Duration),
|
15
|
+
wait_until: T.nilable(T.any(ActiveSupport::TimeWithZone, Date, Time)),
|
16
|
+
queue: T.nilable(T.any(String, Symbol)),
|
17
|
+
priority: T.nilable(Integer)
|
18
|
+
).returns(T.self_type)
|
19
|
+
end
|
20
|
+
def self.set(wait: nil, wait_until: nil, queue: nil, priority: nil); end
|
21
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# typed: strong
|
2
|
+
# == Custom Generator ==
|
3
|
+
# This is an autogenerated file for Rails' jobs.
|
4
|
+
# Please rerun bundle exec rake rails_rbi:jobs to regenerate.
|
5
|
+
class AwardHousePointHourglasses
|
6
|
+
sig { params(student: Wizard, point: Integer).returns(AwardHousePointHourglasses) }
|
7
|
+
def self.perform_later(student:, point:); end
|
8
|
+
|
9
|
+
sig { params(student: Wizard, point: Integer).returns(AwardHousePointHourglasses) }
|
10
|
+
def self.perform_now(student:, point:); end
|
11
|
+
|
12
|
+
sig do
|
13
|
+
params(
|
14
|
+
wait: T.nilable(ActiveSupport::Duration),
|
15
|
+
wait_until: T.nilable(T.any(ActiveSupport::TimeWithZone, Date, Time)),
|
16
|
+
queue: T.nilable(T.any(String, Symbol)),
|
17
|
+
priority: T.nilable(Integer)
|
18
|
+
).returns(T.self_type)
|
19
|
+
end
|
20
|
+
def self.set(wait: nil, wait_until: nil, queue: nil, priority: nil); end
|
21
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# typed: strong
|
2
|
+
# == Custom Generator ==
|
3
|
+
# This is an autogenerated file for Rails' mailers.
|
4
|
+
# Please rerun bundle exec rake rails_rbi:mailers to regenerate.
|
5
|
+
class DailyProphetMailer
|
6
|
+
sig { params(wizards: T::Array[Wizard], hotnews_only: T::Boolean).returns(ActionMailer::MessageDelivery) }
|
7
|
+
def self.notify_subscribers(wizards:, hotnews_only:); end
|
8
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# typed: strong
|
2
|
+
# == Custom Generator ==
|
3
|
+
# This is an autogenerated file for Rails' mailers.
|
4
|
+
# Please rerun bundle exec rake rails_rbi:mailers to regenerate.
|
5
|
+
class HogwartsAcceptanceMailer
|
6
|
+
sig { params(student: Wizard).returns(ActionMailer::MessageDelivery) }
|
7
|
+
def self.notify(student); end
|
8
|
+
|
9
|
+
sig { params(student: T.untyped).returns(ActionMailer::MessageDelivery) }
|
10
|
+
def self.notify_retry(student); end
|
11
|
+
|
12
|
+
sig do
|
13
|
+
params(
|
14
|
+
teacher: Wizard,
|
15
|
+
note: String,
|
16
|
+
student: Wizard,
|
17
|
+
special: T::Boolean
|
18
|
+
).returns(ActionMailer::MessageDelivery)
|
19
|
+
end
|
20
|
+
def self.notify_teacher(teacher, note = nil, student:, special: false); end
|
21
|
+
end
|
@@ -40,14 +40,38 @@ module Headmaster::GeneratedAssociationMethods
|
|
40
40
|
sig { returns(::School) }
|
41
41
|
def school; end
|
42
42
|
|
43
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::School).void)).returns(::School) }
|
44
|
+
def build_school(*args, &block); end
|
45
|
+
|
46
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::School).void)).returns(::School) }
|
47
|
+
def create_school(*args, &block); end
|
48
|
+
|
49
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::School).void)).returns(::School) }
|
50
|
+
def create_school!(*args, &block); end
|
51
|
+
|
43
52
|
sig { params(value: ::School).void }
|
44
53
|
def school=(value); end
|
45
54
|
|
55
|
+
sig { returns(::School) }
|
56
|
+
def reload_school; end
|
57
|
+
|
46
58
|
sig { returns(::Wizard) }
|
47
59
|
def wizard; end
|
48
60
|
|
61
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
62
|
+
def build_wizard(*args, &block); end
|
63
|
+
|
64
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
65
|
+
def create_wizard(*args, &block); end
|
66
|
+
|
67
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
68
|
+
def create_wizard!(*args, &block); end
|
69
|
+
|
49
70
|
sig { params(value: ::Wizard).void }
|
50
71
|
def wizard=(value); end
|
72
|
+
|
73
|
+
sig { returns(::Wizard) }
|
74
|
+
def reload_wizard; end
|
51
75
|
end
|
52
76
|
|
53
77
|
module Headmaster::CustomFinderMethods
|
@@ -183,7 +207,7 @@ module Headmaster::QueryMethodsReturningRelation
|
|
183
207
|
load: T.nilable(T::Boolean),
|
184
208
|
error_on_ignore: T.nilable(T::Boolean),
|
185
209
|
block: T.nilable(T.proc.params(e: Headmaster::ActiveRecord_Relation).void)
|
186
|
-
).returns(
|
210
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
187
211
|
end
|
188
212
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
189
213
|
end
|
@@ -296,7 +320,7 @@ module Headmaster::QueryMethodsReturningAssociationRelation
|
|
296
320
|
load: T.nilable(T::Boolean),
|
297
321
|
error_on_ignore: T.nilable(T::Boolean),
|
298
322
|
block: T.nilable(T.proc.params(e: Headmaster::ActiveRecord_AssociationRelation).void)
|
299
|
-
).returns(
|
323
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
300
324
|
end
|
301
325
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
302
326
|
end
|
@@ -177,7 +177,7 @@ module ActiveRecord::InternalMetadata::QueryMethodsReturningRelation
|
|
177
177
|
load: T.nilable(T::Boolean),
|
178
178
|
error_on_ignore: T.nilable(T::Boolean),
|
179
179
|
block: T.nilable(T.proc.params(e: ActiveRecord::InternalMetadata::ActiveRecord_Relation).void)
|
180
|
-
).returns(
|
180
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
181
181
|
end
|
182
182
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
183
183
|
end
|
@@ -290,7 +290,7 @@ module ActiveRecord::InternalMetadata::QueryMethodsReturningAssociationRelation
|
|
290
290
|
load: T.nilable(T::Boolean),
|
291
291
|
error_on_ignore: T.nilable(T::Boolean),
|
292
292
|
block: T.nilable(T.proc.params(e: ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation).void)
|
293
|
-
).returns(
|
293
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
294
294
|
end
|
295
295
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
296
296
|
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
|
@@ -147,7 +159,7 @@ module Potion::QueryMethodsReturningRelation
|
|
147
159
|
load: T.nilable(T::Boolean),
|
148
160
|
error_on_ignore: T.nilable(T::Boolean),
|
149
161
|
block: T.nilable(T.proc.params(e: Potion::ActiveRecord_Relation).void)
|
150
|
-
).returns(
|
162
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
151
163
|
end
|
152
164
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
153
165
|
end
|
@@ -260,7 +272,7 @@ module Potion::QueryMethodsReturningAssociationRelation
|
|
260
272
|
load: T.nilable(T::Boolean),
|
261
273
|
error_on_ignore: T.nilable(T::Boolean),
|
262
274
|
block: T.nilable(T.proc.params(e: Potion::ActiveRecord_AssociationRelation).void)
|
263
|
-
).returns(
|
275
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
264
276
|
end
|
265
277
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
266
278
|
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
|
@@ -168,7 +180,7 @@ module Robe::QueryMethodsReturningRelation
|
|
168
180
|
load: T.nilable(T::Boolean),
|
169
181
|
error_on_ignore: T.nilable(T::Boolean),
|
170
182
|
block: T.nilable(T.proc.params(e: Robe::ActiveRecord_Relation).void)
|
171
|
-
).returns(
|
183
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
172
184
|
end
|
173
185
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
174
186
|
end
|
@@ -281,7 +293,7 @@ module Robe::QueryMethodsReturningAssociationRelation
|
|
281
293
|
load: T.nilable(T::Boolean),
|
282
294
|
error_on_ignore: T.nilable(T::Boolean),
|
283
295
|
block: T.nilable(T.proc.params(e: Robe::ActiveRecord_AssociationRelation).void)
|
284
|
-
).returns(
|
296
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
285
297
|
end
|
286
298
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
287
299
|
end
|
@@ -150,7 +150,7 @@ module ActiveRecord::SchemaMigration::QueryMethodsReturningRelation
|
|
150
150
|
load: T.nilable(T::Boolean),
|
151
151
|
error_on_ignore: T.nilable(T::Boolean),
|
152
152
|
block: T.nilable(T.proc.params(e: ActiveRecord::SchemaMigration::ActiveRecord_Relation).void)
|
153
|
-
).returns(
|
153
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
154
154
|
end
|
155
155
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
156
156
|
end
|
@@ -263,7 +263,7 @@ module ActiveRecord::SchemaMigration::QueryMethodsReturningAssociationRelation
|
|
263
263
|
load: T.nilable(T::Boolean),
|
264
264
|
error_on_ignore: T.nilable(T::Boolean),
|
265
265
|
block: T.nilable(T.proc.params(e: ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation).void)
|
266
|
-
).returns(
|
266
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
267
267
|
end
|
268
268
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
269
269
|
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
|
@@ -168,7 +180,7 @@ module School::QueryMethodsReturningRelation
|
|
168
180
|
load: T.nilable(T::Boolean),
|
169
181
|
error_on_ignore: T.nilable(T::Boolean),
|
170
182
|
block: T.nilable(T.proc.params(e: School::ActiveRecord_Relation).void)
|
171
|
-
).returns(
|
183
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
172
184
|
end
|
173
185
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
174
186
|
end
|
@@ -281,7 +293,7 @@ module School::QueryMethodsReturningAssociationRelation
|
|
281
293
|
load: T.nilable(T::Boolean),
|
282
294
|
error_on_ignore: T.nilable(T::Boolean),
|
283
295
|
block: T.nilable(T.proc.params(e: School::ActiveRecord_AssociationRelation).void)
|
284
|
-
).returns(
|
296
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
285
297
|
end
|
286
298
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
287
299
|
end
|