packwerk 3.2.2 → 3.2.3

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 (45) hide show
  1. checksums.yaml +4 -4
  2. data/lib/packwerk/application_validator.rb +2 -1
  3. data/lib/packwerk/graph.rb +15 -56
  4. data/lib/packwerk/reference_checking/checkers/dependency_checker.rb +1 -2
  5. data/lib/packwerk/run_context.rb +5 -0
  6. data/lib/packwerk/validators/dependency_validator.rb +5 -4
  7. data/lib/packwerk/version.rb +1 -1
  8. data/sorbet/rbi/gems/{actionpack@7.0.3.1.rbi → actionpack@7.0.8.7.rbi} +1338 -1227
  9. data/sorbet/rbi/gems/{actionview@7.0.3.1.rbi → actionview@7.0.8.7.rbi} +548 -503
  10. data/sorbet/rbi/gems/{activesupport@7.0.3.1.rbi → activesupport@7.0.8.7.rbi} +714 -635
  11. data/sorbet/rbi/gems/{better_html@2.0.1.rbi → better_html@2.1.1.rbi} +21 -21
  12. data/sorbet/rbi/gems/{concurrent-ruby@1.1.10.rbi → concurrent-ruby@1.3.5.rbi} +1390 -1366
  13. data/sorbet/rbi/gems/{constant_resolver@0.2.0.rbi → constant_resolver@0.3.0.rbi} +22 -13
  14. data/sorbet/rbi/gems/{erubi@1.11.0.rbi → erubi@1.13.1.rbi} +28 -17
  15. data/sorbet/rbi/gems/{i18n@1.12.0.rbi → i18n@1.14.7.rbi} +234 -172
  16. data/sorbet/rbi/gems/{json@2.6.2.rbi → json@2.7.2.rbi} +94 -74
  17. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14237 -0
  18. data/sorbet/rbi/gems/{loofah@2.18.0.rbi → loofah@2.24.0.rbi} +470 -243
  19. data/sorbet/rbi/gems/{minitest@5.16.2.rbi → minitest@5.25.4.rbi} +577 -472
  20. data/sorbet/rbi/gems/{mocha@1.14.0.rbi → mocha@2.5.0.rbi} +468 -684
  21. data/sorbet/rbi/gems/{nokogiri@1.15.3.rbi → nokogiri@1.18.4.rbi} +1756 -869
  22. data/sorbet/rbi/gems/{parallel@1.24.0.rbi → parallel@1.25.1.rbi} +26 -20
  23. data/sorbet/rbi/gems/{racc@1.7.1.rbi → racc@1.8.1.rbi} +36 -36
  24. data/sorbet/rbi/gems/{rack-test@2.0.2.rbi → rack-test@2.2.0.rbi} +87 -114
  25. data/sorbet/rbi/gems/{rack@2.2.4.rbi → rack@2.2.13.rbi} +243 -195
  26. data/sorbet/rbi/gems/rails-dom-testing@2.2.0.rbi +754 -0
  27. data/sorbet/rbi/gems/rails-html-sanitizer@1.6.2.rbi +764 -0
  28. data/sorbet/rbi/gems/{railties@7.0.3.1.rbi → railties@7.0.8.7.rbi} +146 -140
  29. data/sorbet/rbi/gems/{regexp_parser@2.5.0.rbi → regexp_parser@2.9.2.rbi} +947 -542
  30. data/sorbet/rbi/gems/{rexml@3.2.5.rbi → rexml@3.3.9.rbi} +452 -312
  31. data/sorbet/rbi/gems/{rubocop-ast@1.21.0.rbi → rubocop-ast@1.31.3.rbi} +717 -588
  32. data/sorbet/rbi/gems/{rubocop@1.34.1.rbi → rubocop@1.64.1.rbi} +10916 -4406
  33. data/sorbet/rbi/gems/{ruby-progressbar@1.11.0.rbi → ruby-progressbar@1.13.0.rbi} +359 -281
  34. data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +8 -0
  35. data/sorbet/rbi/gems/{tzinfo@2.0.5.rbi → tzinfo@2.0.6.rbi} +144 -141
  36. data/sorbet/rbi/gems/{unicode-display_width@2.2.0.rbi → unicode-display_width@2.5.0.rbi} +24 -7
  37. metadata +36 -41
  38. data/sorbet/rbi/gems/language_server-protocol@3.16.0.3.rbi +0 -8
  39. data/sorbet/rbi/gems/prettier_print@0.1.0.rbi +0 -8
  40. data/sorbet/rbi/gems/rails-dom-testing@2.0.3.rbi +0 -455
  41. data/sorbet/rbi/gems/rails-html-sanitizer@1.4.3.rbi +0 -542
  42. data/sorbet/rbi/gems/ruby-lsp@0.2.3.rbi +0 -11
  43. data/sorbet/rbi/gems/syntax_tree@3.3.0.rbi +0 -8
  44. /data/sorbet/rbi/gems/{builder@3.2.4.rbi → builder@3.3.0.rbi} +0 -0
  45. /data/sorbet/rbi/gems/{parser@3.3.1.0.rbi → parser@3.3.3.0.rbi} +0 -0
