activerecord-ejection_seat 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +11 -8
  3. data/.ruby-version +1 -0
  4. data/.tool-versions +1 -0
  5. data/Gemfile +2 -2
  6. data/Gemfile.lock +42 -55
  7. data/README.md +16 -6
  8. data/Rakefile +6 -6
  9. data/activerecord-ejection_seat.gemspec +40 -0
  10. data/lib/activerecord-ejection_seat/attributes_builder.rb +42 -0
  11. data/lib/activerecord-ejection_seat/ejectable.rb +7 -10
  12. data/lib/activerecord-ejection_seat/props_builder.rb +35 -23
  13. data/lib/activerecord-ejection_seat/version.rb +2 -2
  14. data/lib/activerecord-ejection_seat.rb +6 -3
  15. data/sorbet/rbi/gems/activemodel@7.0.4.1.rbi +6022 -0
  16. data/sorbet/rbi/gems/activerecord@7.0.4.1.rbi +37791 -0
  17. data/sorbet/rbi/gems/activesupport@7.0.4.1.rbi +18127 -0
  18. data/sorbet/rbi/gems/concurrent-ruby@1.1.10.rbi +11626 -2
  19. data/sorbet/rbi/gems/minitest@5.17.0.rbi +2319 -0
  20. data/sorbet/rbi/gems/{parser@3.1.3.0.rbi → parser@3.2.0.0.rbi} +907 -821
  21. data/sorbet/rbi/gems/{prettier_print@1.1.0.rbi → prettier_print@1.2.0.rbi} +0 -0
  22. data/sorbet/rbi/gems/{rubocop-ast@1.24.0.rbi → rubocop-ast@1.24.1.rbi} +702 -458
  23. data/sorbet/rbi/gems/rubocop-minitest@0.26.1.rbi +2320 -0
  24. data/sorbet/rbi/gems/{rubocop@1.41.0.rbi → rubocop@1.43.0.rbi} +2743 -625
  25. data/sorbet/rbi/gems/{ruby-lsp@0.3.7.rbi → ruby-lsp@0.3.8.rbi} +2 -1
  26. data/sorbet/rbi/gems/{sqlite3@1.5.4.rbi → sqlite3@1.6.0.rbi} +73 -0
  27. data/sorbet/rbi/gems/{syntax_tree@4.3.0.rbi → syntax_tree@5.2.0.rbi} +0 -0
  28. data/sorbet/rbi/gems/{tapioca@0.10.4.rbi → tapioca@0.10.5.rbi} +279 -96
  29. data/sorbet/rbi/gems/{unicode-display_width@2.3.0.rbi → unicode-display_width@2.4.2.rbi} +26 -7
  30. data/sorbet/rbi/gems/{unparser@0.6.5.rbi → unparser@0.6.7.rbi} +323 -64
  31. data/sorbet/rbi/gems/{yard-sorbet@0.7.0.rbi → yard-sorbet@0.8.0.rbi} +91 -41
  32. data/sorbet/rbi/shims/location.rbi +13 -0
  33. data/sorbet/rbi/shims/post.rbi +16 -0
  34. data/sorbet/rbi/shims/user.rbi +19 -0
  35. data/sorbet/rbi/todo.rbi +0 -4
  36. data/sorbet/tapioca/require.rb +16 -2
  37. metadata +29 -27
  38. data/sorbet/rbi/gems/activemodel@7.0.4.rbi +0 -8
  39. data/sorbet/rbi/gems/activerecord@7.0.4.rbi +0 -11
  40. data/sorbet/rbi/gems/activesupport@7.0.4.rbi +0 -93
  41. data/sorbet/rbi/gems/minitest@5.16.3.rbi +0 -8
  42. data/sorbet/rbi/gems/rspec-core@3.12.0.rbi +0 -10588
  43. data/sorbet/rbi/gems/rspec-expectations@3.12.1.rbi +0 -7817
  44. data/sorbet/rbi/gems/rspec-mocks@3.12.1.rbi +0 -4994
  45. data/sorbet/rbi/gems/rspec-support@3.12.0.rbi +0 -1477
  46. data/sorbet/rbi/gems/rspec@3.12.0.rbi +0 -10
  47. data/sorbet/rbi/gems/rubocop-rspec@2.16.0.rbi +0 -7650
