sorbet-rails 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +15 -4
- data/lib/sorbet-rails/dependent_gem_rbis/README.md +1 -0
- data/lib/sorbet-rails/{actionmailer.rbi → dependent_gem_rbis/actionmailer.rbi} +0 -0
- data/lib/sorbet-rails/dependent_gem_rbis/activejob.rbi +3 -0
- data/lib/sorbet-rails/{activerecord.rbi → dependent_gem_rbis/activerecord.rbi} +0 -0
- data/lib/sorbet-rails/job_rbi_formatter.rb +75 -0
- data/lib/sorbet-rails/mailer_rbi_formatter.rb +1 -1
- data/lib/sorbet-rails/model_plugins/active_record_finder_methods.rb +1 -1
- data/lib/sorbet-rails/tasks/rails_rbi.rake +20 -0
- data/lib/sorbet-rails/type_assert/type_assert.rb +5 -0
- data/sorbet-rails.gemspec +1 -1
- data/spec/generators/rails-template.rb +17 -0
- data/spec/generators/sorbet_test_cases.rb +12 -0
- data/spec/job_rbi_formatter_spec.rb +13 -0
- data/spec/rake_rails_rbi_jobs_spec.rb +20 -0
- data/spec/support/v5.0/Gemfile.lock +8 -8
- data/spec/support/v5.0/app/jobs/award_house_point_hourglasses.rb +12 -0
- data/spec/support/v5.0/sorbet_test_cases.rb +12 -0
- data/spec/support/v5.1/Gemfile.lock +8 -8
- data/spec/support/v5.1/app/jobs/award_house_point_hourglasses.rb +12 -0
- data/spec/support/v5.1/sorbet_test_cases.rb +12 -0
- data/spec/support/v5.2/Gemfile.lock +44 -44
- data/spec/support/v5.2/app/jobs/award_house_point_hourglasses.rb +12 -0
- data/spec/support/v5.2/sorbet_test_cases.rb +12 -0
- data/spec/support/v6.0/Gemfile.lock +58 -58
- data/spec/support/v6.0/app/jobs/award_house_point_hourglasses.rb +12 -0
- data/spec/support/v6.0/sorbet_test_cases.rb +12 -0
- data/spec/test_data/v5.0/expected_application_job.rbi +20 -0
- data/spec/test_data/v5.0/expected_application_mailer.rbi +1 -1
- data/spec/test_data/v5.0/expected_award_house_point_hourglasses.rbi +20 -0
- data/spec/test_data/v5.0/expected_daily_prophet_mailer.rbi +1 -1
- data/spec/test_data/v5.0/expected_hogwarts_acceptance_mailer.rbi +1 -1
- data/spec/test_data/v5.0/expected_internal_metadata.rbi +12 -0
- data/spec/test_data/v5.0/expected_potion.rbi +12 -0
- data/spec/test_data/v5.0/expected_robe.rbi +12 -0
- data/spec/test_data/v5.0/expected_schema_migration.rbi +12 -0
- data/spec/test_data/v5.0/expected_school.rbi +12 -0
- data/spec/test_data/v5.0/expected_spell_book.rbi +12 -0
- data/spec/test_data/v5.0/expected_squib.rbi +12 -0
- data/spec/test_data/v5.0/expected_wand.rbi +12 -0
- data/spec/test_data/v5.0/expected_wizard.rbi +12 -0
- data/spec/test_data/v5.0/expected_wizard_wo_spellbook.rbi +12 -0
- data/spec/test_data/v5.1/expected_application_job.rbi +20 -0
- data/spec/test_data/v5.1/expected_application_mailer.rbi +1 -1
- data/spec/test_data/v5.1/expected_award_house_point_hourglasses.rbi +20 -0
- data/spec/test_data/v5.1/expected_daily_prophet_mailer.rbi +1 -1
- data/spec/test_data/v5.1/expected_hogwarts_acceptance_mailer.rbi +1 -1
- data/spec/test_data/v5.1/expected_internal_metadata.rbi +12 -0
- data/spec/test_data/v5.1/expected_potion.rbi +12 -0
- data/spec/test_data/v5.1/expected_robe.rbi +12 -0
- data/spec/test_data/v5.1/expected_schema_migration.rbi +12 -0
- data/spec/test_data/v5.1/expected_school.rbi +12 -0
- data/spec/test_data/v5.1/expected_spell_book.rbi +12 -0
- data/spec/test_data/v5.1/expected_squib.rbi +12 -0
- data/spec/test_data/v5.1/expected_wand.rbi +12 -0
- data/spec/test_data/v5.1/expected_wizard.rbi +12 -0
- data/spec/test_data/v5.1/expected_wizard_wo_spellbook.rbi +12 -0
- data/spec/test_data/v5.2/expected_application_job.rbi +20 -0
- data/spec/test_data/v5.2/expected_application_mailer.rbi +1 -1
- data/spec/test_data/v5.2/expected_attachment.rbi +12 -0
- data/spec/test_data/v5.2/expected_award_house_point_hourglasses.rbi +20 -0
- data/spec/test_data/v5.2/expected_blob.rbi +12 -0
- data/spec/test_data/v5.2/expected_daily_prophet_mailer.rbi +1 -1
- data/spec/test_data/v5.2/expected_hogwarts_acceptance_mailer.rbi +1 -1
- data/spec/test_data/v5.2/expected_internal_metadata.rbi +12 -0
- data/spec/test_data/v5.2/expected_potion.rbi +12 -0
- data/spec/test_data/v5.2/expected_robe.rbi +12 -0
- data/spec/test_data/v5.2/expected_schema_migration.rbi +12 -0
- data/spec/test_data/v5.2/expected_school.rbi +12 -0
- data/spec/test_data/v5.2/expected_spell_book.rbi +12 -0
- data/spec/test_data/v5.2/expected_squib.rbi +12 -0
- data/spec/test_data/v5.2/expected_wand.rbi +12 -0
- data/spec/test_data/v5.2/expected_wizard.rbi +12 -0
- data/spec/test_data/v5.2/expected_wizard_wo_spellbook.rbi +12 -0
- data/spec/test_data/v6.0/expected_application_job.rbi +20 -0
- data/spec/test_data/v6.0/expected_application_mailer.rbi +1 -1
- data/spec/test_data/v6.0/expected_attachment.rbi +12 -0
- data/spec/test_data/v6.0/expected_award_house_point_hourglasses.rbi +20 -0
- data/spec/test_data/v6.0/expected_blob.rbi +12 -0
- data/spec/test_data/v6.0/expected_daily_prophet_mailer.rbi +1 -1
- data/spec/test_data/v6.0/expected_hogwarts_acceptance_mailer.rbi +1 -1
- data/spec/test_data/v6.0/expected_internal_metadata.rbi +12 -0
- data/spec/test_data/v6.0/expected_potion.rbi +12 -0
- data/spec/test_data/v6.0/expected_robe.rbi +12 -0
- data/spec/test_data/v6.0/expected_schema_migration.rbi +12 -0
- data/spec/test_data/v6.0/expected_school.rbi +12 -0
- data/spec/test_data/v6.0/expected_spell_book.rbi +12 -0
- data/spec/test_data/v6.0/expected_squib.rbi +12 -0
- data/spec/test_data/v6.0/expected_wand.rbi +12 -0
- data/spec/test_data/v6.0/expected_wizard.rbi +12 -0
- data/spec/test_data/v6.0/expected_wizard_wo_spellbook.rbi +12 -0
- metadata +34 -3
@@ -578,6 +578,9 @@ class Wizard < ApplicationRecord
|
|
578
578
|
|
579
579
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
580
580
|
def self.one?(*args); end
|
581
|
+
|
582
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
583
|
+
def self.empty?(*args); end
|
581
584
|
end
|
582
585
|
|
583
586
|
class Wizard::ActiveRecord_Relation < ActiveRecord::Relation
|
@@ -749,6 +752,9 @@ class Wizard::ActiveRecord_Relation < ActiveRecord::Relation
|
|
749
752
|
|
750
753
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
751
754
|
def one?(*args); end
|
755
|
+
|
756
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
757
|
+
def empty?(*args); end
|
752
758
|
end
|
753
759
|
|
754
760
|
class Wizard::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
@@ -975,6 +981,9 @@ class Wizard::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelati
|
|
975
981
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
976
982
|
def one?(*args); end
|
977
983
|
|
984
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
985
|
+
def empty?(*args); end
|
986
|
+
|
978
987
|
sig { override.params(block: T.proc.params(e: Wizard).void).returns(T::Array[Wizard]) }
|
979
988
|
def each(&block); end
|
980
989
|
|
@@ -1216,6 +1225,9 @@ class Wizard::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associat
|
|
1216
1225
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
1217
1226
|
def one?(*args); end
|
1218
1227
|
|
1228
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
1229
|
+
def empty?(*args); end
|
1230
|
+
|
1219
1231
|
sig { override.params(block: T.proc.params(e: Wizard).void).returns(T::Array[Wizard]) }
|
1220
1232
|
def each(&block); end
|
1221
1233
|
|
@@ -578,6 +578,9 @@ class Wizard < ApplicationRecord
|
|
578
578
|
|
579
579
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
580
580
|
def self.one?(*args); end
|
581
|
+
|
582
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
583
|
+
def self.empty?(*args); end
|
581
584
|
end
|
582
585
|
|
583
586
|
class Wizard::ActiveRecord_Relation < ActiveRecord::Relation
|
@@ -749,6 +752,9 @@ class Wizard::ActiveRecord_Relation < ActiveRecord::Relation
|
|
749
752
|
|
750
753
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
751
754
|
def one?(*args); end
|
755
|
+
|
756
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
757
|
+
def empty?(*args); end
|
752
758
|
end
|
753
759
|
|
754
760
|
class Wizard::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
@@ -975,6 +981,9 @@ class Wizard::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelati
|
|
975
981
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
976
982
|
def one?(*args); end
|
977
983
|
|
984
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
985
|
+
def empty?(*args); end
|
986
|
+
|
978
987
|
sig { override.params(block: T.proc.params(e: Wizard).void).returns(T::Array[Wizard]) }
|
979
988
|
def each(&block); end
|
980
989
|
|
@@ -1216,6 +1225,9 @@ class Wizard::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associat
|
|
1216
1225
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
1217
1226
|
def one?(*args); end
|
1218
1227
|
|
1228
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
1229
|
+
def empty?(*args); end
|
1230
|
+
|
1219
1231
|
sig { override.params(block: T.proc.params(e: Wizard).void).returns(T::Array[Wizard]) }
|
1220
1232
|
def each(&block); end
|
1221
1233
|
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# typed: strong
|
2
|
+
# This is an autogenerated file for Rails' jobs.
|
3
|
+
# Please rerun bundle exec rake rails_rbi:jobs to regenerate.
|
4
|
+
class ApplicationJob
|
5
|
+
sig { params(_: T.untyped).void }
|
6
|
+
def self.perform_later(*_); end
|
7
|
+
|
8
|
+
sig { params(_: T.untyped).void }
|
9
|
+
def self.perform_now(*_); end
|
10
|
+
|
11
|
+
sig do
|
12
|
+
params(
|
13
|
+
wait: T.nilable(ActiveSupport::Duration),
|
14
|
+
wait_until: T.nilable(T.any(ActiveSupport::TimeWithZone, Date, Time)),
|
15
|
+
queue: T.nilable(T.any(String, Symbol)),
|
16
|
+
priority: T.nilable(Integer)
|
17
|
+
).returns(T.self_type)
|
18
|
+
end
|
19
|
+
def self.set(wait: nil, wait_until: nil, queue: nil, priority: nil); end
|
20
|
+
end
|
@@ -160,6 +160,9 @@ class ActiveStorage::Attachment < ActiveRecord::Base
|
|
160
160
|
|
161
161
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
162
162
|
def self.one?(*args); end
|
163
|
+
|
164
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
165
|
+
def self.empty?(*args); end
|
163
166
|
end
|
164
167
|
|
165
168
|
class ActiveStorage::Attachment::ActiveRecord_Relation < ActiveRecord::Relation
|
@@ -283,6 +286,9 @@ class ActiveStorage::Attachment::ActiveRecord_Relation < ActiveRecord::Relation
|
|
283
286
|
|
284
287
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
285
288
|
def one?(*args); end
|
289
|
+
|
290
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
291
|
+
def empty?(*args); end
|
286
292
|
end
|
287
293
|
|
288
294
|
class ActiveStorage::Attachment::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
@@ -461,6 +467,9 @@ class ActiveStorage::Attachment::ActiveRecord_AssociationRelation < ActiveRecord
|
|
461
467
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
462
468
|
def one?(*args); end
|
463
469
|
|
470
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
471
|
+
def empty?(*args); end
|
472
|
+
|
464
473
|
sig { override.params(block: T.proc.params(e: ActiveStorage::Attachment).void).returns(T::Array[ActiveStorage::Attachment]) }
|
465
474
|
def each(&block); end
|
466
475
|
|
@@ -654,6 +663,9 @@ class ActiveStorage::Attachment::ActiveRecord_Associations_CollectionProxy < Act
|
|
654
663
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
655
664
|
def one?(*args); end
|
656
665
|
|
666
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
667
|
+
def empty?(*args); end
|
668
|
+
|
657
669
|
sig { override.params(block: T.proc.params(e: ActiveStorage::Attachment).void).returns(T::Array[ActiveStorage::Attachment]) }
|
658
670
|
def each(&block); end
|
659
671
|
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# typed: strong
|
2
|
+
# This is an autogenerated file for Rails' jobs.
|
3
|
+
# Please rerun bundle exec rake rails_rbi:jobs to regenerate.
|
4
|
+
class AwardHousePointHourglasses
|
5
|
+
sig { params(student: Wizard, point: Integer).void }
|
6
|
+
def self.perform_later(student:, point:); end
|
7
|
+
|
8
|
+
sig { params(student: Wizard, point: Integer).void }
|
9
|
+
def self.perform_now(student:, point:); end
|
10
|
+
|
11
|
+
sig do
|
12
|
+
params(
|
13
|
+
wait: T.nilable(ActiveSupport::Duration),
|
14
|
+
wait_until: T.nilable(T.any(ActiveSupport::TimeWithZone, Date, Time)),
|
15
|
+
queue: T.nilable(T.any(String, Symbol)),
|
16
|
+
priority: T.nilable(Integer)
|
17
|
+
).returns(T.self_type)
|
18
|
+
end
|
19
|
+
def self.set(wait: nil, wait_until: nil, queue: nil, priority: nil); end
|
20
|
+
end
|
@@ -150,6 +150,9 @@ class ActiveStorage::Blob < ActiveRecord::Base
|
|
150
150
|
|
151
151
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
152
152
|
def self.one?(*args); end
|
153
|
+
|
154
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
155
|
+
def self.empty?(*args); end
|
153
156
|
end
|
154
157
|
|
155
158
|
class ActiveStorage::Blob::ActiveRecord_Relation < ActiveRecord::Relation
|
@@ -279,6 +282,9 @@ class ActiveStorage::Blob::ActiveRecord_Relation < ActiveRecord::Relation
|
|
279
282
|
|
280
283
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
281
284
|
def one?(*args); end
|
285
|
+
|
286
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
287
|
+
def empty?(*args); end
|
282
288
|
end
|
283
289
|
|
284
290
|
class ActiveStorage::Blob::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
@@ -463,6 +469,9 @@ class ActiveStorage::Blob::ActiveRecord_AssociationRelation < ActiveRecord::Asso
|
|
463
469
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
464
470
|
def one?(*args); end
|
465
471
|
|
472
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
473
|
+
def empty?(*args); end
|
474
|
+
|
466
475
|
sig { override.params(block: T.proc.params(e: ActiveStorage::Blob).void).returns(T::Array[ActiveStorage::Blob]) }
|
467
476
|
def each(&block); end
|
468
477
|
|
@@ -662,6 +671,9 @@ class ActiveStorage::Blob::ActiveRecord_Associations_CollectionProxy < ActiveRec
|
|
662
671
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
663
672
|
def one?(*args); end
|
664
673
|
|
674
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
675
|
+
def empty?(*args); end
|
676
|
+
|
665
677
|
sig { override.params(block: T.proc.params(e: ActiveStorage::Blob).void).returns(T::Array[ActiveStorage::Blob]) }
|
666
678
|
def each(&block); end
|
667
679
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# typed: strong
|
2
|
-
# This is an autogenerated file for Rails
|
2
|
+
# This is an autogenerated file for Rails' mailers.
|
3
3
|
# Please rerun bundle exec rake rails_rbi:mailers to regenerate.
|
4
4
|
class DailyProphetMailer
|
5
5
|
sig { params(wizards: T::Array[Wizard], hotnews_only: T::Boolean).returns(ActionMailer::MessageDelivery) }
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# typed: strong
|
2
|
-
# This is an autogenerated file for Rails
|
2
|
+
# This is an autogenerated file for Rails' mailers.
|
3
3
|
# Please rerun bundle exec rake rails_rbi:mailers to regenerate.
|
4
4
|
class HogwartsAcceptanceMailer
|
5
5
|
sig { params(student: Wizard).returns(ActionMailer::MessageDelivery) }
|
@@ -184,6 +184,9 @@ class ActiveRecord::InternalMetadata < ActiveRecord::Base
|
|
184
184
|
|
185
185
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
186
186
|
def self.one?(*args); end
|
187
|
+
|
188
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
189
|
+
def self.empty?(*args); end
|
187
190
|
end
|
188
191
|
|
189
192
|
class ActiveRecord::InternalMetadata::ActiveRecord_Relation < ActiveRecord::Relation
|
@@ -307,6 +310,9 @@ class ActiveRecord::InternalMetadata::ActiveRecord_Relation < ActiveRecord::Rela
|
|
307
310
|
|
308
311
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
309
312
|
def one?(*args); end
|
313
|
+
|
314
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
315
|
+
def empty?(*args); end
|
310
316
|
end
|
311
317
|
|
312
318
|
class ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
@@ -485,6 +491,9 @@ class ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation < ActiveR
|
|
485
491
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
486
492
|
def one?(*args); end
|
487
493
|
|
494
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
495
|
+
def empty?(*args); end
|
496
|
+
|
488
497
|
sig { override.params(block: T.proc.params(e: ActiveRecord::InternalMetadata).void).returns(T::Array[ActiveRecord::InternalMetadata]) }
|
489
498
|
def each(&block); end
|
490
499
|
|
@@ -678,6 +687,9 @@ class ActiveRecord::InternalMetadata::ActiveRecord_Associations_CollectionProxy
|
|
678
687
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
679
688
|
def one?(*args); end
|
680
689
|
|
690
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
691
|
+
def empty?(*args); end
|
692
|
+
|
681
693
|
sig { override.params(block: T.proc.params(e: ActiveRecord::InternalMetadata).void).returns(T::Array[ActiveRecord::InternalMetadata]) }
|
682
694
|
def each(&block); end
|
683
695
|
|
@@ -154,6 +154,9 @@ class Potion < ApplicationRecord
|
|
154
154
|
|
155
155
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
156
156
|
def self.one?(*args); end
|
157
|
+
|
158
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
159
|
+
def self.empty?(*args); end
|
157
160
|
end
|
158
161
|
|
159
162
|
class Potion::ActiveRecord_Relation < ActiveRecord::Relation
|
@@ -277,6 +280,9 @@ class Potion::ActiveRecord_Relation < ActiveRecord::Relation
|
|
277
280
|
|
278
281
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
279
282
|
def one?(*args); end
|
283
|
+
|
284
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
285
|
+
def empty?(*args); end
|
280
286
|
end
|
281
287
|
|
282
288
|
class Potion::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
@@ -455,6 +461,9 @@ class Potion::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelati
|
|
455
461
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
456
462
|
def one?(*args); end
|
457
463
|
|
464
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
465
|
+
def empty?(*args); end
|
466
|
+
|
458
467
|
sig { override.params(block: T.proc.params(e: Potion).void).returns(T::Array[Potion]) }
|
459
468
|
def each(&block); end
|
460
469
|
|
@@ -648,6 +657,9 @@ class Potion::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associat
|
|
648
657
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
649
658
|
def one?(*args); end
|
650
659
|
|
660
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
661
|
+
def empty?(*args); end
|
662
|
+
|
651
663
|
sig { override.params(block: T.proc.params(e: Potion).void).returns(T::Array[Potion]) }
|
652
664
|
def each(&block); end
|
653
665
|
|
@@ -177,6 +177,9 @@ class Robe < ApplicationRecord
|
|
177
177
|
|
178
178
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
179
179
|
def self.one?(*args); end
|
180
|
+
|
181
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
182
|
+
def self.empty?(*args); end
|
180
183
|
end
|
181
184
|
|
182
185
|
class Robe::ActiveRecord_Relation < ActiveRecord::Relation
|
@@ -300,6 +303,9 @@ class Robe::ActiveRecord_Relation < ActiveRecord::Relation
|
|
300
303
|
|
301
304
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
302
305
|
def one?(*args); end
|
306
|
+
|
307
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
308
|
+
def empty?(*args); end
|
303
309
|
end
|
304
310
|
|
305
311
|
class Robe::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
@@ -478,6 +484,9 @@ class Robe::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
|
478
484
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
479
485
|
def one?(*args); end
|
480
486
|
|
487
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
488
|
+
def empty?(*args); end
|
489
|
+
|
481
490
|
sig { override.params(block: T.proc.params(e: Robe).void).returns(T::Array[Robe]) }
|
482
491
|
def each(&block); end
|
483
492
|
|
@@ -671,6 +680,9 @@ class Robe::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associatio
|
|
671
680
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
672
681
|
def one?(*args); end
|
673
682
|
|
683
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
684
|
+
def empty?(*args); end
|
685
|
+
|
674
686
|
sig { override.params(block: T.proc.params(e: Robe).void).returns(T::Array[Robe]) }
|
675
687
|
def each(&block); end
|
676
688
|
|
@@ -157,6 +157,9 @@ class ActiveRecord::SchemaMigration < ActiveRecord::Base
|
|
157
157
|
|
158
158
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
159
159
|
def self.one?(*args); end
|
160
|
+
|
161
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
162
|
+
def self.empty?(*args); end
|
160
163
|
end
|
161
164
|
|
162
165
|
class ActiveRecord::SchemaMigration::ActiveRecord_Relation < ActiveRecord::Relation
|
@@ -280,6 +283,9 @@ class ActiveRecord::SchemaMigration::ActiveRecord_Relation < ActiveRecord::Relat
|
|
280
283
|
|
281
284
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
282
285
|
def one?(*args); end
|
286
|
+
|
287
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
288
|
+
def empty?(*args); end
|
283
289
|
end
|
284
290
|
|
285
291
|
class ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
@@ -458,6 +464,9 @@ class ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation < ActiveRe
|
|
458
464
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
459
465
|
def one?(*args); end
|
460
466
|
|
467
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
468
|
+
def empty?(*args); end
|
469
|
+
|
461
470
|
sig { override.params(block: T.proc.params(e: ActiveRecord::SchemaMigration).void).returns(T::Array[ActiveRecord::SchemaMigration]) }
|
462
471
|
def each(&block); end
|
463
472
|
|
@@ -651,6 +660,9 @@ class ActiveRecord::SchemaMigration::ActiveRecord_Associations_CollectionProxy <
|
|
651
660
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
652
661
|
def one?(*args); end
|
653
662
|
|
663
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
664
|
+
def empty?(*args); end
|
665
|
+
|
654
666
|
sig { override.params(block: T.proc.params(e: ActiveRecord::SchemaMigration).void).returns(T::Array[ActiveRecord::SchemaMigration]) }
|
655
667
|
def each(&block); end
|
656
668
|
|
@@ -166,6 +166,9 @@ class School < ApplicationRecord
|
|
166
166
|
|
167
167
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
168
168
|
def self.one?(*args); end
|
169
|
+
|
170
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
171
|
+
def self.empty?(*args); end
|
169
172
|
end
|
170
173
|
|
171
174
|
class School::ActiveRecord_Relation < ActiveRecord::Relation
|
@@ -289,6 +292,9 @@ class School::ActiveRecord_Relation < ActiveRecord::Relation
|
|
289
292
|
|
290
293
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
291
294
|
def one?(*args); end
|
295
|
+
|
296
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
297
|
+
def empty?(*args); end
|
292
298
|
end
|
293
299
|
|
294
300
|
class School::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
@@ -467,6 +473,9 @@ class School::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelati
|
|
467
473
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
468
474
|
def one?(*args); end
|
469
475
|
|
476
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
477
|
+
def empty?(*args); end
|
478
|
+
|
470
479
|
sig { override.params(block: T.proc.params(e: School).void).returns(T::Array[School]) }
|
471
480
|
def each(&block); end
|
472
481
|
|
@@ -660,6 +669,9 @@ class School::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associat
|
|
660
669
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
661
670
|
def one?(*args); end
|
662
671
|
|
672
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
673
|
+
def empty?(*args); end
|
674
|
+
|
663
675
|
sig { override.params(block: T.proc.params(e: School).void).returns(T::Array[School]) }
|
664
676
|
def each(&block); end
|
665
677
|
|
@@ -254,6 +254,9 @@ class SpellBook < ApplicationRecord
|
|
254
254
|
|
255
255
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
256
256
|
def self.one?(*args); end
|
257
|
+
|
258
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
259
|
+
def self.empty?(*args); end
|
257
260
|
end
|
258
261
|
|
259
262
|
class SpellBook::ActiveRecord_Relation < ActiveRecord::Relation
|
@@ -395,6 +398,9 @@ class SpellBook::ActiveRecord_Relation < ActiveRecord::Relation
|
|
395
398
|
|
396
399
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
397
400
|
def one?(*args); end
|
401
|
+
|
402
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
403
|
+
def empty?(*args); end
|
398
404
|
end
|
399
405
|
|
400
406
|
class SpellBook::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
@@ -591,6 +597,9 @@ class SpellBook::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRel
|
|
591
597
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
592
598
|
def one?(*args); end
|
593
599
|
|
600
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
601
|
+
def empty?(*args); end
|
602
|
+
|
594
603
|
sig { override.params(block: T.proc.params(e: SpellBook).void).returns(T::Array[SpellBook]) }
|
595
604
|
def each(&block); end
|
596
605
|
|
@@ -802,6 +811,9 @@ class SpellBook::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Assoc
|
|
802
811
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
803
812
|
def one?(*args); end
|
804
813
|
|
814
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
815
|
+
def empty?(*args); end
|
816
|
+
|
805
817
|
sig { override.params(block: T.proc.params(e: SpellBook).void).returns(T::Array[SpellBook]) }
|
806
818
|
def each(&block); end
|
807
819
|
|