@@ -1,4 +1,4 @@
1
- # typed: true
1
+ # typed: false
2
2
 
3
3
  # DO NOT EDIT MANUALLY
4
4
  # This is an autogenerated file for types exported from the `json` gem.
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Extends any Class to include _json_creatable?_ method.
8
8
  #
9
- # source://json//lib/json/common.rb#695
9
+ # source://json//lib/json/common.rb#690
10
10
  class Class < ::Module
11
11
  # Returns true if this class can be used to create an instance
12
12
  # from a serialised JSON string. The class has to implement a class
@@ -15,7 +15,7 @@ class Class < ::Module
15
15
  #
16
16
  # @return [Boolean]
17
17
  #
18
- # source://json//lib/json/common.rb#700
18
+ # source://json//lib/json/common.rb#695
19
19
  def json_creatable?; end
20
20
  end
21
21
 
@@ -302,6 +302,15 @@ end
302
302
  # # Raises JSON::NestingError (nesting of 2 is too deep):
303
303
  # JSON.generate(obj, max_nesting: 2)
304
304
  #
305
+ # ====== Escaping Options
306
+ #
307
+ # Options +script_safe+ (boolean) specifies wether <tt>'\u2028'</tt>, <tt>'\u2029'</tt>
308
+ # and <tt>'/'</tt> should be escaped as to make the JSON object safe to interpolate in script
309
+ # tags.
310
+ #
311
+ # Options +ascii_only+ (boolean) specifies wether all characters outside the ASCII range
312
+ # should be escaped.
313
+ #
305
314
  # ====== Output Options
306
315
  #
307
316
  # The default formatting options generate the most compact
@@ -621,8 +630,8 @@ module JSON
621
630
  # Output:
622
631
  # {"foo":[0,1],"bar":{"baz":2,"bat":3},"bam":"bad"}
623
632
  #
624
- # source://json//lib/json/common.rb#631
625
- def dump(obj, anIO = T.unsafe(nil), limit = T.unsafe(nil)); end
633
+ # source://json//lib/json/common.rb#615
634
+ def dump(obj, anIO = T.unsafe(nil), limit = T.unsafe(nil), kwargs = T.unsafe(nil)); end
626
635
 
627
636
  # :call-seq:
628
637
  # JSON.fast_generate(obj, opts) -> new_string
@@ -638,13 +647,13 @@ module JSON
638
647
  # # Raises SystemStackError (stack level too deep):
639
648
  # JSON.fast_generate(a)
640
649
  #
641
- # source://json//lib/json/common.rb#335
650
+ # source://json//lib/json/common.rb#329
642
651
  def fast_generate(obj, opts = T.unsafe(nil)); end
643
652
 
644
653
  # :stopdoc:
645
654
  # I want to deprecate these later, so I'll first be silent about them, and later delete them.
646
655
  #
647
- # source://json//lib/json/common.rb#335
656
+ # source://json//lib/json/common.rb#329
648
657
  def fast_unparse(obj, opts = T.unsafe(nil)); end
649
658
 
650
659
  # :call-seq:
@@ -683,7 +692,7 @@ module JSON
683
692
  # # Raises JSON::NestingError (nesting of 100 is too deep):
684
693
  # JSON.generate(a)
685
694
  #
686
- # source://json//lib/json/common.rb#296
695
+ # source://json//lib/json/common.rb#300
687
696
  def generate(obj, opts = T.unsafe(nil)); end