@@ -4,10 +4,11 @@
4
4
  # This is an autogenerated file for types exported from the `ruby-lsp` gem.
5
5
  # Please instead update this file by running `bin/tapioca gem ruby-lsp`.
6
6
 
7
+ # source://ruby-lsp//lib/ruby-lsp.rb#4
7
8
  module RubyLsp; end
8
9
 
9
10
  # source://ruby-lsp//lib/ruby-lsp.rb#5
10
11
  RubyLsp::VERSION = T.let(T.unsafe(nil), String)
11
12
 
12
- # source://tapioca/0.10.4/lib/tapioca/helpers/source_uri.rb#10
13
+ # source://tapioca/0.10.5/lib/tapioca/helpers/source_uri.rb#10
13
14
  URI::Source::COMPONENT = T.let(T.unsafe(nil), Array)
@@ -4,6 +4,7 @@
4
4
  # This is an autogenerated file for types exported from the `sqlite3` gem.
5
5
  # Please instead update this file by running `bin/tapioca gem sqlite3`.
6
6
 
7
+ # source://sqlite3//lib/sqlite3/constants.rb#1
7
8
  module SQLite3
8
9
  class << self
9
10
  # source://sqlite3//lib/sqlite3/version.rb#16
@@ -22,7 +23,10 @@ module SQLite3
22
23
  end
23
24
  end
24
25
 
26
+ # source://sqlite3//lib/sqlite3/errors.rb#12
25
27
  class SQLite3::AbortException < ::SQLite3::Exception; end
28
+
29
+ # source://sqlite3//lib/sqlite3/errors.rb#31
26
30
  class SQLite3::AuthorizationException < ::SQLite3::Exception; end
27
31
 
28
32
  class SQLite3::Backup
@@ -35,9 +39,17 @@ class SQLite3::Backup
35
39
  end
36
40
 
37
41
  class SQLite3::Blob < ::String; end
42
+
43
+ # source://sqlite3//lib/sqlite3/errors.rb#13
38
44
  class SQLite3::BusyException < ::SQLite3::Exception; end
45
+
46
+ # source://sqlite3//lib/sqlite3/errors.rb#22
39
47
  class SQLite3::CantOpenException < ::SQLite3::Exception; end
48
+
49
+ # source://sqlite3//lib/sqlite3/constants.rb#1
40
50
  module SQLite3::Constants; end
51
+
52
+ # source://sqlite3//lib/sqlite3/constants.rb#12
41
53
  module SQLite3::Constants::ColumnType; end
42
54
 
43
55
  # source://sqlite3//lib/sqlite3/constants.rb#16
@@ -55,6 +67,7 @@ SQLite3::Constants::ColumnType::NULL = T.let(T.unsafe(nil), Integer)
55
67
  # source://sqlite3//lib/sqlite3/constants.rb#15
56
68
  SQLite3::Constants::ColumnType::TEXT = T.let(T.unsafe(nil), Integer)
57
69
 
70
+ # source://sqlite3//lib/sqlite3/constants.rb#20
58
71
  module SQLite3::Constants::ErrorCode; end
59
72
 
60
73
  # Callback routine requested an abort
@@ -208,6 +221,8 @@ SQLite3::Constants::Open::TEMP_JOURNAL = T.let(T.unsafe(nil), Integer)
208
221
  SQLite3::Constants::Open::TRANSIENT_DB = T.let(T.unsafe(nil), Integer)
209
222
  SQLite3::Constants::Open::URI = T.let(T.unsafe(nil), Integer)
210
223
  SQLite3::Constants::Open::WAL = T.let(T.unsafe(nil), Integer)
224
+
225
+ # source://sqlite3//lib/sqlite3/constants.rb#3
211
226
  module SQLite3::Constants::TextRep; end
