ruby-paseto 0.1.1 → 0.2.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 (82) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -1
  3. data/README.md +55 -50
  4. data/lib/paseto/asn1/ecdsa_signature.rb +2 -2
  5. data/lib/paseto/asymmetric_key.rb +7 -4
  6. data/lib/paseto/configuration/decode_configuration.rb +7 -7
  7. data/lib/paseto/interface/key.rb +5 -2
  8. data/lib/paseto/interface/pbkd.rb +4 -20
  9. data/lib/paseto/interface/pie.rb +5 -26
  10. data/lib/paseto/interface/pke.rb +15 -51
  11. data/lib/paseto/interface/version.rb +30 -117
  12. data/lib/paseto/operations/id/i_dv3.rb +1 -1
  13. data/lib/paseto/operations/id/i_dv4.rb +1 -1
  14. data/lib/paseto/operations/pbkd/p_b_k_dv3.rb +4 -5
  15. data/lib/paseto/operations/pbkd/p_b_k_dv4.rb +3 -4
  16. data/lib/paseto/operations/pbkw.rb +6 -6
  17. data/lib/paseto/operations/pke/p_k_ev3.rb +23 -25
  18. data/lib/paseto/operations/pke/p_k_ev4.rb +33 -34
  19. data/lib/paseto/operations/pke.rb +9 -10
  20. data/lib/paseto/operations/wrap.rb +1 -1
  21. data/lib/paseto/paserk.rb +1 -1
  22. data/lib/paseto/paserk_types.rb +3 -3
  23. data/lib/paseto/protocol/version3.rb +17 -16
  24. data/lib/paseto/protocol/version4.rb +17 -16
  25. data/lib/paseto/symmetric_key.rb +16 -10
  26. data/lib/paseto/token.rb +17 -15
  27. data/lib/paseto/token_types.rb +2 -2
  28. data/lib/paseto/util.rb +2 -3
  29. data/lib/paseto/v3/local.rb +1 -1
  30. data/lib/paseto/v3/public.rb +8 -69
  31. data/lib/paseto/v4/local.rb +3 -3
  32. data/lib/paseto/v4/public.rb +3 -6
  33. data/lib/paseto/validator.rb +1 -1
  34. data/lib/paseto/version.rb +1 -1
  35. data/lib/paseto/versions.rb +2 -2
  36. data/lib/paseto/wrappers/pie/pie_v3.rb +18 -21
  37. data/lib/paseto/wrappers/pie/pie_v4.rb +17 -20
  38. data/lib/paseto/wrappers/pie.rb +3 -17
  39. data/lib/paseto.rb +2 -5
  40. data/paseto.gemspec +5 -17
  41. data/sorbet/rbi/annotations/.gitattributes +1 -0
  42. data/sorbet/rbi/annotations/rainbow.rbi +4 -4
  43. data/sorbet/rbi/gems/.gitattributes +1 -0
  44. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1 -1
  45. data/sorbet/rbi/gems/docile@1.4.0.rbi +1 -1
  46. data/sorbet/rbi/gems/{ffi@1.15.5.rbi → ffi@1.16.3.rbi} +260 -117
  47. data/sorbet/rbi/gems/{oj@3.13.23.rbi → oj@3.16.1.rbi} +28 -37
  48. data/sorbet/rbi/gems/{rake@13.0.6.rbi → rake@13.1.0.rbi} +75 -69
  49. data/sorbet/rbi/gems/rbnacl@7.1.1.rbi +2 -2
  50. data/sorbet/rbi/gems/{rspec-core@3.12.0.rbi → rspec-core@3.12.2.rbi} +31 -113
  51. data/sorbet/rbi/gems/{rspec-expectations@3.12.0.rbi → rspec-expectations@3.12.3.rbi} +204 -194
  52. data/sorbet/rbi/gems/{rspec-mocks@3.12.0.rbi → rspec-mocks@3.12.6.rbi} +225 -215
  53. data/sorbet/rbi/gems/{rspec-support@3.12.0.rbi → rspec-support@3.12.1.rbi} +35 -43
  54. data/sorbet/rbi/gems/rspec@3.12.0.rbi +22 -28
  55. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +41 -44
  56. data/sorbet/rbi/gems/{simplecov@0.21.2.rbi → simplecov@0.22.0.rbi} +62 -49
  57. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +232 -2
  58. data/sorbet/rbi/gems/{timecop@0.9.6.rbi → timecop@0.9.8.rbi} +13 -16
  59. data/sorbet/rbi/shims/multi_json.rbi +2 -0
  60. data/sorbet/rbi/shims/openssl.rbi +0 -8
  61. data/sorbet/rbi/todo.rbi +5 -1
  62. data/sorbet/tapioca/config.yml +1 -1
  63. metadata +20 -191
  64. data/sorbet/rbi/gems/ast@2.4.2.rbi +0 -584
  65. data/sorbet/rbi/gems/io-console@0.5.11.rbi +0 -8
  66. data/sorbet/rbi/gems/irb@1.5.1.rbi +0 -342
  67. data/sorbet/rbi/gems/json@2.6.3.rbi +0 -1541
  68. data/sorbet/rbi/gems/multi_json@1.15.0.rbi +0 -267
  69. data/sorbet/rbi/gems/netrc@0.11.0.rbi +0 -158
  70. data/sorbet/rbi/gems/openssl@3.0.1.rbi +0 -1735
  71. data/sorbet/rbi/gems/parallel@1.22.1.rbi +0 -277
  72. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +0 -407
  73. data/sorbet/rbi/gems/regexp_parser@2.6.1.rbi +0 -3481
  74. data/sorbet/rbi/gems/reline@0.3.1.rbi +0 -8
  75. data/sorbet/rbi/gems/rexml@3.2.5.rbi +0 -4717
  76. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +0 -1239
  77. data/sorbet/rbi/gems/thor@1.2.1.rbi +0 -3956
  78. data/sorbet/rbi/gems/unicode-display_width@2.3.0.rbi +0 -48
  79. data/sorbet/rbi/gems/webrick@1.7.0.rbi +0 -2555
  80. data/sorbet/rbi/gems/yard-sorbet@0.7.0.rbi +0 -391
  81. data/sorbet/rbi/gems/yard@0.9.28.rbi +0 -17816
  82. data/sorbet/rbi/gems/zeitwerk@2.6.6.rbi +0 -950
