lunchmoney 1.4.1 → 1.5.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 (70) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/build_and_publish_yard_docs.yml +2 -2
  3. data/.github/workflows/ci.yml +9 -10
  4. data/.github/workflows/rbi-updater.yml +1 -1
  5. data/.github/workflows/release_pipeline.yml +1 -1
  6. data/.rubocop.yml +1 -1
  7. data/.ruby-version +1 -1
  8. data/.toys/.toys.rb +8 -0
  9. data/Gemfile +1 -1
  10. data/Gemfile.lock +76 -60
  11. data/README.md +0 -2
  12. data/SECURITY.md +151 -0
  13. data/bin/check_vcr_version +94 -0
  14. data/lib/lunchmoney/api.rb +25 -38
  15. data/lib/lunchmoney/calls/assets.rb +10 -13
  16. data/lib/lunchmoney/calls/base.rb +59 -7
  17. data/lib/lunchmoney/calls/budgets.rb +22 -25
  18. data/lib/lunchmoney/calls/categories.rb +28 -36
  19. data/lib/lunchmoney/calls/crypto.rb +7 -9
  20. data/lib/lunchmoney/calls/plaid_accounts.rb +7 -9
  21. data/lib/lunchmoney/calls/recurring_expenses.rb +4 -5
  22. data/lib/lunchmoney/calls/tags.rb +3 -4
  23. data/lib/lunchmoney/calls/transactions.rb +28 -36
  24. data/lib/lunchmoney/calls/users.rb +3 -4
  25. data/lib/lunchmoney/configuration.rb +20 -0
  26. data/lib/lunchmoney/objects/object.rb +4 -9
  27. data/lib/lunchmoney/validators.rb +8 -6
  28. data/lib/lunchmoney/version.rb +1 -1
  29. data/lib/lunchmoney.rb +3 -3
  30. data/lunchmoney.gemspec +1 -1
  31. data/sorbet/rbi/annotations/activesupport.rbi +35 -0
  32. data/sorbet/rbi/dsl/active_support/callbacks.rbi +0 -2
  33. data/sorbet/rbi/gems/{activesupport@7.2.2.1.rbi → activesupport@8.0.2.1.rbi} +1369 -989
  34. data/sorbet/rbi/gems/{ast@2.4.2.rbi → ast@2.4.3.rbi} +4 -3
  35. data/sorbet/rbi/gems/{base64@0.2.0.rbi → base64@0.3.0.rbi} +76 -39
  36. data/sorbet/rbi/gems/{benchmark@0.4.0.rbi → benchmark@0.4.1.rbi} +50 -49
  37. data/sorbet/rbi/gems/bigdecimal@3.2.2.rbi +275 -0
  38. data/sorbet/rbi/gems/{dotenv@3.1.7.rbi → dotenv@3.1.8.rbi} +9 -9
  39. data/sorbet/rbi/gems/{drb@2.2.1.rbi → drb@2.2.3.rbi} +503 -188
  40. data/sorbet/rbi/gems/{faraday-net_http@3.4.0.rbi → faraday-net_http@3.4.1.rbi} +23 -23
  41. data/sorbet/rbi/gems/{faraday@2.12.2.rbi → faraday@2.13.4.rbi} +468 -141
  42. data/sorbet/rbi/gems/{hashdiff@1.1.2.rbi → hashdiff@1.2.0.rbi} +5 -3
  43. data/sorbet/rbi/gems/{json@2.10.2.rbi → json@2.13.2.rbi} +386 -175
  44. data/sorbet/rbi/gems/{kramdown@2.4.0.rbi → kramdown@2.5.1.rbi} +316 -234
  45. data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +240 -0
  46. data/sorbet/rbi/gems/{logger@1.6.6.rbi → logger@1.7.0.rbi} +63 -40
  47. data/sorbet/rbi/gems/{parser@3.3.7.1.rbi → parser@3.3.9.0.rbi} +303 -291
  48. data/sorbet/rbi/gems/{rack@3.1.9.rbi → rack@3.2.1.rbi} +712 -547
  49. data/sorbet/rbi/gems/{rake@13.2.1.rbi → rake@13.3.0.rbi} +238 -227
  50. data/sorbet/rbi/gems/{rbi@0.3.1.rbi → rbi@0.3.6.rbi} +1084 -2521
  51. data/sorbet/rbi/gems/{rbs@3.9.0.rbi → rbs@4.0.0.dev.4.rbi} +1336 -419
  52. data/sorbet/rbi/gems/{regexp_parser@2.10.0.rbi → regexp_parser@2.11.2.rbi} +1044 -956
  53. data/sorbet/rbi/gems/require-hooks@0.2.2.rbi +110 -0
  54. data/sorbet/rbi/gems/{rexml@3.4.1.rbi → rexml@3.4.2.rbi} +302 -292
  55. data/sorbet/rbi/gems/{rubocop-ast@1.38.0.rbi → rubocop-ast@1.46.0.rbi} +802 -1016
  56. data/sorbet/rbi/gems/{rubocop-minitest@0.36.0.rbi → rubocop-minitest@0.38.2.rbi} +129 -93
  57. data/sorbet/rbi/gems/{rubocop-rails@2.29.1.rbi → rubocop-rails@2.33.3.rbi} +575 -230
  58. data/sorbet/rbi/gems/{rubocop-shopify@2.15.1.rbi → rubocop-shopify@2.17.1.rbi} +1 -0
  59. data/sorbet/rbi/gems/{rubocop-sorbet@0.8.7.rbi → rubocop-sorbet@0.10.5.rbi} +761 -83
  60. data/sorbet/rbi/gems/{rubocop@1.71.2.rbi → rubocop@1.80.1.rbi} +6543 -3097
  61. data/sorbet/rbi/gems/{spoom@1.6.1.rbi → spoom@1.7.6.rbi} +1179 -2621
  62. data/sorbet/rbi/gems/{tapioca@0.16.11.rbi → tapioca@0.17.7.rbi} +623 -745
  63. data/sorbet/rbi/gems/{thor@1.3.2.rbi → thor@1.4.0.rbi} +88 -67
  64. data/sorbet/rbi/gems/{unicode-display_width@3.1.4.rbi → unicode-display_width@3.1.5.rbi} +5 -5
  65. data/sorbet/rbi/gems/{vcr@6.3.1.rbi → vcr@6.3.1-ce35c236fe48899f02ddf780973b44cdb756c0ee.rbi} +140 -123
  66. metadata +42 -38
  67. data/sorbet/rbi/gems/bigdecimal@3.1.9.rbi +0 -78
  68. /data/sorbet/rbi/gems/{connection_pool@2.5.0.rbi → connection_pool@2.5.3.rbi} +0 -0
  69. /data/sorbet/rbi/gems/{language_server-protocol@3.17.0.4.rbi → language_server-protocol@3.17.0.5.rbi} +0 -0
  70. /data/sorbet/rbi/gems/{parallel@1.26.3.rbi → parallel@1.27.0.rbi} +0 -0