212
227
 
213
228
  # source://sqlite3//lib/sqlite3/constants.rb#8
@@ -228,7 +243,10 @@ SQLite3::Constants::TextRep::UTF16LE = T.let(T.unsafe(nil), Integer)
228
243
  # source://sqlite3//lib/sqlite3/constants.rb#4
229
244
  SQLite3::Constants::TextRep::UTF8 = T.let(T.unsafe(nil), Integer)
230
245
 
246
+ # source://sqlite3//lib/sqlite3/errors.rb#27
231
247
  class SQLite3::ConstraintException < ::SQLite3::Exception; end
248
+
249
+ # source://sqlite3//lib/sqlite3/errors.rb#19
232
250
  class SQLite3::CorruptException < ::SQLite3::Exception; end
233
251
 
234
252
  # The Database class encapsulates a single connection to a SQLite3 database.
@@ -256,6 +274,8 @@ class SQLite3::CorruptException < ::SQLite3::Exception; end
256
274
  # ArrayFields module from Ara Howard. If you require the ArrayFields
257
275
  # module before performing a query, and if you have not enabled results as
258
276
  # hashes, then the results will all be indexible by field name.
277
+ #
278
+ # source://sqlite3//lib/sqlite3/database.rb#35
259
279
  class SQLite3::Database
260
280
  include ::SQLite3::Pragmas
261
281
 
@@ -667,6 +687,8 @@ end
667
687
  #
668
688
  # This class will almost _always_ be instantiated indirectly, by working
669
689
  # with the create methods mentioned above.
690
+ #
691
+ # source://sqlite3//lib/sqlite3/database.rb#682
670
692
  class SQLite3::Database::FunctionProxy
671
693
  # Create a new FunctionProxy that encapsulates the given +func+ object.
672
694
  # If context is non-nil, the functions context will be set to that. If
@@ -719,8 +741,10 @@ end
719
741
  # source://sqlite3//lib/sqlite3/database.rb#727
720
742
  SQLite3::Database::NULL_TRANSLATOR = T.let(T.unsafe(nil), Proc)
721
743
 
744
+ # source://sqlite3//lib/sqlite3/errors.rb#24
722
745
  class SQLite3::EmptyException < ::SQLite3::Exception; end
723
746
 
747
+ # source://sqlite3//lib/sqlite3/errors.rb#4
724
748
  class SQLite3::Exception < ::StandardError
725
749
  # A convenience for accessing the error code for this exception.
726
750
  #
@@ -728,17 +752,40 @@ class SQLite3::Exception < ::StandardError
728
752
  def code; end
729
753
  end
730
754
 
755
+ # source://sqlite3//lib/sqlite3/errors.rb#32
731
756
  class SQLite3::FormatException < ::SQLite3::Exception; end
757
+
758
+ # source://sqlite3//lib/sqlite3/errors.rb#21
732
759
  class SQLite3::FullException < ::SQLite3::Exception; end
760
+
761
+ # source://sqlite3//lib/sqlite3/errors.rb#18
733
762
  class SQLite3::IOException < ::SQLite3::Exception; end
763
+
764
+ # source://sqlite3//lib/sqlite3/errors.rb#10
734
765
  class SQLite3::InternalException < ::SQLite3::Exception; end
766
+
767
+ # source://sqlite3//lib/sqlite3/errors.rb#17
735
768
  class SQLite3::InterruptException < ::SQLite3::Exception; end
769
+
770
+ # source://sqlite3//lib/sqlite3/errors.rb#14
736
771
  class SQLite3::LockedException < ::SQLite3::Exception; end
772
+
773
+ # source://sqlite3//lib/sqlite3/errors.rb#15
737
774
  class SQLite3::MemoryException < ::SQLite3::Exception; end
775
+
776
+ # source://sqlite3//lib/sqlite3/errors.rb#28
738
777
  class SQLite3::MismatchException < ::SQLite3::Exception; end