@@ -214,36 +214,36 @@ module SimpleCov
214
214
  #
215
215
  # @return [Hash]
216
216
  #
217
- # source://simplecov//lib/simplecov.rb#397
217
+ # source://simplecov//lib/simplecov.rb#399
218
218
  def adapt_coverage_result; end
219
219
 
220
220
  # Finds files that were to be tracked but were not loaded and initializes
221
221
  # the line-by-line coverage to zero (if relevant) or nil (comments / whitespace etc).
222
222
  #
223
- # source://simplecov//lib/simplecov.rb#369
223
+ # source://simplecov//lib/simplecov.rb#371
224
224
  def add_not_loaded_files(result); end
225
225
 
226
226
  # source://simplecov//lib/simplecov.rb#302
227
227
  def initial_setup(profile, &block); end
228
228
 
229
- # source://simplecov//lib/simplecov.rb#361
229
+ # source://simplecov//lib/simplecov.rb#363
230
230
  def lookup_corresponding_ruby_coverage_name(criterion); end
231
231
 
232
232
  # parallel_tests isn't always available, see: https://github.com/grosser/parallel_tests/issues/772
233
233
  #
234
- # source://simplecov//lib/simplecov.rb#423
234
+ # source://simplecov//lib/simplecov.rb#425
235
235
  def make_parallel_tests_available; end
236
236
 
237
237
  # @return [Boolean]
238
238
  #
239
- # source://simplecov//lib/simplecov.rb#432
239
+ # source://simplecov//lib/simplecov.rb#434
240
240
  def probably_running_parallel_tests?; end
241
241
 
242
242
  # Call steps that handle process coverage result
243
243
  #
244
244
  # @return [Hash]
245
245
  #
246
- # source://simplecov//lib/simplecov.rb#386
246
+ # source://simplecov//lib/simplecov.rb#388
247
247
  def process_coverage_result; end
248
248
 
249
249
  # Filter coverage result
@@ -252,7 +252,7 @@ module SimpleCov
252
252
  #
253
253
  # @return [Hash]
254
254
  #
255
- # source://simplecov//lib/simplecov.rb#408
255
+ # source://simplecov//lib/simplecov.rb#410
256
256
  def remove_useless_results; end
257
257
 
258
258
  # Initialize result with files that are not included by coverage
@@ -260,7 +260,7 @@ module SimpleCov
260
260
  #
261
261
  # @return [Hash]
262
262
  #
263
- # source://simplecov//lib/simplecov.rb#418
263
+ # source://simplecov//lib/simplecov.rb#420
264
264
  def result_with_not_loaded_files; end
265
265
 
266
266
  # Trigger Coverage.start depends on given config coverage_criterion
@@ -292,7 +292,7 @@ class SimpleCov::ArrayFilter < ::SimpleCov::Filter
292
292
  def matches?(source_files_list); end
293
293
  end
294
294
 
295
- # source://simplecov//lib/simplecov/filter.rb#71
295
+ # source://simplecov//lib/simplecov/filter.rb#69
296
296
  class SimpleCov::BlockFilter < ::SimpleCov::Filter
297
297
  # Returns true if the block given when initializing this filter with BlockFilter.new {|src_file| ... }
298
298
  # returns true for the given source file.
@@ -643,7 +643,7 @@ module SimpleCov::Configuration
643
643
 
644
644
  # @return [Boolean]
645
645
  #
646
- # source://simplecov//lib/simplecov/configuration.rb#432
646
+ # source://simplecov//lib/simplecov/configuration.rb#443
647
647
  def branch_coverage_supported?; end
648
648
 
649
649
  # source://simplecov//lib/simplecov/configuration.rb#424
