sorbet-rails 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sorbet-rails/active_record_rbi_formatter.rb +295 -0
- data/lib/sorbet-rails/config.rb +0 -1
- data/lib/sorbet-rails/custom_types/boolean_string.rb +10 -0
- data/lib/sorbet-rails/custom_types/integer_string.rb +10 -0
- data/lib/sorbet-rails/dependent_gem_rbis/activerecord.rbi +11 -0
- data/lib/sorbet-rails/deprecation.rb +5 -0
- data/lib/sorbet-rails/model_plugins/active_record_assoc.rb +27 -6
- data/lib/sorbet-rails/model_plugins/active_record_attribute.rb +20 -8
- data/lib/sorbet-rails/model_plugins/base.rb +9 -0
- data/lib/sorbet-rails/model_plugins/enumerable_collections.rb +0 -50
- data/lib/sorbet-rails/model_plugins/plugins.rb +0 -3
- data/lib/sorbet-rails/model_rbi_formatter.rb +2 -2
- data/lib/sorbet-rails/model_utils.rb +15 -6
- data/lib/sorbet-rails/rails_mixins/custom_params_methods.rb +11 -0
- data/lib/sorbet-rails/tasks/rails_rbi.rake +20 -4
- data/sorbet-rails.gemspec +2 -2
- data/spec/active_record_rbi_formatter_spec.rb +24 -0
- data/spec/generators/rails-template.rb +88 -1
- data/spec/generators/sorbet_test_cases.rb +146 -42
- data/spec/model_rbi_formatter_spec.rb +1 -1
- data/spec/rails_helper.rb +14 -1
- data/spec/rake_rails_rbi_active_record_spec.rb +21 -0
- data/spec/rake_rails_rbi_models_spec.rb +7 -0
- data/spec/sorbet_spec.rb +12 -1
- data/spec/support/v5.0/Gemfile.lock +8 -8
- data/spec/support/v5.0/app/models/headmaster.rb +8 -0
- data/spec/support/v5.0/app/models/school.rb +2 -0
- data/spec/support/v5.0/app/models/spell.rb +5 -0
- data/spec/support/v5.0/app/models/spell_book.rb +3 -0
- data/spec/support/v5.0/app/models/subject.rb +5 -0
- data/spec/support/v5.0/app/models/wizard.rb +6 -1
- data/spec/support/v5.0/db/migrate/20190620000010_add_subject.rb +8 -0
- data/spec/support/v5.0/db/migrate/20190620000011_add_subjects_wizards.rb +8 -0
- data/spec/support/v5.0/db/migrate/20190620000012_add_spell.rb +8 -0
- data/spec/support/v5.0/db/migrate/20190620000013_add_spells_spell_books.rb +8 -0
- data/spec/support/v5.0/db/migrate/20190620000014_create_headmasters.rb +9 -0
- data/spec/support/v5.0/db/schema.rb +28 -1
- data/spec/support/v5.0/lib/mythical_rbi_plugin.rb +1 -1
- data/spec/support/v5.0/sorbet_test_cases.rb +146 -42
- data/spec/support/v5.1/Gemfile.lock +8 -8
- data/spec/support/v5.1/app/models/headmaster.rb +8 -0
- data/spec/support/v5.1/app/models/school.rb +2 -0
- data/spec/support/v5.1/app/models/spell.rb +5 -0
- data/spec/support/v5.1/app/models/spell_book.rb +3 -0
- data/spec/support/v5.1/app/models/subject.rb +5 -0
- data/spec/support/v5.1/app/models/wizard.rb +6 -1
- data/spec/support/v5.1/db/migrate/20190620000010_add_subject.rb +8 -0
- data/spec/support/v5.1/db/migrate/20190620000011_add_subjects_wizards.rb +8 -0
- data/spec/support/v5.1/db/migrate/20190620000012_add_spell.rb +8 -0
- data/spec/support/v5.1/db/migrate/20190620000013_add_spells_spell_books.rb +8 -0
- data/spec/support/v5.1/db/migrate/20190620000014_create_headmasters.rb +9 -0
- data/spec/support/v5.1/db/schema.rb +28 -1
- data/spec/support/v5.1/lib/mythical_rbi_plugin.rb +1 -1
- data/spec/support/v5.1/sorbet_test_cases.rb +146 -42
- data/spec/support/v5.2/Gemfile +1 -1
- data/spec/support/v5.2/Gemfile.lock +9 -9
- data/spec/support/v5.2/app/models/headmaster.rb +8 -0
- data/spec/support/v5.2/app/models/school.rb +2 -0
- data/spec/support/v5.2/app/models/spell.rb +5 -0
- data/spec/support/v5.2/app/models/spell_book.rb +3 -0
- data/spec/support/v5.2/app/models/subject.rb +5 -0
- data/spec/support/v5.2/app/models/wizard.rb +5 -0
- data/spec/support/v5.2/config/puma.rb +3 -0
- data/spec/support/v5.2/db/migrate/20190620000010_add_subject.rb +8 -0
- data/spec/support/v5.2/db/migrate/20190620000011_add_subjects_wizards.rb +8 -0
- data/spec/support/v5.2/db/migrate/20190620000012_add_spell.rb +8 -0
- data/spec/support/v5.2/db/migrate/20190620000013_add_spells_spell_books.rb +8 -0
- data/spec/support/v5.2/db/migrate/20190620000014_create_headmasters.rb +9 -0
- data/spec/support/v5.2/db/schema.rb +28 -1
- data/spec/support/v5.2/lib/mythical_rbi_plugin.rb +1 -1
- data/spec/support/v5.2/sorbet_test_cases.rb +146 -42
- data/spec/support/v6.0/Gemfile.lock +8 -8
- data/spec/support/v6.0/app/models/headmaster.rb +8 -0
- data/spec/support/v6.0/app/models/school.rb +2 -0
- data/spec/support/v6.0/app/models/spell.rb +5 -0
- data/spec/support/v6.0/app/models/spell_book.rb +3 -0
- data/spec/support/v6.0/app/models/subject.rb +5 -0
- data/spec/support/v6.0/app/models/wizard.rb +6 -1
- data/spec/support/v6.0/db/migrate/20190620000010_add_subject.rb +8 -0
- data/spec/support/v6.0/db/migrate/20190620000011_add_subjects_wizards.rb +8 -0
- data/spec/support/v6.0/db/migrate/20190620000012_add_spell.rb +8 -0
- data/spec/support/v6.0/db/migrate/20190620000013_add_spells_spell_books.rb +8 -0
- data/spec/support/v6.0/db/migrate/20190620000014_create_headmasters.rb +9 -0
- data/spec/support/v6.0/db/schema.rb +28 -1
- data/spec/support/v6.0/lib/mythical_rbi_plugin.rb +1 -1
- data/spec/support/v6.0/sorbet_test_cases.rb +146 -42
- data/spec/test_data/v5.0/expected_active_record_base.rbi +113 -0
- data/spec/test_data/v5.0/expected_active_record_relation.rbi +199 -0
- data/spec/test_data/v5.0/expected_habtm_subjects.rbi +660 -0
- data/spec/test_data/v5.0/expected_habtm_wizards.rbi +660 -0
- data/spec/test_data/v5.0/expected_headmaster.rbi +452 -0
- data/spec/test_data/v5.0/expected_internal_metadata.rbi +0 -217
- data/spec/test_data/v5.0/expected_potion.rbi +0 -217
- data/spec/test_data/v5.0/expected_robe.rbi +0 -217
- data/spec/test_data/v5.0/expected_schema_migration.rbi +0 -217
- data/spec/test_data/v5.0/expected_school.rbi +11 -217
- data/spec/test_data/v5.0/expected_spell.rbi +440 -0
- data/spec/test_data/v5.0/expected_spell/habtm_spell_books.rbi +443 -0
- data/spec/test_data/v5.0/expected_spell_book.rbi +14 -222
- data/spec/test_data/v5.0/expected_spell_book/habtm_spell_books.rbi +637 -0
- data/spec/test_data/v5.0/expected_spell_book/habtm_spells.rbi +443 -0
- data/spec/test_data/v5.0/expected_squib.rbi +14 -219
- data/spec/test_data/v5.0/expected_subject.rbi +440 -0
- data/spec/test_data/v5.0/expected_subject/habtm_wizards.rbi +443 -0
- data/spec/test_data/v5.0/expected_wand.rbi +4 -221
- data/spec/test_data/v5.0/expected_wizard.rbi +36 -240
- data/spec/test_data/v5.0/expected_wizard/habtm_subjects.rbi +443 -0
- data/spec/test_data/v5.0/expected_wizard_wo_spellbook.rbi +30 -240
- data/spec/test_data/v5.1/expected_active_record_base.rbi +113 -0
- data/spec/test_data/v5.1/expected_active_record_relation.rbi +178 -0
- data/spec/test_data/v5.1/expected_habtm_subjects.rbi +672 -0
- data/spec/test_data/v5.1/expected_habtm_wizards.rbi +672 -0
- data/spec/test_data/v5.1/expected_headmaster.rbi +464 -0
- data/spec/test_data/v5.1/expected_internal_metadata.rbi +0 -217
- data/spec/test_data/v5.1/expected_potion.rbi +0 -217
- data/spec/test_data/v5.1/expected_robe.rbi +0 -217
- data/spec/test_data/v5.1/expected_schema_migration.rbi +0 -217
- data/spec/test_data/v5.1/expected_school.rbi +11 -217
- data/spec/test_data/v5.1/expected_spell.rbi +452 -0
- data/spec/test_data/v5.1/expected_spell/habtm_spell_books.rbi +455 -0
- data/spec/test_data/v5.1/expected_spell_book.rbi +14 -222
- data/spec/test_data/v5.1/expected_spell_book/habtm_spell_books.rbi +649 -0
- data/spec/test_data/v5.1/expected_spell_book/habtm_spells.rbi +455 -0
- data/spec/test_data/v5.1/expected_squib.rbi +14 -219
- data/spec/test_data/v5.1/expected_subject.rbi +452 -0
- data/spec/test_data/v5.1/expected_subject/habtm_wizards.rbi +455 -0
- data/spec/test_data/v5.1/expected_wand.rbi +4 -221
- data/spec/test_data/v5.1/expected_wizard.rbi +36 -240
- data/spec/test_data/v5.1/expected_wizard/habtm_subjects.rbi +455 -0
- data/spec/test_data/v5.1/expected_wizard_wo_spellbook.rbi +30 -240
- data/spec/test_data/v5.2/expected_active_record_base.rbi +113 -0
- data/spec/test_data/v5.2/expected_active_record_relation.rbi +175 -0
- data/spec/test_data/v5.2/expected_attachment.rbi +0 -217
- data/spec/test_data/v5.2/expected_blob.rbi +3 -217
- data/spec/test_data/v5.2/expected_habtm_subjects.rbi +672 -0
- data/spec/test_data/v5.2/expected_habtm_wizards.rbi +672 -0
- data/spec/test_data/v5.2/expected_headmaster.rbi +464 -0
- data/spec/test_data/v5.2/expected_internal_metadata.rbi +0 -217
- data/spec/test_data/v5.2/expected_potion.rbi +0 -217
- data/spec/test_data/v5.2/expected_robe.rbi +0 -217
- data/spec/test_data/v5.2/expected_schema_migration.rbi +0 -217
- data/spec/test_data/v5.2/expected_school.rbi +11 -217
- data/spec/test_data/v5.2/expected_spell.rbi +452 -0
- data/spec/test_data/v5.2/expected_spell/habtm_spell_books.rbi +455 -0
- data/spec/test_data/v5.2/expected_spell_book.rbi +14 -222
- data/spec/test_data/v5.2/expected_spell_book/habtm_spell_books.rbi +649 -0
- data/spec/test_data/v5.2/expected_spell_book/habtm_spells.rbi +455 -0
- data/spec/test_data/v5.2/expected_squib.rbi +20 -219
- data/spec/test_data/v5.2/expected_subject.rbi +452 -0
- data/spec/test_data/v5.2/expected_subject/habtm_wizards.rbi +455 -0
- data/spec/test_data/v5.2/expected_wand.rbi +4 -221
- data/spec/test_data/v5.2/expected_wizard.rbi +42 -240
- data/spec/test_data/v5.2/expected_wizard/habtm_subjects.rbi +455 -0
- data/spec/test_data/v5.2/expected_wizard_wo_spellbook.rbi +36 -240
- data/spec/test_data/v6.0/expected_active_record_base.rbi +113 -0
- data/spec/test_data/v6.0/expected_active_record_relation.rbi +175 -0
- data/spec/test_data/v6.0/expected_attachment.rbi +0 -217
- data/spec/test_data/v6.0/expected_blob.rbi +3 -217
- data/spec/test_data/v6.0/expected_habtm_subjects.rbi +720 -0
- data/spec/test_data/v6.0/expected_habtm_wizards.rbi +720 -0
- data/spec/test_data/v6.0/expected_headmaster.rbi +512 -0
- data/spec/test_data/v6.0/expected_internal_metadata.rbi +0 -217
- data/spec/test_data/v6.0/expected_potion.rbi +0 -217
- data/spec/test_data/v6.0/expected_robe.rbi +0 -217
- data/spec/test_data/v6.0/expected_schema_migration.rbi +0 -217
- data/spec/test_data/v6.0/expected_school.rbi +11 -217
- data/spec/test_data/v6.0/expected_spell.rbi +500 -0
- data/spec/test_data/v6.0/expected_spell/habtm_spell_books.rbi +503 -0
- data/spec/test_data/v6.0/expected_spell_book.rbi +14 -222
- data/spec/test_data/v6.0/expected_spell_book/habtm_spell_books.rbi +697 -0
- data/spec/test_data/v6.0/expected_spell_book/habtm_spells.rbi +503 -0
- data/spec/test_data/v6.0/expected_squib.rbi +20 -219
- data/spec/test_data/v6.0/expected_subject.rbi +500 -0
- data/spec/test_data/v6.0/expected_subject/habtm_wizards.rbi +503 -0
- data/spec/test_data/v6.0/expected_wand.rbi +4 -221
- data/spec/test_data/v6.0/expected_wizard.rbi +42 -240
- data/spec/test_data/v6.0/expected_wizard/habtm_subjects.rbi +503 -0
- data/spec/test_data/v6.0/expected_wizard_wo_spellbook.rbi +36 -240
- metadata +169 -14
- data/lib/bundled_rbi/active_record_base.rbi +0 -83
- data/lib/bundled_rbi/active_record_relation.rbi +0 -122
- data/lib/sorbet-rails/model_plugins/active_record_finder_methods.rb +0 -131
- data/spec/support/v5.0/typed-override.yaml +0 -2
- data/spec/support/v5.1/typed-override.yaml +0 -2
- data/spec/support/v5.2/typed-override.yaml +0 -2
- data/spec/support/v6.0/typed-override.yaml +0 -2
@@ -162,30 +162,11 @@ class Robe < ApplicationRecord
|
|
162
162
|
|
163
163
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Robe::ActiveRecord_Relation) }
|
164
164
|
def self.extending(*args, &block); end
|
165
|
-
|
166
|
-
sig { params(conditions: T.untyped).returns(T::Boolean) }
|
167
|
-
def self.exists?(conditions = nil); end
|
168
|
-
|
169
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
170
|
-
def self.any?(*args); end
|
171
|
-
|
172
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
173
|
-
def self.many?(*args); end
|
174
|
-
|
175
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
176
|
-
def self.none?(*args); end
|
177
|
-
|
178
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
179
|
-
def self.one?(*args); end
|
180
|
-
|
181
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
182
|
-
def self.empty?(*args); end
|
183
165
|
end
|
184
166
|
|
185
167
|
class Robe::ActiveRecord_Relation < ActiveRecord::Relation
|
186
168
|
include Robe::ActiveRelation_WhereNot
|
187
169
|
include Robe::CustomFinderMethods
|
188
|
-
include Enumerable
|
189
170
|
extend T::Sig
|
190
171
|
extend T::Generic
|
191
172
|
Elem = type_member(fixed: Robe)
|
@@ -288,30 +269,11 @@ class Robe::ActiveRecord_Relation < ActiveRecord::Relation
|
|
288
269
|
|
289
270
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Robe::ActiveRecord_Relation) }
|
290
271
|
def extending(*args, &block); end
|
291
|
-
|
292
|
-
sig { params(conditions: T.untyped).returns(T::Boolean) }
|
293
|
-
def exists?(conditions = nil); end
|
294
|
-
|
295
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
296
|
-
def any?(*args); end
|
297
|
-
|
298
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
299
|
-
def many?(*args); end
|
300
|
-
|
301
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
302
|
-
def none?(*args); end
|
303
|
-
|
304
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
305
|
-
def one?(*args); end
|
306
|
-
|
307
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
308
|
-
def empty?(*args); end
|
309
272
|
end
|
310
273
|
|
311
274
|
class Robe::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
312
275
|
include Robe::ActiveRelation_WhereNot
|
313
276
|
include Robe::CustomFinderMethods
|
314
|
-
include Enumerable
|
315
277
|
extend T::Sig
|
316
278
|
extend T::Generic
|
317
279
|
Elem = type_member(fixed: Robe)
|
@@ -414,100 +376,10 @@ class Robe::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
|
414
376
|
|
415
377
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Robe::ActiveRecord_AssociationRelation) }
|
416
378
|
def extending(*args, &block); end
|
417
|
-
|
418
|
-
sig { params(args: T.untyped).returns(Robe) }
|
419
|
-
def find(*args); end
|
420
|
-
|
421
|
-
sig { params(args: T.untyped).returns(T.nilable(Robe)) }
|
422
|
-
def find_by(*args); end
|
423
|
-
|
424
|
-
sig { params(args: T.untyped).returns(Robe) }
|
425
|
-
def find_by!(*args); end
|
426
|
-
|
427
|
-
sig { params(attributes: T.untyped, block: T.nilable(T.proc.params(object: Robe).void)).returns(Robe) }
|
428
|
-
def find_or_initialize_by(attributes, &block); end
|
429
|
-
|
430
|
-
sig { params(attributes: T.untyped, block: T.nilable(T.proc.params(object: Robe).void)).returns(Robe) }
|
431
|
-
def find_or_create_by(attributes, &block); end
|
432
|
-
|
433
|
-
sig { params(attributes: T.untyped, block: T.nilable(T.proc.params(object: Robe).void)).returns(Robe) }
|
434
|
-
def find_or_create_by!(attributes, &block); end
|
435
|
-
|
436
|
-
sig { returns(T.nilable(Robe)) }
|
437
|
-
def first; end
|
438
|
-
|
439
|
-
sig { returns(Robe) }
|
440
|
-
def first!; end
|
441
|
-
|
442
|
-
sig { returns(T.nilable(Robe)) }
|
443
|
-
def second; end
|
444
|
-
|
445
|
-
sig { returns(Robe) }
|
446
|
-
def second!; end
|
447
|
-
|
448
|
-
sig { returns(T.nilable(Robe)) }
|
449
|
-
def third; end
|
450
|
-
|
451
|
-
sig { returns(Robe) }
|
452
|
-
def third!; end
|
453
|
-
|
454
|
-
sig { returns(T.nilable(Robe)) }
|
455
|
-
def third_to_last; end
|
456
|
-
|
457
|
-
sig { returns(Robe) }
|
458
|
-
def third_to_last!; end
|
459
|
-
|
460
|
-
sig { returns(T.nilable(Robe)) }
|
461
|
-
def second_to_last; end
|
462
|
-
|
463
|
-
sig { returns(Robe) }
|
464
|
-
def second_to_last!; end
|
465
|
-
|
466
|
-
sig { returns(T.nilable(Robe)) }
|
467
|
-
def last; end
|
468
|
-
|
469
|
-
sig { returns(Robe) }
|
470
|
-
def last!; end
|
471
|
-
|
472
|
-
sig { params(conditions: T.untyped).returns(T::Boolean) }
|
473
|
-
def exists?(conditions = nil); end
|
474
|
-
|
475
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
476
|
-
def any?(*args); end
|
477
|
-
|
478
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
479
|
-
def many?(*args); end
|
480
|
-
|
481
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
482
|
-
def none?(*args); end
|
483
|
-
|
484
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
485
|
-
def one?(*args); end
|
486
|
-
|
487
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
488
|
-
def empty?(*args); end
|
489
|
-
|
490
|
-
sig { override.params(block: T.proc.params(e: Robe).void).returns(T::Array[Robe]) }
|
491
|
-
def each(&block); end
|
492
|
-
|
493
|
-
sig { params(level: T.nilable(Integer)).returns(T::Array[Robe]) }
|
494
|
-
def flatten(level); end
|
495
|
-
|
496
|
-
sig { returns(T::Array[Robe]) }
|
497
|
-
def to_a; end
|
498
|
-
|
499
|
-
sig do
|
500
|
-
type_parameters(:U).params(
|
501
|
-
blk: T.proc.params(arg0: Elem).returns(T.type_parameter(:U)),
|
502
|
-
)
|
503
|
-
.returns(T::Array[T.type_parameter(:U)])
|
504
|
-
end
|
505
|
-
def map(&blk); end
|
506
379
|
end
|
507
380
|
|
508
381
|
class Robe::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
509
382
|
include Robe::CustomFinderMethods
|
510
|
-
include Enumerable
|
511
383
|
extend T::Sig
|
512
384
|
extend T::Generic
|
513
385
|
Elem = type_member(fixed: Robe)
|
@@ -611,95 +483,6 @@ class Robe::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associatio
|
|
611
483
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Robe::ActiveRecord_AssociationRelation) }
|
612
484
|
def extending(*args, &block); end
|
613
485
|
|
614
|
-
sig { params(args: T.untyped).returns(Robe) }
|
615
|
-
def find(*args); end
|
616
|
-
|
617
|
-
sig { params(args: T.untyped).returns(T.nilable(Robe)) }
|
618
|
-
def find_by(*args); end
|
619
|
-
|
620
|
-
sig { params(args: T.untyped).returns(Robe) }
|
621
|
-
def find_by!(*args); end
|
622
|
-
|
623
|
-
sig { params(attributes: T.untyped, block: T.nilable(T.proc.params(object: Robe).void)).returns(Robe) }
|
624
|
-
def find_or_initialize_by(attributes, &block); end
|
625
|
-
|
626
|
-
sig { params(attributes: T.untyped, block: T.nilable(T.proc.params(object: Robe).void)).returns(Robe) }
|
627
|
-
def find_or_create_by(attributes, &block); end
|
628
|
-
|
629
|
-
sig { params(attributes: T.untyped, block: T.nilable(T.proc.params(object: Robe).void)).returns(Robe) }
|
630
|
-
def find_or_create_by!(attributes, &block); end
|
631
|
-
|
632
|
-
sig { returns(T.nilable(Robe)) }
|
633
|
-
def first; end
|
634
|
-
|
635
|
-
sig { returns(Robe) }
|
636
|
-
def first!; end
|
637
|
-
|
638
|
-
sig { returns(T.nilable(Robe)) }
|
639
|
-
def second; end
|
640
|
-
|
641
|
-
sig { returns(Robe) }
|
642
|
-
def second!; end
|
643
|
-
|
644
|
-
sig { returns(T.nilable(Robe)) }
|
645
|
-
def third; end
|
646
|
-
|
647
|
-
sig { returns(Robe) }
|
648
|
-
def third!; end
|
649
|
-
|
650
|
-
sig { returns(T.nilable(Robe)) }
|
651
|
-
def third_to_last; end
|
652
|
-
|
653
|
-
sig { returns(Robe) }
|
654
|
-
def third_to_last!; end
|
655
|
-
|
656
|
-
sig { returns(T.nilable(Robe)) }
|
657
|
-
def second_to_last; end
|
658
|
-
|
659
|
-
sig { returns(Robe) }
|
660
|
-
def second_to_last!; end
|
661
|
-
|
662
|
-
sig { returns(T.nilable(Robe)) }
|
663
|
-
def last; end
|
664
|
-
|
665
|
-
sig { returns(Robe) }
|
666
|
-
def last!; end
|
667
|
-
|
668
|
-
sig { params(conditions: T.untyped).returns(T::Boolean) }
|
669
|
-
def exists?(conditions = nil); end
|
670
|
-
|
671
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
672
|
-
def any?(*args); end
|
673
|
-
|
674
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
675
|
-
def many?(*args); end
|
676
|
-
|
677
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
678
|
-
def none?(*args); end
|
679
|
-
|
680
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
681
|
-
def one?(*args); end
|
682
|
-
|
683
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
684
|
-
def empty?(*args); end
|
685
|
-
|
686
|
-
sig { override.params(block: T.proc.params(e: Robe).void).returns(T::Array[Robe]) }
|
687
|
-
def each(&block); end
|
688
|
-
|
689
|
-
sig { params(level: T.nilable(Integer)).returns(T::Array[Robe]) }
|
690
|
-
def flatten(level); end
|
691
|
-
|
692
|
-
sig { returns(T::Array[Robe]) }
|
693
|
-
def to_a; end
|
694
|
-
|
695
|
-
sig do
|
696
|
-
type_parameters(:U).params(
|
697
|
-
blk: T.proc.params(arg0: Elem).returns(T.type_parameter(:U)),
|
698
|
-
)
|
699
|
-
.returns(T::Array[T.type_parameter(:U)])
|
700
|
-
end
|
701
|
-
def map(&blk); end
|
702
|
-
|
703
486
|
sig { params(records: T.any(Robe, T::Array[Robe])).returns(T.self_type) }
|
704
487
|
def <<(*records); end
|
705
488
|
|
@@ -142,30 +142,11 @@ class ActiveRecord::SchemaMigration < ActiveRecord::Base
|
|
142
142
|
|
143
143
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
144
144
|
def self.extending(*args, &block); end
|
145
|
-
|
146
|
-
sig { params(conditions: T.untyped).returns(T::Boolean) }
|
147
|
-
def self.exists?(conditions = nil); end
|
148
|
-
|
149
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
150
|
-
def self.any?(*args); end
|
151
|
-
|
152
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
153
|
-
def self.many?(*args); end
|
154
|
-
|
155
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
156
|
-
def self.none?(*args); end
|
157
|
-
|
158
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
159
|
-
def self.one?(*args); end
|
160
|
-
|
161
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
162
|
-
def self.empty?(*args); end
|
163
145
|
end
|
164
146
|
|
165
147
|
class ActiveRecord::SchemaMigration::ActiveRecord_Relation < ActiveRecord::Relation
|
166
148
|
include ActiveRecord::SchemaMigration::ActiveRelation_WhereNot
|
167
149
|
include ActiveRecord::SchemaMigration::CustomFinderMethods
|
168
|
-
include Enumerable
|
169
150
|
extend T::Sig
|
170
151
|
extend T::Generic
|
171
152
|
Elem = type_member(fixed: ActiveRecord::SchemaMigration)
|
@@ -268,30 +249,11 @@ class ActiveRecord::SchemaMigration::ActiveRecord_Relation < ActiveRecord::Relat
|
|
268
249
|
|
269
250
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
270
251
|
def extending(*args, &block); end
|
271
|
-
|
272
|
-
sig { params(conditions: T.untyped).returns(T::Boolean) }
|
273
|
-
def exists?(conditions = nil); end
|
274
|
-
|
275
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
276
|
-
def any?(*args); end
|
277
|
-
|
278
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
279
|
-
def many?(*args); end
|
280
|
-
|
281
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
282
|
-
def none?(*args); end
|
283
|
-
|
284
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
285
|
-
def one?(*args); end
|
286
|
-
|
287
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
288
|
-
def empty?(*args); end
|
289
252
|
end
|
290
253
|
|
291
254
|
class ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
292
255
|
include ActiveRecord::SchemaMigration::ActiveRelation_WhereNot
|
293
256
|
include ActiveRecord::SchemaMigration::CustomFinderMethods
|
294
|
-
include Enumerable
|
295
257
|
extend T::Sig
|
296
258
|
extend T::Generic
|
297
259
|
Elem = type_member(fixed: ActiveRecord::SchemaMigration)
|
@@ -394,100 +356,10 @@ class ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation < ActiveRe
|
|
394
356
|
|
395
357
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
396
358
|
def extending(*args, &block); end
|
397
|
-
|
398
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration) }
|
399
|
-
def find(*args); end
|
400
|
-
|
401
|
-
sig { params(args: T.untyped).returns(T.nilable(ActiveRecord::SchemaMigration)) }
|
402
|
-
def find_by(*args); end
|
403
|
-
|
404
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration) }
|
405
|
-
def find_by!(*args); end
|
406
|
-
|
407
|
-
sig { params(attributes: T.untyped, block: T.nilable(T.proc.params(object: ActiveRecord::SchemaMigration).void)).returns(ActiveRecord::SchemaMigration) }
|
408
|
-
def find_or_initialize_by(attributes, &block); end
|
409
|
-
|
410
|
-
sig { params(attributes: T.untyped, block: T.nilable(T.proc.params(object: ActiveRecord::SchemaMigration).void)).returns(ActiveRecord::SchemaMigration) }
|
411
|
-
def find_or_create_by(attributes, &block); end
|
412
|
-
|
413
|
-
sig { params(attributes: T.untyped, block: T.nilable(T.proc.params(object: ActiveRecord::SchemaMigration).void)).returns(ActiveRecord::SchemaMigration) }
|
414
|
-
def find_or_create_by!(attributes, &block); end
|
415
|
-
|
416
|
-
sig { returns(T.nilable(ActiveRecord::SchemaMigration)) }
|
417
|
-
def first; end
|
418
|
-
|
419
|
-
sig { returns(ActiveRecord::SchemaMigration) }
|
420
|
-
def first!; end
|
421
|
-
|
422
|
-
sig { returns(T.nilable(ActiveRecord::SchemaMigration)) }
|
423
|
-
def second; end
|
424
|
-
|
425
|
-
sig { returns(ActiveRecord::SchemaMigration) }
|
426
|
-
def second!; end
|
427
|
-
|
428
|
-
sig { returns(T.nilable(ActiveRecord::SchemaMigration)) }
|
429
|
-
def third; end
|
430
|
-
|
431
|
-
sig { returns(ActiveRecord::SchemaMigration) }
|
432
|
-
def third!; end
|
433
|
-
|
434
|
-
sig { returns(T.nilable(ActiveRecord::SchemaMigration)) }
|
435
|
-
def third_to_last; end
|
436
|
-
|
437
|
-
sig { returns(ActiveRecord::SchemaMigration) }
|
438
|
-
def third_to_last!; end
|
439
|
-
|
440
|
-
sig { returns(T.nilable(ActiveRecord::SchemaMigration)) }
|
441
|
-
def second_to_last; end
|
442
|
-
|
443
|
-
sig { returns(ActiveRecord::SchemaMigration) }
|
444
|
-
def second_to_last!; end
|
445
|
-
|
446
|
-
sig { returns(T.nilable(ActiveRecord::SchemaMigration)) }
|
447
|
-
def last; end
|
448
|
-
|
449
|
-
sig { returns(ActiveRecord::SchemaMigration) }
|
450
|
-
def last!; end
|
451
|
-
|
452
|
-
sig { params(conditions: T.untyped).returns(T::Boolean) }
|
453
|
-
def exists?(conditions = nil); end
|
454
|
-
|
455
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
456
|
-
def any?(*args); end
|
457
|
-
|
458
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
459
|
-
def many?(*args); end
|
460
|
-
|
461
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
462
|
-
def none?(*args); end
|
463
|
-
|
464
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
465
|
-
def one?(*args); end
|
466
|
-
|
467
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
468
|
-
def empty?(*args); end
|
469
|
-
|
470
|
-
sig { override.params(block: T.proc.params(e: ActiveRecord::SchemaMigration).void).returns(T::Array[ActiveRecord::SchemaMigration]) }
|
471
|
-
def each(&block); end
|
472
|
-
|
473
|
-
sig { params(level: T.nilable(Integer)).returns(T::Array[ActiveRecord::SchemaMigration]) }
|
474
|
-
def flatten(level); end
|
475
|
-
|
476
|
-
sig { returns(T::Array[ActiveRecord::SchemaMigration]) }
|
477
|
-
def to_a; end
|
478
|
-
|
479
|
-
sig do
|
480
|
-
type_parameters(:U).params(
|
481
|
-
blk: T.proc.params(arg0: Elem).returns(T.type_parameter(:U)),
|
482
|
-
)
|
483
|
-
.returns(T::Array[T.type_parameter(:U)])
|
484
|
-
end
|
485
|
-
def map(&blk); end
|
486
359
|
end
|
487
360
|
|
488
361
|
class ActiveRecord::SchemaMigration::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
489
362
|
include ActiveRecord::SchemaMigration::CustomFinderMethods
|
490
|
-
include Enumerable
|
491
363
|
extend T::Sig
|
492
364
|
extend T::Generic
|
493
365
|
Elem = type_member(fixed: ActiveRecord::SchemaMigration)
|
@@ -591,95 +463,6 @@ class ActiveRecord::SchemaMigration::ActiveRecord_Associations_CollectionProxy <
|
|
591
463
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
592
464
|
def extending(*args, &block); end
|
593
465
|
|
594
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration) }
|
595
|
-
def find(*args); end
|
596
|
-
|
597
|
-
sig { params(args: T.untyped).returns(T.nilable(ActiveRecord::SchemaMigration)) }
|
598
|
-
def find_by(*args); end
|
599
|
-
|
600
|
-
sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration) }
|
601
|
-
def find_by!(*args); end
|
602
|
-
|
603
|
-
sig { params(attributes: T.untyped, block: T.nilable(T.proc.params(object: ActiveRecord::SchemaMigration).void)).returns(ActiveRecord::SchemaMigration) }
|
604
|
-
def find_or_initialize_by(attributes, &block); end
|
605
|
-
|
606
|
-
sig { params(attributes: T.untyped, block: T.nilable(T.proc.params(object: ActiveRecord::SchemaMigration).void)).returns(ActiveRecord::SchemaMigration) }
|
607
|
-
def find_or_create_by(attributes, &block); end
|
608
|
-
|
609
|
-
sig { params(attributes: T.untyped, block: T.nilable(T.proc.params(object: ActiveRecord::SchemaMigration).void)).returns(ActiveRecord::SchemaMigration) }
|
610
|
-
def find_or_create_by!(attributes, &block); end
|
611
|
-
|
612
|
-
sig { returns(T.nilable(ActiveRecord::SchemaMigration)) }
|
613
|
-
def first; end
|
614
|
-
|
615
|
-
sig { returns(ActiveRecord::SchemaMigration) }
|
616
|
-
def first!; end
|
617
|
-
|
618
|
-
sig { returns(T.nilable(ActiveRecord::SchemaMigration)) }
|
619
|
-
def second; end
|
620
|
-
|
621
|
-
sig { returns(ActiveRecord::SchemaMigration) }
|
622
|
-
def second!; end
|
623
|
-
|
624
|
-
sig { returns(T.nilable(ActiveRecord::SchemaMigration)) }
|
625
|
-
def third; end
|
626
|
-
|
627
|
-
sig { returns(ActiveRecord::SchemaMigration) }
|
628
|
-
def third!; end
|
629
|
-
|
630
|
-
sig { returns(T.nilable(ActiveRecord::SchemaMigration)) }
|
631
|
-
def third_to_last; end
|
632
|
-
|
633
|
-
sig { returns(ActiveRecord::SchemaMigration) }
|
634
|
-
def third_to_last!; end
|
635
|
-
|
636
|
-
sig { returns(T.nilable(ActiveRecord::SchemaMigration)) }
|
637
|
-
def second_to_last; end
|
638
|
-
|
639
|
-
sig { returns(ActiveRecord::SchemaMigration) }
|
640
|
-
def second_to_last!; end
|
641
|
-
|
642
|
-
sig { returns(T.nilable(ActiveRecord::SchemaMigration)) }
|
643
|
-
def last; end
|
644
|
-
|
645
|
-
sig { returns(ActiveRecord::SchemaMigration) }
|
646
|
-
def last!; end
|
647
|
-
|
648
|
-
sig { params(conditions: T.untyped).returns(T::Boolean) }
|
649
|
-
def exists?(conditions = nil); end
|
650
|
-
|
651
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
652
|
-
def any?(*args); end
|
653
|
-
|
654
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
655
|
-
def many?(*args); end
|
656
|
-
|
657
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
658
|
-
def none?(*args); end
|
659
|
-
|
660
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
661
|
-
def one?(*args); end
|
662
|
-
|
663
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
664
|
-
def empty?(*args); end
|
665
|
-
|
666
|
-
sig { override.params(block: T.proc.params(e: ActiveRecord::SchemaMigration).void).returns(T::Array[ActiveRecord::SchemaMigration]) }
|
667
|
-
def each(&block); end
|
668
|
-
|
669
|
-
sig { params(level: T.nilable(Integer)).returns(T::Array[ActiveRecord::SchemaMigration]) }
|
670
|
-
def flatten(level); end
|
671
|
-
|
672
|
-
sig { returns(T::Array[ActiveRecord::SchemaMigration]) }
|
673
|
-
def to_a; end
|
674
|
-
|
675
|
-
sig do
|
676
|
-
type_parameters(:U).params(
|
677
|
-
blk: T.proc.params(arg0: Elem).returns(T.type_parameter(:U)),
|
678
|
-
)
|
679
|
-
.returns(T::Array[T.type_parameter(:U)])
|
680
|
-
end
|
681
|
-
def map(&blk); end
|
682
|
-
|
683
466
|
sig { params(records: T.any(ActiveRecord::SchemaMigration, T::Array[ActiveRecord::SchemaMigration])).returns(T.self_type) }
|
684
467
|
def <<(*records); end
|
685
468
|
|