@@ -10,21 +10,6 @@ class Array
10
10
  include ::JSON::Ext::Generator::GeneratorMethods::Array
11
11
  end
12
12
 
13
- # Extends any Class to include _json_creatable?_ method.
14
- #
15
- # source://json//lib/json/common.rb#979
16
- class Class < ::Module
17
- # Returns true if this class can be used to create an instance
18
- # from a serialised JSON string. The class has to implement a class
19
- # method _json_create_ that expects a hash as first parameter. The hash
20
- # should include the required data.
21
- #
22
- # @return [Boolean]
23
- #
24
- # source://json//lib/json/common.rb#984
25
- def json_creatable?; end
26
- end
27
-
28
13
  class FalseClass
29
14
  include ::JSON::Ext::Generator::GeneratorMethods::FalseClass
30
15
  end
@@ -167,6 +152,24 @@ end
167
152
  #
168
153
  # ---
169
154
  #
155
+ # Option +allow_duplicate_key+ specifies whether duplicate keys in objects
156
+ # should be ignored or cause an error to be raised:
157
+ #
158
+ # When not specified:
159
+ # # The last value is used and a deprecation warning emitted.
160
+ # JSON.parse('{"a": 1, "a":2}') => {"a" => 2}
161
+ # # waring: detected duplicate keys in JSON object.
162
+ # # This will raise an error in json 3.0 unless enabled via `allow_duplicate_key: true`
163
+ #
164
+ # When set to `+true+`
165
+ # # The last value is used.
166
+ # JSON.parse('{"a": 1, "a":2}') => {"a" => 2}
167
+ #
168
+ # When set to `+false+`, the future default:
169
+ # JSON.parse('{"a": 1, "a":2}') => duplicate key at line 1 column 1 (JSON::ParserError)
170
+ #
171
+ # ---
172
+ #
170
173
  # Option +allow_nan+ (boolean) specifies whether to allow
171
174
  # NaN, Infinity, and MinusInfinity in +source+;
172
175
  # defaults to +false+.
@@ -183,8 +186,23 @@ end
183
186
  # ruby = JSON.parse(source, {allow_nan: true})
184
187
  # ruby # => [NaN, Infinity, -Infinity]
185
188
  #
189
+ # ---
190
+ #
191
+ # Option +allow_trailing_comma+ (boolean) specifies whether to allow
192
+ # trailing commas in objects and arrays;
193
+ # defaults to +false+.
194
+ #
195
+ # With the default, +false+:
196
+ # JSON.parse('[1,]') # unexpected character: ']' at line 1 column 4 (JSON::ParserError)
197
+ #
198
+ # When enabled:
199
+ # JSON.parse('[1,]', allow_trailing_comma: true) # => [1]
200
+ #
186
201
  # ====== Output Options
187
202
  #
203
+ # Option +freeze+ (boolean) specifies whether the returned objects will be frozen;
204
+ # defaults to +false+.
205
+ #
188
206
  # Option +symbolize_names+ (boolean) specifies whether returned \Hash keys
189
207
  # should be Symbols;
190
208
  # defaults to +false+ (use Strings).
@@ -653,7 +671,7 @@ module JSON
653
671
  # Output:
654
672
  # {"foo":[0,1],"bar":{"baz":2,"bat":3},"bam":"bad"}
655
673
  #
656
- # source://json//lib/json/common.rb#823
674
+ # source://json//lib/json/common.rb#893
657
675
  def dump(obj, anIO = T.unsafe(nil), limit = T.unsafe(nil), kwargs = T.unsafe(nil)); end
658
676
 
659
677
  # :call-seq:
@@ -670,14 +688,11 @@ module JSON
670
688
  # # Raises SystemStackError (stack level too deep):
671
689
  # JSON.fast_generate(a)
672
690
  #
673
- # source://json//lib/json/common.rb#357
691
+ # source://json//lib/json/common.rb#446
674
692
  def fast_generate(obj, opts = T.unsafe(nil)); end
675
693
 
676
- # :stopdoc:
677
- # I want to deprecate these later, so I'll first be silent about them, and later delete them.
678
- #
679
- # source://json//lib/json/common.rb#357
680
- def fast_unparse(obj, opts = T.unsafe(nil)); end
694
+ # source://json//lib/json/common.rb#938
695
+ def fast_unparse(*_arg0, **_arg1, &_arg2); end
681
696
 
682
697
  # :call-seq:
683
698
  # JSON.generate(obj, opts = nil) -> new_string
@@ -715,7 +730,7 @@ module JSON
715
730
  # # Raises JSON::NestingError (nesting of 100 is too deep):
716
731
  # JSON.generate(a)
717
732
  #
718
- # source://json//lib/json/common.rb#329
733
+ # source://json//lib/json/common.rb#425
719
734
  def generate(obj, opts = T.unsafe(nil)); end
720
735
 
721
736
  # :call-seq:
@@ -853,7 +868,7 @@ module JSON
853
868
  # #<Admin:0x00000000064c41f8
854
869
  # @attributes={"type"=>"Admin", "password"=>"0wn3d"}>}
855
870
  #
856
- # source://json//lib/json/common.rb#742
871
+ # source://json//lib/json/common.rb#827
857
872
  def load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
858
873
 
859
874
  # :call-seq:
@@ -864,7 +879,7 @@ module JSON
864
879
  #
865
880
  # See method #parse.
866
881
  #
867
- # source://json//lib/json/common.rb#278
882
+ # source://json//lib/json/common.rb#374
868
883
  def load_file(filespec, opts = T.unsafe(nil)); end
869
884
 
870
885
  # :call-seq:
@@ -875,7 +890,7 @@ module JSON
875
890
  #
876
891
  # See method #parse!