@@ -703,6 +703,16 @@ module SimpleCov::Configuration
703
703
  # source://simplecov//lib/simplecov/configuration.rb#34
704
704
  def coverage_dir(dir = T.unsafe(nil)); end
705
705
 
706
+ # @return [Boolean]
707
+ #
708
+ # source://simplecov//lib/simplecov/configuration.rb#452
709
+ def coverage_for_eval_enabled?; end
710
+
711
+ # @return [Boolean]
712
+ #
713
+ # source://simplecov//lib/simplecov/configuration.rb#447
714
+ def coverage_for_eval_supported?; end
715
+
706
716
  # Returns the full path to the output directory using SimpleCov.root
707
717
  # and SimpleCov.coverage_dir, so you can adjust this by configuring those
708
718
  # values. Will create the directory if it's missing
@@ -718,6 +728,9 @@ module SimpleCov::Configuration
718
728
  # source://simplecov//lib/simplecov/configuration.rb#401
719
729
  def enable_coverage(criterion); end
720
730
 
731
+ # source://simplecov//lib/simplecov/configuration.rb#456
732
+ def enable_coverage_for_eval; end
733
+
721
734
  # gets or sets the enabled_for_subprocess configuration
722
735
  # when true, this will inject SimpleCov code into Process.fork
723
736
  #
@@ -901,18 +914,18 @@ module SimpleCov::Configuration
901
914
 
902
915
  private
903
916
 
904
- # source://simplecov//lib/simplecov/configuration.rb#464
917
+ # source://simplecov//lib/simplecov/configuration.rb#483
905
918
  def minimum_possible_coverage_exceeded(coverage_option); end
906
919
 
907
920
  # The actual filter processor. Not meant for direct use
908
921
  #
909
- # source://simplecov//lib/simplecov/configuration.rb#471
922
+ # source://simplecov//lib/simplecov/configuration.rb#490
910
923
  def parse_filter(filter_argument = T.unsafe(nil), &filter_proc); end
911
924
 
912
- # source://simplecov//lib/simplecov/configuration.rb#447
925
+ # source://simplecov//lib/simplecov/configuration.rb#466
913
926
  def raise_if_criterion_disabled(criterion); end
914
927
 
915
- # source://simplecov//lib/simplecov/configuration.rb#456
928
+ # source://simplecov//lib/simplecov/configuration.rb#475
916
929
  def raise_if_criterion_unsupported(criterion); end
917
930
  end
918
931
 
@@ -1157,7 +1170,7 @@ class SimpleCov::FileList
1157
1170
  # source://simplecov//lib/simplecov/file_list.rb#101
1158
1171
  def branch_covered_percent; end
1159
1172
 
1160
- # source://forwardable/1.3.2/forwardable.rb#229
1173
+ # source://forwardable/1.3.3/forwardable.rb#231
1161
1174
  def count(*args, **_arg1, &block); end
1162
1175
 
1163
1176
  # source://simplecov//lib/simplecov/file_list.rb#26
@@ -1196,10 +1209,10 @@ class SimpleCov::FileList
1196
1209
  # source://simplecov//lib/simplecov/file_list.rb#82
1197
1210
  def covered_strength; end
1198
1211
 
1199
- # source://forwardable/1.3.2/forwardable.rb#229
1212
+ # source://forwardable/1.3.3/forwardable.rb#231
1200
1213
  def each(*args, **_arg1, &block); end
1201
1214
 
1202
- # source://forwardable/1.3.2/forwardable.rb#229
1215
+ # source://forwardable/1.3.3/forwardable.rb#231
1203
1216
  def empty?(*args, **_arg1, &block); end
1204
1217
 
1205
1218
  # Finds the least covered file and returns that file's name
@@ -1207,7 +1220,7 @@ class SimpleCov::FileList
1207
1220
  # source://simplecov//lib/simplecov/file_list.rb#65
1208
1221
  def least_covered_file; end
1209
1222
 
1210
- # source://forwardable/1.3.2/forwardable.rb#229
1223
+ # source://forwardable/1.3.3/forwardable.rb#231
1211
1224
  def length(*args, **_arg1, &block); end
1212
1225
 
1213
1226
  # Returns the overall amount of relevant lines of code across all files in this list
@@ -1215,7 +1228,7 @@ class SimpleCov::FileList
1215
1228
  # source://simplecov//lib/simplecov/file_list.rb#70
1216
1229
  def lines_of_code; end
1217
1230
 
1218
- # source://forwardable/1.3.2/forwardable.rb#229
1231
+ # source://forwardable/1.3.3/forwardable.rb#231
1219
1232
  def map(*args, **_arg1, &block); end
1220
1233
 
1221
1234
  # Return total count of covered branches
@@ -1233,7 +1246,7 @@ class SimpleCov::FileList
1233
1246
  # source://simplecov//lib/simplecov/file_list.rb#45
1234
1247
  def never_lines; end
1235
1248
 
1236
- # source://forwardable/1.3.2/forwardable.rb#229
1249
+ # source://forwardable/1.3.3/forwardable.rb#231
1237
1250
  def size(*args, **_arg1, &block); end