778
+
779
+ # source://sqlite3//lib/sqlite3/errors.rb#29
739
780
  class SQLite3::MisuseException < ::SQLite3::Exception; end
781
+
782
+ # source://sqlite3//lib/sqlite3/errors.rb#34
740
783
  class SQLite3::NotADatabaseException < ::SQLite3::Exception; end
784
+
785
+ # source://sqlite3//lib/sqlite3/errors.rb#20
741
786
  class SQLite3::NotFoundException < ::SQLite3::Exception; end
787
+
788
+ # source://sqlite3//lib/sqlite3/errors.rb#11
742
789
  class SQLite3::PermissionException < ::SQLite3::Exception; end
743
790
 
744
791
  # This module is intended for inclusion solely by the Database class. It
@@ -746,6 +793,8 @@ class SQLite3::PermissionException < ::SQLite3::Exception; end
746
793
  #
747
794
  # For a detailed description of these pragmas, see the SQLite3 documentation
748
795
  # at http://sqlite.org/pragma.html.
796
+ #
797
+ # source://sqlite3//lib/sqlite3/pragmas.rb#10
749
798
  module SQLite3::Pragmas
750
799
  # source://sqlite3//lib/sqlite3/pragmas.rb#104
751
800
  def application_id; end
@@ -1188,14 +1237,21 @@ SQLite3::Pragmas::TEMP_STORE_MODES = T.let(T.unsafe(nil), Array)
1188
1237
  # source://sqlite3//lib/sqlite3/pragmas.rb#102
1189
1238
  SQLite3::Pragmas::WAL_CHECKPOINTS = T.let(T.unsafe(nil), Array)
1190
1239
 
1240
+ # source://sqlite3//lib/sqlite3/errors.rb#23
1191
1241
  class SQLite3::ProtocolException < ::SQLite3::Exception; end
1242
+
1243
+ # source://sqlite3//lib/sqlite3/errors.rb#33
1192
1244
  class SQLite3::RangeException < ::SQLite3::Exception; end
1245
+
1246
+ # source://sqlite3//lib/sqlite3/errors.rb#16
1193
1247
  class SQLite3::ReadOnlyException < ::SQLite3::Exception; end
1194
1248
 
1195
1249
  # The ResultSet object encapsulates the enumerability of a query's output.
1196
1250
  # It is a simple cursor over the data that the query returns. It will
1197
1251
  # very rarely (if ever) be instantiated directly. Instead, clients should
1198
1252
  # obtain a ResultSet instance via Statement#execute.
1253
+ #
1254
+ # source://sqlite3//lib/sqlite3/resultset.rb#10
1199
1255
  class SQLite3::ResultSet
1200
1256
  include ::Enumerable
1201
1257
 
@@ -1279,6 +1335,7 @@ class SQLite3::ResultSet
1279
1335
  def types; end
1280
1336
  end
1281
1337
 
1338
+ # source://sqlite3//lib/sqlite3/resultset.rb#13
1282
1339
  class SQLite3::ResultSet::ArrayWithTypes < ::Array
1283
1340
  # Returns the value of attribute types.
1284
1341
  #
@@ -1293,6 +1350,7 @@ class SQLite3::ResultSet::ArrayWithTypes < ::Array
1293
1350
  def types=(_arg0); end
1294
1351
  end
1295
1352
 
1353
+ # source://sqlite3//lib/sqlite3/resultset.rb#17
1296
1354
  class SQLite3::ResultSet::ArrayWithTypesAndFields < ::Array
1297
1355
  # source://sqlite3//lib/sqlite3/resultset.rb#30
1298
1356
  def fields; end
@@ -1317,6 +1375,8 @@ end
1317
1375
 
1318
1376
  # The class of which we return an object in case we want a Hash as
1319
1377
  # result.
1378
+ #
1379
+ # source://sqlite3//lib/sqlite3/resultset.rb#42
1320
1380
  class SQLite3::ResultSet::HashWithTypesAndFields < ::Hash
1321
1381
  # source://sqlite3//lib/sqlite3/resultset.rb#64