877
892
  #
878
- # source://json//lib/json/common.rb#289
893
+ # source://json//lib/json/common.rb#385
879
894
  def load_file!(filespec, opts = T.unsafe(nil)); end
880
895
 
881
896
  # :call-seq:
@@ -926,7 +941,7 @@ module JSON
926
941
  # # Raises JSON::ParserError (783: unexpected token at ''):
927
942
  # JSON.parse('')
928
943
  #
929
- # source://json//lib/json/common.rb#247
944
+ # source://json//lib/json/common.rb#337
930
945
  def parse(source, opts = T.unsafe(nil)); end
931
946
 
932
947
  # :call-seq:
@@ -941,7 +956,7 @@ module JSON
941
956
  # which disables checking for nesting depth.
942
957
  # - Option +allow_nan+, if not provided, defaults to +true+.
943
958
  #
944
- # source://json//lib/json/common.rb#262
959
+ # source://json//lib/json/common.rb#359
945
960
  def parse!(source, opts = T.unsafe(nil)); end
946
961
 
947
962
  # :call-seq:
@@ -974,29 +989,21 @@ module JSON
974
989
  # }
975
990
  # }
976
991
  #
977
- # source://json//lib/json/common.rb#402
992
+ # source://json//lib/json/common.rb#493
978
993
  def pretty_generate(obj, opts = T.unsafe(nil)); end
979
994
 
980
- # :stopdoc:
981
- # I want to deprecate these later, so I'll first be silent about them, and later delete them.
982
- #
983
- # source://json//lib/json/common.rb#402
984
- def pretty_unparse(obj, opts = T.unsafe(nil)); end
985
-
986
- # Recursively calls passed _Proc_ if the parsed data structure is an _Array_ or _Hash_
987
- #
988
- # source://json//lib/json/common.rb#768
989
- def recurse_proc(result, &proc); end
995
+ # source://json//lib/json/common.rb#948
996
+ def pretty_unparse(*_arg0, **_arg1, &_arg2); end
990
997
 