688
697
 
689
698
  # :call-seq:
@@ -814,7 +823,7 @@ module JSON
814
823
  # #<Admin:0x00000000064c41f8
815
824
  # @attributes={"type"=>"Admin", "password"=>"0wn3d"}>}
816
825
  #
817
- # source://json//lib/json/common.rb#557
826
+ # source://json//lib/json/common.rb#541
818
827
  def load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
819
828
 
820
829
  # :call-seq:
@@ -825,7 +834,7 @@ module JSON
825
834
  #
826
835
  # See method #parse.
827
836
  #
828
- # source://json//lib/json/common.rb#245
837
+ # source://json//lib/json/common.rb#249
829
838
  def load_file(filespec, opts = T.unsafe(nil)); end
830
839
 
831
840
  # :call-seq:
@@ -836,9 +845,12 @@ module JSON
836
845
  #
837
846
  # See method #parse!
838
847
  #
839
- # source://json//lib/json/common.rb#256
848
+ # source://json//lib/json/common.rb#260
840
849
  def load_file!(filespec, opts = T.unsafe(nil)); end
841
850
 
851
+ # source://json//lib/json/common.rb#643
852
+ def merge_dump_options(opts, strict: T.unsafe(nil)); end
853
+
842
854
  # :call-seq:
843
855
  # JSON.parse(source, opts) -> object
844
856
  #
@@ -887,7 +899,7 @@ module JSON
887
899
  # # Raises JSON::ParserError (783: unexpected token at ''):
888
900
  # JSON.parse('')
889
901
  #
890
- # source://json//lib/json/common.rb#215
902
+ # source://json//lib/json/common.rb#219
891
903
  def parse(source, opts = T.unsafe(nil)); end
892
904
 
893
905
  # :call-seq:
@@ -902,7 +914,7 @@ module JSON
902
914
  # which disables checking for nesting depth.
903
915
  # - Option +allow_nan+, if not provided, defaults to +true+.
904
916
  #
905
- # source://json//lib/json/common.rb#230
917
+ # source://json//lib/json/common.rb#234
906
918
  def parse!(source, opts = T.unsafe(nil)); end
907
919
 
908
920
  # :call-seq:
@@ -935,28 +947,28 @@ module JSON
935
947
  # }
936
948
  # }
937
949
  #
938
- # source://json//lib/json/common.rb#390
950
+ # source://json//lib/json/common.rb#374
939
951
  def pretty_generate(obj, opts = T.unsafe(nil)); end
940
952
 
941
953
  # :stopdoc:
942
954
  # I want to deprecate these later, so I'll first be silent about them, and later delete them.
943
955
  #
944
- # source://json//lib/json/common.rb#390
956
+ # source://json//lib/json/common.rb#374
945
957
  def pretty_unparse(obj, opts = T.unsafe(nil)); end
946
958
 
947
959
  # Recursively calls passed _Proc_ if the parsed data structure is an _Array_ or _Hash_
948
960
  #
949
- # source://json//lib/json/common.rb#575
961
+ # source://json//lib/json/common.rb#559
950
962
  def recurse_proc(result, &proc); end
951
963
 
