enhanced_errors 3.0.1 → 3.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -126,7 +126,7 @@
126
126
  <dt id="MAX_BINDING_INFOS-constant" class="">MAX_BINDING_INFOS =
127
127
 
128
128
  </dt>
129
- <dd><pre class="code"><span class='int'>3</span></pre></dd>
129
+ <dd><pre class="code"><span class='int'>2</span></pre></dd>
130
130
 
131
131
  <dt id="RSPEC_SKIP_LIST-constant" class="">RSPEC_SKIP_LIST =
132
132
 
@@ -202,6 +202,19 @@
202
202
  </dt>
203
203
  <dd><pre class="code"><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>RSpec::Expectations::PositiveExpectationHandler</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>RSpec::Expectations::NegativeExpectationHandler</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span></pre></dd>
204
204
 
205
+ <dt id="CI_ENV_VARS-constant" class="">CI_ENV_VARS =
206
+
207
+ </dt>
208
+ <dd><pre class="code"><span class='lbrace'>{</span>
209
+ <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>CI</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>CI</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
210
+ <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>JENKINS</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>JENKINS</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
211
+ <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>GITHUB_ACTIONS</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>GITHUB_ACTIONS</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
212
+ <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>CIRCLECI</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>CIRCLECI</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
213
+ <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>TRAVIS</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>TRAVIS</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
214
+ <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>APPVEYOR</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>APPVEYOR</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
215
+ <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>GITLAB_CI</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>GITLAB_CI</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span>
216
+ <span class='rbrace'>}</span></pre></dd>
217
+
205
218
  </dl>
206
219
 
207
220
 
@@ -469,72 +482,6 @@
469
482
 
470
483
 
471
484
 
472
- <span class="summary_desc"><div class='inline'></div></span>
473
-
474
- </li>
475
-
476
-
477
- <li class="public ">
478
- <span class="summary_signature">
479
-
480
- <a href="#capture_events_count-class_method" title="capture_events_count (class method)">.<strong>capture_events_count</strong> &#x21d2; Object </a>
481
-
482
-
483
-
484
- </span>
485
-
486
-
487
-
488
-
489
-
490
-
491
-
492
-
493
-
494
- <span class="summary_desc"><div class='inline'></div></span>
495
-
496
- </li>
497
-
498
-
499
- <li class="public ">
500
- <span class="summary_signature">
501
-
502
- <a href="#capture_events_count=-class_method" title="capture_events_count= (class method)">.<strong>capture_events_count=</strong>(val) &#x21d2; Object </a>
503
-
504
-
505
-
506
- </span>
507
-
508
-
509
-
510
-
511
-
512
-
513
-
514
-
515
-
516
- <span class="summary_desc"><div class='inline'></div></span>
517
-
518
- </li>
519
-
520
-
521
- <li class="public ">
522
- <span class="summary_signature">
523
-
524
- <a href="#capture_limit_exceeded%3F-class_method" title="capture_limit_exceeded? (class method)">.<strong>capture_limit_exceeded?</strong> &#x21d2; Boolean </a>
525
-
526
-
527
-
528
- </span>
529
-
530
-
531
-
532
-
533
-
534
-
535
-
536
-
537
-
538
485
  <span class="summary_desc"><div class='inline'></div></span>
539
486
 
540
487
  </li>
@@ -711,28 +658,6 @@
711
658
 
712
659
 
713
660
 
714
- <span class="summary_desc"><div class='inline'></div></span>
715
-
716
- </li>
717
-
718
-
719
- <li class="public ">
720
- <span class="summary_signature">
721
-
722
- <a href="#increment_capture_events_count-class_method" title="increment_capture_events_count (class method)">.<strong>increment_capture_events_count</strong> &#x21d2; Object </a>
723
-
724
-
725
-
726
- </span>
727
-
728
-
729
-
730
-
731
-
732
-
733
-
734
-
735
-
736
661
  <span class="summary_desc"><div class='inline'></div></span>
737
662
 
738
663
  </li>
@@ -777,50 +702,6 @@
777
702
 
778
703
 
779
704
 
780
- <span class="summary_desc"><div class='inline'></div></span>
781
-
782
- </li>
783
-
784
-
785
- <li class="public ">
786
- <span class="summary_signature">
787
-
788
- <a href="#max_capture_events-class_method" title="max_capture_events (class method)">.<strong>max_capture_events</strong> &#x21d2; Object </a>
789
-
790
-
791
-
792
- </span>
793
-
794
-
795
-
796
-
797
-
798
-
799
-
800
-
801
-
802
- <span class="summary_desc"><div class='inline'></div></span>
803
-
804
- </li>
805
-
806
-
807
- <li class="public ">
808
- <span class="summary_signature">
809
-
810
- <a href="#max_capture_events=-class_method" title="max_capture_events= (class method)">.<strong>max_capture_events=</strong>(value) &#x21d2; Object </a>
811
-
812
-
813
-
814
- </span>
815
-
816
-
817
-
818
-
819
-
820
-
821
-
822
-
823
-
824
705
  <span class="summary_desc"><div class='inline'></div></span>
825
706
 
826
707
  </li>
@@ -1063,28 +944,6 @@
1063
944
 
1064
945
 
1065
946
 
1066
- <span class="summary_desc"><div class='inline'></div></span>
1067
-
1068
- </li>
1069
-
1070
-
1071
- <li class="public ">
1072
- <span class="summary_signature">
1073
-
1074
- <a href="#safe_prepend_module-class_method" title="safe_prepend_module (class method)">.<strong>safe_prepend_module</strong>(target_class, mod) &#x21d2; Object </a>
1075
-
1076
-
1077
-
1078
- </span>
1079
-
1080
-
1081
-
1082
-
1083
-
1084
-
1085
-
1086
-
1087
-
1088
947
  <span class="summary_desc"><div class='inline'></div></span>
1089
948
 
1090
949
  </li>
@@ -1263,12 +1122,12 @@
1263
1122
  <pre class="lines">
1264
1123
 
1265
1124
 
1266
- 24
1267
- 25
1268
- 26</pre>
1125
+ 22
1126
+ 23
1127
+ 24</pre>
1269
1128
  </td>
1270
1129
  <td>
1271
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 24</span>
1130
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 22</span>
1272
1131
 
1273
1132
  <span class='kw'>def</span> <span class='id identifier rubyid_config_block'>config_block</span>
1274
1133
  <span class='ivar'>@config_block</span>
@@ -1306,12 +1165,12 @@
1306
1165
  <pre class="lines">
1307
1166
 
1308
1167
 
1309
- 24
1310
- 25
1311
- 26</pre>
1168
+ 22
1169
+ 23
1170
+ 24</pre>
1312
1171
  </td>
1313
1172
  <td>
1314
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 24</span>
1173
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 22</span>
1315
1174
 
1316
1175
  <span class='kw'>def</span> <span class='id identifier rubyid_eligible_for_capture'>eligible_for_capture</span>
1317
1176
  <span class='ivar'>@eligible_for_capture</span>
@@ -1349,12 +1208,12 @@
1349
1208
  <pre class="lines">
1350
1209
 
1351
1210
 
1352
- 24
1353
- 25
1354
- 26</pre>
1211
+ 22
1212
+ 23
1213
+ 24</pre>
1355
1214
  </td>
1356
1215
  <td>
1357
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 24</span>
1216
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 22</span>
1358
1217
 
1359
1218
  <span class='kw'>def</span> <span class='id identifier rubyid_enabled'>enabled</span>
1360
1219
  <span class='ivar'>@enabled</span>
@@ -1392,12 +1251,12 @@
1392
1251
  <pre class="lines">
1393
1252
 
1394
1253
 
1395
- 24
1396
- 25
1397
- 26</pre>
1254
+ 22
1255
+ 23
1256
+ 24</pre>
1398
1257
  </td>
1399
1258
  <td>
1400
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 24</span>
1259
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 22</span>
1401
1260
 
1402
1261
  <span class='kw'>def</span> <span class='id identifier rubyid_exception_trace'>exception_trace</span>
1403
1262
  <span class='ivar'>@exception_trace</span>
@@ -1435,12 +1294,12 @@
1435
1294
  <pre class="lines">
1436
1295
 
1437
1296
 
1438
- 24
1439
- 25
1440
- 26</pre>
1297
+ 22
1298
+ 23
1299
+ 24</pre>
1441
1300
  </td>
1442
1301
  <td>
1443
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 24</span>
1302
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 22</span>
1444
1303
 
1445
1304
  <span class='kw'>def</span> <span class='id identifier rubyid_on_capture_hook'>on_capture_hook</span>
1446
1305
  <span class='ivar'>@on_capture_hook</span>
@@ -1478,12 +1337,12 @@
1478
1337
  <pre class="lines">
1479
1338
 
1480
1339
 
