lunchmoney 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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#689
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#694
18
+ # source://json//lib/json/common.rb#695
19
19
  def json_creatable?; end
20
20
  end
21
21
 
@@ -630,7 +630,7 @@ module JSON
630
630
  # Output:
631
631
  # {"foo":[0,1],"bar":{"baz":2,"bat":3},"bam":"bad"}
632
632
  #
633
- # source://json//lib/json/common.rb#614
633
+ # source://json//lib/json/common.rb#615
634
634
  def dump(obj, anIO = T.unsafe(nil), limit = T.unsafe(nil), kwargs = T.unsafe(nil)); end
635
635
 
636
636
  # :call-seq:
@@ -647,13 +647,13 @@ module JSON
647
647
  # # Raises SystemStackError (stack level too deep):
648
648
  # JSON.fast_generate(a)
649
649
  #
650
- # source://json//lib/json/common.rb#328
650
+ # source://json//lib/json/common.rb#329
651
651
  def fast_generate(obj, opts = T.unsafe(nil)); end
652
652
 
653
653
  # :stopdoc:
654
654
  # I want to deprecate these later, so I'll first be silent about them, and later delete them.
655
655
  #
656
- # source://json//lib/json/common.rb#328
656
+ # source://json//lib/json/common.rb#329
657
657
  def fast_unparse(obj, opts = T.unsafe(nil)); end
658
658
 
659
659
  # :call-seq:
@@ -692,7 +692,7 @@ module JSON
692
692
  # # Raises JSON::NestingError (nesting of 100 is too deep):
693
693
  # JSON.generate(a)
694
694
  #
695
- # source://json//lib/json/common.rb#299
695
+ # source://json//lib/json/common.rb#300
696
696
  def generate(obj, opts = T.unsafe(nil)); end
697
697
 
698
698
  # :call-seq:
@@ -823,7 +823,7 @@ module JSON
823
823
  # #<Admin:0x00000000064c41f8
824
824
  # @attributes={"type"=>"Admin", "password"=>"0wn3d"}>}
825
825
  #
826
- # source://json//lib/json/common.rb#540
826
+ # source://json//lib/json/common.rb#541
827
827
  def load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
828
828
 
829
829
  # :call-seq:
@@ -834,7 +834,7 @@ module JSON
834
834
  #
835
835
  # See method #parse.
836
836
  #
837
- # source://json//lib/json/common.rb#248
837
+ # source://json//lib/json/common.rb#249
838
838
  def load_file(filespec, opts = T.unsafe(nil)); end
839
839
 
840
840
  # :call-seq:
@@ -845,10 +845,10 @@ module JSON
845
845
  #
846
846
  # See method #parse!
847
847
  #
848
- # source://json//lib/json/common.rb#259
848
+ # source://json//lib/json/common.rb#260
849
849
  def load_file!(filespec, opts = T.unsafe(nil)); end
850
850
 
851
- # source://json//lib/json/common.rb#642
851
+ # source://json//lib/json/common.rb#643
852
852
  def merge_dump_options(opts, strict: T.unsafe(nil)); end
853
853
 
854
854
  # :call-seq:
@@ -899,7 +899,7 @@ module JSON
899
899
  # # Raises JSON::ParserError (783: unexpected token at ''):
900
900
  # JSON.parse('')
901
901
  #
902
- # source://json//lib/json/common.rb#218
902
+ # source://json//lib/json/common.rb#219
903
903
  def parse(source, opts = T.unsafe(nil)); end
904
904
 
905
905
  # :call-seq:
@@ -914,7 +914,7 @@ module JSON
914
914
  # which disables checking for nesting depth.
915
915
  # - Option +allow_nan+, if not provided, defaults to +true+.
916
916
  #
917
- # source://json//lib/json/common.rb#233
917
+ # source://json//lib/json/common.rb#234
918
918
  def parse!(source, opts = T.unsafe(nil)); end
919
919
 
920
920
  # :call-seq:
@@ -947,28 +947,28 @@ module JSON
947
947
  # }
948
948
  # }
949
949
  #
950
- # source://json//lib/json/common.rb#373
950
+ # source://json//lib/json/common.rb#374
951
951
  def pretty_generate(obj, opts = T.unsafe(nil)); end
952
952
 
953
953
  # :stopdoc:
954
954
  # I want to deprecate these later, so I'll first be silent about them, and later delete them.
955
955
  #
956
- # source://json//lib/json/common.rb#373
956
+ # source://json//lib/json/common.rb#374
957
957
  def pretty_unparse(obj, opts = T.unsafe(nil)); end
958
958
 
