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.
- checksums.yaml +4 -4
- data/.yardoc/checksums +2 -2
- data/.yardoc/object_types +0 -0
- data/.yardoc/objects/root.dat +0 -0
- data/doc/Context.html +1 -1
- data/doc/Enhanced/Colors.html +1 -1
- data/doc/Enhanced.html +1 -1
- data/doc/EnhancedErrors.html +454 -899
- data/doc/EnhancedExceptionContext.html +1 -1
- data/doc/Exception.html +1 -1
- data/doc/ExceptionBindingInfos.html +1 -1
- data/doc/Minitest.html +4 -2
- data/doc/_index.html +1 -1
- data/doc/file.README.html +1 -1
- data/doc/index.html +1 -1
- data/doc/method_list.html +25 -81
- data/doc/top-level-namespace.html +4 -6
- data/enhanced_errors.gemspec +1 -1
- data/lib/enhanced/minitest_patch.rb +1 -0
- data/lib/enhanced_errors.rb +21 -77
- metadata +3 -3
data/doc/EnhancedErrors.html
CHANGED
@@ -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'>
|
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'>'</span><span class='tstring_content'>RSpec::Expectations::PositiveExpectationHandler</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>RSpec::Expectations::NegativeExpectationHandler</span><span class='tstring_end'>'</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'>'</span><span class='tstring_content'>CI</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>CI</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
210
|
+
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>JENKINS</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>JENKINS</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
211
|
+
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>GITHUB_ACTIONS</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>GITHUB_ACTIONS</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
212
|
+
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>CIRCLECI</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>CIRCLECI</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
213
|
+
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>TRAVIS</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>TRAVIS</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
214
|
+
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>APPVEYOR</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>APPVEYOR</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
215
|
+
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>GITLAB_CI</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>GITLAB_CI</span><span class='tstring_end'>'</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> ⇒ 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) ⇒ 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> ⇒ 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> ⇒ 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> ⇒ 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) ⇒ 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) ⇒ 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
|
-
|
1267
|
-
|
1268
|
-
|
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
|
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
|
-
|
1310
|
-
|
1311
|
-
|
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
|
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
|
-
|
1353
|
-
|
1354
|
-
|
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
|
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
|
-
|
1396
|
-
|
1397
|
-
|
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
|
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
|
-
|
1439
|
-
|
1440
|
-
|
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
|
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
|
-
|
1482
|
-
|
1483
|
-
|
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
|
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
|
-
|
1519
|
-
|
1520
|
-
|
1521
|
-
|
1522
|
-
|
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
|
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
|
-
|
1553
|
-
|
1554
|
-
|
1555
|
-
|
1556
|
-
|
1557
|
-
|
1558
|
-
|
1559
|
-
|
1560
|
-
|
1561
|
-
|
1562
|
-
|
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
|
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
|
-
|
1599
|
-
|
1600
|
-
|
1601
|
-
|
1602
|
-
|
1603
|
-
|
1604
|
-
|
1605
|
-
|
1606
|
-
|
1607
|
-
|
1608
|
-
|
1609
|
-
|
1610
|
-
|
1611
|
-
|
1612
|
-
|
1613
|
-
|
1614
|
-
|
1615
|
-
|
1616
|
-
|
1617
|
-
|
1618
|
-
|
1619
|
-
|
1620
|
-
|
1621
|
-
|
1622
|
-
|
1623
|
-
|
1624
|
-
|
1625
|
-
|
1626
|
-
|
1627
|
-
|
1628
|
-
|
1629
|
-
|
1630
|
-
|
1631
|
-
|
1632
|
-
|
1633
|
-
|
1634
|
-
|
1635
|
-
|
1636
|
-
|
1637
|
-
|
1638
|
-
|
1639
|
-
|
1640
|
-
|
1641
|
-
|
1642
|
-
</td>
|
1643
|
-
<td>
|
1644
|
-
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line
|
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
|
-
|
1711
|
-
|
1712
|
-
|
1713
|
-
|
1714
|
-
|
1715
|
-
|
1716
|
-
|
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
|
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'>'</span><span class='tstring_end'>'</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="
|
1593
|
+
<h3 class="signature " id="capture_rescue-class_method">
|
1735
1594
|
|
1736
|
-
.<strong>
|
1595
|
+
.<strong>capture_rescue</strong> ⇒ <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
|
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'>@
|
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="
|
1623
|
+
<h3 class="signature " id="capture_rescue=-class_method">
|
1765
1624
|
|
1766
|
-
.<strong>
|
1625
|
+
.<strong>capture_rescue=</strong>(val) ⇒ <tt>Object</tt>
|
1767
1626
|
|
1768
1627
|
|
1769
1628
|
|
@@ -1775,15 +1634,15 @@
|
|
1775
1634
|
<pre class="lines">
|
1776
1635
|
|
1777
1636
|
|
1778
|
-
|
1779
|
-
|
1780
|
-
|
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
|
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
|
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'>@
|
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="
|
1653
|
+
<h3 class="signature " id="class_to_string-class_method">
|
1795
1654
|
|
1796
|
-
.<strong>
|
1655
|
+
.<strong>class_to_string</strong>(klass) ⇒ <tt>Object</tt>
|
1797
1656
|
|
1798
1657
|
|
1799
1658
|
|
1800
1659
|
|
1801
1660
|
|
1802
|
-
</h3><
|
1803
|
-
<
|
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'>></span> <span class='int'>0</span> <span class='op'>&&</span> <span class='id identifier rubyid_capture_events_count'>capture_events_count</span> <span class='op'>>=</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> ⇒ <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) ⇒ <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) ⇒ <tt>Object</tt>
|
1913
|
-
|
1914
|
-
|
1915
|
-
|
1916
1666
|
|
1917
|
-
|
1918
|
-
|
1919
|
-
|
1920
|
-
|
1921
|
-
|
1922
|
-
|
1923
|
-
|
1924
|
-
|
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
|
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'>'</span><span class='tstring_end'>'</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
|
-
|
1965
|
-
|
1966
|
-
|
1967
|
-
|
1968
|
-
|
1969
|
-
|
1970
|
-
|
1971
|
-
|
1972
|
-
|
1973
|
-
|
1974
|
-
|
1975
|
-
|
1976
|
-
|
1977
|
-
|
1978
|
-
|
1979
|
-
|
1980
|
-
|
1981
|
-
|
1982
|
-
|
1983
|
-
|
1984
|
-
|
1985
|
-
|
1986
|
-
|
1987
|
-
|
1988
|
-
|
1989
|
-
|
1990
|
-
|
1991
|
-
|
1992
|
-
|
1993
|
-
|
1994
|
-
|
1995
|
-
|
1996
|
-
|
1997
|
-
|
1998
|
-
|
1999
|
-
|
2000
|
-
|
2001
|
-
|
2002
|
-
|
2003
|
-
|
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
|
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'>"</span><span class='tstring_content'>__FILE__</span><span class='tstring_end'>"</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
|
-
|
2069
|
-
|
2070
|
-
|
2071
|
-
|
2072
|
-
|
2073
|
-
|
2074
|
-
|
2075
|
-
|
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
|
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
|
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'>&</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='
|
2213
|
-
</span> <span class='kw'>if</span> <span class='ivar'>@enabled</span> <span class='op'>&&</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'><</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
|
-
|
2239
|
-
|
2240
|
-
|
2241
|
-
|
2242
|
-
|
2243
|
-
|
2244
|
-
|
2245
|
-
|
2246
|
-
|
2247
|
-
|
2248
|
-
|
2249
|
-
|
2250
|
-
|
2251
|
-
|
2252
|
-
|
2253
|
-
|
2254
|
-
|
2255
|
-
|
2256
|
-
|
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
|
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'>'</span><span class='tstring_end'>'</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
|
-
|
2301
|
-
|
2302
|
-
|
2303
|
-
|
2304
|
-
|
2305
|
-
|
2306
|
-
|
2307
|
-
|
2308
|
-
|
2309
|
-
|
2310
|
-
|
2311
|
-
|
2312
|
-
|
2313
|
-
|
2314
|
-
|
2315
|
-
|
2316
|
-
|
2317
|
-
|
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
|
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> ⇒ <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
|
-
|
2421
|
-
|
2422
|
-
|
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
|
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'>&&</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'>'</span><span class='tstring_content'>Minitest::Test</span><span class='tstring_end'>'</span></span>
|
@@ -2469,12 +2144,12 @@
|
|
2469
2144
|
<pre class="lines">
|
2470
2145
|
|
2471
2146
|
|
2472
|
-
|
2473
|
-
|
2474
|
-
|
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
|
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'>&&</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'>'</span><span class='tstring_content'>rspec</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='rparen'>)</span> <span class='op'>&&</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'>'</span><span class='tstring_content'>_spec.rb</span><span class='tstring_end'>'</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> ⇒ <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) ⇒ <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
|
-
|
2567
|
-
|
2568
|
-
|
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
|
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
|
-
|
2597
|
-
|
2598
|
-
|
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
|
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
|
-
|
2627
|
-
|
2628
|
-
|
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
|
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
|
-
|
2657
|
-
|
2658
|
-
|
2659
|
-
|
2660
|
-
|
2661
|
-
|
2662
|
-
|
2663
|
-
|
2664
|
-
|
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
|
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'>&</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
|
-
|
2699
|
-
|
2700
|
-
|
2701
|
-
|
2702
|
-
|
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
|
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
|
-
|
2733
|
-
|
2734
|
-
|
2735
|
-
|
2736
|
-
|
2737
|
-
|
2738
|
-
|
2739
|
-
|
2740
|
-
|
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
|
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'>&</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
|
-
|
2775
|
-
|
2776
|
-
|
2777
|
-
|
2778
|
-
|
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
|
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
|
-
|
2809
|
-
|
2810
|
-
|
2811
|
-
|
2812
|
-
|
2813
|
-
|
2814
|
-
|
2815
|
-
|
2816
|
-
|
2817
|
-
|
2818
|
-
|
2819
|
-
|
2820
|
-
|
2821
|
-
|
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
|
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'>&&</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
|
-
|
2861
|
-
|
2862
|
-
|
2863
|
-
|
2864
|
-
|
2865
|
-
|
2866
|
-
|
2867
|
-
|
2868
|
-
|
2869
|
-
|
2870
|
-
|
2871
|
-
|
2872
|
-
|
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
|
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
|
-
|
2911
|
-
|
2912
|
-
|
2913
|
-
|
2914
|
-
|
2915
|
-
|
2916
|
-
|
2917
|
-
|
2918
|
-
|
2919
|
-
|
2920
|
-
|
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
|
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
|
-
|
2981
|
-
|
2982
|
-
|
2983
|
-
|
2984
|
-
|
2985
|
-
|
2986
|
-
|
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
|
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'>'</span><span class='tstring_content'>CI</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>CI</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
3004
|
-
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>JENKINS</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>JENKINS</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
3005
|
-
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>GITHUB_ACTIONS</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>GITHUB_ACTIONS</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
3006
|
-
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>CIRCLECI</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>CIRCLECI</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
3007
|
-
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>TRAVIS</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>TRAVIS</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
3008
|
-
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>APPVEYOR</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>APPVEYOR</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
3009
|
-
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>GITLAB_CI</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>GITLAB_CI</span><span class='tstring_end'>'</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'>'</span><span class='tstring_content'>true</span><span class='tstring_end'>'</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) ⇒ <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='
|
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'>&&</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'>'</span><span class='tstring_content'>true</span><span class='tstring_end'>'</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
|
-
|
3079
|
-
|
3080
|
-
|
3081
|
-
|
3082
|
-
|
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
|
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
|
-
|
3113
|
-
|
3114
|
-
|
3115
|
-
|
3116
|
-
|
3117
|
-
|
3118
|
-
|
3119
|
-
|
3120
|
-
|
3121
|
-
|
3122
|
-
|
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
|
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'>'</span><span class='tstring_content'>test_</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='op'>&&</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
|
-
|
3159
|
-
|
3160
|
-
|
3161
|
-
|
3162
|
-
|
3163
|
-
|
3164
|
-
|
3165
|
-
|
3166
|
-
|
3167
|
-
|
3168
|
-
|
3169
|
-
|
3170
|
-
|
3171
|
-
|
3172
|
-
|
3173
|
-
|
3174
|
-
|
3175
|
-
|
3176
|
-
|
3177
|
-
|
3178
|
-
|
3179
|
-
|
3180
|
-
|
3181
|
-
|
3182
|
-
|
3183
|
-
|
3184
|
-
|
3185
|
-
|
3186
|
-
|
3187
|
-
|
3188
|
-
|
3189
|
-
|
3190
|
-
|
3191
|
-
|
3192
|
-
|
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
|
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
|
-
|
3253
|
-
|
3254
|
-
|
3255
|
-
|
3256
|
-
|
3257
|
-
|
3258
|
-
|
3259
|
-
|
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
|
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'>&.</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
|
-
|
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
|
-
|
3293
|
-
|
3294
|
-
|
3295
|
-
|
3296
|
-
|
3297
|
-
|
3298
|
-
|
3299
|
-
|
3300
|
-
|
3301
|
-
|
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
|
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'>&.</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
|
-
|
3339
|
-
|
3340
|
-
|
3341
|
-
|
3342
|
-
|
3343
|
-
|
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
|
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'>&&</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
|
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>
|