952
- # source://json//lib/json/common.rb#557
964
+ # source://json//lib/json/common.rb#541
953
965
  def restore(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
954
966
 
955
967
  # :stopdoc:
956
968
  # I want to deprecate these later, so I'll first be silent about them, and
957
969
  # later delete them.
958
970
  #
959
- # source://json//lib/json/common.rb#296
971
+ # source://json//lib/json/common.rb#300
960
972
  def unparse(obj, opts = T.unsafe(nil)); end
961
973
 
962
974
  class << self
@@ -972,26 +984,26 @@ module JSON
972
984
  # ruby = [0, 1, nil]
973
985
  # JSON[ruby] # => '[0,1,null]'
974
986
  #
975
- # source://json//lib/json/common.rb#18
987
+ # source://json//lib/json/common.rb#22
976
988
  def [](object, opts = T.unsafe(nil)); end
977
989
 
978
- # source://json//lib/json/common.rb#81
990
+ # source://json//lib/json/common.rb#85
979
991
  def create_fast_state; end
980
992
 
981
993
  # Returns the current create identifier.
982
994
  # See also JSON.create_id=.
983
995
  #
984
- # source://json//lib/json/common.rb#126
996
+ # source://json//lib/json/common.rb#130
985
997
  def create_id; end
986
998
 
987
999
  # Sets create identifier, which is used to decide if the _json_create_
988
1000
  # hook of a class should be called; initial value is +json_class+:
989
1001
  # JSON.create_id # => 'json_class'
990
1002
  #
991
- # source://json//lib/json/common.rb#120
1003
+ # source://json//lib/json/common.rb#124
992
1004
  def create_id=(new_value); end
993
1005
 
994
- # source://json//lib/json/common.rb#91
1006
+ # source://json//lib/json/common.rb#95
995
1007
  def create_pretty_state; end
996
1008
 
997
1009
  # Return the constant located at _path_. The format of _path_ has to be
@@ -999,7 +1011,7 @@ module JSON
999
1011
  # level (absolute namespace path?). If there doesn't exist a constant at
1000
1012
  # the given path, an ArgumentError is raised.
1001
1013
  #
1002
- # source://json//lib/json/common.rb#42
1014
+ # source://json//lib/json/common.rb#46
1003
1015
  def deep_const_get(path); end
1004
1016
 
1005
1017
  # :call-seq:
@@ -1030,23 +1042,23 @@ module JSON
1030
1042
  # Output:
1031
1043
  # {"foo":[0,1],"bar":{"baz":2,"bat":3},"bam":"bad"}
1032
1044
  #
1033
- # source://json//lib/json/common.rb#631
1034
- def dump(obj, anIO = T.unsafe(nil), limit = T.unsafe(nil)); end
1045
+ # source://json//lib/json/common.rb#615
1046
+ def dump(obj, anIO = T.unsafe(nil), limit = T.unsafe(nil), kwargs = T.unsafe(nil)); end
1035
1047
 
1036
1048
  # Sets or returns the default options for the JSON.dump method.
1037
1049
  # Initially:
1038
1050
  # opts = JSON.dump_default_options
1039
- # opts # => {:max_nesting=>false, :allow_nan=>true, :escape_slash=>false}
1051
+ # opts # => {:max_nesting=>false, :allow_nan=>true, :script_safe=>false}
1040
1052
  #
1041
- # source://json//lib/json/common.rb#596
1053
+ # source://json//lib/json/common.rb#580
1042
1054
  def dump_default_options; end
1043
1055
 
1044
1056
  # Sets or returns the default options for the JSON.dump method.
1045
1057
  # Initially:
1046
1058
  # opts = JSON.dump_default_options
1047
- # opts # => {:max_nesting=>false, :allow_nan=>true, :escape_slash=>false}
1059
+ # opts # => {:max_nesting=>false, :allow_nan=>true, :script_safe=>false}
1048
1060
  #
1049
- # source://json//lib/json/common.rb#596
1061
+ # source://json//lib/json/common.rb#580
1050
1062
  def dump_default_options=(_arg0); end
1051
1063
 
1052
1064
  # :call-seq:
@@ -1063,13 +1075,13 @@ module JSON
1063
1075
  # # Raises SystemStackError (stack level too deep):
1064
1076
  # JSON.fast_generate(a)
1065
1077
  #
1066
- # source://json//lib/json/common.rb#335
1078
+ # source://json//lib/json/common.rb#329
1067
1079
  def fast_generate(obj, opts = T.unsafe(nil)); end
1068
1080
 
1069
1081
  # :stopdoc:
1070
1082
  # I want to deprecate these later, so I'll first be silent about them, and later delete them.
1071
1083
  #
1072
- # source://json//lib/json/common.rb#335
1084
+ # source://json//lib/json/common.rb#329
1073
1085
  def fast_unparse(obj, opts = T.unsafe(nil)); end
1074
1086
 
1075
1087
  # :call-seq:
@@ -1108,24 +1120,24 @@ module JSON
1108
1120
  # # Raises JSON::NestingError (nesting of 100 is too deep):
1109
1121
  # JSON.generate(a)
1110
1122
  #
1111
- # source://json//lib/json/common.rb#296
1123
+ # source://json//lib/json/common.rb#300
1112
1124
  def generate(obj, opts = T.unsafe(nil)); end
1113
1125
 
1114
1126
  # Returns the JSON generator module that is used by JSON. This is
1115
1127
  # either JSON::Ext::Generator or JSON::Pure::Generator:
1116
1128
  # JSON.generator # => JSON::Ext::Generator
1117
1129
  #
1118
- # source://json//lib/json/common.rb#103
1130
+ # source://json//lib/json/common.rb#107
1119
1131
  def generator; end
1120
1132
 
1121
1133
  # Set the module _generator_ to be used by JSON.
1122
1134
  #
1123
- # source://json//lib/json/common.rb#58
1135
+ # source://json//lib/json/common.rb#62
1124
1136
  def generator=(generator); end
1125
1137
 
1126
1138
  # Encodes string using String.encode.
1127
1139
  #
1128
- # source://json//lib/json/common.rb#653
1140
+ # source://json//lib/json/common.rb#639
1129
1141
  def iconv(to, from, string); end
1130
1142
 
1131
1143
  # :call-seq:
@@ -1256,7 +1268,7 @@ module JSON
1256
1268
  # #<Admin:0x00000000064c41f8
1257
1269
  # @attributes={"type"=>"Admin", "password"=>"0wn3d"}>}
1258
1270
  #
1259
- # source://json//lib/json/common.rb#557
1271
+ # source://json//lib/json/common.rb#541
1260
1272
  def load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
1261
1273
 
1262
1274
  # Sets or returns default options for the JSON.load method.
@@ -1264,7 +1276,7 @@ module JSON
1264
1276
  # opts = JSON.load_default_options
1265
1277
  # opts # => {:max_nesting=>false, :allow_nan=>true, :allow_blank=>true, :create_additions=>true}
1266
1278
  #
1267
- # source://json//lib/json/common.rb#420
1279
+ # source://json//lib/json/common.rb#404
1268
1280
  def load_default_options; end
1269
1281
 
1270
1282
  # Sets or returns default options for the JSON.load method.
@@ -1272,7 +1284,7 @@ module JSON
1272
1284
  # opts = JSON.load_default_options
1273
1285
  # opts # => {:max_nesting=>false, :allow_nan=>true, :allow_blank=>true, :create_additions=>true}
1274
1286
  #
1275
- # source://json//lib/json/common.rb#420
1287
+ # source://json//lib/json/common.rb#404
1276
1288
  def load_default_options=(_arg0); end
1277
1289
 
1278
1290
  # :call-seq:
@@ -1283,7 +1295,7 @@ module JSON
1283
1295
  #
1284
1296
  # See method #parse.
1285
1297
  #
1286
- # source://json//lib/json/common.rb#245
1298
+ # source://json//lib/json/common.rb#249
1287
1299
  def load_file(filespec, opts = T.unsafe(nil)); end
1288
1300
 
1289
1301
  # :call-seq:
@@ -1294,7 +1306,7 @@ module JSON
1294
1306
  #
1295
1307
  # See method #parse!
1296
1308
  #
1297
- # source://json//lib/json/common.rb#256
1309
+ # source://json//lib/json/common.rb#260
1298
1310
  def load_file!(filespec, opts = T.unsafe(nil)); end
1299
1311
 
1300
1312
  # :call-seq:
@@ -1345,7 +1357,7 @@ module JSON
1345
1357
  # # Raises JSON::ParserError (783: unexpected token at ''):
1346
1358
  # JSON.parse('')
1347
1359
  #
1348
- # source://json//lib/json/common.rb#215
1360
+ # source://json//lib/json/common.rb#219
1349
1361
  def parse(source, opts = T.unsafe(nil)); end
1350
1362
 
1351
1363
  # :call-seq:
@@ -1360,19 +1372,19 @@ module JSON
1360
1372
  # which disables checking for nesting depth.
1361
1373
  # - Option +allow_nan+, if not provided, defaults to +true+.
1362
1374
  #
1363
- # source://json//lib/json/common.rb#230
1375
+ # source://json//lib/json/common.rb#234
1364
1376
  def parse!(source, opts = T.unsafe(nil)); end
1365
1377
 
1366
1378
  # Returns the JSON parser class that is used by JSON. This is either
1367
1379
  # JSON::Ext::Parser or JSON::Pure::Parser:
1368
1380
  # JSON.parser # => JSON::Ext::Parser
1369
1381
  #
1370
- # source://json//lib/json/common.rb#29
1382
+ # source://json//lib/json/common.rb#33
1371
1383
  def parser; end
1372
1384
 
1373
1385
  # Set the JSON parser class _parser_ to be used by JSON.
1374
1386
  #
1375
- # source://json//lib/json/common.rb#32
1387
+ # source://json//lib/json/common.rb#36
1376
1388
  def parser=(parser); end
1377
1389
 
1378
1390
  # :call-seq:
@@ -1405,115 +1417,123 @@ module JSON
1405
1417
  # }
1406
1418
  # }
1407
1419
  #
1408
- # source://json//lib/json/common.rb#390
1420
+ # source://json//lib/json/common.rb#374
1409
1421
  def pretty_generate(obj, opts = T.unsafe(nil)); end
1410
1422
 
1411
1423
  # :stopdoc:
1412
1424
  # I want to deprecate these later, so I'll first be silent about them, and later delete them.
1413
1425
  #
1414
- # source://json//lib/json/common.rb#390
1426
+ # source://json//lib/json/common.rb#374
1415
1427
  def pretty_unparse(obj, opts = T.unsafe(nil)); end
1416
1428
 
1417
1429
  # Recursively calls passed _Proc_ if the parsed data structure is an _Array_ or _Hash_
1418
1430
  #
1419
- # source://json//lib/json/common.rb#575
1431
+ # source://json//lib/json/common.rb#559
1420
1432
  def recurse_proc(result, &proc); end
1421
1433
 
1422
- # source://json//lib/json/common.rb#557
1434
+ # source://json//lib/json/common.rb#541
1423
1435
  def restore(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
1424
1436
 
1425
1437
  # Sets or Returns the JSON generator state class that is used by JSON. This is
1426
1438
  # either JSON::Ext::Generator::State or JSON::Pure::Generator::State:
1427
1439
  # JSON.state # => JSON::Ext::Generator::State
1428
1440
  #
1429
- # source://json//lib/json/common.rb#108
1441
+ # source://json//lib/json/common.rb#112
1430
1442
  def state; end
1431
1443
 
1432
1444
  # Sets or Returns the JSON generator state class that is used by JSON. This is
1433
1445
  # either JSON::Ext::Generator::State or JSON::Pure::Generator::State:
1434
1446
  # JSON.state # => JSON::Ext::Generator::State
1435
1447
  #
1436
- # source://json//lib/json/common.rb#108
1448
+ # source://json//lib/json/common.rb#112
1437
1449
  def state=(_arg0); end
1438
1450
 
1439
1451
  # :stopdoc:
1440
1452
  # I want to deprecate these later, so I'll first be silent about them, and
1441
1453
  # later delete them.
1442
1454
  #
1443
- # source://json//lib/json/common.rb#296
1455
+ # source://json//lib/json/common.rb#300
1444
1456
  def unparse(obj, opts = T.unsafe(nil)); end
1457
+
1458
+ private
1459
+
1460
+ # source://json//lib/json/common.rb#643
1461
+ def merge_dump_options(opts, strict: T.unsafe(nil)); end
1445
1462
  end
1446
1463
  end
1447
1464
 
1448
- # source://json//lib/json/common.rb#114
1465
+ # source://json//lib/json/common.rb#118
1449
1466
  JSON::CREATE_ID_TLS_KEY = T.let(T.unsafe(nil), String)
1450
1467
 
1451
- # source://json//lib/json/common.rb#111
1468
+ # source://json//lib/json/common.rb#115
1452
1469
  JSON::DEFAULT_CREATE_ID = T.let(T.unsafe(nil), String)
1453
1470
 
1454
- # source://json//lib/json/generic_object.rb#5
1471
+ # source://json//lib/json/generic_object.rb#9
1455
1472
  class JSON::GenericObject < ::OpenStruct
1456
- # source://json//lib/json/generic_object.rb#63
1473
+ # source://json//lib/json/generic_object.rb#67
1457
1474
  def as_json(*_arg0); end
1458
1475
 
1459
- # source://json//lib/json/generic_object.rb#47
1476
+ # source://json//lib/json/generic_object.rb#51
1460
1477
  def to_hash; end
1461
1478
 
1462
- # source://json//lib/json/generic_object.rb#67
1479
+ # source://json//lib/json/generic_object.rb#71
1463
1480
  def to_json(*a); end
1464
1481
 
1465
- # source://json//lib/json/generic_object.rb#59
1482
+ # source://json//lib/json/generic_object.rb#63
1466
1483
  def |(other); end
1467
1484
 
1468
1485
  class << self
1469
- # source://json//lib/json/generic_object.rb#41
1486
+ # source://json//lib/json/generic_object.rb#45
1470
1487
  def dump(obj, *args); end
1471
1488
 
1472
- # source://json//lib/json/generic_object.rb#21
1489
+ # source://json//lib/json/generic_object.rb#25
1473
1490
  def from_hash(object); end
1474
1491
 
1475
1492
  # Sets the attribute json_creatable
1476
1493
  #
1477
1494
  # @param value the value to set the attribute json_creatable to.
1478
1495
  #
1479
- # source://json//lib/json/generic_object.rb#13
1496
+ # source://json//lib/json/generic_object.rb#17
1480
1497
  def json_creatable=(_arg0); end
1481
1498
 
1482
1499
  # @return [Boolean]
1483
1500
  #
1484
- # source://json//lib/json/generic_object.rb#9
1501
+ # source://json//lib/json/generic_object.rb#13
1485
1502
  def json_creatable?; end
1486
1503
 
1487
- # source://json//lib/json/generic_object.rb#15
1504
+ # source://json//lib/json/generic_object.rb#19
1488
1505
  def json_create(data); end
1489
1506
 
1490
- # source://json//lib/json/generic_object.rb#36
1507
+ # source://json//lib/json/generic_object.rb#40
1491
1508
  def load(source, proc = T.unsafe(nil), opts = T.unsafe(nil)); end
1492
1509
  end
1493
1510
  end
1494
1511
 
1495
1512
  # The base exception for JSON errors.
1496
1513
  #
1497
- # source://json//lib/json/common.rb#137
1514
+ # source://json//lib/json/common.rb#141
1498
1515
  class JSON::JSONError < ::StandardError
1499
1516
  class << self
1500
- # source://json//lib/json/common.rb#138
1517
+ # source://json//lib/json/common.rb#142
1501
1518
  def wrap(exception); end
1502
1519
  end
1503
1520
  end
1504
1521
 
1505
- # source://json//lib/json/common.rb#35
1522
+ # source://json//lib/json/common.rb#7
1523
+ JSON::NOT_SET = T.let(T.unsafe(nil), Object)
1524
+
1525
+ # source://json//lib/json/common.rb#39
1506
1526
  JSON::Parser = JSON::Ext::Parser
1507
1527
 
1508
- # source://json//lib/json/common.rb#73
1528
+ # source://json//lib/json/common.rb#77
1509
1529
  JSON::State = JSON::Ext::Generator::State
1510
1530
 
1511
1531
  # For backwards compatibility
1512
1532
  #
1513
- # source://json//lib/json/common.rb#159
1533
+ # source://json//lib/json/common.rb#163
1514
1534
  JSON::UnparserError = JSON::GeneratorError
1515
1535
 
1516
- # source://json//lib/json/common.rb#658
1536
+ # source://json//lib/json/common.rb#653
1517
1537
  module Kernel
1518
1538
  private
1519
1539
 
@@ -1524,18 +1544,18 @@ module Kernel
1524
1544
  # The _opts_ argument is passed through to generate/parse respectively. See
1525
1545
  # generate and parse for their documentation.
1526
1546
  #
1527
- # source://json//lib/json/common.rb#685
1547
+ # source://json//lib/json/common.rb#680
1528
1548
  def JSON(object, *args); end
1529
1549
 
1530
1550
  # Outputs _objs_ to STDOUT as JSON strings in the shortest form, that is in
1531
1551
  # one line.
1532
1552
  #
1533
- # source://json//lib/json/common.rb#663
1553
+ # source://json//lib/json/common.rb#658
1534
1554
  def j(*objs); end
1535
1555
 
1536
1556
  # Outputs _objs_ to STDOUT as JSON strings in a pretty format, with
1537
1557
  # indentation and over many lines.
1538
1558
  #
1539
- # source://json//lib/json/common.rb#672
1559
+ # source://json//lib/json/common.rb#667
1540
1560
  def jj(*objs); end
1541
1561
  end