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.
- checksums.yaml +4 -4
- data/.github/workflows/build_and_publish_yard_docs.yml +2 -2
- data/.github/workflows/ci.yml +9 -10
- data/.github/workflows/rbi-updater.yml +1 -1
- data/.github/workflows/release_pipeline.yml +1 -1
- data/.rubocop.yml +1 -1
- data/.ruby-version +1 -1
- data/.toys/.toys.rb +8 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +76 -60
- data/README.md +0 -2
- data/SECURITY.md +151 -0
- data/bin/check_vcr_version +94 -0
- data/lib/lunchmoney/api.rb +25 -38
- data/lib/lunchmoney/calls/assets.rb +10 -13
- data/lib/lunchmoney/calls/base.rb +59 -7
- data/lib/lunchmoney/calls/budgets.rb +22 -25
- data/lib/lunchmoney/calls/categories.rb +28 -36
- data/lib/lunchmoney/calls/crypto.rb +7 -9
- data/lib/lunchmoney/calls/plaid_accounts.rb +7 -9
- data/lib/lunchmoney/calls/recurring_expenses.rb +4 -5
- data/lib/lunchmoney/calls/tags.rb +3 -4
- data/lib/lunchmoney/calls/transactions.rb +28 -36
- data/lib/lunchmoney/calls/users.rb +3 -4
- data/lib/lunchmoney/configuration.rb +20 -0
- data/lib/lunchmoney/objects/object.rb +4 -9
- data/lib/lunchmoney/validators.rb +8 -6
- data/lib/lunchmoney/version.rb +1 -1
- data/lib/lunchmoney.rb +3 -3
- data/lunchmoney.gemspec +1 -1
- data/sorbet/rbi/annotations/activesupport.rbi +35 -0
- data/sorbet/rbi/dsl/active_support/callbacks.rbi +0 -2
- data/sorbet/rbi/gems/{activesupport@7.2.2.1.rbi → activesupport@8.0.2.1.rbi} +1369 -989
- data/sorbet/rbi/gems/{ast@2.4.2.rbi → ast@2.4.3.rbi} +4 -3
- data/sorbet/rbi/gems/{base64@0.2.0.rbi → base64@0.3.0.rbi} +76 -39
- data/sorbet/rbi/gems/{benchmark@0.4.0.rbi → benchmark@0.4.1.rbi} +50 -49
- data/sorbet/rbi/gems/bigdecimal@3.2.2.rbi +275 -0
- data/sorbet/rbi/gems/{dotenv@3.1.7.rbi → dotenv@3.1.8.rbi} +9 -9
- data/sorbet/rbi/gems/{drb@2.2.1.rbi → drb@2.2.3.rbi} +503 -188
- data/sorbet/rbi/gems/{faraday-net_http@3.4.0.rbi → faraday-net_http@3.4.1.rbi} +23 -23
- data/sorbet/rbi/gems/{faraday@2.12.2.rbi → faraday@2.13.4.rbi} +468 -141
- data/sorbet/rbi/gems/{hashdiff@1.1.2.rbi → hashdiff@1.2.0.rbi} +5 -3
- data/sorbet/rbi/gems/{json@2.10.2.rbi → json@2.13.2.rbi} +386 -175
- data/sorbet/rbi/gems/{kramdown@2.4.0.rbi → kramdown@2.5.1.rbi} +316 -234
- data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +240 -0
- data/sorbet/rbi/gems/{logger@1.6.6.rbi → logger@1.7.0.rbi} +63 -40
- data/sorbet/rbi/gems/{parser@3.3.7.1.rbi → parser@3.3.9.0.rbi} +303 -291
- data/sorbet/rbi/gems/{rack@3.1.9.rbi → rack@3.2.1.rbi} +712 -547
- data/sorbet/rbi/gems/{rake@13.2.1.rbi → rake@13.3.0.rbi} +238 -227
- data/sorbet/rbi/gems/{rbi@0.3.1.rbi → rbi@0.3.6.rbi} +1084 -2521
- data/sorbet/rbi/gems/{rbs@3.9.0.rbi → rbs@4.0.0.dev.4.rbi} +1336 -419
- data/sorbet/rbi/gems/{regexp_parser@2.10.0.rbi → regexp_parser@2.11.2.rbi} +1044 -956
- data/sorbet/rbi/gems/require-hooks@0.2.2.rbi +110 -0
- data/sorbet/rbi/gems/{rexml@3.4.1.rbi → rexml@3.4.2.rbi} +302 -292
- data/sorbet/rbi/gems/{rubocop-ast@1.38.0.rbi → rubocop-ast@1.46.0.rbi} +802 -1016
- data/sorbet/rbi/gems/{rubocop-minitest@0.36.0.rbi → rubocop-minitest@0.38.2.rbi} +129 -93
- data/sorbet/rbi/gems/{rubocop-rails@2.29.1.rbi → rubocop-rails@2.33.3.rbi} +575 -230
- data/sorbet/rbi/gems/{rubocop-shopify@2.15.1.rbi → rubocop-shopify@2.17.1.rbi} +1 -0
- data/sorbet/rbi/gems/{rubocop-sorbet@0.8.7.rbi → rubocop-sorbet@0.10.5.rbi} +761 -83
- data/sorbet/rbi/gems/{rubocop@1.71.2.rbi → rubocop@1.80.1.rbi} +6543 -3097
- data/sorbet/rbi/gems/{spoom@1.6.1.rbi → spoom@1.7.6.rbi} +1179 -2621
- data/sorbet/rbi/gems/{tapioca@0.16.11.rbi → tapioca@0.17.7.rbi} +623 -745
- data/sorbet/rbi/gems/{thor@1.3.2.rbi → thor@1.4.0.rbi} +88 -67
- data/sorbet/rbi/gems/{unicode-display_width@3.1.4.rbi → unicode-display_width@3.1.5.rbi} +5 -5
- data/sorbet/rbi/gems/{vcr@6.3.1.rbi → vcr@6.3.1-ce35c236fe48899f02ddf780973b44cdb756c0ee.rbi} +140 -123
- metadata +42 -38
- data/sorbet/rbi/gems/bigdecimal@3.1.9.rbi +0 -78
- /data/sorbet/rbi/gems/{connection_pool@2.5.0.rbi → connection_pool@2.5.3.rbi} +0 -0
- /data/sorbet/rbi/gems/{language_server-protocol@3.17.0.4.rbi → language_server-protocol@3.17.0.5.rbi} +0 -0
- /data/sorbet/rbi/gems/{parallel@1.26.3.rbi → parallel@1.27.0.rbi} +0 -0
@@ -19,8 +19,9 @@
|
|
19
19
|
#
|
20
20
|
# 0.350000 0.400000 0.750000 ( 0.835234)
|
21
21
|
#
|
22
|
-
# This report shows the user CPU time, system CPU time, the
|
23
|
-
#
|
22
|
+
# This report shows the user CPU time, system CPU time, the total time
|
23
|
+
# (sum of user CPU time, system CPU time, children's user CPU time,
|
24
|
+
# and children's system CPU time), and the elapsed real time. The unit
|
24
25
|
# of time is seconds.
|
25
26
|
#
|
26
27
|
# * Do some experiments sequentially using the #bm method:
|
@@ -108,7 +109,7 @@
|
|
108
109
|
# >total: 2.880000 0.000000 2.880000 ( 2.883764)
|
109
110
|
# >avg: 0.960000 0.000000 0.960000 ( 0.961255)
|
110
111
|
#
|
111
|
-
# source://benchmark//lib/benchmark.rb#
|
112
|
+
# source://benchmark//lib/benchmark.rb#123
|
112
113
|
module Benchmark
|
113
114
|
private
|
114
115
|
|
@@ -153,7 +154,7 @@ module Benchmark
|
|
153
154
|
# >total: 2.930000 0.000000 2.930000 ( 2.932889)
|
154
155
|
# >avg: 0.976667 0.000000 0.976667 ( 0.977630)
|
155
156
|
#
|
156
|
-
# source://benchmark//lib/benchmark.rb#
|
157
|
+
# source://benchmark//lib/benchmark.rb#171
|
157
158
|
def benchmark(caption = T.unsafe(nil), label_width = T.unsafe(nil), format = T.unsafe(nil), *labels); end
|
158
159
|
|
159
160
|
# A simple interface to the #benchmark method, #bm generates sequential
|
@@ -176,7 +177,7 @@ module Benchmark
|
|
176
177
|
# times: 0.960000 0.000000 0.960000 ( 0.960423)
|
177
178
|
# upto: 0.950000 0.000000 0.950000 ( 0.954864)
|
178
179
|
#
|
179
|
-
# source://benchmark//lib/benchmark.rb#
|
180
|
+
# source://benchmark//lib/benchmark.rb#216
|
180
181
|
def bm(label_width = T.unsafe(nil), *labels, &blk); end
|
181
182
|
|
182
183
|
# Sometimes benchmark results are skewed because code executed
|
@@ -216,7 +217,7 @@ module Benchmark
|
|
216
217
|
# #bmbm yields a Benchmark::Job object and returns an array of
|
217
218
|
# Benchmark::Tms objects.
|
218
219
|
#
|
219
|
-
# source://benchmark//lib/benchmark.rb#
|
220
|
+
# source://benchmark//lib/benchmark.rb#258
|
220
221
|
def bmbm(width = T.unsafe(nil)); end
|
221
222
|
|
222
223
|
# Returns the time used to execute the given block as a
|
@@ -235,7 +236,7 @@ module Benchmark
|
|
235
236
|
#
|
236
237
|
# 0.220000 0.000000 0.220000 ( 0.227313)
|
237
238
|
#
|
238
|
-
# source://benchmark//lib/benchmark.rb#
|
239
|
+
# source://benchmark//lib/benchmark.rb#303
|
239
240
|
def measure(label = T.unsafe(nil)); end
|
240
241
|
|
241
242
|
# Returns the elapsed real time used to execute the given block.
|
@@ -244,7 +245,7 @@ module Benchmark
|
|
244
245
|
# Benchmark.realtime { "a" * 1_000_000_000 }
|
245
246
|
# #=> 0.5098029999935534
|
246
247
|
#
|
247
|
-
# source://benchmark//lib/benchmark.rb#
|
248
|
+
# source://benchmark//lib/benchmark.rb#322
|
248
249
|
def realtime; end
|
249
250
|
|
250
251
|
class << self
|
@@ -289,7 +290,7 @@ module Benchmark
|
|
289
290
|
# >total: 2.930000 0.000000 2.930000 ( 2.932889)
|
290
291
|
# >avg: 0.976667 0.000000 0.976667 ( 0.977630)
|
291
292
|
#
|
292
|
-
# source://benchmark//lib/benchmark.rb#
|
293
|
+
# source://benchmark//lib/benchmark.rb#328
|
293
294
|
def benchmark(caption = T.unsafe(nil), label_width = T.unsafe(nil), format = T.unsafe(nil), *labels); end
|
294
295
|
|
295
296
|
# A simple interface to the #benchmark method, #bm generates sequential
|
@@ -312,7 +313,7 @@ module Benchmark
|
|
312
313
|
# times: 0.960000 0.000000 0.960000 ( 0.960423)
|
313
314
|
# upto: 0.950000 0.000000 0.950000 ( 0.954864)
|
314
315
|
#
|
315
|
-
# source://benchmark//lib/benchmark.rb#
|
316
|
+
# source://benchmark//lib/benchmark.rb#328
|
316
317
|
def bm(label_width = T.unsafe(nil), *labels, &blk); end
|
317
318
|
|
318
319
|
# Sometimes benchmark results are skewed because code executed
|
@@ -352,7 +353,7 @@ module Benchmark
|
|
352
353
|
# #bmbm yields a Benchmark::Job object and returns an array of
|
353
354
|
# Benchmark::Tms objects.
|
354
355
|
#
|
355
|
-
# source://benchmark//lib/benchmark.rb#
|
356
|
+
# source://benchmark//lib/benchmark.rb#328
|
356
357
|
def bmbm(width = T.unsafe(nil)); end
|
357
358
|
|
358
359
|
# Returns the time used to execute the given block as a
|
@@ -371,7 +372,7 @@ module Benchmark
|
|
371
372
|
#
|
372
373
|
# 0.220000 0.000000 0.220000 ( 0.227313)
|
373
374
|
#
|
374
|
-
# source://benchmark//lib/benchmark.rb#
|
375
|
+
# source://benchmark//lib/benchmark.rb#328
|
375
376
|
def measure(label = T.unsafe(nil)); end
|
376
377
|
|
377
378
|
# Returns the elapsed real time used to execute the given block.
|
@@ -380,7 +381,7 @@ module Benchmark
|
|
380
381
|
# Benchmark.realtime { "a" * 1_000_000_000 }
|
381
382
|
# #=> 0.5098029999935534
|
382
383
|
#
|
383
|
-
# source://benchmark//lib/benchmark.rb#
|
384
|
+
# source://benchmark//lib/benchmark.rb#328
|
384
385
|
def realtime; end
|
385
386
|
end
|
386
387
|
end
|
@@ -388,7 +389,7 @@ end
|
|
388
389
|
# A Job is a sequence of labelled blocks to be processed by the
|
389
390
|
# Benchmark.bmbm method. It is of little direct interest to the user.
|
390
391
|
#
|
391
|
-
# source://benchmark//lib/benchmark.rb#
|
392
|
+
# source://benchmark//lib/benchmark.rb#334
|
392
393
|
class Benchmark::Job
|
393
394
|
# Returns an initialized Job instance.
|
394
395
|
# Usually, one doesn't call this method directly, as new
|
@@ -398,38 +399,38 @@ class Benchmark::Job
|
|
398
399
|
#
|
399
400
|
# @return [Job] a new instance of Job
|
400
401
|
#
|
401
|
-
# source://benchmark//lib/benchmark.rb#
|
402
|
+
# source://benchmark//lib/benchmark.rb#342
|
402
403
|
def initialize(width); end
|
403
404
|
|
404
405
|
# Registers the given label and block pair in the job list.
|
405
406
|
#
|
406
407
|
# @raise [ArgumentError]
|
407
408
|
#
|
408
|
-
# source://benchmark//lib/benchmark.rb#
|
409
|
+
# source://benchmark//lib/benchmark.rb#350
|
409
410
|
def item(label = T.unsafe(nil), &blk); end
|
410
411
|
|
411
412
|
# An array of 2-element arrays, consisting of label and block pairs.
|
412
413
|
#
|
413
|
-
# source://benchmark//lib/benchmark.rb#
|
414
|
+
# source://benchmark//lib/benchmark.rb#362
|
414
415
|
def list; end
|
415
416
|
|
416
417
|
# Registers the given label and block pair in the job list.
|
417
418
|
#
|
418
419
|
# @raise [ArgumentError]
|
419
420
|
#
|
420
|
-
# source://benchmark//lib/benchmark.rb#
|
421
|
+
# source://benchmark//lib/benchmark.rb#359
|
421
422
|
def report(label = T.unsafe(nil), &blk); end
|
422
423
|
|
423
424
|
# Length of the widest label in the #list.
|
424
425
|
#
|
425
|
-
# source://benchmark//lib/benchmark.rb#
|
426
|
+
# source://benchmark//lib/benchmark.rb#365
|
426
427
|
def width; end
|
427
428
|
end
|
428
429
|
|
429
430
|
# This class is used by the Benchmark.benchmark and Benchmark.bm methods.
|
430
431
|
# It is of little direct interest to the user.
|
431
432
|
#
|
432
|
-
# source://benchmark//lib/benchmark.rb#
|
433
|
+
# source://benchmark//lib/benchmark.rb#372
|
433
434
|
class Benchmark::Report
|
434
435
|
# Returns an initialized Report instance.
|
435
436
|
# Usually, one doesn't call this method directly, as new
|
@@ -439,43 +440,43 @@ class Benchmark::Report
|
|
439
440
|
#
|
440
441
|
# @return [Report] a new instance of Report
|
441
442
|
#
|
442
|
-
# source://benchmark//lib/benchmark.rb#
|
443
|
+
# source://benchmark//lib/benchmark.rb#380
|
443
444
|
def initialize(width = T.unsafe(nil), format = T.unsafe(nil)); end
|
444
445
|
|
445
446
|
# An array of Benchmark::Tms objects representing each item.
|
446
447
|
#
|
447
|
-
# source://benchmark//lib/benchmark.rb#
|
448
|
+
# source://benchmark//lib/benchmark.rb#399
|
448
449
|
def format; end
|
449
450
|
|
450
451
|
# Prints the +label+ and measured time for the block,
|
451
452
|
# formatted by +format+. See Tms#format for the
|
452
453
|
# formatting rules.
|
453
454
|
#
|
454
|
-
# source://benchmark//lib/benchmark.rb#
|
455
|
+
# source://benchmark//lib/benchmark.rb#389
|
455
456
|
def item(label = T.unsafe(nil), *format, &blk); end
|
456
457
|
|
457
458
|
# An array of Benchmark::Tms objects representing each item.
|
458
459
|
#
|
459
|
-
# source://benchmark//lib/benchmark.rb#
|
460
|
+
# source://benchmark//lib/benchmark.rb#399
|
460
461
|
def list; end
|
461
462
|
|
462
463
|
# Prints the +label+ and measured time for the block,
|
463
464
|
# formatted by +format+. See Tms#format for the
|
464
465
|
# formatting rules.
|
465
466
|
#
|
466
|
-
# source://benchmark//lib/benchmark.rb#
|
467
|
+
# source://benchmark//lib/benchmark.rb#396
|
467
468
|
def report(label = T.unsafe(nil), *format, &blk); end
|
468
469
|
|
469
470
|
# An array of Benchmark::Tms objects representing each item.
|
470
471
|
#
|
471
|
-
# source://benchmark//lib/benchmark.rb#
|
472
|
+
# source://benchmark//lib/benchmark.rb#399
|
472
473
|
def width; end
|
473
474
|
end
|
474
475
|
|
475
476
|
# A data object, representing the times associated with a benchmark
|
476
477
|
# measurement.
|
477
478
|
#
|
478
|
-
# source://benchmark//lib/benchmark.rb#
|
479
|
+
# source://benchmark//lib/benchmark.rb#408
|
479
480
|
class Benchmark::Tms
|
480
481
|
# Returns an initialized Tms object which has
|
481
482
|
# +utime+ as the user CPU time, +stime+ as the system CPU time,
|
@@ -484,13 +485,13 @@ class Benchmark::Tms
|
|
484
485
|
#
|
485
486
|
# @return [Tms] a new instance of Tms
|
486
487
|
#
|
487
|
-
# source://benchmark//lib/benchmark.rb#
|
488
|
+
# source://benchmark//lib/benchmark.rb#443
|
488
489
|
def initialize(utime = T.unsafe(nil), stime = T.unsafe(nil), cutime = T.unsafe(nil), cstime = T.unsafe(nil), real = T.unsafe(nil), label = T.unsafe(nil)); end
|
489
490
|
|
490
491
|
# Returns a new Tms object obtained by memberwise multiplication
|
491
492
|
# of the individual times for this Tms object by +x+.
|
492
493
|
#
|
493
|
-
# source://benchmark//lib/benchmark.rb#
|
494
|
+
# source://benchmark//lib/benchmark.rb#491
|
494
495
|
def *(x); end
|
495
496
|
|
496
497
|
# Returns a new Tms object obtained by memberwise summation
|
@@ -498,27 +499,27 @@ class Benchmark::Tms
|
|
498
499
|
# Tms object.
|
499
500
|
# This method and #/() are useful for taking statistics.
|
500
501
|
#
|
501
|
-
# source://benchmark//lib/benchmark.rb#
|
502
|
+
# source://benchmark//lib/benchmark.rb#478
|
502
503
|
def +(other); end
|
503
504
|
|
504
505
|
# Returns a new Tms object obtained by memberwise subtraction
|
505
506
|
# of the individual times for the +other+ Tms object from those of this
|
506
507
|
# Tms object.
|
507
508
|
#
|
508
|
-
# source://benchmark//lib/benchmark.rb#
|
509
|
+
# source://benchmark//lib/benchmark.rb#485
|
509
510
|
def -(other); end
|
510
511
|
|
511
512
|
# Returns a new Tms object obtained by memberwise division
|
512
513
|
# of the individual times for this Tms object by +x+.
|
513
514
|
# This method and #+() are useful for taking statistics.
|
514
515
|
#
|
515
|
-
# source://benchmark//lib/benchmark.rb#
|
516
|
+
# source://benchmark//lib/benchmark.rb#498
|
516
517
|
def /(x); end
|
517
518
|
|
518
519
|
# Returns a new Tms object whose times are the sum of the times for this
|
519
520
|
# Tms object, plus the time required to execute the code block (+blk+).
|
520
521
|
#
|
521
|
-
# source://benchmark//lib/benchmark.rb#
|
522
|
+
# source://benchmark//lib/benchmark.rb#452
|
522
523
|
def add(&blk); end
|
523
524
|
|
524
525
|
# An in-place version of #add.
|
@@ -526,17 +527,17 @@ class Benchmark::Tms
|
|
526
527
|
# for this Tms object, plus the time required to execute
|
527
528
|
# the code block (+blk+).
|
528
529
|
#
|
529
|
-
# source://benchmark//lib/benchmark.rb#
|
530
|
+
# source://benchmark//lib/benchmark.rb#462
|
530
531
|
def add!(&blk); end
|
531
532
|
|
532
533
|
# System CPU time of children
|
533
534
|
#
|
534
|
-
# source://benchmark//lib/benchmark.rb#
|
535
|
+
# source://benchmark//lib/benchmark.rb#426
|
535
536
|
def cstime; end
|
536
537
|
|
537
538
|
# User CPU time of children
|
538
539
|
#
|
539
|
-
# source://benchmark//lib/benchmark.rb#
|
540
|
+
# source://benchmark//lib/benchmark.rb#423
|
540
541
|
def cutime; end
|
541
542
|
|
542
543
|
# Returns the contents of this Tms object as
|
@@ -545,7 +546,7 @@ class Benchmark::Tms
|
|
545
546
|
# accepts the following extensions:
|
546
547
|
#
|
547
548
|
# <tt>%u</tt>:: Replaced by the user CPU time, as reported by Tms#utime.
|
548
|
-
# <tt>%y</tt>:: Replaced by the system CPU time, as reported by #stime (Mnemonic: y of "s*y*stem")
|
549
|
+
# <tt>%y</tt>:: Replaced by the system CPU time, as reported by Tms#stime (Mnemonic: y of "s*y*stem")
|
549
550
|
# <tt>%U</tt>:: Replaced by the children's user CPU time, as reported by Tms#cutime
|
550
551
|
# <tt>%Y</tt>:: Replaced by the children's system CPU time, as reported by Tms#cstime
|
551
552
|
# <tt>%t</tt>:: Replaced by the total CPU time, as reported by Tms#total
|
@@ -553,24 +554,24 @@ class Benchmark::Tms
|
|
553
554
|
# <tt>%n</tt>:: Replaced by the label string, as reported by Tms#label (Mnemonic: n of "*n*ame")
|
554
555
|
#
|
555
556
|
# If +format+ is not given, FORMAT is used as default value, detailing the
|
556
|
-
# user, system and real elapsed time.
|
557
|
+
# user, system, total and real elapsed time.
|
557
558
|
#
|
558
|
-
# source://benchmark//lib/benchmark.rb#
|
559
|
+
# source://benchmark//lib/benchmark.rb#517
|
559
560
|
def format(format = T.unsafe(nil), *args); end
|
560
561
|
|
561
562
|
# Label
|
562
563
|
#
|
563
|
-
# source://benchmark//lib/benchmark.rb#
|
564
|
+
# source://benchmark//lib/benchmark.rb#435
|
564
565
|
def label; end
|
565
566
|
|
566
567
|
# Elapsed real time
|
567
568
|
#
|
568
|
-
# source://benchmark//lib/benchmark.rb#
|
569
|
+
# source://benchmark//lib/benchmark.rb#429
|
569
570
|
def real; end
|
570
571
|
|
571
572
|
# System CPU time
|
572
573
|
#
|
573
|
-
# source://benchmark//lib/benchmark.rb#
|
574
|
+
# source://benchmark//lib/benchmark.rb#420
|
574
575
|
def stime; end
|
575
576
|
|
576
577
|
# Returns a new 6-element array, consisting of the
|
@@ -578,27 +579,27 @@ class Benchmark::Tms
|
|
578
579
|
# user CPU time, children's system CPU time and elapsed
|
579
580
|
# real time.
|
580
581
|
#
|
581
|
-
# source://benchmark//lib/benchmark.rb#
|
582
|
+
# source://benchmark//lib/benchmark.rb#542
|
582
583
|
def to_a; end
|
583
584
|
|
584
585
|
# Returns a hash containing the same data as `to_a`.
|
585
586
|
#
|
586
|
-
# source://benchmark//lib/benchmark.rb#
|
587
|
+
# source://benchmark//lib/benchmark.rb#549
|
587
588
|
def to_h; end
|
588
589
|
|
589
590
|
# Same as #format.
|
590
591
|
#
|
591
|
-
# source://benchmark//lib/benchmark.rb#
|
592
|
+
# source://benchmark//lib/benchmark.rb#532
|
592
593
|
def to_s; end
|
593
594
|
|
594
595
|
# Total time, that is +utime+ + +stime+ + +cutime+ + +cstime+
|
595
596
|
#
|
596
|
-
# source://benchmark//lib/benchmark.rb#
|
597
|
+
# source://benchmark//lib/benchmark.rb#432
|
597
598
|
def total; end
|
598
599
|
|
599
600
|
# User CPU time
|
600
601
|
#
|
601
|
-
# source://benchmark//lib/benchmark.rb#
|
602
|
+
# source://benchmark//lib/benchmark.rb#417
|
602
603
|
def utime; end
|
603
604
|
|
604
605
|
protected
|
@@ -610,9 +611,9 @@ class Benchmark::Tms
|
|
610
611
|
# +op+ can be a mathematical operation such as <tt>+</tt>, <tt>-</tt>,
|
611
612
|
# <tt>*</tt>, <tt>/</tt>
|
612
613
|
#
|
613
|
-
# source://benchmark//lib/benchmark.rb#
|
614
|
+
# source://benchmark//lib/benchmark.rb#570
|
614
615
|
def memberwise(op, x); end
|
615
616
|
end
|
616
617
|
|
617
|
-
# source://benchmark//lib/benchmark.rb#
|
618
|
+
# source://benchmark//lib/benchmark.rb#125
|
618
619
|
Benchmark::VERSION = T.let(T.unsafe(nil), String)
|
@@ -0,0 +1,275 @@
|
|
1
|
+
# typed: false
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `bigdecimal` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem bigdecimal`.
|
6
|
+
|
7
|
+
|
8
|
+
# source://bigdecimal//lib/bigdecimal/util.rb#78
|
9
|
+
class BigDecimal < ::Numeric
|
10
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
11
|
+
def %(_arg0); end
|
12
|
+
|
13
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
14
|
+
def *(_arg0); end
|
15
|
+
|
16
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
17
|
+
def **(_arg0); end
|
18
|
+
|
19
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
20
|
+
def +(_arg0); end
|
21
|
+
|
22
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
23
|
+
def +@; end
|
24
|
+
|
25
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
26
|
+
def -(_arg0); end
|
27
|
+
|
28
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
29
|
+
def -@; end
|
30
|
+
|
31
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
32
|
+
def /(_arg0); end
|
33
|
+
|
34
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
35
|
+
def <(_arg0); end
|
36
|
+
|
37
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
38
|
+
def <=(_arg0); end
|
39
|
+
|
40
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
41
|
+
def <=>(_arg0); end
|
42
|
+
|
43
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
44
|
+
def ==(_arg0); end
|
45
|
+
|
46
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
47
|
+
def ===(_arg0); end
|
48
|
+
|
49
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
50
|
+
def >(_arg0); end
|
51
|
+
|
52
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
53
|
+
def >=(_arg0); end
|
54
|
+
|
55
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
56
|
+
def _dump(*_arg0); end
|
57
|
+
|
58
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
59
|
+
def abs; end
|
60
|
+
|
61
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
62
|
+
def add(_arg0, _arg1); end
|
63
|
+
|
64
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
65
|
+
def ceil(*_arg0); end
|
66
|
+
|
67
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
68
|
+
def clone; end
|
69
|
+
|
70
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
71
|
+
def coerce(_arg0); end
|
72
|
+
|
73
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
74
|
+
def div(*_arg0); end
|
75
|
+
|
76
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
77
|
+
def divmod(_arg0); end
|
78
|
+
|
79
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
80
|
+
def dup; end
|
81
|
+
|
82
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
83
|
+
def eql?(_arg0); end
|
84
|
+
|
85
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
86
|
+
def exponent; end
|
87
|
+
|
88
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
89
|
+
def finite?; end
|
90
|
+
|
91
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
92
|
+
def fix; end
|
93
|
+
|
94
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
95
|
+
def floor(*_arg0); end
|
96
|
+
|
97
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
98
|
+
def frac; end
|
99
|
+
|
100
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
101
|
+
def hash; end
|
102
|
+
|
103
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
104
|
+
def infinite?; end
|
105
|
+
|
106
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
107
|
+
def inspect; end
|
108
|
+
|
109
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
110
|
+
def modulo(_arg0); end
|
111
|
+
|
112
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
113
|
+
def mult(_arg0, _arg1); end
|
114
|
+
|
115
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
116
|
+
def n_significant_digits; end
|
117
|
+
|
118
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
119
|
+
def nan?; end
|
120
|
+
|
121
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
122
|
+
def nonzero?; end
|
123
|
+
|
124
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
125
|
+
def power(*_arg0); end
|
126
|
+
|
127
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
128
|
+
def precision; end
|
129
|
+
|
130
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
131
|
+
def precision_scale; end
|
132
|
+
|
133
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
134
|
+
def precs; end
|
135
|
+
|
136
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
137
|
+
def quo(*_arg0); end
|
138
|
+
|
139
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
140
|
+
def remainder(_arg0); end
|
141
|
+
|
142
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
143
|
+
def round(*_arg0); end
|
144
|
+
|
145
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
146
|
+
def scale; end
|
147
|
+
|
148
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
149
|
+
def sign; end
|
150
|
+
|
151
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
152
|
+
def split; end
|
153
|
+
|
154
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
155
|
+
def sqrt(_arg0); end
|
156
|
+
|
157
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
158
|
+
def sub(_arg0, _arg1); end
|
159
|
+
|
160
|
+
# call-seq:
|
161
|
+
# a.to_d -> bigdecimal
|
162
|
+
#
|
163
|
+
# Returns self.
|
164
|
+
#
|
165
|
+
# require 'bigdecimal/util'
|
166
|
+
#
|
167
|
+
# d = BigDecimal("3.14")
|
168
|
+
# d.to_d # => 0.314e1
|
169
|
+
#
|
170
|
+
# source://bigdecimal//lib/bigdecimal/util.rb#110
|
171
|
+
def to_d; end
|
172
|
+
|
173
|
+
# call-seq:
|
174
|
+
# a.to_digits -> string
|
175
|
+
#
|
176
|
+
# Converts a BigDecimal to a String of the form "nnnnnn.mmm".
|
177
|
+
# This method is deprecated; use BigDecimal#to_s("F") instead.
|
178
|
+
#
|
179
|
+
# require 'bigdecimal/util'
|
180
|
+
#
|
181
|
+
# d = BigDecimal("3.14")
|
182
|
+
# d.to_digits # => "3.14"
|
183
|
+
#
|
184
|
+
# source://bigdecimal//lib/bigdecimal/util.rb#90
|
185
|
+
def to_digits; end
|
186
|
+
|
187
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
188
|
+
def to_f; end
|
189
|
+
|
190
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
191
|
+
def to_i; end
|
192
|
+
|
193
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
194
|
+
def to_int; end
|
195
|
+
|
196
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
197
|
+
def to_r; end
|
198
|
+
|
199
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
200
|
+
def to_s(format = T.unsafe(nil)); end
|
201
|
+
|
202
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
203
|
+
def truncate(*_arg0); end
|
204
|
+
|
205
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
206
|
+
def zero?; end
|
207
|
+
|
208
|
+
class << self
|
209
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
210
|
+
def _load(_arg0); end
|
211
|
+
|
212
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
213
|
+
def double_fig; end
|
214
|
+
|
215
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
216
|
+
def interpret_loosely(_arg0); end
|
217
|
+
|
218
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
219
|
+
def limit(*_arg0); end
|
220
|
+
|
221
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
222
|
+
def mode(*_arg0); end
|
223
|
+
|
224
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
225
|
+
def save_exception_mode; end
|
226
|
+
|
227
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
228
|
+
def save_limit; end
|
229
|
+
|
230
|
+
# source://bigdecimal//lib/bigdecimal.rb#4
|
231
|
+
def save_rounding_mode; end
|
232
|
+
end
|
233
|
+
end
|
234
|
+
|
235
|
+
BigDecimal::VERSION = T.let(T.unsafe(nil), String)
|
236
|
+
|
237
|
+
# source://bigdecimal//lib/bigdecimal/util.rb#138
|
238
|
+
class Complex < ::Numeric
|
239
|
+
# call-seq:
|
240
|
+
# cmp.to_d -> bigdecimal
|
241
|
+
# cmp.to_d(precision) -> bigdecimal
|
242
|
+
#
|
243
|
+
# Returns the value as a BigDecimal.
|
244
|
+
#
|
245
|
+
# The +precision+ parameter is required for a rational complex number.
|
246
|
+
# This parameter is used to determine the number of significant digits
|
247
|
+
# for the result.
|
248
|
+
#
|
249
|
+
# require 'bigdecimal'
|
250
|
+
# require 'bigdecimal/util'
|
251
|
+
#
|
252
|
+
# Complex(0.1234567, 0).to_d(4) # => 0.1235e0
|
253
|
+
# Complex(Rational(22, 7), 0).to_d(3) # => 0.314e1
|
254
|
+
#
|
255
|
+
# See also Kernel.BigDecimal.
|
256
|
+
#
|
257
|
+
# source://bigdecimal//lib/bigdecimal/util.rb#157
|
258
|
+
def to_d(*args); end
|
259
|
+
end
|
260
|
+
|
261
|
+
# source://bigdecimal//lib/bigdecimal/util.rb#171
|
262
|
+
class NilClass
|
263
|
+
# call-seq:
|
264
|
+
# nil.to_d -> bigdecimal
|
265
|
+
#
|
266
|
+
# Returns nil represented as a BigDecimal.
|
267
|
+
#
|
268
|
+
# require 'bigdecimal'
|
269
|
+
# require 'bigdecimal/util'
|
270
|
+
#
|
271
|
+
# nil.to_d # => 0.0
|
272
|
+
#
|
273
|
+
# source://bigdecimal//lib/bigdecimal/util.rb#182
|
274
|
+
def to_d; end
|
275
|
+
end
|
@@ -217,10 +217,10 @@ end
|
|
217
217
|
class Dotenv::Parser
|
218
218
|
# @return [Parser] a new instance of Parser
|
219
219
|
#
|
220
|
-
# source://dotenv//lib/dotenv/parser.rb#
|
220
|
+
# source://dotenv//lib/dotenv/parser.rb#46
|
221
221
|
def initialize(string, overwrite: T.unsafe(nil)); end
|
222
222
|
|
223
|
-
# source://dotenv//lib/dotenv/parser.rb#
|
223
|
+
# source://dotenv//lib/dotenv/parser.rb#53
|
224
224
|
def call; end
|
225
225
|
|
226
226
|
private
|
@@ -229,25 +229,25 @@ class Dotenv::Parser
|
|
229
229
|
#
|
230
230
|
# @return [Boolean]
|
231
231
|
#
|
232
|
-
# source://dotenv//lib/dotenv/parser.rb#
|
232
|
+
# source://dotenv//lib/dotenv/parser.rb#76
|
233
233
|
def existing?(key); end
|
234
234
|
|
235
|
-
# source://dotenv//lib/dotenv/parser.rb#
|
235
|
+
# source://dotenv//lib/dotenv/parser.rb#101
|
236
236
|
def expand_newlines(value); end
|
237
237
|
|
238
|
-
# source://dotenv//lib/dotenv/parser.rb#
|
238
|
+
# source://dotenv//lib/dotenv/parser.rb#80
|
239
239
|
def parse_value(value); end
|
240
240
|
|
241
|
-
# source://dotenv//lib/dotenv/parser.rb#
|
241
|
+
# source://dotenv//lib/dotenv/parser.rb#97
|
242
242
|
def unescape_characters(value); end
|
243
243
|
|
244
244
|
class << self
|
245
|
-
# source://dotenv//lib/dotenv/parser.rb#
|
245
|
+
# source://dotenv//lib/dotenv/parser.rb#41
|
246
246
|
def call(*_arg0, **_arg1, &_arg2); end
|
247
247
|
|
248
248
|
# Returns the value of attribute substitutions.
|
249
249
|
#
|
250
|
-
# source://dotenv//lib/dotenv/parser.rb#
|
250
|
+
# source://dotenv//lib/dotenv/parser.rb#39
|
251
251
|
def substitutions; end
|
252
252
|
end
|
253
253
|
end
|
@@ -255,7 +255,7 @@ end
|
|
255
255
|
# source://dotenv//lib/dotenv/parser.rb#16
|
256
256
|
Dotenv::Parser::LINE = T.let(T.unsafe(nil), Regexp)
|
257
257
|
|
258
|
-
# source://dotenv//lib/dotenv/parser.rb#
|
258
|
+
# source://dotenv//lib/dotenv/parser.rb#36
|
259
259
|
Dotenv::Parser::QUOTED_STRING = T.let(T.unsafe(nil), Regexp)
|
260
260
|
|
261
261
|
# An internal monitor to synchronize access to ENV in multi-threaded environments.
|