1481
- 24
1482
- 25
1483
- 26</pre>
1340
+ 22
1341
+ 23
1342
+ 24</pre>
1484
1343
  </td>
1485
1344
  <td>
1486
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 24</span>
1345
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 22</span>
1487
1346
 
1488
1347
  <span class='kw'>def</span> <span class='id identifier rubyid_override_messages'>override_messages</span>
1489
1348
  <span class='ivar'>@override_messages</span>
@@ -1515,14 +1374,14 @@
1515
1374
  <pre class="lines">
1516
1375
 
1517
1376
 
1518
- 220
1519
- 221
1520
- 222
1521
- 223
1522
- 224</pre>
1377
+ 191
1378
+ 192
1379
+ 193
1380
+ 194
1381
+ 195</pre>
1523
1382
  </td>
1524
1383
  <td>
1525
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 220</span>
1384
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 191</span>
1526
1385
 
1527
1386
  <span class='kw'>def</span> <span class='id identifier rubyid_add_to_skip_list'>add_to_skip_list</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_vars'>vars</span><span class='rparen'>)</span>
1528
1387
  <span class='id identifier rubyid_mutex'>mutex</span><span class='period'>.</span><span class='id identifier rubyid_synchronize'>synchronize</span> <span class='kw'>do</span>
@@ -1549,20 +1408,20 @@
1549
1408
  <pre class="lines">
1550
1409
 
1551
1410
 
1552
- 523
1553
- 524
1554
- 525
1555
- 526
1556
- 527
1557
- 528
1558
- 529
1559
- 530
1560
- 531
1561
- 532
1562
- 533</pre>
1411
+ 463
1412
+ 464
1413
+ 465
1414
+ 466
1415
+ 467
1416
+ 468
1417
+ 469
1418
+ 470
1419
+ 471
1420
+ 472
1421
+ 473</pre>
1563
1422
  </td>
1564
1423
  <td>
1565
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 523</span>
1424
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 463</span>
1566
1425
 
1567
1426
  <span class='kw'>def</span> <span class='id identifier rubyid_apply_skip_list'>apply_skip_list</span><span class='lparen'>(</span><span class='id identifier rubyid_binding_info'>binding_info</span><span class='rparen'>)</span>
1568
1427
  <span class='id identifier rubyid_mutex'>mutex</span><span class='period'>.</span><span class='id identifier rubyid_synchronize'>synchronize</span> <span class='kw'>do</span>
@@ -1595,53 +1454,53 @@
1595
1454
  <pre class="lines">
1596
1455
 
1597
1456
 
1598
- 542
1599
- 543
1600
- 544
1601
- 545
1602
- 546
1603
- 547
1604
- 548
1605
- 549
1606
- 550
1607
- 551
1608
- 552
1609
- 553
1610
- 554
1611
- 555
1612
- 556
1613
- 557
1614
- 558
1615
- 559
1616
- 560
1617
- 561
1618
- 562
1619
- 563
1620
- 564
1621
- 565
1622
- 566
1623
- 567
1624
- 568
1625
- 569
1626
- 570
1627
- 571
1628
- 572
1629
- 573
1630
- 574
1631
- 575
1632
- 576
1633
- 577
1634
- 578
1635
- 579
1636
- 580
1637
- 581
1638
- 582
1639
- 583
1640
- 584
1641
- 585</pre>
1642
- </td>
1643
- <td>
1644
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 542</span>
1457
+ 482
1458
+ 483
1459
+ 484
1460
+ 485
1461
+ 486
1462
+ 487
1463
+ 488
1464
+ 489
1465
+ 490
1466
+ 491
1467
+ 492
1468
+ 493
1469
+ 494
1470
+ 495
1471
+ 496
1472
+ 497
1473
+ 498
1474
+ 499
1475
+ 500
1476
+ 501
1477
+ 502
1478
+ 503
1479
+ 504
1480
+ 505
1481
+ 506
1482
+ 507
1483
+ 508
1484
+ 509
1485
+ 510
1486
+ 511
1487
+ 512
1488
+ 513
1489
+ 514
1490
+ 515
1491
+ 516
1492
+ 517
1493
+ 518
1494
+ 519
1495
+ 520
1496
+ 521
1497
+ 522
1498
+ 523
1499
+ 524
1500
+ 525</pre>
1501
+ </td>
1502
+ <td>
1503
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 482</span>
1645
1504
 
1646
1505
  <span class='kw'>def</span> <span class='id identifier rubyid_binding_info_string'>binding_info_string</span><span class='lparen'>(</span><span class='id identifier rubyid_binding_info'>binding_info</span><span class='rparen'>)</span>
1647
1506
  <span class='id identifier rubyid_exception'>exception</span> <span class='op'>=</span> <span class='id identifier rubyid_safe_to_s'>safe_to_s</span><span class='lparen'>(</span><span class='id identifier rubyid_binding_info'>binding_info</span><span class='lbracket'>[</span><span class='symbol'>:exception</span><span class='rbracket'>]</span><span class='rparen'>)</span>
@@ -1707,16 +1566,16 @@
1707
1566
  <pre class="lines">
1708
1567
 
1709
1568
 
1710
- 480
1711
- 481
1712
- 482
1713
- 483
1714
- 484
1715
- 485
1716
- 486</pre>
1569
+ 428
1570
+ 429
1571
+ 430
1572
+ 431
1573
+ 432
1574
+ 433
1575
+ 434</pre>
1717
1576
  </td>
1718
1577
  <td>
1719
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 480</span>
1578
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 428</span>
1720
1579
 
1721
1580
  <span class='kw'>def</span> <span class='id identifier rubyid_binding_infos_array_to_string'>binding_infos_array_to_string</span><span class='lparen'>(</span><span class='id identifier rubyid_captured_bindings'>captured_bindings</span><span class='comma'>,</span> <span class='id identifier rubyid_format'>format</span> <span class='op'>=</span> <span class='symbol'>:terminal</span><span class='rparen'>)</span>
1722
1581
  <span class='kw'>return</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_captured_bindings'>captured_bindings</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>||</span> <span class='id identifier rubyid_captured_bindings'>captured_bindings</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
@@ -1731,9 +1590,9 @@
1731
1590
  </div>
1732
1591
 
1733
1592
  <div class="method_details ">
1734
- <h3 class="signature " id="capture_events_count-class_method">
1593
+ <h3 class="signature " id="capture_rescue-class_method">
1735
1594
 
1736
- .<strong>capture_events_count</strong> &#x21d2; <tt>Object</tt>
1595
+ .<strong>capture_rescue</strong> &#x21d2; <tt>Object</tt>
1737
1596
 
1738
1597
 
1739
1598
 
@@ -1752,8 +1611,8 @@
1752
1611
  <td>
1753
1612
  <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 122</span>
1754
1613
 
1755
- <span class='kw'>def</span> <span class='id identifier rubyid_capture_events_count'>capture_events_count</span>
1756
- <span class='id identifier rubyid_mutex'>mutex</span><span class='period'>.</span><span class='id identifier rubyid_synchronize'>synchronize</span> <span class='lbrace'>{</span> <span class='ivar'>@capture_events_count</span> <span class='op'>||</span> <span class='int'>0</span> <span class='rbrace'>}</span>
1614
+ <span class='kw'>def</span> <span class='id identifier rubyid_capture_rescue'>capture_rescue</span>
1615
+ <span class='id identifier rubyid_mutex'>mutex</span><span class='period'>.</span><span class='id identifier rubyid_synchronize'>synchronize</span> <span class='lbrace'>{</span> <span class='ivar'>@capture_rescue</span> <span class='rbrace'>}</span>
1757
1616
  <span class='kw'>end</span></pre>
1758
1617
  </td>
1759
1618
  </tr>
@@ -1761,9 +1620,9 @@
1761
1620
  </div>
1762
1621
 
1763
1622
  <div class="method_details ">
1764
- <h3 class="signature " id="capture_events_count=-class_method">
1623
+ <h3 class="signature " id="capture_rescue=-class_method">
1765
1624
 
1766
- .<strong>capture_events_count=</strong>(val) &#x21d2; <tt>Object</tt>
1625
+ .<strong>capture_rescue=</strong>(val) &#x21d2; <tt>Object</tt>
1767
1626
 
1768
1627
 
1769
1628
 
@@ -1775,15 +1634,15 @@
1775
1634
  <pre class="lines">
1776
1635
 
1777
1636
 
1778
- 126
1779
- 127
1780
- 128</pre>
1637
+ 118
1638
+ 119
1639
+ 120</pre>
1781
1640
  </td>
1782
1641
  <td>
1783
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 126</span>
1642
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 118</span>
1784
1643
 