1238
1251
 
1239
1252
  # Returns the count of skipped lines
@@ -1241,10 +1254,10 @@ class SimpleCov::FileList
1241
1254
  # source://simplecov//lib/simplecov/file_list.rb#52
1242
1255
  def skipped_lines; end
1243
1256
 
1244
- # source://forwardable/1.3.2/forwardable.rb#229
1257
+ # source://forwardable/1.3.3/forwardable.rb#231
1245
1258
  def to_a(*args, **_arg1, &block); end
1246
1259
 
1247
- # source://forwardable/1.3.2/forwardable.rb#229
1260
+ # source://forwardable/1.3.3/forwardable.rb#231
1248
1261
  def to_ary(*args, **_arg1, &block); end
1249
1262
 
1250
1263
  # Return total count of branches in all files
@@ -1398,7 +1411,7 @@ SimpleCov::LinesClassifier::WHITESPACE_OR_COMMENT_LINE = T.let(T.unsafe(nil), Re
1398
1411
  # # SimpleCov configuration here, same as in SimpleCov.configure
1399
1412
  # end
1400
1413
  #
1401
- # source://simplecov//lib/simplecov/profiles.rb#17
1414
+ # source://simplecov//lib/simplecov/profiles.rb#11
1402
1415
  class SimpleCov::Profiles < ::Hash
1403
1416
  # Define a SimpleCov profile:
1404
1417
  # SimpleCov.profiles.define 'rails' do
@@ -1414,7 +1427,7 @@ class SimpleCov::Profiles < ::Hash
1414
1427
  def load(name); end
1415
1428
  end
1416
1429
 
1417
- # source://simplecov//lib/simplecov/filter.rb#63
1430
+ # source://simplecov//lib/simplecov/filter.rb#61
1418
1431
  class SimpleCov::RegexFilter < ::SimpleCov::Filter
1419
1432
  # Returns true when the given source file's filename matches the
1420
1433
  # regex configured when initializing this Filter with RegexFilter.new(/someregex/)
@@ -1451,25 +1464,25 @@ class SimpleCov::Result
1451
1464
  # source://simplecov//lib/simplecov/result.rb#21
1452
1465
  def command_name=(_arg0); end
1453
1466
 
1454
- # source://forwardable/1.3.2/forwardable.rb#229
1467
+ # source://forwardable/1.3.3/forwardable.rb#231
1455
1468
  def coverage_statistics(*args, **_arg1, &block); end
1456
1469
 
1457
- # source://forwardable/1.3.2/forwardable.rb#229
1470
+ # source://forwardable/1.3.3/forwardable.rb#231
1458
1471
  def coverage_statistics_by_file(*args, **_arg1, &block); end
1459
1472
 
1460
- # source://forwardable/1.3.2/forwardable.rb#229
1473
+ # source://forwardable/1.3.3/forwardable.rb#231
1461
1474
  def covered_branches(*args, **_arg1, &block); end
1462
1475
 
1463
- # source://forwardable/1.3.2/forwardable.rb#229
1476
+ # source://forwardable/1.3.3/forwardable.rb#231
1464
1477
  def covered_lines(*args, **_arg1, &block); end
1465
1478
 
1466
- # source://forwardable/1.3.2/forwardable.rb#229
1479
+ # source://forwardable/1.3.3/forwardable.rb#231
1467
1480
  def covered_percent(*args, **_arg1, &block); end
1468
1481
 
1469
- # source://forwardable/1.3.2/forwardable.rb#229
1482
+ # source://forwardable/1.3.3/forwardable.rb#231
1470
1483
  def covered_percentages(*args, **_arg1, &block); end
1471
1484
 
1472
- # source://forwardable/1.3.2/forwardable.rb#229
1485
+ # source://forwardable/1.3.3/forwardable.rb#231
1473
1486
  def covered_strength(*args, **_arg1, &block); end
1474
1487
 
1475
1488
  # Defines when this result has been created. Defaults to Time.now
@@ -1502,13 +1515,13 @@ class SimpleCov::Result
1502
1515
  # source://simplecov//lib/simplecov/result.rb#45
1503
1516
  def groups; end
1504
1517
 
1505
- # source://forwardable/1.3.2/forwardable.rb#229
1518
+ # source://forwardable/1.3.3/forwardable.rb#231
1506
1519
  def least_covered_file(*args, **_arg1, &block); end
1507
1520
 
1508
- # source://forwardable/1.3.2/forwardable.rb#229
1521
+ # source://forwardable/1.3.3/forwardable.rb#231
1509
1522
  def missed_branches(*args, **_arg1, &block); end
1510
1523
 
1511
- # source://forwardable/1.3.2/forwardable.rb#229
1524
+ # source://forwardable/1.3.3/forwardable.rb#231
1512
1525
  def missed_lines(*args, **_arg1, &block); end
1513
1526
 
1514
1527
  # Returns the original Coverage.result used for this instance of SimpleCov::Result
@@ -1526,10 +1539,10 @@ class SimpleCov::Result
1526
1539
  # source://simplecov//lib/simplecov/result.rb#66
1527
1540
  def to_hash; end
1528
1541
 
1529
- # source://forwardable/1.3.2/forwardable.rb#229
1542
+ # source://forwardable/1.3.3/forwardable.rb#231
1530
1543
  def total_branches(*args, **_arg1, &block); end
1531
1544
 
1532
- # source://forwardable/1.3.2/forwardable.rb#229
1545
+ # source://forwardable/1.3.3/forwardable.rb#231
1533
1546
  def total_lines(*args, **_arg1, &block); end
1534
1547
 
1535
1548
  private
@@ -1843,20 +1856,20 @@ class SimpleCov::SourceFile
1843
1856
 
1844
1857
  private
1845
1858
 
1846
- # source://simplecov//lib/simplecov/source_file.rb#340
1859
+ # source://simplecov//lib/simplecov/source_file.rb#346
1847
1860
  def branch_coverage_statistics; end
1848
1861
 
1849
- # source://simplecov//lib/simplecov/source_file.rb#318
1862
+ # source://simplecov//lib/simplecov/source_file.rb#324
1850
1863
  def build_branch(branch_data, hit_count, condition_start_line); end
1851
1864
 
1852
1865
  # Call recursive method that transform our static hash to array of objects
1853
1866
  #
1854
1867
  # @return [Array]
1855
1868
  #
1856
- # source://simplecov//lib/simplecov/source_file.rb#267
1869
+ # source://simplecov//lib/simplecov/source_file.rb#273
1857
1870
  def build_branches; end
1858
1871
 
1859
- # source://simplecov//lib/simplecov/source_file.rb#304
1872
+ # source://simplecov//lib/simplecov/source_file.rb#310
1860
1873
  def build_branches_from(condition, branches); end
1861
1874
 
1862
1875
  # Build full branches report
@@ -1865,10 +1878,10 @@ class SimpleCov::SourceFile
1865
1878
  #
1866
1879
  # @return [Hash]
1867
1880
  #
1868
- # source://simplecov//lib/simplecov/source_file.rb#256
1881
+ # source://simplecov//lib/simplecov/source_file.rb#262
1869
1882
  def build_branches_report; end
1870
1883
 
1871
- # source://simplecov//lib/simplecov/source_file.rb#223
1884
+ # source://simplecov//lib/simplecov/source_file.rb#229
1872
1885
  def build_lines; end
1873
1886
 
1874
1887
  # source://simplecov//lib/simplecov/source_file.rb#164
@@ -1876,16 +1889,16 @@ class SimpleCov::SourceFile
1876
1889
 
1877
1890
  # Warning to identify condition from Issue #56
1878
1891
  #
1879
- # source://simplecov//lib/simplecov/source_file.rb#245
1892
+ # source://simplecov//lib/simplecov/source_file.rb#251
1880
1893
  def coverage_exceeding_source_warn; end
1881
1894
 
1882
1895
  # source://simplecov//lib/simplecov/source_file.rb#214
1883
1896
  def ensure_remove_undefs(file_lines); end
1884
1897
 
1885
- # source://simplecov//lib/simplecov/source_file.rb#330
1898
+ # source://simplecov//lib/simplecov/source_file.rb#336
1886
1899
  def line_coverage_statistics; end
1887
1900
 
1888
- # source://simplecov//lib/simplecov/source_file.rb#240
1901
+ # source://simplecov//lib/simplecov/source_file.rb#246
1889
1902
  def lines_strength; end
1890
1903
 
1891
1904
  # source://simplecov//lib/simplecov/source_file.rb#178
@@ -1896,10 +1909,10 @@ class SimpleCov::SourceFile
1896
1909
  # source://simplecov//lib/simplecov/source_file.rb#160
1897
1910
  def no_cov_chunks; end
1898
1911
 
1899
- # source://simplecov//lib/simplecov/source_file.rb#276
1912
+ # source://simplecov//lib/simplecov/source_file.rb#282
1900
1913
  def process_skipped_branches(branches); end
1901
1914
 
1902
- # source://simplecov//lib/simplecov/source_file.rb#231
1915
+ # source://simplecov//lib/simplecov/source_file.rb#237
1903
1916
  def process_skipped_lines(lines); end
1904
1917
 
1905
1918
  # source://simplecov//lib/simplecov/source_file.rb#198
@@ -1913,7 +1926,7 @@ class SimpleCov::SourceFile
1913
1926
  #
1914
1927
  # See #801
1915
1928
  #
1916
- # source://simplecov//lib/simplecov/source_file.rb#294
1929
+ # source://simplecov//lib/simplecov/source_file.rb#300
1917
1930
  def restore_ruby_data_structure(structure); end
1918
1931
 
1919
1932
  # source://simplecov//lib/simplecov/source_file.rb#206
@@ -2107,7 +2120,7 @@ SimpleCov::SourceFile::RUBY_FILE_ENCODING_MAGIC_COMMENT_REGEX = T.let(T.unsafe(n
2107
2120
  # source://simplecov//lib/simplecov/source_file.rb#193
2108
2121
  SimpleCov::SourceFile::SHEBANG_REGEX = T.let(T.unsafe(nil), Regexp)
2109
2122
 
2110
- # source://simplecov//lib/simplecov/filter.rb#55
2123
+ # source://simplecov//lib/simplecov/filter.rb#53
2111
2124
  class SimpleCov::StringFilter < ::SimpleCov::Filter
2112
2125
  # Returns true when the given source file's filename matches the
2113
2126
  # string configured when initializing this Filter with StringFilter.new('somestring')
@@ -4,5 +4,235 @@
4
4
  # This is an autogenerated file for types exported from the `simplecov_json_formatter` gem.
5
5
  # Please instead update this file by running `bin/tapioca gem simplecov_json_formatter`.
6
6
 
7
- # THIS IS AN EMPTY RBI FILE.
8
- # see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem
7
+ # source://simplecov_json_formatter//lib/simplecov_json_formatter.rb#7
8
+ module SimpleCov
9
+ class << self
10
+ # source://simplecov/0.22.0/lib/simplecov.rb#174
11
+ def at_exit_behavior; end
12
+
13
+ # source://simplecov/0.22.0/lib/simplecov.rb#170
14
+ def clear_result; end
15
+
16
+ # source://simplecov/0.22.0/lib/simplecov.rb#86
17
+ def collate(result_filenames, profile = T.unsafe(nil), ignore_timeout: T.unsafe(nil), &block); end
18
+
19
+ # source://simplecov/0.22.0/lib/simplecov.rb#223
20
+ def exit_and_report_previous_error(exit_status); end
21
+
22
+ # source://simplecov/0.22.0/lib/simplecov.rb#200
23
+ def exit_status_from_exception; end
24
+
25
+ # source://simplecov/0.22.0/lib/simplecov.rb#28
26
+ def external_at_exit; end
27
+
28
+ # source://simplecov/0.22.0/lib/simplecov.rb#28
29
+ def external_at_exit=(_arg0); end
30
+
31
+ # source://simplecov/0.22.0/lib/simplecov.rb#28
32
+ def external_at_exit?; end
33
+
34
+ # source://simplecov/0.22.0/lib/simplecov.rb#131
35
+ def filtered(files); end
36
+
37
+ # source://simplecov/0.22.0/lib/simplecov.rb#268
38
+ def final_result_process?; end
39
+
40
+ # source://simplecov/0.22.0/lib/simplecov.rb#142
41
+ def grouped(files); end
42
+
43
+ # source://simplecov/0.22.0/lib/simplecov.rb#162
44
+ def load_adapter(name); end
45
+
46
+ # source://simplecov/0.22.0/lib/simplecov.rb#158
47
+ def load_profile(name); end
48
+
49
+ # source://simplecov/0.22.0/lib/simplecov.rb#24
50
+ def pid; end
51
+
52
+ # source://simplecov/0.22.0/lib/simplecov.rb#24
53
+ def pid=(_arg0); end
54
+
55
+ # source://simplecov/0.22.0/lib/simplecov.rb#213
56
+ def previous_error?(error_exit_status); end
57
+
58
+ # source://simplecov/0.22.0/lib/simplecov.rb#248
59
+ def process_result(result); end
60
+
61
+ # source://simplecov/0.22.0/lib/simplecov.rb#233
62
+ def process_results_and_report_error; end
63
+
64
+ # source://simplecov/0.22.0/lib/simplecov.rb#229
65
+ def ready_to_process_results?; end
66
+
67
+ # source://simplecov/0.22.0/lib/simplecov.rb#101
68
+ def result; end
69
+
70
+ # source://simplecov/0.22.0/lib/simplecov.rb#124
71
+ def result?; end
72
+
73
+ # source://simplecov/0.22.0/lib/simplecov.rb#256
74
+ def result_exit_status(result); end
75
+
76
+ # source://simplecov/0.22.0/lib/simplecov.rb#296
77
+ def round_coverage(coverage); end
78
+
79
+ # source://simplecov/0.22.0/lib/simplecov.rb#186
80
+ def run_exit_tasks!; end
81
+
82
+ # source://simplecov/0.22.0/lib/simplecov.rb#24
83
+ def running; end
84
+
85
+ # source://simplecov/0.22.0/lib/simplecov.rb#24
86
+ def running=(_arg0); end
87
+
88
+ # source://simplecov/0.22.0/lib/simplecov.rb#48
89
+ def start(profile = T.unsafe(nil), &block); end
90
+
91
+ # source://simplecov/0.22.0/lib/simplecov.rb#276
92
+ def wait_for_other_processes; end
93
+
94
+ # source://simplecov/0.22.0/lib/simplecov.rb#285
95
+ def write_last_run(result); end
96
+
97
+ private
98
+
99
+ # source://simplecov/0.22.0/lib/simplecov.rb#399
100
+ def adapt_coverage_result; end
101
+
102
+ # source://simplecov/0.22.0/lib/simplecov.rb#371
103
+ def add_not_loaded_files(result); end
104
+
105
+ # source://simplecov/0.22.0/lib/simplecov.rb#302
106
+ def initial_setup(profile, &block); end
107
+
108
+ # source://simplecov/0.22.0/lib/simplecov.rb#363
109
+ def lookup_corresponding_ruby_coverage_name(criterion); end
110
+
111
+ # source://simplecov/0.22.0/lib/simplecov.rb#425
112
+ def make_parallel_tests_available; end
113
+
114
+ # source://simplecov/0.22.0/lib/simplecov.rb#434
115
+ def probably_running_parallel_tests?; end
116
+
117
+ # source://simplecov/0.22.0/lib/simplecov.rb#388
118
+ def process_coverage_result; end
119
+
120
+ # source://simplecov/0.22.0/lib/simplecov.rb#410
121
+ def remove_useless_results; end
122
+
123
+ # source://simplecov/0.22.0/lib/simplecov.rb#420
124
+ def result_with_not_loaded_files; end
125
+
126
+ # source://simplecov/0.22.0/lib/simplecov.rb#314
127
+ def start_coverage_measurement; end
128
+
129
+ # source://simplecov/0.22.0/lib/simplecov.rb#349
130
+ def start_coverage_with_criteria; end
131
+ end
132
+ end
133
+
134
+ # source://simplecov_json_formatter//lib/simplecov_json_formatter.rb#8
135
+ module SimpleCov::Formatter
136
+ class << self
137
+ # source://simplecov/0.22.0/lib/simplecov/default_formatter.rb#7
138
+ def from_env(env); end
139
+ end
140
+ end
141
+
142
+ # source://simplecov_json_formatter//lib/simplecov_json_formatter.rb#9
143
+ class SimpleCov::Formatter::JSONFormatter
144
+ # source://simplecov_json_formatter//lib/simplecov_json_formatter.rb#10
145
+ def format(result); end
146
+
147
+ private
148
+
149
+ # source://simplecov_json_formatter//lib/simplecov_json_formatter.rb#25
150
+ def export_formatted_result(result_hash); end
151
+
152
+ # source://simplecov_json_formatter//lib/simplecov_json_formatter.rb#20
153
+ def format_result(result); end
154
+
155
+ # source://simplecov_json_formatter//lib/simplecov_json_formatter.rb#30
156
+ def output_message(result); end
157
+ end
158
+
159
+ # source://simplecov_json_formatter//lib/simplecov_json_formatter/source_file_formatter.rb#3
160
+ module SimpleCovJSONFormatter; end
161
+
162
+ # source://simplecov_json_formatter//lib/simplecov_json_formatter/result_exporter.rb#4
163
+ class SimpleCovJSONFormatter::ResultExporter
164
+ # @return [ResultExporter] a new instance of ResultExporter
165
+ #
166
+ # source://simplecov_json_formatter//lib/simplecov_json_formatter/result_exporter.rb#7
167
+ def initialize(result_hash); end
168
+
169
+ # source://simplecov_json_formatter//lib/simplecov_json_formatter/result_exporter.rb#11
170
+ def export; end
171
+
172
+ private
173
+
174
+ # source://simplecov_json_formatter//lib/simplecov_json_formatter/result_exporter.rb#23
175
+ def export_path; end
176
+
177
+ # source://simplecov_json_formatter//lib/simplecov_json_formatter/result_exporter.rb#19
178
+ def json_result; end
179
+ end
180
+
181
+ # source://simplecov_json_formatter//lib/simplecov_json_formatter/result_exporter.rb#5
182
+ SimpleCovJSONFormatter::ResultExporter::FILENAME = T.let(T.unsafe(nil), String)
183
+
184
+ # source://simplecov_json_formatter//lib/simplecov_json_formatter/result_hash_formatter.rb#6
185
+ class SimpleCovJSONFormatter::ResultHashFormatter
186
+ # @return [ResultHashFormatter] a new instance of ResultHashFormatter
187
+ #
188
+ # source://simplecov_json_formatter//lib/simplecov_json_formatter/result_hash_formatter.rb#7
189
+ def initialize(result); end
190
+
191
+ # source://simplecov_json_formatter//lib/simplecov_json_formatter/result_hash_formatter.rb#11
192
+ def format; end
193
+
194
+ private
195
+
196
+ # source://simplecov_json_formatter//lib/simplecov_json_formatter/result_hash_formatter.rb#20
197
+ def format_files; end
198
+
199
+ # source://simplecov_json_formatter//lib/simplecov_json_formatter/result_hash_formatter.rb#27
200
+ def format_groups; end
201
+
202
+ # source://simplecov_json_formatter//lib/simplecov_json_formatter/result_hash_formatter.rb#47
203
+ def format_source_file(source_file); end
204
+
205
+ # source://simplecov_json_formatter//lib/simplecov_json_formatter/result_hash_formatter.rb#37
206
+ def formatted_result; end
207
+ end
208
+
209
+ # source://simplecov_json_formatter//lib/simplecov_json_formatter/source_file_formatter.rb#4
210
+ class SimpleCovJSONFormatter::SourceFileFormatter
211
+ # @return [SourceFileFormatter] a new instance of SourceFileFormatter
212
+ #
213
+ # source://simplecov_json_formatter//lib/simplecov_json_formatter/source_file_formatter.rb#5
214
+ def initialize(source_file); end
215
+
216
+ # source://simplecov_json_formatter//lib/simplecov_json_formatter/source_file_formatter.rb#10
217
+ def format; end
218
+
219
+ private
220
+
221
+ # source://simplecov_json_formatter//lib/simplecov_json_formatter/source_file_formatter.rb#26
222
+ def branch_coverage; end
223
+
224
+ # source://simplecov_json_formatter//lib/simplecov_json_formatter/source_file_formatter.rb#41
225
+ def branches; end
226
+
227
+ # source://simplecov_json_formatter//lib/simplecov_json_formatter/source_file_formatter.rb#20
228
+ def line_coverage; end
229
+
230
+ # source://simplecov_json_formatter//lib/simplecov_json_formatter/source_file_formatter.rb#32
231
+ def lines; end
232
+
233
+ # source://simplecov_json_formatter//lib/simplecov_json_formatter/source_file_formatter.rb#56
234
+ def parse_branch(branch); end
235
+
236
+ # source://simplecov_json_formatter//lib/simplecov_json_formatter/source_file_formatter.rb#50
237
+ def parse_line(line); end
238
+ end
@@ -9,19 +9,19 @@ class Date
9
9
  include ::Comparable
10
10
 
11
11
  class << self
12
- # source://timecop//lib/timecop/time_extensions.rb#104
12
+ # source://timecop//lib/timecop/time_extensions.rb#111
13
13
  def closest_wday(wday); end
14
14
 
15
15
  # source://timecop//lib/timecop/time_extensions.rb#33
16
16
  def mock_date; end
17
17
 
18
- # source://timecop//lib/timecop/time_extensions.rb#100
18
+ # source://timecop//lib/timecop/time_extensions.rb#107
19
19
  def mocked_time_stack_item; end
20
20
 
21
- # source://timecop//lib/timecop/time_extensions.rb#78
21
+ # source://timecop//lib/timecop/time_extensions.rb#85
22
22
  def parse(*args); end
23
23
 
24
- # source://timecop//lib/timecop/time_extensions.rb#78
24
+ # source://timecop//lib/timecop/time_extensions.rb#85
25
25
  def parse_with_mock_date(*args); end
26
26
 
27
27
  # source://timecop//lib/timecop/time_extensions.rb#47
@@ -38,28 +38,25 @@ class Date
38
38
  end
39
39
  end
40
40
 
41
- # source://date/3.2.2/date.rb#7
42
- Date::VERSION = T.let(T.unsafe(nil), String)
43
-
44
- # source://timecop//lib/timecop/time_extensions.rb#113
41
+ # source://timecop//lib/timecop/time_extensions.rb#120
45
42
  class DateTime < ::Date
46
43
  class << self
47
- # source://timecop//lib/timecop/time_extensions.rb#115
44
+ # source://timecop//lib/timecop/time_extensions.rb#122
48
45
  def mock_time; end
49
46
 
50
- # source://timecop//lib/timecop/time_extensions.rb#150
47
+ # source://timecop//lib/timecop/time_extensions.rb#156
51
48
  def mocked_time_stack_item; end
52
49
 
53
- # source://timecop//lib/timecop/time_extensions.rb#119
50
+ # source://timecop//lib/timecop/time_extensions.rb#126
54
51
  def now; end
55
52
 
56
- # source://timecop//lib/timecop/time_extensions.rb#119
53
+ # source://timecop//lib/timecop/time_extensions.rb#126
57
54
  def now_with_mock_time; end
58
55
 
59
- # source://timecop//lib/timecop/time_extensions.rb#127
56
+ # source://timecop//lib/timecop/time_extensions.rb#134
60
57
  def parse(*args); end
61
58
 
62
- # source://timecop//lib/timecop/time_extensions.rb#127
59
+ # source://timecop//lib/timecop/time_extensions.rb#134
63
60
  def parse_with_mock_date(*args); end
64
61
  end
65
62
  end
@@ -184,7 +181,7 @@ class Timecop
184
181
  # source://timecop//lib/timecop/timecop.rb#51
185
182
  def freeze(*args, &block); end
186
183
 
187
- # Returns whether or not Timecop is currently frozen/travelled
184
+ # Returns whether or not Timecop is currently frozen
188
185
  #
189
186
  # @return [Boolean]
190
187
  #
@@ -252,7 +249,7 @@ class Timecop
252
249
 
253
250
  def allocate; end
254
251
 
255
- # source://singleton/0.1.1/singleton.rb#123
252
+ # source://singleton/0.2.0/singleton.rb#123
256
253
  def instance; end
257
254
 
258
255
  def new(*_arg0); end
@@ -16,4 +16,6 @@ module MultiJson
16
16
  ).returns(String)
17
17
  end
18
18
  def self.dump(obj, options = {}); end
19
+
20
+ class ParseError < StandardError; end
19
21
  end