959
959
  # Recursively calls passed _Proc_ if the parsed data structure is an _Array_ or _Hash_
960
960
  #
961
- # source://json//lib/json/common.rb#558
961
+ # source://json//lib/json/common.rb#559
962
962
  def recurse_proc(result, &proc); end
963
963
 
964
- # source://json//lib/json/common.rb#540
964
+ # source://json//lib/json/common.rb#541
965
965
  def restore(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
966
966
 
967
967
  # :stopdoc:
968
968
  # I want to deprecate these later, so I'll first be silent about them, and
969
969
  # later delete them.
970
970
  #
971
- # source://json//lib/json/common.rb#299
971
+ # source://json//lib/json/common.rb#300
972
972
  def unparse(obj, opts = T.unsafe(nil)); end
973
973
 
974
974
  class << self
@@ -984,26 +984,26 @@ module JSON
984
984
  # ruby = [0, 1, nil]
985
985
  # JSON[ruby] # => '[0,1,null]'
986
986
  #
987
- # source://json//lib/json/common.rb#21
987
+ # source://json//lib/json/common.rb#22
988
988
  def [](object, opts = T.unsafe(nil)); end
989
989
 
990
- # source://json//lib/json/common.rb#84
990
+ # source://json//lib/json/common.rb#85
991
991
  def create_fast_state; end
992
992
 
993
993
  # Returns the current create identifier.
994
994
  # See also JSON.create_id=.
995
995
  #
996
- # source://json//lib/json/common.rb#129
996
+ # source://json//lib/json/common.rb#130
997
997
  def create_id; end
998
998
 
999
999
  # Sets create identifier, which is used to decide if the _json_create_
1000
1000
  # hook of a class should be called; initial value is +json_class+:
1001
1001
  # JSON.create_id # => 'json_class'
1002
1002
  #
1003
- # source://json//lib/json/common.rb#123
1003
+ # source://json//lib/json/common.rb#124
1004
1004
  def create_id=(new_value); end
1005
1005
 
1006
- # source://json//lib/json/common.rb#94
1006
+ # source://json//lib/json/common.rb#95
1007
1007
  def create_pretty_state; end
1008
1008
 
1009
1009
  # Return the constant located at _path_. The format of _path_ has to be
@@ -1011,7 +1011,7 @@ module JSON
1011
1011
  # level (absolute namespace path?). If there doesn't exist a constant at
1012
1012
  # the given path, an ArgumentError is raised.
1013
1013
  #
1014
- # source://json//lib/json/common.rb#45
1014
+ # source://json//lib/json/common.rb#46
1015
1015
  def deep_const_get(path); end
1016
1016
 
1017
1017
  # :call-seq:
@@ -1042,7 +1042,7 @@ module JSON
1042
1042
  # Output:
1043
1043
  # {"foo":[0,1],"bar":{"baz":2,"bat":3},"bam":"bad"}
1044
1044
  #
1045
- # source://json//lib/json/common.rb#614
1045
+ # source://json//lib/json/common.rb#615
1046
1046
  def dump(obj, anIO = T.unsafe(nil), limit = T.unsafe(nil), kwargs = T.unsafe(nil)); end
1047
1047
 
1048
1048
  # Sets or returns the default options for the JSON.dump method.
@@ -1050,7 +1050,7 @@ module JSON
1050
1050
  # opts = JSON.dump_default_options
1051
1051
  # opts # => {:max_nesting=>false, :allow_nan=>true, :script_safe=>false}
1052
1052
  #
1053
- # source://json//lib/json/common.rb#579
1053
+ # source://json//lib/json/common.rb#580
1054
1054
  def dump_default_options; end
1055
1055
 
1056
1056
  # Sets or returns the default options for the JSON.dump method.
@@ -1058,7 +1058,7 @@ module JSON
1058
1058
  # opts = JSON.dump_default_options
1059
1059
  # opts # => {:max_nesting=>false, :allow_nan=>true, :script_safe=>false}
1060
1060
  #
1061
- # source://json//lib/json/common.rb#579
1061
+ # source://json//lib/json/common.rb#580
1062
1062
  def dump_default_options=(_arg0); end
1063
1063
 
1064
1064
  # :call-seq:
@@ -1075,13 +1075,13 @@ module JSON
1075
1075
  # # Raises SystemStackError (stack level too deep):
1076
1076
  # JSON.fast_generate(a)
1077
1077
  #
1078
- # source://json//lib/json/common.rb#328
1078
+ # source://json//lib/json/common.rb#329
1079
1079
  def fast_generate(obj, opts = T.unsafe(nil)); end
1080
1080
 
1081
1081
  # :stopdoc:
1082
1082
  # I want to deprecate these later, so I'll first be silent about them, and later delete them.
1083
1083
  #
1084
- # source://json//lib/json/common.rb#328
1084
+ # source://json//lib/json/common.rb#329
1085
1085
  def fast_unparse(obj, opts = T.unsafe(nil)); end
1086
1086
 
1087
1087
  # :call-seq:
@@ -1120,24 +1120,24 @@ module JSON
1120
1120
  # # Raises JSON::NestingError (nesting of 100 is too deep):
1121
1121
  # JSON.generate(a)
1122
1122
  #
1123
- # source://json//lib/json/common.rb#299
1123
+ # source://json//lib/json/common.rb#300
1124
1124
  def generate(obj, opts = T.unsafe(nil)); end
1125
1125
 
1126
1126
  # Returns the JSON generator module that is used by JSON. This is
1127
1127
  # either JSON::Ext::Generator or JSON::Pure::Generator:
1128
1128
  # JSON.generator # => JSON::Ext::Generator
1129
1129
  #
1130
- # source://json//lib/json/common.rb#106
1130
+ # source://json//lib/json/common.rb#107
1131
1131
  def generator; end
1132
1132
 
1133
1133
  # Set the module _generator_ to be used by JSON.
1134
1134
  #
1135
- # source://json//lib/json/common.rb#61
1135
+ # source://json//lib/json/common.rb#62
1136
1136
  def generator=(generator); end
1137
1137
 
1138
1138
  # Encodes string using String.encode.
1139
1139
  #
1140
- # source://json//lib/json/common.rb#638
1140
+ # source://json//lib/json/common.rb#639
1141
1141
  def iconv(to, from, string); end
1142
1142
 
1143
1143
  # :call-seq:
@@ -1268,7 +1268,7 @@ module JSON
1268
1268
  # #<Admin:0x00000000064c41f8
1269
1269
  # @attributes={"type"=>"Admin", "password"=>"0wn3d"}>}
1270
1270
  #
1271
- # source://json//lib/json/common.rb#540
1271
+ # source://json//lib/json/common.rb#541
1272
1272
  def load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
1273
1273
 
1274
1274
  # Sets or returns default options for the JSON.load method.
@@ -1276,7 +1276,7 @@ module JSON
1276
1276
  # opts = JSON.load_default_options
1277
1277
  # opts # => {:max_nesting=>false, :allow_nan=>true, :allow_blank=>true, :create_additions=>true}
1278
1278
  #
1279
- # source://json//lib/json/common.rb#403
1279
+ # source://json//lib/json/common.rb#404
1280
1280
  def load_default_options; end
1281
1281
 
1282
1282
  # Sets or returns default options for the JSON.load method.
@@ -1284,7 +1284,7 @@ module JSON
1284
1284
  # opts = JSON.load_default_options
1285
1285
  # opts # => {:max_nesting=>false, :allow_nan=>true, :allow_blank=>true, :create_additions=>true}
1286
1286
  #
1287
- # source://json//lib/json/common.rb#403
1287
+ # source://json//lib/json/common.rb#404
1288
1288
  def load_default_options=(_arg0); end
1289
1289
 
1290
1290
  # :call-seq:
@@ -1295,7 +1295,7 @@ module JSON
1295
1295
  #
1296
1296
  # See method #parse.
1297
1297
  #
1298
- # source://json//lib/json/common.rb#248
1298
+ # source://json//lib/json/common.rb#249
1299
1299
  def load_file(filespec, opts = T.unsafe(nil)); end
1300
1300
 
1301
1301
  # :call-seq:
@@ -1306,7 +1306,7 @@ module JSON
1306
1306
  #
1307
1307
  # See method #parse!
1308
1308
  #
1309
- # source://json//lib/json/common.rb#259
1309
+ # source://json//lib/json/common.rb#260
1310
1310
  def load_file!(filespec, opts = T.unsafe(nil)); end
1311
1311
 
1312
1312
  # :call-seq:
@@ -1357,7 +1357,7 @@ module JSON
1357
1357
  # # Raises JSON::ParserError (783: unexpected token at ''):
1358
1358
  # JSON.parse('')
1359
1359
  #
1360
- # source://json//lib/json/common.rb#218
1360
+ # source://json//lib/json/common.rb#219
1361
1361
  def parse(source, opts = T.unsafe(nil)); end
1362
1362
 
1363
1363
  # :call-seq:
@@ -1372,19 +1372,19 @@ module JSON
1372
1372
  # which disables checking for nesting depth.
1373
1373
  # - Option +allow_nan+, if not provided, defaults to +true+.
1374
1374
  #
1375
- # source://json//lib/json/common.rb#233
1375
+ # source://json//lib/json/common.rb#234
1376
1376
  def parse!(source, opts = T.unsafe(nil)); end
1377
1377
 
1378
1378
  # Returns the JSON parser class that is used by JSON. This is either
1379
1379
  # JSON::Ext::Parser or JSON::Pure::Parser:
1380
1380
  # JSON.parser # => JSON::Ext::Parser
1381
1381
  #
1382
- # source://json//lib/json/common.rb#32
1382
+ # source://json//lib/json/common.rb#33
1383
1383
  def parser; end
1384
1384
 
1385
1385
  # Set the JSON parser class _parser_ to be used by JSON.
1386
1386
  #
1387
- # source://json//lib/json/common.rb#35
1387
+ # source://json//lib/json/common.rb#36
1388
1388
  def parser=(parser); end
1389
1389
 
1390
1390
  # :call-seq:
@@ -1417,123 +1417,123 @@ module JSON
1417
1417
  # }
1418
1418
  # }
1419
1419
  #
1420
- # source://json//lib/json/common.rb#373
1420
+ # source://json//lib/json/common.rb#374
1421
1421
  def pretty_generate(obj, opts = T.unsafe(nil)); end
1422
1422
 
1423
1423
  # :stopdoc:
1424
1424
  # I want to deprecate these later, so I'll first be silent about them, and later delete them.
1425
1425
  #
1426
- # source://json//lib/json/common.rb#373
1426
+ # source://json//lib/json/common.rb#374
1427
1427
  def pretty_unparse(obj, opts = T.unsafe(nil)); end
1428
1428
 
1429
1429
  # Recursively calls passed _Proc_ if the parsed data structure is an _Array_ or _Hash_
1430
1430
  #
1431
- # source://json//lib/json/common.rb#558
1431
+ # source://json//lib/json/common.rb#559
1432
1432
  def recurse_proc(result, &proc); end
1433
1433
 
1434
- # source://json//lib/json/common.rb#540
1434
+ # source://json//lib/json/common.rb#541
1435
1435
  def restore(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
1436
1436
 
1437
1437
  # Sets or Returns the JSON generator state class that is used by JSON. This is
1438
1438
  # either JSON::Ext::Generator::State or JSON::Pure::Generator::State:
1439
1439
  # JSON.state # => JSON::Ext::Generator::State
1440
1440
  #
1441
- # source://json//lib/json/common.rb#111
1441
+ # source://json//lib/json/common.rb#112
1442
1442
  def state; end
1443
1443
 
1444
1444
  # Sets or Returns the JSON generator state class that is used by JSON. This is
1445
1445
  # either JSON::Ext::Generator::State or JSON::Pure::Generator::State:
1446
1446
  # JSON.state # => JSON::Ext::Generator::State
1447
1447
  #
1448
- # source://json//lib/json/common.rb#111
1448
+ # source://json//lib/json/common.rb#112
1449
1449
  def state=(_arg0); end
1450
1450
 
1451
1451
  # :stopdoc:
1452
1452
  # I want to deprecate these later, so I'll first be silent about them, and
1453
1453
  # later delete them.
1454
1454
  #
1455
- # source://json//lib/json/common.rb#299
1455
+ # source://json//lib/json/common.rb#300
1456
1456
  def unparse(obj, opts = T.unsafe(nil)); end
1457
1457
 
1458
1458
  private
1459
1459
 
1460
- # source://json//lib/json/common.rb#642
1460
+ # source://json//lib/json/common.rb#643
1461
1461
  def merge_dump_options(opts, strict: T.unsafe(nil)); end
1462
1462
  end
1463
1463
  end
1464
1464
 
1465
- # source://json//lib/json/common.rb#117
1465
+ # source://json//lib/json/common.rb#118
1466
1466
  JSON::CREATE_ID_TLS_KEY = T.let(T.unsafe(nil), String)
1467
1467
 
1468
- # source://json//lib/json/common.rb#114
1468
+ # source://json//lib/json/common.rb#115
1469
1469
  JSON::DEFAULT_CREATE_ID = T.let(T.unsafe(nil), String)
1470
1470
 
1471
- # source://json//lib/json/generic_object.rb#5
1471
+ # source://json//lib/json/generic_object.rb#9
1472
1472
  class JSON::GenericObject < ::OpenStruct
1473
- # source://json//lib/json/generic_object.rb#63
1473
+ # source://json//lib/json/generic_object.rb#67
1474
1474
  def as_json(*_arg0); end
1475
1475
 
1476
- # source://json//lib/json/generic_object.rb#47
1476
+ # source://json//lib/json/generic_object.rb#51
1477
1477
  def to_hash; end
1478
1478
 
1479
- # source://json//lib/json/generic_object.rb#67
1479
+ # source://json//lib/json/generic_object.rb#71
1480
1480
  def to_json(*a); end
1481
1481
 
1482
- # source://json//lib/json/generic_object.rb#59
1482
+ # source://json//lib/json/generic_object.rb#63
1483
1483
  def |(other); end
1484
1484
 
1485
1485
  class << self
1486
- # source://json//lib/json/generic_object.rb#41
1486
+ # source://json//lib/json/generic_object.rb#45
1487
1487
  def dump(obj, *args); end
1488
1488
 
1489
- # source://json//lib/json/generic_object.rb#21
1489
+ # source://json//lib/json/generic_object.rb#25
1490
1490
  def from_hash(object); end
1491
1491
 
1492
1492
  # Sets the attribute json_creatable
1493
1493
  #
1494
1494
  # @param value the value to set the attribute json_creatable to.
1495
1495
  #
1496
- # source://json//lib/json/generic_object.rb#13
1496
+ # source://json//lib/json/generic_object.rb#17
1497
1497
  def json_creatable=(_arg0); end
1498
1498
 
1499
1499
  # @return [Boolean]
1500
1500
  #
1501
- # source://json//lib/json/generic_object.rb#9
1501
+ # source://json//lib/json/generic_object.rb#13
1502
1502
  def json_creatable?; end
1503
1503
 
1504
- # source://json//lib/json/generic_object.rb#15
1504
+ # source://json//lib/json/generic_object.rb#19
1505
1505
  def json_create(data); end
1506
1506
 
1507
- # source://json//lib/json/generic_object.rb#36
1507
+ # source://json//lib/json/generic_object.rb#40
1508
1508
  def load(source, proc = T.unsafe(nil), opts = T.unsafe(nil)); end
1509
1509
  end
1510
1510
  end
1511
1511
 
1512
1512
  # The base exception for JSON errors.
1513
1513
  #
1514
- # source://json//lib/json/common.rb#140
1514
+ # source://json//lib/json/common.rb#141
1515
1515
  class JSON::JSONError < ::StandardError
1516
1516
  class << self
1517
- # source://json//lib/json/common.rb#141
1517
+ # source://json//lib/json/common.rb#142
1518
1518
  def wrap(exception); end
1519
1519
  end
1520
1520
  end
1521
1521
 
1522
- # source://json//lib/json/common.rb#6
1522
+ # source://json//lib/json/common.rb#7
1523
1523
  JSON::NOT_SET = T.let(T.unsafe(nil), Object)
1524
1524
 
1525
- # source://json//lib/json/common.rb#38
1525
+ # source://json//lib/json/common.rb#39
1526
1526
  JSON::Parser = JSON::Ext::Parser
1527
1527
 
1528
- # source://json//lib/json/common.rb#76
1528
+ # source://json//lib/json/common.rb#77
1529
1529
  JSON::State = JSON::Ext::Generator::State
1530
1530
 
1531
1531
  # For backwards compatibility
1532
1532
  #
1533
- # source://json//lib/json/common.rb#162
1533
+ # source://json//lib/json/common.rb#163
1534
1534
  JSON::UnparserError = JSON::GeneratorError
1535
1535
 
1536
- # source://json//lib/json/common.rb#652
1536
+ # source://json//lib/json/common.rb#653
1537
1537
  module Kernel
1538
1538
  private
1539
1539
 
@@ -1544,18 +1544,18 @@ module Kernel
1544
1544
  # The _opts_ argument is passed through to generate/parse respectively. See
1545
1545
  # generate and parse for their documentation.
1546
1546
  #
1547
- # source://json//lib/json/common.rb#679
1547
+ # source://json//lib/json/common.rb#680
1548
1548
  def JSON(object, *args); end
1549
1549
 
1550
1550
  # Outputs _objs_ to STDOUT as JSON strings in the shortest form, that is in
1551
1551
  # one line.
1552
1552
  #
1553
- # source://json//lib/json/common.rb#657
1553
+ # source://json//lib/json/common.rb#658
1554
1554
  def j(*objs); end
1555
1555
 
1556
1556
  # Outputs _objs_ to STDOUT as JSON strings in a pretty format, with
1557
1557
  # indentation and over many lines.
1558
1558
  #
1559
- # source://json//lib/json/common.rb#666
1559
+ # source://json//lib/json/common.rb#667
1560
1560
  def jj(*objs); end
1561
1561
  end