1785
- <span class='kw'>def</span> <span class='id identifier rubyid_capture_events_count='>capture_events_count=</span><span class='lparen'>(</span><span class='id identifier rubyid_val'>val</span><span class='rparen'>)</span>
1786
- <span class='id identifier rubyid_mutex'>mutex</span><span class='period'>.</span><span class='id identifier rubyid_synchronize'>synchronize</span> <span class='lbrace'>{</span> <span class='ivar'>@capture_events_count</span> <span class='op'>=</span> <span class='id identifier rubyid_val'>val</span> <span class='rbrace'>}</span>
1644
+ <span class='kw'>def</span> <span class='id identifier rubyid_capture_rescue='>capture_rescue=</span><span class='lparen'>(</span><span class='id identifier rubyid_val'>val</span><span class='rparen'>)</span>
1645
+ <span class='id identifier rubyid_mutex'>mutex</span><span class='period'>.</span><span class='id identifier rubyid_synchronize'>synchronize</span> <span class='lbrace'>{</span> <span class='ivar'>@capture_rescue</span> <span class='op'>=</span> <span class='id identifier rubyid_val'>val</span> <span class='rbrace'>}</span>
1787
1646
  <span class='kw'>end</span></pre>
1788
1647
  </td>
1789
1648
  </tr>
@@ -1791,147 +1650,31 @@
1791
1650
  </div>
1792
1651
 
1793
1652
  <div class="method_details ">
1794
- <h3 class="signature " id="capture_limit_exceeded?-class_method">
1653
+ <h3 class="signature " id="class_to_string-class_method">
1795
1654
 
1796
- .<strong>capture_limit_exceeded?</strong> &#x21d2; <tt>Boolean</tt>
1655
+ .<strong>class_to_string</strong>(klass) &#x21d2; <tt>Object</tt>
1797
1656
 
1798
1657
 
1799
1658
 
1800
1659
 
1801
1660
 
1802
- </h3><div class="docstring">
1803
- <div class="discussion">
1804
-
1661
+ </h3><table class="source_code">
1662
+ <tr>
1663
+ <td>
1664
+ <pre class="lines">
1805
1665
 
1806
- </div>
1807
- </div>
1808
- <div class="tags">
1809
-
1810
- <p class="tag_title">Returns:</p>
1811
- <ul class="return">
1812
-
1813
- <li>
1814
-
1815
-
1816
- <span class='type'>(<tt>Boolean</tt>)</span>
1817
-
1818
-
1819
-
1820
- </li>
1821
-
1822
- </ul>
1823
-
1824
- </div><table class="source_code">
1825
- <tr>
1826
- <td>
1827
- <pre class="lines">
1828
-
1829
-
1830
- 149
1831
- 150
1832
- 151
1833
- 152
1834
- 153</pre>
1835
- </td>
1836
- <td>
1837
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 149</span>
1838
-
1839
- <span class='kw'>def</span> <span class='id identifier rubyid_capture_limit_exceeded?'>capture_limit_exceeded?</span>
1840
- <span class='id identifier rubyid_mutex'>mutex</span><span class='period'>.</span><span class='id identifier rubyid_synchronize'>synchronize</span> <span class='kw'>do</span>
1841
- <span class='id identifier rubyid_max_capture_events'>max_capture_events</span> <span class='op'>&gt;</span> <span class='int'>0</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_capture_events_count'>capture_events_count</span> <span class='op'>&gt;=</span> <span class='id identifier rubyid_max_capture_events'>max_capture_events</span>
1842
- <span class='kw'>end</span>
1843
- <span class='kw'>end</span></pre>
1844
- </td>
1845
- </tr>
1846
- </table>
1847
- </div>
1848
-
1849
- <div class="method_details ">
1850
- <h3 class="signature " id="capture_rescue-class_method">
1851
-
1852
- .<strong>capture_rescue</strong> &#x21d2; <tt>Object</tt>
1853
-
1854
-
1855
-
1856
-
1857
-
1858
- </h3><table class="source_code">
1859
- <tr>
1860
- <td>
1861
- <pre class="lines">
1862
-
1863
-
1864
- 118
1865
- 119
1866
- 120</pre>
1867
- </td>
1868
- <td>
1869
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 118</span>
1870
-
1871
- <span class='kw'>def</span> <span class='id identifier rubyid_capture_rescue'>capture_rescue</span>
1872
- <span class='id identifier rubyid_mutex'>mutex</span><span class='period'>.</span><span class='id identifier rubyid_synchronize'>synchronize</span> <span class='lbrace'>{</span> <span class='ivar'>@capture_rescue</span> <span class='rbrace'>}</span>
1873
- <span class='kw'>end</span></pre>
1874
- </td>
1875
- </tr>
1876
- </table>
1877
- </div>
1878
-
1879
- <div class="method_details ">
1880
- <h3 class="signature " id="capture_rescue=-class_method">
1881
-
1882
- .<strong>capture_rescue=</strong>(val) &#x21d2; <tt>Object</tt>
1883
-
1884
-
1885
-
1886
-
1887
-
1888
- </h3><table class="source_code">
1889
- <tr>
1890
- <td>
1891
- <pre class="lines">
1892
-
1893
-
1894
- 114
1895
- 115
1896
- 116</pre>
1897
- </td>
1898
- <td>
1899
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 114</span>
1900
-
1901
- <span class='kw'>def</span> <span class='id identifier rubyid_capture_rescue='>capture_rescue=</span><span class='lparen'>(</span><span class='id identifier rubyid_val'>val</span><span class='rparen'>)</span>
1902
- <span class='id identifier rubyid_mutex'>mutex</span><span class='period'>.</span><span class='id identifier rubyid_synchronize'>synchronize</span> <span class='lbrace'>{</span> <span class='ivar'>@capture_rescue</span> <span class='op'>=</span> <span class='id identifier rubyid_val'>val</span> <span class='rbrace'>}</span>
1903
- <span class='kw'>end</span></pre>
1904
- </td>
1905
- </tr>
1906
- </table>
1907
- </div>
1908
-
1909
- <div class="method_details ">
1910
- <h3 class="signature " id="class_to_string-class_method">
1911
-
1912
- .<strong>class_to_string</strong>(klass) &#x21d2; <tt>Object</tt>
1913
-
1914
-
1915
-
1916
1666
 
1917
-
1918
- </h3><table class="source_code">
1919
- <tr>
1920
- <td>
1921
- <pre class="lines">
1922
-
1923
-
1924
- 316
1925
- 317
1926
- 318
1927
- 319
1928
- 320
1929
- 321
1930
- 322
1931
- 323</pre>
1667
+ 262
1668
+ 263
1669
+ 264
1670
+ 265
1671
+ 266
1672
+ 267
1673
+ 268
1674
+ 269</pre>
1932
1675
  </td>
1933
1676
  <td>
1934
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 316</span>
1677
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 262</span>
1935
1678
 
1936
1679
  <span class='kw'>def</span> <span class='id identifier rubyid_class_to_string'>class_to_string</span><span class='lparen'>(</span><span class='id identifier rubyid_klass'>klass</span><span class='rparen'>)</span>
1937
1680
  <span class='kw'>return</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_klass'>klass</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
@@ -1961,49 +1704,49 @@
1961
1704
  <pre class="lines">
1962
1705
 
1963
1706
 
1964
- 377
1965
- 378
1966
- 379
1967
- 380
1968
- 381
1969
- 382
1970
- 383
1971
- 384
1972
- 385
1973
- 386
1974
- 387
1975
- 388
1976
- 389
1977
- 390
1978
- 391
1979
- 392
1980
- 393
1981
- 394
1982
- 395
1983
- 396
1984
- 397
1985
- 398
1986
- 399
1987
- 400
1988
- 401
1989
- 402
1990
- 403
1991
- 404
1992
- 405
1993
- 406
1994
- 407
1995
- 408
1996
- 409
1997
- 410
1998
- 411
1999
- 412
2000
- 413
2001
- 414
2002
- 415
2003
- 416</pre>
1707
+ 325
1708
+ 326
1709
+ 327
1710
+ 328
1711
+ 329
1712
+ 330
1713
+ 331
1714
+ 332
1715
+ 333
1716
+ 334
1717
+ 335
1718
+ 336
1719
+ 337
1720
+ 338
1721
+ 339
1722
+ 340
1723
+ 341
1724
+ 342
1725
+ 343
1726
+ 344
1727
+ 345
1728
+ 346
1729
+ 347
1730
+ 348
1731
+ 349
1732
+ 350
1733
+ 351
1734
+ 352
1735
+ 353
1736
+ 354
1737
+ 355
1738
+ 356
1739
+ 357
1740
+ 358
1741
+ 359
1742
+ 360
1743
+ 361
1744
+ 362
1745
+ 363
1746
+ 364</pre>
2004
1747
  </td>
2005
1748
  <td>
2006
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 377</span>
1749
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 325</span>
2007
1750
 