1322
1382
  def [](key); end
@@ -1338,15 +1398,21 @@ class SQLite3::ResultSet::HashWithTypesAndFields < ::Hash
1338
1398
  def types=(_arg0); end
1339
1399
  end
1340
1400
 
1401
+ # source://sqlite3//lib/sqlite3/errors.rb#9
1341
1402
  class SQLite3::SQLException < ::SQLite3::Exception; end
1403
+
1342
1404
  SQLite3::SQLITE_LOADED_VERSION = T.let(T.unsafe(nil), String)
1343
1405
  SQLite3::SQLITE_VERSION = T.let(T.unsafe(nil), String)
1344
1406
  SQLite3::SQLITE_VERSION_NUMBER = T.let(T.unsafe(nil), Integer)
1407
+
1408
+ # source://sqlite3//lib/sqlite3/errors.rb#25
1345
1409
  class SQLite3::SchemaChangedException < ::SQLite3::Exception; end
1346
1410
 
1347
1411
  # A statement represents a prepared-but-unexecuted SQL query. It will rarely
1348
1412
  # (if ever) be instantiated directly by a client, and is most often obtained
1349
1413
  # via the Database#prepare method.
1414
+ #
1415
+ # source://sqlite3//lib/sqlite3/statement.rb#14
1350
1416
  class SQLite3::Statement
1351
1417
  include ::Enumerable
1352
1418
 
@@ -1470,6 +1536,7 @@ class SQLite3::Statement
1470
1536
  def get_metadata; end
1471
1537
  end
1472
1538
 
1539
+ # source://sqlite3//lib/sqlite3/errors.rb#26
1473
1540
  class SQLite3::TooBigException < ::SQLite3::Exception; end
1474
1541
 
1475
1542
  # The Translator class encapsulates the logic and callbacks necessary for
@@ -1480,6 +1547,8 @@ class SQLite3::TooBigException < ::SQLite3::Exception; end
1480
1547
  # Further, applications may define their own custom type translation logic
1481
1548
  # by registering translator blocks with the corresponding database's
1482
1549
  # translator instance (Database#translator).
1550
+ #
1551
+ # source://sqlite3//lib/sqlite3/translator.rb#14
1483
1552
  class SQLite3::Translator
1484
1553
  # Create a new Translator instance. It will be preinitialized with default
1485
1554
  # translators for most SQL data types.
@@ -1529,11 +1598,13 @@ class SQLite3::Translator
1529
1598
  def type_name(type); end
1530
1599
  end
1531
1600
 
1601
+ # source://sqlite3//lib/sqlite3/errors.rb#30
1532
1602
  class SQLite3::UnsupportedException < ::SQLite3::Exception; end
1533
1603
 
1534
1604
  # source://sqlite3//lib/sqlite3/version.rb#3
1535
1605
  SQLite3::VERSION = T.let(T.unsafe(nil), String)
1536
1606
 
1607
+ # source://sqlite3//lib/sqlite3/value.rb#5
1537
1608
  class SQLite3::Value
1538
1609
  # @return [Value] a new instance of Value
1539
1610
  #
@@ -1572,6 +1643,7 @@ class SQLite3::Value
1572
1643
  def type; end
1573
1644
  end
1574
1645
 
1646
+ # source://sqlite3//lib/sqlite3/version.rb#5
1575
1647
  module SQLite3::VersionProxy; end
1576
1648
 
1577
1649
  # source://sqlite3//lib/sqlite3/version.rb#9
@@ -1592,6 +1664,7 @@ SQLite3::VersionProxy::TINY = T.let(T.unsafe(nil), Integer)
1592
1664
  # source://sqlite3//lib/sqlite3/version.rb#13
1593
1665
  SQLite3::VersionProxy::VERSION = T.let(T.unsafe(nil), String)
1594
1666
 
1667
+ # source://sqlite3//lib/sqlite3/statement.rb#4
1595
1668
  class String
1596
1669
  include ::Comparable
1597
1670