991
- # source://json//lib/json/common.rb#742
992
- def restore(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
998
+ # source://json//lib/json/common.rb#958
999
+ def restore(*_arg0, **_arg1, &_arg2); end
993
1000
 
994
1001
  # :stopdoc:
995
- # I want to deprecate these later, so I'll first be silent about them, and
996
- # later delete them.
1002
+ # All these were meant to be deprecated circa 2009, but were just set as undocumented
1003
+ # so usage still exist in the wild.
997
1004
  #
998
- # source://json//lib/json/common.rb#329
999
- def unparse(obj, opts = T.unsafe(nil)); end
1005
+ # source://json//lib/json/common.rb#928
1006
+ def unparse(*_arg0, **_arg1, &_arg2); end
1000
1007
 
1001
1008
  # :call-seq:
1002
1009
  # JSON.unsafe_load(source, proc = nil, options = {}) -> object
@@ -1127,7 +1134,7 @@ module JSON
1127
1134
  # #<Admin:0x00000000064c41f8
1128
1135
  # @attributes={"type"=>"Admin", "password"=>"0wn3d"}>}
1129
1136
  #
1130
- # source://json//lib/json/common.rb#582
1137
+ # source://json//lib/json/common.rb#667
1131
1138
  def unsafe_load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
1132
1139
 
1133
1140
  class << self
@@ -1143,36 +1150,42 @@ module JSON
1143
1150
  # ruby = [0, 1, nil]
1144
1151
  # JSON[ruby] # => '[0,1,null]'
1145
1152
  #
1146
- # source://json//lib/json/common.rb#23
1153
+ # source://json//lib/json/common.rb#127
1147
1154
  def [](object, opts = T.unsafe(nil)); end
1148
1155
 
1149
- # source://json//lib/json/common.rb#80
1150
- def create_fast_state; end
1156
+ # source://json//lib/json/common.rb#192
1157
+ def _dump_default_options; end
1158
+
1159
+ # source://json//lib/json/common.rb#192
1160
+ def _load_default_options; end
1161
+
1162
+ # source://json//lib/json/common.rb#192
1163
+ def _unsafe_load_default_options; end
1151
1164
 
1152
1165
  # Returns the current create identifier.
1153
1166
  # See also JSON.create_id=.
1154
1167
  #
1155
- # source://json//lib/json/common.rb#115
1168
+ # source://json//lib/json/common.rb#220
1156
1169
  def create_id; end
1157
1170
 
1158
1171
  # Sets create identifier, which is used to decide if the _json_create_
1159
1172
  # hook of a class should be called; initial value is +json_class+:
1160
1173
  # JSON.create_id # => 'json_class'
1161
1174
  #
1162
- # source://json//lib/json/common.rb#109
1175
+ # source://json//lib/json/common.rb#214
1163
1176
  def create_id=(new_value); end
1164
1177
 
1165
- # source://json//lib/json/common.rb#90
1166
- def create_pretty_state; end
1167
-
1168
1178
  # Return the constant located at _path_. The format of _path_ has to be
1169
1179
  # either ::A::B::C or A::B::C. In any case, A has to be located at the top
1170
1180
  # level (absolute namespace path?). If there doesn't exist a constant at
1171
1181
  # the given path, an ArgumentError is raised.
1172
1182
  #
1173
- # source://json//lib/json/common.rb#50
1183
+ # source://json//lib/json/common.rb#154
1174
1184
  def deep_const_get(path); end
1175
1185
 
1186
+ # source://json//lib/json/common.rb#99
1187
+ def deprecation_warning(message, uplevel = T.unsafe(nil)); end
1188
+
1176
1189
  # :call-seq:
1177
1190
  # JSON.dump(obj, io = nil, limit = nil)
1178
1191
  #
@@ -1201,24 +1214,14 @@ module JSON
1201
1214
  # Output:
1202
1215
  # {"foo":[0,1],"bar":{"baz":2,"bat":3},"bam":"bad"}
1203
1216
  #
1204
- # source://json//lib/json/common.rb#823
1217
+ # source://json//lib/json/common.rb#893
1205
1218
  def dump(obj, anIO = T.unsafe(nil), limit = T.unsafe(nil), kwargs = T.unsafe(nil)); end
1206
1219
 
1207
- # Sets or returns the default options for the JSON.dump method.
1208
- # Initially:
1209
- # opts = JSON.dump_default_options
1210
- # opts # => {:max_nesting=>false, :allow_nan=>true}
1211
- #
1212
- # source://json//lib/json/common.rb#789
1220
+ # source://json//lib/json/common.rb#192
1213
1221
  def dump_default_options; end
1214
1222
 
1215
- # Sets or returns the default options for the JSON.dump method.
1216
- # Initially:
1217
- # opts = JSON.dump_default_options
1218
- # opts # => {:max_nesting=>false, :allow_nan=>true}
1219
- #
1220
- # source://json//lib/json/common.rb#789
1221
- def dump_default_options=(_arg0); end
1223
+ # source://json//lib/json/common.rb#192
1224
+ def dump_default_options=(val); end
1222
1225
 
1223
1226
  # :call-seq:
1224
1227
  # JSON.fast_generate(obj, opts) -> new_string
@@ -1234,14 +1237,11 @@ module JSON
1234
1237
  # # Raises SystemStackError (stack level too deep):
1235
1238
  # JSON.fast_generate(a)
1236
1239
  #
1237
- # source://json//lib/json/common.rb#357
1240
+ # source://json//lib/json/common.rb#446
1238
1241
  def fast_generate(obj, opts = T.unsafe(nil)); end
1239
1242
 
1240
- # :stopdoc:
1241
- # I want to deprecate these later, so I'll first be silent about them, and later delete them.
1242
- #
1243
- # source://json//lib/json/common.rb#357
1244
- def fast_unparse(obj, opts = T.unsafe(nil)); end
1243
+ # source://json//lib/json/common.rb#938
1244
+ def fast_unparse(*_arg0, **_arg1, &_arg2); end
1245
1245
 
1246
1246
  # :call-seq:
1247
1247
  # JSON.generate(obj, opts = nil) -> new_string
@@ -1279,24 +1279,19 @@ module JSON
1279
1279
  # # Raises JSON::NestingError (nesting of 100 is too deep):
1280
1280
  # JSON.generate(a)
1281
1281
  #
1282
- # source://json//lib/json/common.rb#329
1282
+ # source://json//lib/json/common.rb#425
1283
1283
  def generate(obj, opts = T.unsafe(nil)); end
1284
1284
 
1285
1285
  # Returns the JSON generator module that is used by JSON.
1286
1286
  #
1287
- # source://json//lib/json/common.rb#100
1287
+ # source://json//lib/json/common.rb#182
1288
1288
  def generator; end
1289
1289
 
1290
1290
  # Set the module _generator_ to be used by JSON.
1291
1291
  #
1292
- # source://json//lib/json/common.rb#57
1292
+ # source://json//lib/json/common.rb#161
1293
1293
  def generator=(generator); end
1294
1294
 
1295
- # Encodes string using String.encode.
1296
- #
1297
- # source://json//lib/json/common.rb#856
1298
- def iconv(to, from, string); end
1299
-
1300
1295
  # :call-seq:
1301
1296
  # JSON.load(source, proc = nil, options = {}) -> object
1302
1297
  #
@@ -1432,24 +1427,14 @@ module JSON
1432
1427
  # #<Admin:0x00000000064c41f8
1433
1428
  # @attributes={"type"=>"Admin", "password"=>"0wn3d"}>}
1434
1429
  #
1435
- # source://json//lib/json/common.rb#742
1430
+ # source://json//lib/json/common.rb#827
1436
1431
  def load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
1437
1432
 
1438
- # Sets or returns default options for the JSON.load method.
1439
- # Initially:
1440
- # opts = JSON.load_default_options
1441
- # opts # => {:max_nesting=>false, :allow_nan=>true, :allow_blank=>true, :create_additions=>true}
1442
- #
1443
- # source://json//lib/json/common.rb#446
1433
+ # source://json//lib/json/common.rb#192
1444
1434
  def load_default_options; end
1445
1435
 
1446
- # Sets or returns default options for the JSON.load method.
1447
- # Initially:
1448
- # opts = JSON.load_default_options
1449
- # opts # => {:max_nesting=>false, :allow_nan=>true, :allow_blank=>true, :create_additions=>true}
1450
- #
1451
- # source://json//lib/json/common.rb#446
1452
- def load_default_options=(_arg0); end
1436
+ # source://json//lib/json/common.rb#192
1437
+ def load_default_options=(val); end
1453
1438
 
1454
1439
  # :call-seq:
1455
1440
  # JSON.load_file(path, opts={}) -> object
@@ -1459,7 +1444,7 @@ module JSON
1459
1444
  #
1460
1445
  # See method #parse.
1461
1446
  #
1462
- # source://json//lib/json/common.rb#278
1447
+ # source://json//lib/json/common.rb#374
1463
1448
  def load_file(filespec, opts = T.unsafe(nil)); end
1464
1449
 
1465
1450
  # :call-seq:
@@ -1470,7 +1455,7 @@ module JSON
1470
1455
  #
1471
1456
  # See method #parse!
1472
1457
  #
1473
- # source://json//lib/json/common.rb#289
1458
+ # source://json//lib/json/common.rb#385
1474
1459
  def load_file!(filespec, opts = T.unsafe(nil)); end
1475
1460
 
1476
1461
  # :call-seq:
@@ -1521,7 +1506,7 @@ module JSON
1521
1506
  # # Raises JSON::ParserError (783: unexpected token at ''):
1522
1507
  # JSON.parse('')
1523
1508
  #
1524
- # source://json//lib/json/common.rb#247
1509
+ # source://json//lib/json/common.rb#337
1525
1510
  def parse(source, opts = T.unsafe(nil)); end
1526
1511
 
1527
1512
  # :call-seq:
@@ -1536,17 +1521,17 @@ module JSON
1536
1521
  # which disables checking for nesting depth.
1537
1522
  # - Option +allow_nan+, if not provided, defaults to +true+.
1538
1523
  #
1539
- # source://json//lib/json/common.rb#262
1524
+ # source://json//lib/json/common.rb#359
1540
1525
  def parse!(source, opts = T.unsafe(nil)); end
1541
1526
 
1542
1527
  # Returns the JSON parser class that is used by JSON.
1543
1528
  #
1544
- # source://json//lib/json/common.rb#37
1529
+ # source://json//lib/json/common.rb#141
1545
1530
  def parser; end
1546
1531
 
1547
1532
  # Set the JSON parser class _parser_ to be used by JSON.
1548
1533
  #
1549
- # source://json//lib/json/common.rb#40
1534
+ # source://json//lib/json/common.rb#144
1550
1535
  def parser=(parser); end
1551
1536
 
1552
1537
  # :call-seq:
@@ -1579,39 +1564,31 @@ module JSON
1579
1564
  # }
1580
1565
  # }
1581
1566
  #
1582
- # source://json//lib/json/common.rb#402
1567
+ # source://json//lib/json/common.rb#493
1583
1568
  def pretty_generate(obj, opts = T.unsafe(nil)); end
1584
1569
 
1585
- # :stopdoc:
1586
- # I want to deprecate these later, so I'll first be silent about them, and later delete them.
1587
- #
1588
- # source://json//lib/json/common.rb#402
1589
- def pretty_unparse(obj, opts = T.unsafe(nil)); end
1590
-
1591
- # Recursively calls passed _Proc_ if the parsed data structure is an _Array_ or _Hash_
1592
- #
1593
- # source://json//lib/json/common.rb#768
1594
- def recurse_proc(result, &proc); end
1570
+ # source://json//lib/json/common.rb#948
1571
+ def pretty_unparse(*_arg0, **_arg1, &_arg2); end
1595
1572
 
1596
- # source://json//lib/json/common.rb#742
1597
- def restore(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
1573
+ # source://json//lib/json/common.rb#958
1574
+ def restore(*_arg0, **_arg1, &_arg2); end
1598
1575
 
1599
1576
  # Sets or Returns the JSON generator state class that is used by JSON.
1600
1577
  #
1601
- # source://json//lib/json/common.rb#103
1578
+ # source://json//lib/json/common.rb#185
1602
1579
  def state; end
1603
1580
 
1604
1581
  # Sets or Returns the JSON generator state class that is used by JSON.
1605
1582
  #
1606
- # source://json//lib/json/common.rb#103
1583
+ # source://json//lib/json/common.rb#185
1607
1584
  def state=(_arg0); end
1608
1585
 
1609
1586
  # :stopdoc:
1610
- # I want to deprecate these later, so I'll first be silent about them, and
1611
- # later delete them.
1587
+ # All these were meant to be deprecated circa 2009, but were just set as undocumented
1588
+ # so usage still exist in the wild.
1612
1589
  #
1613
- # source://json//lib/json/common.rb#329
1614
- def unparse(obj, opts = T.unsafe(nil)); end
1590
+ # source://json//lib/json/common.rb#928
1591
+ def unparse(*_arg0, **_arg1, &_arg2); end
1615
1592
 
1616
1593
  # :call-seq:
1617
1594
  # JSON.unsafe_load(source, proc = nil, options = {}) -> object
@@ -1742,24 +1719,22 @@ module JSON
1742
1719
  # #<Admin:0x00000000064c41f8
1743
1720
  # @attributes={"type"=>"Admin", "password"=>"0wn3d"}>}
1744
1721
  #
1745
- # source://json//lib/json/common.rb#582
1722
+ # source://json//lib/json/common.rb#667
1746
1723
  def unsafe_load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
1747
1724
 
1748
- # Sets or returns default options for the JSON.unsafe_load method.
1749
- # Initially:
1750
- # opts = JSON.load_default_options
1751
- # opts # => {:max_nesting=>false, :allow_nan=>true, :allow_blank=>true, :create_additions=>true}
1752
- #
1753
- # source://json//lib/json/common.rb#432
1725
+ # source://json//lib/json/common.rb#192
1754
1726
  def unsafe_load_default_options; end
1755
1727
 
1756
- # Sets or returns default options for the JSON.unsafe_load method.
1757
- # Initially:
1758
- # opts = JSON.load_default_options
1759
- # opts # => {:max_nesting=>false, :allow_nan=>true, :allow_blank=>true, :create_additions=>true}
1760
- #
1761
- # source://json//lib/json/common.rb#432
1762
- def unsafe_load_default_options=(_arg0); end
1728
+ # source://json//lib/json/common.rb#192
1729
+ def unsafe_load_default_options=(val); end
1730
+
1731
+ private
1732
+
1733
+ # source://json//lib/json/common.rb#971
1734
+ def const_missing(const_name); end
1735
+
1736
+ # source://json//lib/json/common.rb#189
1737
+ def deprecated_singleton_attr_accessor(*attrs); end
1763
1738
  end
1764
1739
  end
1765
1740
 
@@ -1773,7 +1748,7 @@ end
1773
1748
  #
1774
1749
  # MyApp::JSONC_CODER.load(document)
1775
1750
  #
1776
- # source://json//lib/json/common.rb#870
1751
+ # source://json//lib/json/common.rb#997
1777
1752
  class JSON::Coder
1778
1753
  # :call-seq:
1779
1754
  # JSON.new(options = nil, &block)
@@ -1800,7 +1775,7 @@ class JSON::Coder
1800
1775
  #
1801
1776
  # @return [Coder] a new instance of Coder
1802
1777
  #
1803
- # source://json//lib/json/common.rb#894
1778
+ # source://json//lib/json/common.rb#1021
1804
1779
  def initialize(options = T.unsafe(nil), &as_json); end
1805
1780
 
1806
1781
  # call-seq:
@@ -1809,7 +1784,7 @@ class JSON::Coder
1809
1784
  #
1810
1785
  # Serialize the given object into a \JSON document.
1811
1786
  #
1812
- # source://json//lib/json/common.rb#913
1787
+ # source://json//lib/json/common.rb#1039
1813
1788
  def dump(object, io = T.unsafe(nil)); end
1814
1789
 
1815
1790
  # call-seq:
@@ -1818,7 +1793,7 @@ class JSON::Coder
1818
1793
  #
1819
1794
  # Serialize the given object into a \JSON document.
1820
1795
  #
1821
- # source://json//lib/json/common.rb#913
1796
+ # source://json//lib/json/common.rb#1042
1822
1797
  def generate(object, io = T.unsafe(nil)); end
1823
1798
 
1824
1799
  # call-seq:
@@ -1826,7 +1801,7 @@ class JSON::Coder
1826
1801
  #
1827
1802
  # Parse the given \JSON document and return an equivalent Ruby object.
1828
1803
  #
1829
- # source://json//lib/json/common.rb#922
1804
+ # source://json//lib/json/common.rb#1048
1830
1805
  def load(source); end
1831
1806
 
1832
1807
  # call-seq:
@@ -1834,7 +1809,7 @@ class JSON::Coder
1834
1809
  #
1835
1810
  # Parse the given \JSON document and return an equivalent Ruby object.
1836
1811
  #
1837
- # source://json//lib/json/common.rb#931
1812
+ # source://json//lib/json/common.rb#1057
1838
1813
  def load_file(path); end
1839
1814
 
1840
1815
  # call-seq:
@@ -1842,12 +1817,71 @@ class JSON::Coder
1842
1817
  #
1843
1818
  # Parse the given \JSON document and return an equivalent Ruby object.
1844
1819
  #
1845
- # source://json//lib/json/common.rb#922
1820
+ # source://json//lib/json/common.rb#1051
1846
1821
  def parse(source); end
1847
1822
  end
1848
1823
 
1824
+ module JSON::Ext::Generator::GeneratorMethods::Array
1825
+ # source://json//lib/json/ext.rb#39
1826
+ def to_json(*_arg0); end
1827
+ end
1828
+
1829
+ module JSON::Ext::Generator::GeneratorMethods::FalseClass
1830
+ # source://json//lib/json/ext.rb#39
1831
+ def to_json(*_arg0); end
1832
+ end
1833
+
1834
+ module JSON::Ext::Generator::GeneratorMethods::Float
1835
+ # source://json//lib/json/ext.rb#39
1836
+ def to_json(*_arg0); end
1837
+ end
1838
+
1839
+ module JSON::Ext::Generator::GeneratorMethods::Hash
1840
+ # source://json//lib/json/ext.rb#39
1841
+ def to_json(*_arg0); end
1842
+ end
1843
+
1844
+ module JSON::Ext::Generator::GeneratorMethods::Integer
1845
+ # source://json//lib/json/ext.rb#39
1846
+ def to_json(*_arg0); end
1847
+ end
1848
+
1849
+ module JSON::Ext::Generator::GeneratorMethods::NilClass
1850
+ # source://json//lib/json/ext.rb#39
1851
+ def to_json(*_arg0); end
1852
+ end
1853
+
1854
+ module JSON::Ext::Generator::GeneratorMethods::Object
1855
+ # source://json//lib/json/ext.rb#39
1856
+ def to_json(*_arg0); end
1857
+ end
1858
+
1849
1859
  module JSON::Ext::Generator::GeneratorMethods::String
1850
1860
  mixes_in_class_methods ::JSON::Ext::Generator::GeneratorMethods::String::Extend
1861
+
1862
+ # source://json//lib/json/ext.rb#39
1863
+ def to_json(*_arg0); end
1864
+
1865
+ # source://json//lib/json/ext.rb#39
1866
+ def to_json_raw(*_arg0); end
1867
+
1868
+ # source://json//lib/json/ext.rb#39
1869
+ def to_json_raw_object; end
1870
+
1871
+ class << self
1872
+ # source://json//lib/json/ext.rb#39
1873
+ def included(_arg0); end
1874
+ end
1875
+ end
1876
+
1877
+ module JSON::Ext::Generator::GeneratorMethods::String::Extend
1878
+ # source://json//lib/json/ext.rb#39
1879
+ def json_create(_arg0); end
1880
+ end
1881
+
1882
+ module JSON::Ext::Generator::GeneratorMethods::TrueClass
1883
+ # source://json//lib/json/ext.rb#39
1884
+ def to_json(*_arg0); end
1851
1885
  end
1852
1886
 
1853
1887
  # source://json//lib/json/ext/generator/state.rb#6
@@ -1873,7 +1907,7 @@ class JSON::Ext::Generator::State
1873
1907
  #
1874
1908
  # @return [State] a new instance of State
1875
1909
  #
1876
- # source://json//lib/json/ext/generator/state.rb#25
1910
+ # source://json//lib/json/ext.rb#39
1877
1911
  def initialize(opts = T.unsafe(nil)); end
1878
1912
 
1879
1913
  # call-seq: [](name)
@@ -1890,6 +1924,39 @@ class JSON::Ext::Generator::State
1890
1924
  # source://json//lib/json/ext/generator/state.rb#96
1891
1925
  def []=(name, value); end
1892
1926
 
1927
+ # source://json//lib/json/ext.rb#39
1928
+ def allow_nan=(_arg0); end
1929
+
1930
+ # source://json//lib/json/ext.rb#39
1931
+ def allow_nan?; end
1932
+
1933
+ # source://json//lib/json/ext.rb#39
1934
+ def array_nl; end
1935
+
1936
+ # source://json//lib/json/ext.rb#39
1937
+ def array_nl=(_arg0); end
1938
+
1939
+ # source://json//lib/json/ext.rb#39
1940
+ def as_json; end
1941
+
1942
+ # source://json//lib/json/ext.rb#39
1943
+ def as_json=(_arg0); end
1944
+
1945
+ # source://json//lib/json/ext.rb#39
1946
+ def ascii_only=(_arg0); end
1947
+
1948
+ # source://json//lib/json/ext.rb#39
1949
+ def ascii_only?; end
1950
+
1951
+ # source://json//lib/json/ext.rb#39
1952
+ def buffer_initial_length; end
1953
+
1954
+ # source://json//lib/json/ext.rb#39
1955
+ def buffer_initial_length=(_arg0); end
1956
+
1957
+ # source://json//lib/json/ext.rb#39
1958
+ def check_circular?; end
1959
+
1893
1960
  # call-seq: configure(opts)
1894
1961
  #
1895
1962
  # Configure this State instance with the Hash _opts_, and return
@@ -1898,14 +1965,83 @@ class JSON::Ext::Generator::State
1898
1965
  # source://json//lib/json/ext/generator/state.rb#35
1899
1966
  def configure(opts); end
1900
1967
 
1968
+ # source://json//lib/json/ext.rb#39
1969
+ def depth; end
1970
+
1971
+ # source://json//lib/json/ext.rb#39
1972
+ def depth=(_arg0); end
1973
+
1974
+ # source://json//lib/json/ext.rb#39
1975
+ def escape_slash; end
1976
+
1977
+ # source://json//lib/json/ext.rb#39
1978
+ def escape_slash=(_arg0); end
1979
+
1980
+ # source://json//lib/json/ext.rb#39
1981
+ def escape_slash?; end
1982
+
1983
+ # source://json//lib/json/ext.rb#39
1984
+ def generate(*_arg0); end
1985
+
1986
+ # source://json//lib/json/ext.rb#39
1987
+ def generate_new(*_arg0); end
1988
+
1989
+ # source://json//lib/json/ext.rb#39
1990
+ def indent; end
1991
+
1992
+ # source://json//lib/json/ext.rb#39
1993
+ def indent=(_arg0); end
1994
+
1995
+ # source://json//lib/json/ext.rb#39
1996
+ def max_nesting; end
1997
+
1998
+ # source://json//lib/json/ext.rb#39
1999
+ def max_nesting=(_arg0); end
2000
+
1901
2001
  # call-seq: configure(opts)
1902
2002
  #
1903
2003
  # Configure this State instance with the Hash _opts_, and return
1904
2004
  # itself.
1905
2005
  #
1906
- # source://json//lib/json/ext/generator/state.rb#35
2006
+ # source://json//lib/json/ext/generator/state.rb#48
1907
2007
  def merge(opts); end
1908
2008
 
2009
+ # source://json//lib/json/ext.rb#39
2010
+ def object_nl; end
2011
+
2012
+ # source://json//lib/json/ext.rb#39
2013
+ def object_nl=(_arg0); end
2014
+
2015
+ # source://json//lib/json/ext.rb#39
2016
+ def script_safe; end
2017
+
2018
+ # source://json//lib/json/ext.rb#39
2019
+ def script_safe=(_arg0); end
2020
+
2021
+ # source://json//lib/json/ext.rb#39
2022
+ def script_safe?; end
2023
+
2024
+ # source://json//lib/json/ext.rb#39
2025
+ def space; end
2026
+
2027
+ # source://json//lib/json/ext.rb#39
2028
+ def space=(_arg0); end
2029
+
2030
+ # source://json//lib/json/ext.rb#39
2031
+ def space_before; end
2032
+
2033
+ # source://json//lib/json/ext.rb#39
2034
+ def space_before=(_arg0); end
2035
+
2036
+ # source://json//lib/json/ext.rb#39
2037
+ def strict; end
2038
+
2039
+ # source://json//lib/json/ext.rb#39
2040
+ def strict=(_arg0); end
2041
+
2042
+ # source://json//lib/json/ext.rb#39
2043
+ def strict?; end
2044
+
1909
2045
  # call-seq: to_h
1910
2046
  #
1911
2047
  # Returns the configuration instance variables as a hash, that can be
@@ -1919,8 +2055,24 @@ class JSON::Ext::Generator::State
1919
2055
  # Returns the configuration instance variables as a hash, that can be
1920
2056
  # passed to the configure method.
1921
2057
  #
1922
- # source://json//lib/json/ext/generator/state.rb#54
2058
+ # source://json//lib/json/ext/generator/state.rb#79
1923
2059
  def to_hash; end
2060
+
2061
+ private
2062
+
2063
+ # source://json//lib/json/ext.rb#39
2064
+ def _configure(_arg0); end
2065
+
2066
+ # source://json//lib/json/ext.rb#39
2067
+ def initialize_copy(_arg0); end
2068
+
2069
+ class << self
2070
+ # source://json//lib/json/ext.rb#39
2071
+ def from_state(_arg0); end
2072
+
2073
+ # source://json//lib/json/ext.rb#39
2074
+ def generate(_arg0, _arg1, _arg2); end
2075
+ end
1924
2076
  end
1925
2077
 
1926
2078
  # source://json//lib/json/ext.rb#9
@@ -1935,11 +2087,27 @@ class JSON::Ext::Parser
1935
2087
 
1936
2088
  # source://json//lib/json/ext.rb#22
1937
2089
  def source; end
2090
+
2091
+ class << self
2092
+ # Allow redefinition by extensions
2093
+ # Allow redefinition by extensions
2094
+ #
2095
+ # source://json//lib/json/ext.rb#11
2096
+ def parse(_arg0, _arg1); end
2097
+ end
1938
2098
  end
1939
2099
 
1940
2100
  # source://json//lib/json/ext.rb#32
1941
2101
  JSON::Ext::Parser::Config = JSON::Ext::ParserConfig
1942
2102
 
2103
+ class JSON::Ext::ParserConfig
2104
+ # source://json//lib/json/ext.rb#31
2105
+ def initialize(_arg0); end
2106
+
2107
+ # source://json//lib/json/ext.rb#31
2108
+ def parse(_arg0); end
2109
+ end
2110
+
1943
2111
  # Fragment of JSON document that is to be included as is:
1944
2112
  # fragment = JSON::Fragment.new("[1, 2, 3]")
1945
2113
  # JSON.generate({ count: 3, items: fragments })
@@ -1949,53 +2117,66 @@ JSON::Ext::Parser::Config = JSON::Ext::ParserConfig
1949
2117
  # to string interpolation.
1950
2118
  #
1951
2119
  # Note: no validation is performed on the provided string. It is the
1952
- # responsability of the caller to ensure the string contains valid JSON.
2120
+ # responsibility of the caller to ensure the string contains valid JSON.
1953
2121
  #
1954
- # source://json//lib/json/common.rb#183
2122
+ # source://json//lib/json/common.rb#273
1955
2123
  class JSON::Fragment < ::Struct
1956
2124
  # @return [Fragment] a new instance of Fragment
1957
2125
  #
1958
- # source://json//lib/json/common.rb#184
2126
+ # source://json//lib/json/common.rb#274
1959
2127
  def initialize(json); end
1960
2128
 
1961
2129
  # Returns the value of attribute json
1962
2130
  #
1963
2131
  # @return [Object] the current value of json
2132
+ #
2133
+ # source://json//lib/json/common.rb#273
1964
2134
  def json; end
1965
2135
 
1966
2136
  # Sets the attribute json
1967
2137
  #
1968
2138
  # @param value [Object] the value to set the attribute json to.
1969
2139
  # @return [Object] the newly set value
2140
+ #
2141
+ # source://json//lib/json/common.rb#273
1970
2142
  def json=(_); end
1971
2143
 
1972
- # source://json//lib/json/common.rb#192
2144
+ # source://json//lib/json/common.rb#282
1973
2145
  def to_json(state = T.unsafe(nil), *_arg1); end
1974
2146
 
1975
2147
  class << self
2148
+ # source://json//lib/json/common.rb#273
1976
2149
  def [](*_arg0); end
2150
+
2151
+ # source://json//lib/json/common.rb#273
1977
2152
  def inspect; end
2153
+
2154
+ # source://json//lib/json/common.rb#273
1978
2155
  def keyword_init?; end
2156
+
2157
+ # source://json//lib/json/common.rb#273
1979
2158
  def members; end
2159
+
2160
+ # source://json//lib/json/common.rb#273
1980
2161
  def new(*_arg0); end
1981
2162
  end
1982
2163
  end
1983
2164
 
1984
2165
  # This exception is raised if a generator or unparser error occurs.
1985
2166
  #
1986
- # source://json//lib/json/common.rb#146
2167
+ # source://json//lib/json/common.rb#243
1987
2168
  class JSON::GeneratorError < ::JSON::JSONError
1988
2169
  # @return [GeneratorError] a new instance of GeneratorError
1989
2170
  #
1990
- # source://json//lib/json/common.rb#149
2171
+ # source://json//lib/json/common.rb#246
1991
2172
  def initialize(message, invalid_object = T.unsafe(nil)); end
1992
2173
 
1993
- # source://json//lib/json/common.rb#154
2174
+ # source://json//lib/json/common.rb#251
1994
2175
  def detailed_message(*_arg0, **_arg1, &_arg2); end
1995
2176
 
1996
2177
  # Returns the value of attribute invalid_object.
1997
2178
  #
1998
- # source://json//lib/json/common.rb#147
2179
+ # source://json//lib/json/common.rb#244
1999
2180
  def invalid_object; end
2000
2181
  end
2001
2182
 
@@ -2014,6 +2195,9 @@ class JSON::GenericObject < ::OpenStruct
2014
2195
  def |(other); end
2015
2196
 
2016
2197
  class << self
2198
+ # source://json//lib/json/generic_object.rb#11
2199
+ def [](*_arg0); end
2200
+
2017
2201
  # source://json//lib/json/generic_object.rb#45
2018
2202
  def dump(obj, *args); end
2019
2203
 
@@ -2040,31 +2224,58 @@ class JSON::GenericObject < ::OpenStruct
2040
2224
  end
2041
2225
  end
2042
2226
 
2043
- # The base exception for JSON errors.
2227
+ # source://json//lib/json/common.rb#342
2228
+ JSON::PARSE_L_OPTIONS = T.let(T.unsafe(nil), Hash)
2229
+
2230
+ # source://json//lib/json/common.rb#455
2231
+ JSON::PRETTY_GENERATE_OPTIONS = T.let(T.unsafe(nil), Hash)
2232
+
2233
+ # source://json//lib/json/common.rb#147
2234
+ JSON::Parser = JSON::Ext::Parser
2235
+
2236
+ # This exception is raised if a parser error occurs.
2044
2237
  #
2045
- # source://json//lib/json/common.rb#126
2046
- class JSON::JSONError < ::StandardError
2047
- class << self
2048
- # source://json//lib/json/common.rb#127
2049
- def wrap(exception); end
2050
- end
2238
+ # source://json//lib/json/common.rb#234
2239
+ class JSON::ParserError < ::JSON::JSONError
2240
+ # Returns the value of attribute column.
2241
+ #
2242
+ # source://json//lib/json/common.rb#235
2243
+ def column; end
2244
+
2245
+ # Returns the value of attribute line.
2246
+ #
2247
+ # source://json//lib/json/common.rb#235
2248
+ def line; end
2051
2249
  end
2052
2250
 
2053
2251
  # source://json//lib/json/common.rb#8
2054
- JSON::NOT_SET = T.let(T.unsafe(nil), Object)
2252
+ module JSON::ParserOptions
2253
+ class << self
2254
+ # source://json//lib/json/common.rb#10
2255
+ def prepare(opts); end
2055
2256
 
2056
- # source://json//lib/json/common.rb#43
2057
- JSON::Parser = JSON::Ext::Parser
2257
+ private
2058
2258
 
2059
- # source://json//lib/json/common.rb#72
2060
- JSON::State = JSON::Ext::Generator::State
2259
+ # source://json//lib/json/common.rb#40
2260
+ def array_class_proc(array_class, on_load); end
2061
2261
 
2062
- # For backwards compatibility
2063
- #
2064
- # source://json//lib/json/common.rb#167
2065
- JSON::UnparserError = JSON::GeneratorError
2262
+ # TODO: extract :create_additions support to another gem for version 3.0
2263
+ #
2264
+ # source://json//lib/json/common.rb#52
2265
+ def create_additions_proc(opts); end
2266
+
2267
+ # source://json//lib/json/common.rb#90
2268
+ def create_additions_warning; end
2269
+
2270
+ # source://json//lib/json/common.rb#29
2271
+ def object_class_proc(object_class, on_load); end
2272
+ end
2273
+ end
2274
+
2275
+ # source://json//lib/json/common.rb#176
2276
+ JSON::State = JSON::Ext::Generator::State
2066
2277
 
2067
- # source://json//lib/json/common.rb#937
2278
+ # source://json//lib/json/common.rb#1063
2068
2279
  module Kernel
2069
2280
  private
2070
2281
 
@@ -2075,19 +2286,19 @@ module Kernel
2075
2286
  # The _opts_ argument is passed through to generate/parse respectively. See
2076
2287
  # generate and parse for their documentation.
2077
2288
  #
2078
- # source://json//lib/json/common.rb#964
2079
- def JSON(object, *args); end
2289
+ # source://json//lib/json/common.rb#1102
2290
+ def JSON(object, opts = T.unsafe(nil)); end
2080
2291
 
2081
2292
  # Outputs _objs_ to STDOUT as JSON strings in the shortest form, that is in
2082
2293
  # one line.
2083
2294
  #
2084
- # source://json//lib/json/common.rb#942
2295
+ # source://json//lib/json/common.rb#1068
2085
2296
  def j(*objs); end
2086
2297
 
2087
2298
  # Outputs _objs_ to STDOUT as JSON strings in a pretty format, with
2088
2299
  # indentation and over many lines.
2089
2300
  #
2090
- # source://json//lib/json/common.rb#951
2301
+ # source://json//lib/json/common.rb#1083
2091
2302
  def jj(*objs); end
2092
2303
  end
2093
2304