2008
1751
  <span class='kw'>def</span> <span class='id identifier rubyid_convert_binding_to_binding_info'>convert_binding_to_binding_info</span><span class='lparen'>(</span><span class='id identifier rubyid_b'>b</span><span class='comma'>,</span> <span class='label'>capture_let_variables:</span> <span class='kw'>true</span><span class='rparen'>)</span>
2009
1752
  <span class='id identifier rubyid_file'>file</span> <span class='op'>=</span> <span class='id identifier rubyid_b'>b</span><span class='period'>.</span><span class='id identifier rubyid_eval'>eval</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>__FILE__</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='kw'>rescue</span> <span class='kw'>nil</span>
@@ -2065,17 +1808,17 @@
2065
1808
  <pre class="lines">
2066
1809
 
2067
1810
 
2068
- 155
2069
- 156
2070
- 157
2071
- 158
2072
- 159
2073
- 160
2074
- 161
2075
- 162</pre>
1811
+ 134
1812
+ 135
1813
+ 136
1814
+ 137
1815
+ 138
1816
+ 139
1817
+ 140
1818
+ 141</pre>
2076
1819
  </td>
2077
1820
  <td>
2078
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 155</span>
1821
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 134</span>
2079
1822
 
2080
1823
  <span class='kw'>def</span> <span class='id identifier rubyid_disable_capturing!'>disable_capturing!</span>
2081
1824
  <span class='id identifier rubyid_mutex'>mutex</span><span class='period'>.</span><span class='id identifier rubyid_synchronize'>synchronize</span> <span class='kw'>do</span>
@@ -2105,6 +1848,35 @@
2105
1848
  <pre class="lines">
2106
1849
 
2107
1850
 
1851
+ 197
1852
+ 198
1853
+ 199
1854
+ 200
1855
+ 201
1856
+ 202
1857
+ 203
1858
+ 204
1859
+ 205
1860
+ 206
1861
+ 207
1862
+ 208
1863
+ 209
1864
+ 210
1865
+ 211
1866
+ 212
1867
+ 213
1868
+ 214
1869
+ 215
1870
+ 216
1871
+ 217
1872
+ 218
1873
+ 219
1874
+ 220
1875
+ 221
1876
+ 222
1877
+ 223
1878
+ 224
1879
+ 225
2108
1880
  226
2109
1881
  227
2110
1882
  228
@@ -2113,54 +1885,10 @@
2113
1885
  231
2114
1886
  232
2115
1887
  233
2116
- 234
2117
- 235
2118
- 236
2119
- 237
2120
- 238
2121
- 239
2122
- 240
2123
- 241
2124
- 242
2125
- 243
2126
- 244
2127
- 245
2128
- 246
2129
- 247
2130
- 248
2131
- 249
2132
- 250
2133
- 251
2134
- 252
2135
- 253
2136
- 254
2137
- 255
2138
- 256
2139
- 257
2140
- 258
2141
- 259
2142
- 260
2143
- 261
2144
- 262
2145
- 263
2146
- 264
2147
- 265
2148
- 266
2149
- 267
2150
- 268
2151
- 269
2152
- 270
2153
- 271
2154
- 272
2155
- 273
2156
- 274
2157
- 275
2158
- 276
2159
- 277
2160
- 278</pre>
1888
+ 234</pre>
2161
1889
  </td>
2162
1890
  <td>
2163
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 226</span>
1891
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 197</span>
2164
1892
 
