sorbet-rails 0.5.5.1 → 0.5.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/sorbet-rails/config.rb +1 -0
- data/lib/sorbet-rails/helper_rbi_formatter.rb +12 -0
- data/lib/sorbet-rails/model_plugins/active_record_attribute.rb +51 -9
- data/lib/sorbet-rails/model_plugins/active_record_factory_methods.rb +28 -0
- data/lib/sorbet-rails/model_plugins/enumerable_collections.rb +1 -0
- data/lib/sorbet-rails/model_plugins/plugins.rb +3 -0
- data/sorbet-rails.gemspec +1 -1
- data/spec/generators/rails-template.rb +14 -1
- data/spec/generators/sorbet_test_cases.rb +17 -0
- data/spec/sorbet_spec.rb +4 -0
- data/spec/support/v4.2/Gemfile.lock +5 -5
- data/spec/support/v4.2/app/models/wand.rb +2 -0
- data/spec/support/v4.2/app/models/wizard.rb +1 -1
- data/spec/support/v4.2/config/initializers/sorbet_rails.rb +1 -1
- data/spec/support/v4.2/db/migrate/20190620000001_create_wizards.rb +1 -1
- data/spec/support/v4.2/db/migrate/20190620000004_add_more_column_types_to_wands.rb +1 -0
- data/spec/support/v4.2/db/schema.rb +3 -2
- data/spec/support/v4.2/sorbet_test_cases.rb +17 -0
- data/spec/support/v5.0/Gemfile.lock +5 -5
- data/spec/support/v5.0/app/models/wand.rb +2 -0
- data/spec/support/v5.0/app/models/wizard.rb +1 -1
- data/spec/support/v5.0/config/application.rb +1 -0
- data/spec/support/v5.0/config/initializers/sorbet_rails.rb +1 -1
- data/spec/support/v5.0/db/migrate/20190620000001_create_wizards.rb +1 -1
- data/spec/support/v5.0/db/migrate/20190620000004_add_more_column_types_to_wands.rb +1 -0
- data/spec/support/v5.0/db/schema.rb +1 -0
- data/spec/support/v5.0/sorbet_test_cases.rb +17 -0
- data/spec/support/v5.1/Gemfile.lock +5 -5
- data/spec/support/v5.1/app/models/wand.rb +2 -0
- data/spec/support/v5.1/app/models/wizard.rb +1 -1
- data/spec/support/v5.1/config/initializers/sorbet_rails.rb +1 -1
- data/spec/support/v5.1/db/migrate/20190620000001_create_wizards.rb +1 -1
- data/spec/support/v5.1/db/migrate/20190620000004_add_more_column_types_to_wands.rb +1 -0
- data/spec/support/v5.1/db/schema.rb +1 -0
- data/spec/support/v5.1/sorbet_test_cases.rb +17 -0
- data/spec/support/v5.2/Gemfile.lock +5 -5
- data/spec/support/v5.2/app/models/wand.rb +2 -0
- data/spec/support/v5.2/app/models/wizard.rb +1 -1
- data/spec/support/v5.2/config/initializers/sorbet_rails.rb +1 -1
- data/spec/support/v5.2/db/migrate/20190620000001_create_wizards.rb +1 -1
- data/spec/support/v5.2/db/migrate/20190620000004_add_more_column_types_to_wands.rb +1 -0
- data/spec/support/v5.2/db/schema.rb +1 -0
- data/spec/support/v5.2/sorbet_test_cases.rb +17 -0
- data/spec/support/v6.0/Gemfile.lock +5 -5
- data/spec/support/v6.0/app/models/wand.rb +2 -0
- data/spec/support/v6.0/app/models/wizard.rb +1 -1
- data/spec/support/v6.0/config/initializers/sorbet_rails.rb +1 -1
- data/spec/support/v6.0/config/initializers/wrap_parameters.rb +1 -1
- data/spec/support/v6.0/db/migrate/20190620000001_create_wizards.rb +1 -1
- data/spec/support/v6.0/db/migrate/20190620000004_add_more_column_types_to_wands.rb +1 -0
- data/spec/support/v6.0/db/schema.rb +1 -0
- data/spec/support/v6.0/sorbet_test_cases.rb +17 -0
- data/spec/test_data/v4.2/expected_potion.rbi +12 -3
- data/spec/test_data/v4.2/expected_spell_book.rbi +12 -3
- data/spec/test_data/v4.2/expected_squib.rbi +16 -7
- data/spec/test_data/v4.2/expected_srb_tc_output.txt +35 -27
- data/spec/test_data/v4.2/expected_wand.rbi +25 -7
- data/spec/test_data/v4.2/expected_wizard.rbi +16 -7
- data/spec/test_data/v4.2/expected_wizard_wo_spellbook.rbi +16 -7
- data/spec/test_data/v5.0/expected_helpers.rbi +5 -0
- data/spec/test_data/v5.0/expected_helpers_with_application_and_devise_helpers.rbi +5 -0
- data/spec/test_data/v5.0/expected_internal_metadata.rbi +16 -7
- data/spec/test_data/v5.0/expected_potion.rbi +12 -3
- data/spec/test_data/v5.0/expected_schema_migration.rbi +12 -3
- data/spec/test_data/v5.0/expected_spell_book.rbi +12 -3
- data/spec/test_data/v5.0/expected_squib.rbi +16 -7
- data/spec/test_data/v5.0/expected_wand.rbi +27 -9
- data/spec/test_data/v5.0/expected_wizard.rbi +16 -7
- data/spec/test_data/v5.0/expected_wizard_wo_spellbook.rbi +16 -7
- data/spec/test_data/v5.1/expected_helpers.rbi +5 -0
- data/spec/test_data/v5.1/expected_helpers_with_application_and_devise_helpers.rbi +5 -0
- data/spec/test_data/v5.1/expected_internal_metadata.rbi +16 -7
- data/spec/test_data/v5.1/expected_potion.rbi +12 -3
- data/spec/test_data/v5.1/expected_schema_migration.rbi +12 -3
- data/spec/test_data/v5.1/expected_spell_book.rbi +12 -3
- data/spec/test_data/v5.1/expected_squib.rbi +16 -7
- data/spec/test_data/v5.1/expected_wand.rbi +27 -9
- data/spec/test_data/v5.1/expected_wizard.rbi +16 -7
- data/spec/test_data/v5.1/expected_wizard_wo_spellbook.rbi +16 -7
- data/spec/test_data/v5.2/expected_attachment.rbi +12 -3
- data/spec/test_data/v5.2/expected_blob.rbi +12 -3
- data/spec/test_data/v5.2/expected_helpers.rbi +5 -0
- data/spec/test_data/v5.2/expected_helpers_with_application_and_devise_helpers.rbi +5 -0
- data/spec/test_data/v5.2/expected_internal_metadata.rbi +16 -7
- data/spec/test_data/v5.2/expected_potion.rbi +12 -3
- data/spec/test_data/v5.2/expected_schema_migration.rbi +12 -3
- data/spec/test_data/v5.2/expected_spell_book.rbi +12 -3
- data/spec/test_data/v5.2/expected_squib.rbi +16 -7
- data/spec/test_data/v5.2/expected_wand.rbi +27 -9
- data/spec/test_data/v5.2/expected_wizard.rbi +16 -7
- data/spec/test_data/v5.2/expected_wizard_wo_spellbook.rbi +16 -7
- data/spec/test_data/v6.0/expected_attachment.rbi +12 -3
- data/spec/test_data/v6.0/expected_blob.rbi +12 -3
- data/spec/test_data/v6.0/expected_helpers.rbi +5 -0
- data/spec/test_data/v6.0/expected_helpers_with_application_and_devise_helpers.rbi +5 -0
- data/spec/test_data/v6.0/expected_internal_metadata.rbi +16 -7
- data/spec/test_data/v6.0/expected_potion.rbi +12 -3
- data/spec/test_data/v6.0/expected_schema_migration.rbi +12 -3
- data/spec/test_data/v6.0/expected_spell_book.rbi +12 -3
- data/spec/test_data/v6.0/expected_squib.rbi +16 -7
- data/spec/test_data/v6.0/expected_wand.rbi +27 -9
- data/spec/test_data/v6.0/expected_wizard.rbi +16 -7
- data/spec/test_data/v6.0/expected_wizard_wo_spellbook.rbi +16 -7
- metadata +2 -1
@@ -175,6 +175,15 @@ class Potion < ApplicationRecord
|
|
175
175
|
|
176
176
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
177
177
|
def self.one?(*args); end
|
178
|
+
|
179
|
+
sig { params(attributes: T.untyped, block: T.untyped).returns(Potion) }
|
180
|
+
def self.create(attributes = nil, &block); end
|
181
|
+
|
182
|
+
sig { params(attributes: T.untyped, block: T.untyped).returns(Potion) }
|
183
|
+
def self.create!(attributes = nil, &block); end
|
184
|
+
|
185
|
+
sig { params(attributes: T.untyped, block: T.untyped).returns(Potion) }
|
186
|
+
def self.new(attributes = nil, &block); end
|
178
187
|
end
|
179
188
|
|
180
189
|
class Potion::ActiveRecord_Relation < ActiveRecord::Relation
|
@@ -332,7 +341,7 @@ class Potion::ActiveRecord_Relation < ActiveRecord::Relation
|
|
332
341
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
333
342
|
def one?(*args); end
|
334
343
|
|
335
|
-
sig { override.params(block: T.proc.params(e: Potion).void).
|
344
|
+
sig { override.params(block: T.proc.params(e: Potion).void).returns(T::Array[Potion]) }
|
336
345
|
def each(&block); end
|
337
346
|
|
338
347
|
sig { params(level: T.nilable(Integer)).returns(T::Array[Potion]) }
|
@@ -505,7 +514,7 @@ class Potion::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelati
|
|
505
514
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
506
515
|
def one?(*args); end
|
507
516
|
|
508
|
-
sig { override.params(block: T.proc.params(e: Potion).void).
|
517
|
+
sig { override.params(block: T.proc.params(e: Potion).void).returns(T::Array[Potion]) }
|
509
518
|
def each(&block); end
|
510
519
|
|
511
520
|
sig { params(level: T.nilable(Integer)).returns(T::Array[Potion]) }
|
@@ -677,7 +686,7 @@ class Potion::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associat
|
|
677
686
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
678
687
|
def one?(*args); end
|
679
688
|
|
680
|
-
sig { override.params(block: T.proc.params(e: Potion).void).
|
689
|
+
sig { override.params(block: T.proc.params(e: Potion).void).returns(T::Array[Potion]) }
|
681
690
|
def each(&block); end
|
682
691
|
|
683
692
|
sig { params(level: T.nilable(Integer)).returns(T::Array[Potion]) }
|
@@ -189,6 +189,15 @@ class ActiveRecord::SchemaMigration < ActiveRecord::Base
|
|
189
189
|
|
190
190
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
191
191
|
def self.one?(*args); end
|
192
|
+
|
193
|
+
sig { params(attributes: T.untyped, block: T.untyped).returns(ActiveRecord::SchemaMigration) }
|
194
|
+
def self.create(attributes = nil, &block); end
|
195
|
+
|
196
|
+
sig { params(attributes: T.untyped, block: T.untyped).returns(ActiveRecord::SchemaMigration) }
|
197
|
+
def self.create!(attributes = nil, &block); end
|
198
|
+
|
199
|
+
sig { params(attributes: T.untyped, block: T.untyped).returns(ActiveRecord::SchemaMigration) }
|
200
|
+
def self.new(attributes = nil, &block); end
|
192
201
|
end
|
193
202
|
|
194
203
|
class ActiveRecord::SchemaMigration::ActiveRecord_Relation < ActiveRecord::Relation
|
@@ -346,7 +355,7 @@ class ActiveRecord::SchemaMigration::ActiveRecord_Relation < ActiveRecord::Relat
|
|
346
355
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
347
356
|
def one?(*args); end
|
348
357
|
|
349
|
-
sig { override.params(block: T.proc.params(e: ActiveRecord::SchemaMigration).void).
|
358
|
+
sig { override.params(block: T.proc.params(e: ActiveRecord::SchemaMigration).void).returns(T::Array[ActiveRecord::SchemaMigration]) }
|
350
359
|
def each(&block); end
|
351
360
|
|
352
361
|
sig { params(level: T.nilable(Integer)).returns(T::Array[ActiveRecord::SchemaMigration]) }
|
@@ -519,7 +528,7 @@ class ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation < ActiveRe
|
|
519
528
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
520
529
|
def one?(*args); end
|
521
530
|
|
522
|
-
sig { override.params(block: T.proc.params(e: ActiveRecord::SchemaMigration).void).
|
531
|
+
sig { override.params(block: T.proc.params(e: ActiveRecord::SchemaMigration).void).returns(T::Array[ActiveRecord::SchemaMigration]) }
|
523
532
|
def each(&block); end
|
524
533
|
|
525
534
|
sig { params(level: T.nilable(Integer)).returns(T::Array[ActiveRecord::SchemaMigration]) }
|
@@ -691,7 +700,7 @@ class ActiveRecord::SchemaMigration::ActiveRecord_Associations_CollectionProxy <
|
|
691
700
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
692
701
|
def one?(*args); end
|
693
702
|
|
694
|
-
sig { override.params(block: T.proc.params(e: ActiveRecord::SchemaMigration).void).
|
703
|
+
sig { override.params(block: T.proc.params(e: ActiveRecord::SchemaMigration).void).returns(T::Array[ActiveRecord::SchemaMigration]) }
|
695
704
|
def each(&block); end
|
696
705
|
|
697
706
|
sig { params(level: T.nilable(Integer)).returns(T::Array[ActiveRecord::SchemaMigration]) }
|
@@ -262,6 +262,15 @@ class SpellBook < ApplicationRecord
|
|
262
262
|
|
263
263
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
264
264
|
def self.one?(*args); end
|
265
|
+
|
266
|
+
sig { params(attributes: T.untyped, block: T.untyped).returns(SpellBook) }
|
267
|
+
def self.create(attributes = nil, &block); end
|
268
|
+
|
269
|
+
sig { params(attributes: T.untyped, block: T.untyped).returns(SpellBook) }
|
270
|
+
def self.create!(attributes = nil, &block); end
|
271
|
+
|
272
|
+
sig { params(attributes: T.untyped, block: T.untyped).returns(SpellBook) }
|
273
|
+
def self.new(attributes = nil, &block); end
|
265
274
|
end
|
266
275
|
|
267
276
|
class SpellBook::ActiveRecord_Relation < ActiveRecord::Relation
|
@@ -428,7 +437,7 @@ class SpellBook::ActiveRecord_Relation < ActiveRecord::Relation
|
|
428
437
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
429
438
|
def one?(*args); end
|
430
439
|
|
431
|
-
sig { override.params(block: T.proc.params(e: SpellBook).void).
|
440
|
+
sig { override.params(block: T.proc.params(e: SpellBook).void).returns(T::Array[SpellBook]) }
|
432
441
|
def each(&block); end
|
433
442
|
|
434
443
|
sig { params(level: T.nilable(Integer)).returns(T::Array[SpellBook]) }
|
@@ -610,7 +619,7 @@ class SpellBook::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRel
|
|
610
619
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
611
620
|
def one?(*args); end
|
612
621
|
|
613
|
-
sig { override.params(block: T.proc.params(e: SpellBook).void).
|
622
|
+
sig { override.params(block: T.proc.params(e: SpellBook).void).returns(T::Array[SpellBook]) }
|
614
623
|
def each(&block); end
|
615
624
|
|
616
625
|
sig { params(level: T.nilable(Integer)).returns(T::Array[SpellBook]) }
|
@@ -791,7 +800,7 @@ class SpellBook::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Assoc
|
|
791
800
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
792
801
|
def one?(*args); end
|
793
802
|
|
794
|
-
sig { override.params(block: T.proc.params(e: SpellBook).void).
|
803
|
+
sig { override.params(block: T.proc.params(e: SpellBook).void).returns(T::Array[SpellBook]) }
|
795
804
|
def each(&block); end
|
796
805
|
|
797
806
|
sig { params(level: T.nilable(Integer)).returns(T::Array[SpellBook]) }
|
@@ -125,10 +125,10 @@ module Squib::GeneratedAttributeMethods
|
|
125
125
|
sig { returns(T::Boolean) }
|
126
126
|
def broom?; end
|
127
127
|
|
128
|
-
sig { returns(
|
128
|
+
sig { returns(ActiveSupport::TimeWithZone) }
|
129
129
|
def created_at; end
|
130
130
|
|
131
|
-
sig { params(value: DateTime).void }
|
131
|
+
sig { params(value: T.any(DateTime, Date, Time, ActiveSupport::TimeWithZone)).void }
|
132
132
|
def created_at=(value); end
|
133
133
|
|
134
134
|
sig { returns(T::Boolean) }
|
@@ -224,10 +224,10 @@ module Squib::GeneratedAttributeMethods
|
|
224
224
|
sig { returns(T::Boolean) }
|
225
225
|
def type?; end
|
226
226
|
|
227
|
-
sig { returns(
|
227
|
+
sig { returns(ActiveSupport::TimeWithZone) }
|
228
228
|
def updated_at; end
|
229
229
|
|
230
|
-
sig { params(value: DateTime).void }
|
230
|
+
sig { params(value: T.any(DateTime, Date, Time, ActiveSupport::TimeWithZone)).void }
|
231
231
|
def updated_at=(value); end
|
232
232
|
|
233
233
|
sig { returns(T::Boolean) }
|
@@ -493,6 +493,15 @@ class Squib < Wizard
|
|
493
493
|
|
494
494
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
495
495
|
def self.one?(*args); end
|
496
|
+
|
497
|
+
sig { params(attributes: T.untyped, block: T.untyped).returns(Squib) }
|
498
|
+
def self.create(attributes = nil, &block); end
|
499
|
+
|
500
|
+
sig { params(attributes: T.untyped, block: T.untyped).returns(Squib) }
|
501
|
+
def self.create!(attributes = nil, &block); end
|
502
|
+
|
503
|
+
sig { params(attributes: T.untyped, block: T.untyped).returns(Squib) }
|
504
|
+
def self.new(attributes = nil, &block); end
|
496
505
|
end
|
497
506
|
|
498
507
|
class Squib::ActiveRecord_Relation < ActiveRecord::Relation
|
@@ -704,7 +713,7 @@ class Squib::ActiveRecord_Relation < ActiveRecord::Relation
|
|
704
713
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
705
714
|
def one?(*args); end
|
706
715
|
|
707
|
-
sig { override.params(block: T.proc.params(e: Squib).void).
|
716
|
+
sig { override.params(block: T.proc.params(e: Squib).void).returns(T::Array[Squib]) }
|
708
717
|
def each(&block); end
|
709
718
|
|
710
719
|
sig { params(level: T.nilable(Integer)).returns(T::Array[Squib]) }
|
@@ -931,7 +940,7 @@ class Squib::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelatio
|
|
931
940
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
932
941
|
def one?(*args); end
|
933
942
|
|
934
|
-
sig { override.params(block: T.proc.params(e: Squib).void).
|
943
|
+
sig { override.params(block: T.proc.params(e: Squib).void).returns(T::Array[Squib]) }
|
935
944
|
def each(&block); end
|
936
945
|
|
937
946
|
sig { params(level: T.nilable(Integer)).returns(T::Array[Squib]) }
|
@@ -1157,7 +1166,7 @@ class Squib::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associati
|
|
1157
1166
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
1158
1167
|
def one?(*args); end
|
1159
1168
|
|
1160
|
-
sig { override.params(block: T.proc.params(e: Squib).void).
|
1169
|
+
sig { override.params(block: T.proc.params(e: Squib).void).returns(T::Array[Squib]) }
|
1161
1170
|
def each(&block); end
|
1162
1171
|
|
1163
1172
|
sig { params(level: T.nilable(Integer)).returns(T::Array[Squib]) }
|
@@ -47,6 +47,15 @@ module Wand::GeneratedAttributeMethods
|
|
47
47
|
sig { returns(T::Boolean) }
|
48
48
|
def broken?; end
|
49
49
|
|
50
|
+
sig { returns(T.nilable(Time)) }
|
51
|
+
def broken_at; end
|
52
|
+
|
53
|
+
sig { params(value: T.nilable(Time)).void }
|
54
|
+
def broken_at=(value); end
|
55
|
+
|
56
|
+
sig { returns(T::Boolean) }
|
57
|
+
def broken_at?; end
|
58
|
+
|
50
59
|
sig { returns(T.nilable(Date)) }
|
51
60
|
def chosen_at_date; end
|
52
61
|
|
@@ -56,10 +65,10 @@ module Wand::GeneratedAttributeMethods
|
|
56
65
|
sig { returns(T::Boolean) }
|
57
66
|
def chosen_at_date?; end
|
58
67
|
|
59
|
-
sig { returns(T.nilable(
|
68
|
+
sig { returns(T.nilable(ActiveSupport::TimeWithZone)) }
|
60
69
|
def chosen_at_time; end
|
61
70
|
|
62
|
-
sig { params(value: T.nilable(Time)).void }
|
71
|
+
sig { params(value: T.nilable(T.any(DateTime, Date, Time, ActiveSupport::TimeWithZone))).void }
|
63
72
|
def chosen_at_time=(value); end
|
64
73
|
|
65
74
|
sig { returns(T::Boolean) }
|
@@ -74,10 +83,10 @@ module Wand::GeneratedAttributeMethods
|
|
74
83
|
sig { returns(T::Boolean) }
|
75
84
|
def core_type?; end
|
76
85
|
|
77
|
-
sig { returns(
|
86
|
+
sig { returns(ActiveSupport::TimeWithZone) }
|
78
87
|
def created_at; end
|
79
88
|
|
80
|
-
sig { params(value: DateTime).void }
|
89
|
+
sig { params(value: T.any(DateTime, Date, Time, ActiveSupport::TimeWithZone)).void }
|
81
90
|
def created_at=(value); end
|
82
91
|
|
83
92
|
sig { returns(T::Boolean) }
|
@@ -119,10 +128,10 @@ module Wand::GeneratedAttributeMethods
|
|
119
128
|
sig { returns(T::Boolean) }
|
120
129
|
def reflectance?; end
|
121
130
|
|
122
|
-
sig { returns(
|
131
|
+
sig { returns(ActiveSupport::TimeWithZone) }
|
123
132
|
def updated_at; end
|
124
133
|
|
125
|
-
sig { params(value: DateTime).void }
|
134
|
+
sig { params(value: T.any(DateTime, Date, Time, ActiveSupport::TimeWithZone)).void }
|
126
135
|
def updated_at=(value); end
|
127
136
|
|
128
137
|
sig { returns(T::Boolean) }
|
@@ -344,6 +353,15 @@ class Wand < ApplicationRecord
|
|
344
353
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
345
354
|
def self.one?(*args); end
|
346
355
|
|
356
|
+
sig { params(attributes: T.untyped, block: T.untyped).returns(Wand) }
|
357
|
+
def self.create(attributes = nil, &block); end
|
358
|
+
|
359
|
+
sig { params(attributes: T.untyped, block: T.untyped).returns(Wand) }
|
360
|
+
def self.create!(attributes = nil, &block); end
|
361
|
+
|
362
|
+
sig { params(attributes: T.untyped, block: T.untyped).returns(Wand) }
|
363
|
+
def self.new(attributes = nil, &block); end
|
364
|
+
|
347
365
|
sig { returns(T::Array[Wand]) }
|
348
366
|
def self.mythicals; end
|
349
367
|
end
|
@@ -515,7 +533,7 @@ class Wand::ActiveRecord_Relation < ActiveRecord::Relation
|
|
515
533
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
516
534
|
def one?(*args); end
|
517
535
|
|
518
|
-
sig { override.params(block: T.proc.params(e: Wand).void).
|
536
|
+
sig { override.params(block: T.proc.params(e: Wand).void).returns(T::Array[Wand]) }
|
519
537
|
def each(&block); end
|
520
538
|
|
521
539
|
sig { params(level: T.nilable(Integer)).returns(T::Array[Wand]) }
|
@@ -700,7 +718,7 @@ class Wand::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
|
700
718
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
701
719
|
def one?(*args); end
|
702
720
|
|
703
|
-
sig { override.params(block: T.proc.params(e: Wand).void).
|
721
|
+
sig { override.params(block: T.proc.params(e: Wand).void).returns(T::Array[Wand]) }
|
704
722
|
def each(&block); end
|
705
723
|
|
706
724
|
sig { params(level: T.nilable(Integer)).returns(T::Array[Wand]) }
|
@@ -884,7 +902,7 @@ class Wand::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associatio
|
|
884
902
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
885
903
|
def one?(*args); end
|
886
904
|
|
887
|
-
sig { override.params(block: T.proc.params(e: Wand).void).
|
905
|
+
sig { override.params(block: T.proc.params(e: Wand).void).returns(T::Array[Wand]) }
|
888
906
|
def each(&block); end
|
889
907
|
|
890
908
|
sig { params(level: T.nilable(Integer)).returns(T::Array[Wand]) }
|
@@ -125,10 +125,10 @@ module Wizard::GeneratedAttributeMethods
|
|
125
125
|
sig { returns(T::Boolean) }
|
126
126
|
def broom?; end
|
127
127
|
|
128
|
-
sig { returns(
|
128
|
+
sig { returns(ActiveSupport::TimeWithZone) }
|
129
129
|
def created_at; end
|
130
130
|
|
131
|
-
sig { params(value: DateTime).void }
|
131
|
+
sig { params(value: T.any(DateTime, Date, Time, ActiveSupport::TimeWithZone)).void }
|
132
132
|
def created_at=(value); end
|
133
133
|
|
134
134
|
sig { returns(T::Boolean) }
|
@@ -224,10 +224,10 @@ module Wizard::GeneratedAttributeMethods
|
|
224
224
|
sig { returns(T::Boolean) }
|
225
225
|
def type?; end
|
226
226
|
|
227
|
-
sig { returns(
|
227
|
+
sig { returns(ActiveSupport::TimeWithZone) }
|
228
228
|
def updated_at; end
|
229
229
|
|
230
|
-
sig { params(value: DateTime).void }
|
230
|
+
sig { params(value: T.any(DateTime, Date, Time, ActiveSupport::TimeWithZone)).void }
|
231
231
|
def updated_at=(value); end
|
232
232
|
|
233
233
|
sig { returns(T::Boolean) }
|
@@ -493,6 +493,15 @@ class Wizard < ApplicationRecord
|
|
493
493
|
|
494
494
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
495
495
|
def self.one?(*args); end
|
496
|
+
|
497
|
+
sig { params(attributes: T.untyped, block: T.untyped).returns(Wizard) }
|
498
|
+
def self.create(attributes = nil, &block); end
|
499
|
+
|
500
|
+
sig { params(attributes: T.untyped, block: T.untyped).returns(Wizard) }
|
501
|
+
def self.create!(attributes = nil, &block); end
|
502
|
+
|
503
|
+
sig { params(attributes: T.untyped, block: T.untyped).returns(Wizard) }
|
504
|
+
def self.new(attributes = nil, &block); end
|
496
505
|
end
|
497
506
|
|
498
507
|
class Wizard::ActiveRecord_Relation < ActiveRecord::Relation
|
@@ -704,7 +713,7 @@ class Wizard::ActiveRecord_Relation < ActiveRecord::Relation
|
|
704
713
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
705
714
|
def one?(*args); end
|
706
715
|
|
707
|
-
sig { override.params(block: T.proc.params(e: Wizard).void).
|
716
|
+
sig { override.params(block: T.proc.params(e: Wizard).void).returns(T::Array[Wizard]) }
|
708
717
|
def each(&block); end
|
709
718
|
|
710
719
|
sig { params(level: T.nilable(Integer)).returns(T::Array[Wizard]) }
|
@@ -931,7 +940,7 @@ class Wizard::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelati
|
|
931
940
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
932
941
|
def one?(*args); end
|
933
942
|
|
934
|
-
sig { override.params(block: T.proc.params(e: Wizard).void).
|
943
|
+
sig { override.params(block: T.proc.params(e: Wizard).void).returns(T::Array[Wizard]) }
|
935
944
|
def each(&block); end
|
936
945
|
|
937
946
|
sig { params(level: T.nilable(Integer)).returns(T::Array[Wizard]) }
|
@@ -1157,7 +1166,7 @@ class Wizard::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associat
|
|
1157
1166
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
1158
1167
|
def one?(*args); end
|
1159
1168
|
|
1160
|
-
sig { override.params(block: T.proc.params(e: Wizard).void).
|
1169
|
+
sig { override.params(block: T.proc.params(e: Wizard).void).returns(T::Array[Wizard]) }
|
1161
1170
|
def each(&block); end
|
1162
1171
|
|
1163
1172
|
sig { params(level: T.nilable(Integer)).returns(T::Array[Wizard]) }
|
@@ -125,10 +125,10 @@ module Wizard::GeneratedAttributeMethods
|
|
125
125
|
sig { returns(T::Boolean) }
|
126
126
|
def broom?; end
|
127
127
|
|
128
|
-
sig { returns(
|
128
|
+
sig { returns(ActiveSupport::TimeWithZone) }
|
129
129
|
def created_at; end
|
130
130
|
|
131
|
-
sig { params(value: DateTime).void }
|
131
|
+
sig { params(value: T.any(DateTime, Date, Time, ActiveSupport::TimeWithZone)).void }
|
132
132
|
def created_at=(value); end
|
133
133
|
|
134
134
|
sig { returns(T::Boolean) }
|
@@ -224,10 +224,10 @@ module Wizard::GeneratedAttributeMethods
|
|
224
224
|
sig { returns(T::Boolean) }
|
225
225
|
def type?; end
|
226
226
|
|
227
|
-
sig { returns(
|
227
|
+
sig { returns(ActiveSupport::TimeWithZone) }
|
228
228
|
def updated_at; end
|
229
229
|
|
230
|
-
sig { params(value: DateTime).void }
|
230
|
+
sig { params(value: T.any(DateTime, Date, Time, ActiveSupport::TimeWithZone)).void }
|
231
231
|
def updated_at=(value); end
|
232
232
|
|
233
233
|
sig { returns(T::Boolean) }
|
@@ -493,6 +493,15 @@ class Wizard < ApplicationRecord
|
|
493
493
|
|
494
494
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
495
495
|
def self.one?(*args); end
|
496
|
+
|
497
|
+
sig { params(attributes: T.untyped, block: T.untyped).returns(Wizard) }
|
498
|
+
def self.create(attributes = nil, &block); end
|
499
|
+
|
500
|
+
sig { params(attributes: T.untyped, block: T.untyped).returns(Wizard) }
|
501
|
+
def self.create!(attributes = nil, &block); end
|
502
|
+
|
503
|
+
sig { params(attributes: T.untyped, block: T.untyped).returns(Wizard) }
|
504
|
+
def self.new(attributes = nil, &block); end
|
496
505
|
end
|
497
506
|
|
498
507
|
class Wizard::ActiveRecord_Relation < ActiveRecord::Relation
|
@@ -704,7 +713,7 @@ class Wizard::ActiveRecord_Relation < ActiveRecord::Relation
|
|
704
713
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
705
714
|
def one?(*args); end
|
706
715
|
|
707
|
-
sig { override.params(block: T.proc.params(e: Wizard).void).
|
716
|
+
sig { override.params(block: T.proc.params(e: Wizard).void).returns(T::Array[Wizard]) }
|
708
717
|
def each(&block); end
|
709
718
|
|
710
719
|
sig { params(level: T.nilable(Integer)).returns(T::Array[Wizard]) }
|
@@ -931,7 +940,7 @@ class Wizard::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelati
|
|
931
940
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
932
941
|
def one?(*args); end
|
933
942
|
|
934
|
-
sig { override.params(block: T.proc.params(e: Wizard).void).
|
943
|
+
sig { override.params(block: T.proc.params(e: Wizard).void).returns(T::Array[Wizard]) }
|
935
944
|
def each(&block); end
|
936
945
|
|
937
946
|
sig { params(level: T.nilable(Integer)).returns(T::Array[Wizard]) }
|
@@ -1157,7 +1166,7 @@ class Wizard::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associat
|
|
1157
1166
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
1158
1167
|
def one?(*args); end
|
1159
1168
|
|
1160
|
-
sig { override.params(block: T.proc.params(e: Wizard).void).
|
1169
|
+
sig { override.params(block: T.proc.params(e: Wizard).void).returns(T::Array[Wizard]) }
|
1161
1170
|
def each(&block); end
|
1162
1171
|
|
1163
1172
|
sig { params(level: T.nilable(Integer)).returns(T::Array[Wizard]) }
|
@@ -192,6 +192,15 @@ class ActiveStorage::Attachment < ActiveRecord::Base
|
|
192
192
|
|
193
193
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
194
194
|
def self.one?(*args); end
|
195
|
+
|
196
|
+
sig { params(attributes: T.untyped, block: T.untyped).returns(ActiveStorage::Attachment) }
|
197
|
+
def self.create(attributes = nil, &block); end
|
198
|
+
|
199
|
+
sig { params(attributes: T.untyped, block: T.untyped).returns(ActiveStorage::Attachment) }
|
200
|
+
def self.create!(attributes = nil, &block); end
|
201
|
+
|
202
|
+
sig { params(attributes: T.untyped, block: T.untyped).returns(ActiveStorage::Attachment) }
|
203
|
+
def self.new(attributes = nil, &block); end
|
195
204
|
end
|
196
205
|
|
197
206
|
class ActiveStorage::Attachment::ActiveRecord_Relation < ActiveRecord::Relation
|
@@ -349,7 +358,7 @@ class ActiveStorage::Attachment::ActiveRecord_Relation < ActiveRecord::Relation
|
|
349
358
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
350
359
|
def one?(*args); end
|
351
360
|
|
352
|
-
sig { override.params(block: T.proc.params(e: ActiveStorage::Attachment).void).
|
361
|
+
sig { override.params(block: T.proc.params(e: ActiveStorage::Attachment).void).returns(T::Array[ActiveStorage::Attachment]) }
|
353
362
|
def each(&block); end
|
354
363
|
|
355
364
|
sig { params(level: T.nilable(Integer)).returns(T::Array[ActiveStorage::Attachment]) }
|
@@ -522,7 +531,7 @@ class ActiveStorage::Attachment::ActiveRecord_AssociationRelation < ActiveRecord
|
|
522
531
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
523
532
|
def one?(*args); end
|
524
533
|
|
525
|
-
sig { override.params(block: T.proc.params(e: ActiveStorage::Attachment).void).
|
534
|
+
sig { override.params(block: T.proc.params(e: ActiveStorage::Attachment).void).returns(T::Array[ActiveStorage::Attachment]) }
|
526
535
|
def each(&block); end
|
527
536
|
|
528
537
|
sig { params(level: T.nilable(Integer)).returns(T::Array[ActiveStorage::Attachment]) }
|
@@ -694,7 +703,7 @@ class ActiveStorage::Attachment::ActiveRecord_Associations_CollectionProxy < Act
|
|
694
703
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
695
704
|
def one?(*args); end
|
696
705
|
|
697
|
-
sig { override.params(block: T.proc.params(e: ActiveStorage::Attachment).void).
|
706
|
+
sig { override.params(block: T.proc.params(e: ActiveStorage::Attachment).void).returns(T::Array[ActiveStorage::Attachment]) }
|
698
707
|
def each(&block); end
|
699
708
|
|
700
709
|
sig { params(level: T.nilable(Integer)).returns(T::Array[ActiveStorage::Attachment]) }
|