2165
1893
  <span class='kw'>def</span> <span class='id identifier rubyid_enhance_exceptions!'>enhance_exceptions!</span><span class='lparen'>(</span><span class='label'>enabled:</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='label'>debug:</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='label'>capture_events:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>override_messages:</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_options'>options</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
2166
1894
  <span class='id identifier rubyid_mutex'>mutex</span><span class='period'>.</span><span class='id identifier rubyid_synchronize'>synchronize</span> <span class='kw'>do</span>
@@ -2170,14 +1898,8 @@
2170
1898
  <span class='ivar'>@output_format</span> <span class='op'>=</span> <span class='kw'>nil</span>
2171
1899
  <span class='ivar'>@eligible_for_capture</span> <span class='op'>=</span> <span class='kw'>nil</span>
2172
1900
  <span class='ivar'>@original_global_variables</span> <span class='op'>=</span> <span class='kw'>nil</span>
2173
- <span class='ivar'>@override_messages</span> <span class='op'>=</span> <span class='id identifier rubyid_override_messages'>override_messages</span>
2174
-
2175
- <span class='comment'># Ensure these are not nil
2176
- </span> <span class='kw'>if</span> <span class='ivar'>@max_capture_events</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
2177
- <span class='ivar'>@max_capture_events</span> <span class='op'>=</span> <span class='op'>-</span><span class='int'>1</span>
2178
- <span class='kw'>end</span>
2179
- <span class='ivar'>@capture_events_count</span> <span class='op'>||=</span> <span class='int'>0</span>
2180
1901
 
1902
+ <span class='ivar'>@override_messages</span> <span class='op'>=</span> <span class='id identifier rubyid_override_messages'>override_messages</span>
2181
1903
  <span class='ivar'>@rspec_failure_message_loaded</span> <span class='op'>=</span> <span class='kw'>true</span>
2182
1904
 
2183
1905
  <span class='ivar'>@enabled</span> <span class='op'>=</span> <span class='id identifier rubyid_enabled'>enabled</span>
@@ -2198,21 +1920,12 @@
2198
1920
 
2199
1921
  <span class='id identifier rubyid_validate_and_set_capture_events'>validate_and_set_capture_events</span><span class='lparen'>(</span><span class='id identifier rubyid_capture_events'>capture_events</span><span class='rparen'>)</span>
2200
1922
 
2201
- <span class='comment'># If max_capture_events == 0, capturing is off from the start.
2202
- </span> <span class='kw'>if</span> <span class='ivar'>@max_capture_events</span> <span class='op'>==</span> <span class='int'>0</span>
2203
- <span class='ivar'>@enabled</span> <span class='op'>=</span> <span class='kw'>false</span>
2204
- <span class='kw'>return</span>
2205
- <span class='kw'>end</span>
2206
-
2207
1923
  <span class='id identifier rubyid_events'>events</span> <span class='op'>=</span> <span class='ivar'>@capture_events</span> <span class='op'>?</span> <span class='ivar'>@capture_events</span><span class='period'>.</span><span class='id identifier rubyid_to_a'>to_a</span> <span class='op'>:</span> <span class='id identifier rubyid_default_capture_events'>default_capture_events</span>
2208
1924
  <span class='ivar'>@exception_trace</span> <span class='op'>=</span> <span class='const'>TracePoint</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_events'>events</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_tp'>tp</span><span class='op'>|</span>
2209
1925
  <span class='id identifier rubyid_handle_tracepoint_event'>handle_tracepoint_event</span><span class='lparen'>(</span><span class='id identifier rubyid_tp'>tp</span><span class='rparen'>)</span>
2210
1926
  <span class='kw'>end</span>
2211
1927
 
2212
- <span class='comment'># Only enable trace if still enabled and not limited
2213
- </span> <span class='kw'>if</span> <span class='ivar'>@enabled</span> <span class='op'>&amp;&amp;</span> <span class='lparen'>(</span><span class='ivar'>@max_capture_events</span> <span class='op'>==</span> <span class='op'>-</span><span class='int'>1</span> <span class='op'>||</span> <span class='ivar'>@capture_events_count</span> <span class='op'>&lt;</span> <span class='ivar'>@max_capture_events</span><span class='rparen'>)</span>
2214
- <span class='ivar'>@exception_trace</span><span class='period'>.</span><span class='id identifier rubyid_enable'>enable</span>
2215
- <span class='kw'>end</span>
1928
+ <span class='ivar'>@exception_trace</span><span class='period'>.</span><span class='id identifier rubyid_enable'>enable</span> <span class='kw'>if</span> <span class='ivar'>@enabled</span>
2216
1929
  <span class='kw'>end</span>
2217
1930
  <span class='kw'>end</span></pre>
2218
1931
  </td>
@@ -2235,28 +1948,28 @@
2235
1948
  <pre class="lines">
2236
1949
 
2237
1950
 
2238
- 460
2239
- 461
2240
- 462
2241
- 463
2242
- 464
2243
- 465
2244
- 466
2245
- 467
2246
- 468
2247
- 469
2248
- 470
2249
- 471
2250
- 472
2251
- 473
2252
- 474
2253
- 475
2254
- 476
2255
- 477
2256
- 478</pre>
1951
+ 408
1952
+ 409
1953
+ 410
1954
+ 411
1955
+ 412
1956
+ 413
1957
+ 414
1958
+ 415
1959
+ 416
1960
+ 417
1961
+ 418
1962
+ 419
1963
+ 420
1964
+ 421
1965
+ 422
1966
+ 423
1967
+ 424
1968
+ 425
1969
+ 426</pre>
2257
1970
  </td>
2258
1971
  <td>
2259
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 460</span>
1972
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 408</span>
2260
1973
 
2261
1974
  <span class='kw'>def</span> <span class='id identifier rubyid_format'>format</span><span class='lparen'>(</span><span class='id identifier rubyid_captured_binding_infos'>captured_binding_infos</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_output_format'>output_format</span> <span class='op'>=</span> <span class='id identifier rubyid_get_default_format_for_environment'>get_default_format_for_environment</span><span class='rparen'>)</span>
2262
1975
  <span class='kw'>return</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_captured_binding_infos'>captured_binding_infos</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>||</span> <span class='id identifier rubyid_captured_binding_infos'>captured_binding_infos</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
@@ -2297,27 +2010,27 @@
2297
2010
  <pre class="lines">
2298
2011
 
2299
2012
 
2300
- 488
2301
- 489
2302
- 490
2303
- 491
2304
- 492
2305
- 493
2306
- 494
2307
- 495
2308
- 496
2309
- 497
2310
- 498
2311
- 499
2312
- 500
2313
- 501
2314
- 502
2315
- 503
2316
- 504
2317
- 505</pre>
2013
+ 436
2014
+ 437
2015
+ 438
2016
+ 439
2017
+ 440
2018
+ 441
2019
+ 442
2020
+ 443
2021
+ 444
2022
+ 445
2023
+ 446
2024
+ 447
2025
+ 448
2026
+ 449
2027
+ 450
2028
+ 451
2029
+ 452
2030
+ 453</pre>
2318
2031
  </td>
2319
2032
  <td>
2320
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 488</span>
2033
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 436</span>
2321
2034
 
2322
2035
  <span class='kw'>def</span> <span class='id identifier rubyid_get_default_format_for_environment'>get_default_format_for_environment</span>
2323
2036
  <span class='id identifier rubyid_mutex'>mutex</span><span class='period'>.</span><span class='id identifier rubyid_synchronize'>synchronize</span> <span class='kw'>do</span>
@@ -2340,44 +2053,6 @@
2340
2053
  </td>
2341
2054
  </tr>
2342
2055
  </table>
2343
- </div>
2344
-
2345
- <div class="method_details ">
2346
- <h3 class="signature " id="increment_capture_events_count-class_method">
2347
-
2348
- .<strong>increment_capture_events_count</strong> &#x21d2; <tt>Object</tt>
2349
-
2350
-
2351
-
2352
-
2353
-
2354
- </h3><table class="source_code">
2355
- <tr>
2356
- <td>
2357
- <pre class="lines">
2358
-
2359
-
2360
- 164
2361
- 165
2362
- 166
2363
- 167
2364
- 168
2365
- 169
2366
- 170</pre>
2367
- </td>
2368
- <td>
2369
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 164</span>
2370
-
2371
- <span class='kw'>def</span> <span class='id identifier rubyid_increment_capture_events_count'>increment_capture_events_count</span>
2372
- <span class='id identifier rubyid_mutex'>mutex</span><span class='period'>.</span><span class='id identifier rubyid_synchronize'>synchronize</span> <span class='kw'>do</span>
2373
- <span class='ivar'>@capture_events_count</span> <span class='op'>||=</span> <span class='int'>0</span>
2374
- <span class='ivar'>@max_capture_events</span> <span class='op'>||=</span> <span class='op'>-</span><span class='int'>1</span>
2375
- <span class='ivar'>@capture_events_count</span> <span class='op'>+=</span> <span class='int'>1</span>
2376
- <span class='kw'>end</span>
2377
- <span class='kw'>end</span></pre>
2378
- </td>
2379
- </tr>
2380
- </table>
2381
2056
  </div>
2382
2057
 
2383
2058
  <div class="method_details ">
@@ -2417,12 +2092,12 @@
2417
2092
  <pre class="lines">
2418
2093
 
2419
2094
 
2420
- 291
2421
- 292
2422
- 293</pre>
2095
+ 236
2096
+ 237
2097
+ 238</pre>
2423
2098
  </td>
2424
2099
  <td>
2425
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 291</span>
2100
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 236</span>
2426
2101
 
2427
2102
  <span class='kw'>def</span> <span class='id identifier rubyid_is_a_minitest?'>is_a_minitest?</span><span class='lparen'>(</span><span class='id identifier rubyid_klass'>klass</span><span class='rparen'>)</span>
2428
2103
  <span class='id identifier rubyid_klass'>klass</span><span class='period'>.</span><span class='id identifier rubyid_ancestors'>ancestors</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="Minitest.html" title="Minitest (module)">Minitest</a></span></span><span class='op'>::</span><span class='const'>Test</span><span class='rparen'>)</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_klass'>klass</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span> <span class='op'>!=</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Minitest::Test</span><span class='tstring_end'>&#39;</span></span>
@@ -2469,12 +2144,12 @@
2469
2144
  <pre class="lines">
2470
2145
 
2471
2146
 
2472
- 325
2473
- 326
2474
- 327</pre>
2147
+ 271
2148
+ 272
2149
+ 273</pre>
2475
2150
  </td>
2476
2151
  <td>
2477
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 325</span>
2152
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 271</span>
2478
2153
 
2479
2154
  <span class='kw'>def</span> <span class='id identifier rubyid_is_rspec_example?'>is_rspec_example?</span><span class='lparen'>(</span><span class='id identifier rubyid_tracepoint'>tracepoint</span><span class='rparen'>)</span>
2480
2155
  <span class='id identifier rubyid_tracepoint'>tracepoint</span><span class='period'>.</span><span class='id identifier rubyid_method_id'>method_id</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>&amp;&amp;</span> <span class='op'>!</span><span class='lparen'>(</span><span class='id identifier rubyid_tracepoint'>tracepoint</span><span class='period'>.</span><span class='id identifier rubyid_path'>path</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>rspec</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='rparen'>)</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_tracepoint'>tracepoint</span><span class='period'>.</span><span class='id identifier rubyid_path'>path</span><span class='period'>.</span><span class='id identifier rubyid_end_with?'>end_with?</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>_spec.rb</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
@@ -2482,70 +2157,6 @@
2482
2157
  </td>
2483
2158
  </tr>
2484
2159
  </table>
2485
- </div>
2486
-
2487
- <div class="method_details ">
2488
- <h3 class="signature " id="max_capture_events-class_method">
2489
-
2490
- .<strong>max_capture_events</strong> &#x21d2; <tt>Object</tt>
2491
-
2492
-
2493
-
2494
-
2495
-
2496
- </h3><table class="source_code">
2497
- <tr>
2498
- <td>
2499
- <pre class="lines">
2500
-
2501
-
2502
- 130
2503
- 131
2504
- 132</pre>
2505
- </td>
2506
- <td>
2507
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 130</span>
2508
-
2509
- <span class='kw'>def</span> <span class='id identifier rubyid_max_capture_events'>max_capture_events</span>
2510
- <span class='id identifier rubyid_mutex'>mutex</span><span class='period'>.</span><span class='id identifier rubyid_synchronize'>synchronize</span> <span class='lbrace'>{</span> <span class='ivar'>@max_capture_events</span> <span class='op'>||</span> <span class='op'>-</span><span class='int'>1</span> <span class='rbrace'>}</span>
2511
- <span class='kw'>end</span></pre>
2512
- </td>
2513
- </tr>
2514
- </table>
2515
- </div>
2516
-
2517
- <div class="method_details ">
2518
- <h3 class="signature " id="max_capture_events=-class_method">
2519
-
2520
- .<strong>max_capture_events=</strong>(value) &#x21d2; <tt>Object</tt>
2521
-
2522
-
2523
-
2524
-
2525
-
2526
- </h3><table class="source_code">
2527
- <tr>
2528
- <td>
2529
- <pre class="lines">
2530
-
2531
-
2532
- 143
2533
- 144
2534
- 145
2535
- 146
2536
- 147</pre>
2537
- </td>
2538
- <td>
2539
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 143</span>
2540
-
2541
- <span class='kw'>def</span> <span class='id identifier rubyid_max_capture_events='>max_capture_events=</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
2542
- <span class='id identifier rubyid_mutex'>mutex</span><span class='period'>.</span><span class='id identifier rubyid_synchronize'>synchronize</span> <span class='kw'>do</span>
2543
- <span class='ivar'>@max_capture_events</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span>
2544
- <span class='kw'>end</span>
2545
- <span class='kw'>end</span></pre>
2546
- </td>
2547
- </tr>
2548
- </table>
2549
2160
  </div>
2550
2161
 
2551
2162
  <div class="method_details ">
@@ -2563,12 +2174,12 @@
2563
2174
  <pre class="lines">
2564
2175
 
2565
2176
 
2566
- 135
2567
- 136
2568
- 137</pre>
2177
+ 126
2178
+ 127
2179
+ 128</pre>
2569
2180
  </td>
2570
2181
  <td>
2571
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 135</span>
2182
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 126</span>
2572
2183
 
2573
2184
  <span class='kw'>def</span> <span class='id identifier rubyid_max_capture_length'>max_capture_length</span>
2574
2185
  <span class='id identifier rubyid_mutex'>mutex</span><span class='period'>.</span><span class='id identifier rubyid_synchronize'>synchronize</span> <span class='lbrace'>{</span> <span class='ivar'>@max_capture_length</span> <span class='op'>||</span> <span class='const'><span class='object_link'><a href="#DEFAULT_MAX_CAPTURE_LENGTH-constant" title="EnhancedErrors::DEFAULT_MAX_CAPTURE_LENGTH (constant)">DEFAULT_MAX_CAPTURE_LENGTH</a></span></span> <span class='rbrace'>}</span>
@@ -2593,12 +2204,12 @@
2593
2204
  <pre class="lines">
2594
2205
 
2595
2206
 
2596
- 139
2597
- 140
2598
- 141</pre>
2207
+ 130
2208
+ 131
2209
+ 132</pre>
2599
2210
  </td>
2600
2211
  <td>
2601
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 139</span>
2212
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 130</span>
2602
2213
 
2603
2214
  <span class='kw'>def</span> <span class='id identifier rubyid_max_capture_length='>max_capture_length=</span><span class='lparen'>(</span><span class='id identifier rubyid_val'>val</span><span class='rparen'>)</span>
2604
2215
  <span class='id identifier rubyid_mutex'>mutex</span><span class='period'>.</span><span class='id identifier rubyid_synchronize'>synchronize</span> <span class='lbrace'>{</span> <span class='ivar'>@max_capture_length</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span> <span class='rbrace'>}</span>
@@ -2623,12 +2234,12 @@
2623
2234
  <pre class="lines">
2624
2235
 
2625
2236
 
2626
- 20
2627
- 21
2628
- 22</pre>
2237
+ 18
2238
+ 19
2239
+ 20</pre>
2629
2240
  </td>
2630
2241
  <td>
2631
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 20</span>
2242
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 18</span>
2632
2243
 
2633
2244
  <span class='kw'>def</span> <span class='id identifier rubyid_mutex'>mutex</span>
2634
2245
  <span class='ivar'>@monitor</span> <span class='op'>||=</span> <span class='const'>Monitor</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
@@ -2653,18 +2264,18 @@
2653
2264
  <pre class="lines">
2654
2265
 
2655
2266
 
2656
- 428
2657
- 429
2658
- 430
2659
- 431
2660
- 432
2661
- 433
2662
- 434
2663
- 435
2664
- 436</pre>
2267
+ 376
2268
+ 377
2269
+ 378
2270
+ 379
2271
+ 380
2272
+ 381
2273
+ 382
2274
+ 383
2275
+ 384</pre>
2665
2276
  </td>
2666
2277
  <td>
2667
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 428</span>
2278
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 376</span>
2668
2279
 
2669
2280
  <span class='kw'>def</span> <span class='id identifier rubyid_on_capture'>on_capture</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
2670
2281
  <span class='id identifier rubyid_mutex'>mutex</span><span class='period'>.</span><span class='id identifier rubyid_synchronize'>synchronize</span> <span class='kw'>do</span>
@@ -2695,14 +2306,14 @@
2695
2306
  <pre class="lines">
2696
2307
 
2697
2308
 
2698
- 438
2699
- 439
2700
- 440
2701
- 441
2702
- 442</pre>
2309
+ 386
2310
+ 387
2311
+ 388
2312
+ 389
2313
+ 390</pre>
2703
2314
  </td>
2704
2315
  <td>
2705
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 438</span>
2316
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 386</span>
2706
2317
 
2707
2318
  <span class='kw'>def</span> <span class='id identifier rubyid_on_capture='>on_capture=</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
2708
2319
  <span class='id identifier rubyid_mutex'>mutex</span><span class='period'>.</span><span class='id identifier rubyid_synchronize'>synchronize</span> <span class='kw'>do</span>
@@ -2729,18 +2340,18 @@
2729
2340
  <pre class="lines">
2730
2341
 
2731
2342
 
2732
- 444
2733
- 445
2734
- 446
2735
- 447
2736
- 448
2737
- 449
2738
- 450
2739
- 451
2740
- 452</pre>
2343
+ 392
2344
+ 393
2345
+ 394
2346
+ 395
2347
+ 396
2348
+ 397
2349
+ 398
2350
+ 399
2351
+ 400</pre>
2741
2352
  </td>
2742
2353
  <td>
2743
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 444</span>
2354
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 392</span>
2744
2355
 
2745
2356
  <span class='kw'>def</span> <span class='id identifier rubyid_on_format'>on_format</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
2746
2357
  <span class='id identifier rubyid_mutex'>mutex</span><span class='period'>.</span><span class='id identifier rubyid_synchronize'>synchronize</span> <span class='kw'>do</span>
@@ -2771,14 +2382,14 @@
2771
2382
  <pre class="lines">
2772
2383
 
2773
2384
 
2774
- 454
2775
- 455
2776
- 456
2777
- 457
2778
- 458</pre>
2385
+ 402
2386
+ 403
2387
+ 404
2388
+ 405
2389
+ 406</pre>
2779
2390
  </td>
2780
2391
  <td>
2781
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 454</span>
2392
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 402</span>
2782
2393
 
2783
2394
  <span class='kw'>def</span> <span class='id identifier rubyid_on_format='>on_format=</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
2784
2395
  <span class='id identifier rubyid_mutex'>mutex</span><span class='period'>.</span><span class='id identifier rubyid_synchronize'>synchronize</span> <span class='kw'>do</span>
@@ -2805,23 +2416,23 @@
2805
2416
  <pre class="lines">
2806
2417
 
2807
2418
 
2808
- 205
2809
- 206
2810
- 207
2811
- 208
2812
- 209
2813
- 210
2814
- 211
2815
- 212
2816
- 213
2817
- 214
2818
- 215
2819
- 216
2820
- 217
2821
- 218</pre>
2419
+ 176
2420
+ 177
2421
+ 178
2422
+ 179
2423
+ 180
2424
+ 181
2425
+ 182
2426
+ 183
2427
+ 184
2428
+ 185
2429
+ 186
2430
+ 187
2431
+ 188
2432
+ 189</pre>
2822
2433
  </td>
2823
2434
  <td>
2824
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 205</span>
2435
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 176</span>
2825
2436
 
2826
2437
  <span class='kw'>def</span> <span class='id identifier rubyid_override_exception_message'>override_exception_message</span><span class='lparen'>(</span><span class='id identifier rubyid_exception'>exception</span><span class='comma'>,</span> <span class='id identifier rubyid_binding_or_bindings'>binding_or_bindings</span><span class='rparen'>)</span>
2827
2438
  <span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>unless</span> <span class='id identifier rubyid_exception'>exception</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_exception'>exception</span><span class='period'>.</span><span class='id identifier rubyid_respond_to?'>respond_to?</span><span class='lparen'>(</span><span class='symbol'>:message</span><span class='rparen'>)</span>
@@ -2857,22 +2468,22 @@
2857
2468
  <pre class="lines">
2858
2469
 
2859
2470
 
2860
- 191
2861
- 192
2862
- 193
2863
- 194
2864
- 195
2865
- 196
2866
- 197
2867
- 198
2868
- 199
2869
- 200
2870
- 201
2871
- 202
2872
- 203</pre>
2471
+ 162
2472
+ 163
2473
+ 164
2474
+ 165
2475
+ 166
2476
+ 167
2477
+ 168
2478
+ 169
2479
+ 170
2480
+ 171
2481
+ 172
2482
+ 173
2483
+ 174</pre>
2873
2484
  </td>
2874
2485
  <td>
2875
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 191</span>
2486
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 162</span>
2876
2487
 
2877
2488
  <span class='kw'>def</span> <span class='id identifier rubyid_override_rspec_message'>override_rspec_message</span><span class='lparen'>(</span><span class='id identifier rubyid_example'>example</span><span class='comma'>,</span> <span class='id identifier rubyid_binding_or_bindings'>binding_or_bindings</span><span class='rparen'>)</span>
2878
2489
  <span class='id identifier rubyid_exception_obj'>exception_obj</span> <span class='op'>=</span> <span class='id identifier rubyid_example'>example</span><span class='period'>.</span><span class='id identifier rubyid_exception'>exception</span>
@@ -2907,21 +2518,20 @@
2907
2518
  <pre class="lines">
2908
2519
 
2909
2520
 
2910
- 172
2911
- 173
2912
- 174
2913
- 175
2914
- 176
2915
- 177
2916
- 178
2917
- 179
2918
- 180
2919
- 181
2920
- 182
2921
- 183</pre>
2521
+ 144
2522
+ 145
2523
+ 146
2524
+ 147
2525
+ 148
2526
+ 149
2527
+ 150
2528
+ 151
2529
+ 152
2530
+ 153
2531
+ 154</pre>
2922
2532
  </td>
2923
2533
  <td>
2924
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 172</span>
2534
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 144</span>
2925
2535
 
2926
2536
  <span class='kw'>def</span> <span class='id identifier rubyid_reset!'>reset!</span>
2927
2537
  <span class='id identifier rubyid_mutex'>mutex</span><span class='period'>.</span><span class='id identifier rubyid_synchronize'>synchronize</span> <span class='kw'>do</span>
@@ -2931,7 +2541,6 @@
2931
2541
  <span class='ivar'>@rspec_tracepoint</span> <span class='op'>=</span> <span class='kw'>nil</span>
2932
2542
  <span class='ivar'>@minitest_trace</span> <span class='op'>=</span> <span class='kw'>nil</span>
2933
2543
  <span class='ivar'>@exception_trace</span> <span class='op'>=</span> <span class='kw'>nil</span>
2934
- <span class='ivar'>@capture_events_count</span> <span class='op'>=</span> <span class='int'>0</span>
2935
2544
  <span class='ivar'>@enabled</span> <span class='op'>=</span> <span class='kw'>true</span>
2936
2545
  <span class='kw'>end</span>
2937
2546
  <span class='kw'>end</span></pre>
@@ -2977,82 +2586,22 @@
2977
2586
  <pre class="lines">
2978
2587
 
2979
2588
 
2980
- 507
2981
- 508
2982
- 509
2983
- 510
2984
- 511
2985
- 512
2986
- 513
2987
- 514
2988
- 515
2989
- 516
2990
- 517
2991
- 518
2992
- 519
2993
- 520
2994
- 521</pre>
2589
+ 455
2590
+ 456
2591
+ 457
2592
+ 458
2593
+ 459
2594
+ 460
2595
+ 461</pre>
2995
2596
  </td>
2996
2597
  <td>
2997
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 507</span>
2598
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 455</span>
2998
2599
 
2999
2600
  <span class='kw'>def</span> <span class='id identifier rubyid_running_in_ci?'>running_in_ci?</span>
3000
2601
  <span class='id identifier rubyid_mutex'>mutex</span><span class='period'>.</span><span class='id identifier rubyid_synchronize'>synchronize</span> <span class='kw'>do</span>
3001
2602
  <span class='kw'>return</span> <span class='ivar'>@running_in_ci</span> <span class='kw'>if</span> <span class='kw'>defined?</span><span class='lparen'>(</span><span class='ivar'>@running_in_ci</span><span class='rparen'>)</span>
3002
- <span class='id identifier rubyid_ci_env_vars'>ci_env_vars</span> <span class='op'>=</span> <span class='lbrace'>{</span>
3003
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>CI</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>CI</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
3004
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>JENKINS</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>JENKINS</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
3005
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>GITHUB_ACTIONS</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>GITHUB_ACTIONS</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
3006
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>CIRCLECI</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>CIRCLECI</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
3007
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>TRAVIS</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>TRAVIS</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
3008
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>APPVEYOR</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>APPVEYOR</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
3009
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>GITLAB_CI</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>GITLAB_CI</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span>
3010
- <span class='rbrace'>}</span>
3011
- <span class='ivar'>@running_in_ci</span> <span class='op'>=</span> <span class='id identifier rubyid_ci_env_vars'>ci_env_vars</span><span class='period'>.</span><span class='id identifier rubyid_any?'>any?</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid__'>_</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='op'>|</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_downcase'>downcase</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>true</span><span class='tstring_end'>&#39;</span></span> <span class='rbrace'>}</span>
3012
- <span class='kw'>end</span>
3013
- <span class='kw'>end</span></pre>
3014
- </td>
3015
- </tr>
3016
- </table>
3017
- </div>
3018
-
3019
- <div class="method_details ">
3020
- <h3 class="signature " id="safe_prepend_module-class_method">
3021
-
3022
- .<strong>safe_prepend_module</strong>(target_class, mod) &#x21d2; <tt>Object</tt>
3023
-
3024
-
3025
-
3026
-
3027
-
3028
- </h3><table class="source_code">
3029
- <tr>
3030
- <td>
3031
- <pre class="lines">
3032
-
3033
-
3034
- 280
3035
- 281
3036
- 282
3037
- 283
3038
- 284
3039
- 285
3040
- 286
3041
- 287
3042
- 288
3043
- 289</pre>
3044
- </td>
3045
- <td>
3046
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 280</span>
3047
2603
 
3048
- <span class='kw'>def</span> <span class='id identifier rubyid_safe_prepend_module'>safe_prepend_module</span><span class='lparen'>(</span><span class='id identifier rubyid_target_class'>target_class</span><span class='comma'>,</span> <span class='id identifier rubyid_mod'>mod</span><span class='rparen'>)</span>
3049
- <span class='id identifier rubyid_mutex'>mutex</span><span class='period'>.</span><span class='id identifier rubyid_synchronize'>synchronize</span> <span class='kw'>do</span>
3050
- <span class='kw'>if</span> <span class='kw'>defined?</span><span class='lparen'>(</span><span class='id identifier rubyid_target_class'>target_class</span><span class='rparen'>)</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_target_class'>target_class</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Module</span><span class='rparen'>)</span>
3051
- <span class='id identifier rubyid_target_class'>target_class</span><span class='period'>.</span><span class='id identifier rubyid_prepend'>prepend</span><span class='lparen'>(</span><span class='id identifier rubyid_mod'>mod</span><span class='rparen'>)</span>
3052
- <span class='kw'>true</span>
3053
- <span class='kw'>else</span>
3054
- <span class='kw'>false</span>
3055
- <span class='kw'>end</span>
2604
+ <span class='ivar'>@running_in_ci</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="#CI_ENV_VARS-constant" title="EnhancedErrors::CI_ENV_VARS (constant)">CI_ENV_VARS</a></span></span><span class='period'>.</span><span class='id identifier rubyid_any?'>any?</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid__'>_</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='op'>|</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_downcase'>downcase</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>true</span><span class='tstring_end'>&#39;</span></span> <span class='rbrace'>}</span>
3056
2605
  <span class='kw'>end</span>
3057
2606
  <span class='kw'>end</span></pre>
3058
2607
  </td>
@@ -3075,14 +2624,14 @@
3075
2624
  <pre class="lines">
3076
2625
 
3077
2626
 
3078
- 185
3079
- 186
3080
- 187
3081
- 188
3082
- 189</pre>
2627
+ 156
2628
+ 157
2629
+ 158
2630
+ 159
2631
+ 160</pre>
3083
2632
  </td>
3084
2633
  <td>
3085
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 185</span>
2634
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 156</span>
3086
2635
 
3087
2636
  <span class='kw'>def</span> <span class='id identifier rubyid_skip_list'>skip_list</span>
3088
2637
  <span class='id identifier rubyid_mutex'>mutex</span><span class='period'>.</span><span class='id identifier rubyid_synchronize'>synchronize</span> <span class='kw'>do</span>
@@ -3109,24 +2658,26 @@
3109
2658
  <pre class="lines">
3110
2659
 
3111
2660
 
3112
- 295
3113
- 296
3114
- 297
3115
- 298
3116
- 299
3117
- 300
3118
- 301
3119
- 302
3120
- 303
3121
- 304
3122
- 305</pre>
2661
+ 240
2662
+ 241
2663
+ 242
2664
+ 243
2665
+ 244
2666
+ 245
2667
+ 246
2668
+ 247
2669
+ 248
2670
+ 249
2671
+ 250
2672
+ 251</pre>
3123
2673
  </td>
3124
2674
  <td>
3125
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 295</span>
2675
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 240</span>
3126
2676
 
3127
2677
  <span class='kw'>def</span> <span class='id identifier rubyid_start_minitest_binding_capture'>start_minitest_binding_capture</span>
3128
2678
  <span class='const'><span class='object_link'><a href="EnhancedExceptionContext.html" title="EnhancedExceptionContext (module)">EnhancedExceptionContext</a></span></span><span class='period'>.</span><span class='id identifier rubyid_clear_all'><span class='object_link'><a href="EnhancedExceptionContext.html#clear_all-instance_method" title="EnhancedExceptionContext#clear_all (method)">clear_all</a></span></span>
3129
2679
  <span class='ivar'>@enabled</span> <span class='op'>=</span> <span class='kw'>true</span> <span class='kw'>if</span> <span class='ivar'>@enabled</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
2680
+ <span class='kw'>return</span> <span class='kw'>unless</span> <span class='ivar'>@enabled</span>
3130
2681
  <span class='id identifier rubyid_mutex'>mutex</span><span class='period'>.</span><span class='id identifier rubyid_synchronize'>synchronize</span> <span class='kw'>do</span>
3131
2682
  <span class='ivar'>@minitest_trace</span> <span class='op'>=</span> <span class='const'>TracePoint</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='symbol'>:return</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_tp'>tp</span><span class='op'>|</span>
3132
2683
  <span class='kw'>next</span> <span class='kw'>unless</span> <span class='id identifier rubyid_tp'>tp</span><span class='period'>.</span><span class='id identifier rubyid_method_id'>method_id</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_start_with?'>start_with?</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>test_</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_is_a_minitest?'>is_a_minitest?</span><span class='lparen'>(</span><span class='id identifier rubyid_tp'>tp</span><span class='period'>.</span><span class='id identifier rubyid_defined_class'>defined_class</span><span class='rparen'>)</span>
@@ -3155,47 +2706,53 @@
3155
2706
  <pre class="lines">
3156
2707
 
3157
2708
 
3158
- 329
3159
- 330
3160
- 331
3161
- 332
3162
- 333
3163
- 334
3164
- 335
3165
- 336
3166
- 337
3167
- 338
3168
- 339
3169
- 340
3170
- 341
3171
- 342
3172
- 343
3173
- 344
3174
- 345
3175
- 346
3176
- 347
3177
- 348
3178
- 349
3179
- 350
3180
- 351
3181
- 352
3182
- 353
3183
- 354
3184
- 355
3185
- 356
3186
- 357
3187
- 358
3188
- 359
3189
- 360
3190
- 361
3191
- 362
3192
- 363</pre>
2709
+ 275
2710
+ 276
2711
+ 277
2712
+ 278
2713
+ 279
2714
+ 280
2715
+ 281
2716
+ 282
2717
+ 283
2718
+ 284
2719
+ 285
2720
+ 286
2721
+ 287
2722
+ 288
2723
+ 289
2724
+ 290
2725
+ 291
2726
+ 292
2727
+ 293
2728
+ 294
2729
+ 295
2730
+ 296
2731
+ 297
2732
+ 298
2733
+ 299
2734
+ 300
2735
+ 301
2736
+ 302
2737
+ 303
2738
+ 304
2739
+ 305
2740
+ 306
2741
+ 307
2742
+ 308
2743
+ 309
2744
+ 310
2745
+ 311
2746
+ 312</pre>
3193
2747
  </td>
3194
2748
  <td>
3195
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 329</span>
2749
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 275</span>
3196
2750
 
3197
2751
  <span class='kw'>def</span> <span class='id identifier rubyid_start_rspec_binding_capture'>start_rspec_binding_capture</span>
2752
+ <span class='const'><span class='object_link'><a href="EnhancedExceptionContext.html" title="EnhancedExceptionContext (module)">EnhancedExceptionContext</a></span></span><span class='period'>.</span><span class='id identifier rubyid_clear_all'><span class='object_link'><a href="EnhancedExceptionContext.html#clear_all-instance_method" title="EnhancedExceptionContext#clear_all (method)">clear_all</a></span></span>
3198
2753
  <span class='ivar'>@enabled</span> <span class='op'>=</span> <span class='kw'>true</span> <span class='kw'>if</span> <span class='ivar'>@enabled</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
2754
+ <span class='kw'>return</span> <span class='kw'>unless</span> <span class='ivar'>@enabled</span>
2755
+
3199
2756
  <span class='id identifier rubyid_mutex'>mutex</span><span class='period'>.</span><span class='id identifier rubyid_synchronize'>synchronize</span> <span class='kw'>do</span>
3200
2757
  <span class='ivar'>@rspec_example_binding</span> <span class='op'>=</span> <span class='kw'>nil</span>
3201
2758
  <span class='ivar'>@capture_next_binding</span> <span class='op'>=</span> <span class='kw'>false</span>
@@ -3249,25 +2806,25 @@
3249
2806
  <pre class="lines">
3250
2807
 
3251
2808
 
3252
- 307
3253
- 308
3254
- 309
3255
- 310
3256
- 311
3257
- 312
3258
- 313
3259
- 314</pre>
2809
+ 253
2810
+ 254
2811
+ 255
2812
+ 256
2813
+ 257
2814
+ 258
2815
+ 259
2816
+ 260</pre>
3260
2817
  </td>
3261
2818
  <td>
3262
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 307</span>
2819
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 253</span>
3263
2820
 
3264
2821
  <span class='kw'>def</span> <span class='id identifier rubyid_stop_minitest_binding_capture'>stop_minitest_binding_capture</span>
3265
- <span class='id identifier rubyid_disable_capturing!'>disable_capturing!</span> <span class='kw'>if</span> <span class='id identifier rubyid_capture_limit_exceeded?'>capture_limit_exceeded?</span>
3266
2822
  <span class='id identifier rubyid_mutex'>mutex</span><span class='period'>.</span><span class='id identifier rubyid_synchronize'>synchronize</span> <span class='kw'>do</span>
3267
2823
  <span class='ivar'>@minitest_trace</span><span class='op'>&amp;.</span><span class='id identifier rubyid_disable'>disable</span>
3268
2824
  <span class='ivar'>@minitest_trace</span> <span class='op'>=</span> <span class='kw'>nil</span>
3269
2825
  <span class='id identifier rubyid_convert_binding_to_binding_info'>convert_binding_to_binding_info</span><span class='lparen'>(</span><span class='ivar'>@minitest_test_binding</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='ivar'>@minitest_test_binding</span>
3270
- <span class='kw'>end</span>
2826
+ <span class='comment'># EnhancedExceptionContext.clear_all
2827
+ </span> <span class='kw'>end</span>
3271
2828
  <span class='kw'>end</span></pre>
3272
2829
  </td>
3273
2830
  </tr>
@@ -3289,23 +2846,21 @@
3289
2846
  <pre class="lines">
3290
2847
 
3291
2848
 
3292
- 365
3293
- 366
3294
- 367
3295
- 368
3296
- 369
3297
- 370
3298
- 371
3299
- 372
3300
- 373
3301
- 374
3302
- 375</pre>
2849
+ 314
2850
+ 315
2851
+ 316
2852
+ 317
2853
+ 318
2854
+ 319
2855
+ 320
2856
+ 321
2857
+ 322
2858
+ 323</pre>
3303
2859
  </td>
3304
2860
  <td>
3305
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 365</span>
2861
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 314</span>
3306
2862
 
3307
2863
  <span class='kw'>def</span> <span class='id identifier rubyid_stop_rspec_binding_capture'>stop_rspec_binding_capture</span>
3308
- <span class='id identifier rubyid_disable_capturing!'>disable_capturing!</span> <span class='kw'>if</span> <span class='id identifier rubyid_capture_limit_exceeded?'>capture_limit_exceeded?</span>
3309
2864
  <span class='id identifier rubyid_mutex'>mutex</span><span class='period'>.</span><span class='id identifier rubyid_synchronize'>synchronize</span> <span class='kw'>do</span>
3310
2865
  <span class='ivar'>@rspec_tracepoint</span><span class='op'>&amp;.</span><span class='id identifier rubyid_disable'>disable</span>
3311
2866
  <span class='ivar'>@rspec_tracepoint</span> <span class='op'>=</span> <span class='kw'>nil</span>
@@ -3335,15 +2890,15 @@
3335
2890
  <pre class="lines">
3336
2891
 
3337
2892
 
3338
- 535
3339
- 536
3340
- 537
3341
- 538
3342
- 539
3343
- 540</pre>
2893
+ 475
2894
+ 476
2895
+ 477
2896
+ 478
2897
+ 479
2898
+ 480</pre>
3344
2899
  </td>
3345
2900
  <td>
3346
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 535</span>
2901
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 475</span>
3347
2902
 
3348
2903
  <span class='kw'>def</span> <span class='id identifier rubyid_validate_binding_format'>validate_binding_format</span><span class='lparen'>(</span><span class='id identifier rubyid_binding_info'>binding_info</span><span class='rparen'>)</span>
3349
2904
  <span class='kw'>unless</span> <span class='id identifier rubyid_binding_info'>binding_info</span><span class='period'>.</span><span class='id identifier rubyid_keys'>keys</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='symbol'>:capture_event</span><span class='rparen'>)</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_binding_info'>binding_info</span><span class='lbracket'>[</span><span class='symbol'>:variables</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Hash</span><span class='rparen'>)</span>
@@ -3361,7 +2916,7 @@
3361
2916
  </div>
3362
2917
 
3363
2918
  <div id="footer">
3364
- Generated on Tue Dec 17 15:42:48 2024 by
2919
+ Generated on Tue Dec 17 21:43:58 2024 by
3365
2920
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
3366
2921
  0.9.37 (ruby-3.3.6).
3367
2922
  </div>