enhanced_errors 2.2.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -118,10 +118,10 @@
118
118
  </dt>
119
119
  <dd><pre class="code"><span class='tstring'><span class='regexp_beg'>%r{</span><span class='tstring_content'>[\/\\]gems[\/\\]</span><span class='regexp_end'>}</span></span></pre></dd>
120
120
 
121
- <dt id="DEFAULT_MAX_LENGTH-constant" class="">DEFAULT_MAX_LENGTH =
121
+ <dt id="DEFAULT_MAX_CAPTURE_LENGTH-constant" class="">DEFAULT_MAX_CAPTURE_LENGTH =
122
122
 
123
123
  </dt>
124
- <dd><pre class="code"><span class='int'>2000</span></pre></dd>
124
+ <dd><pre class="code"><span class='int'>2500</span></pre></dd>
125
125
 
126
126
  <dt id="MAX_BINDING_INFOS-constant" class="">MAX_BINDING_INFOS =
127
127
 
@@ -653,7 +653,7 @@
653
653
  <li class="public ">
654
654
  <span class="summary_signature">
655
655
 
656
- <a href="#enforce_capture_limit-class_method" title="enforce_capture_limit (class method)">.<strong>enforce_capture_limit</strong> &#x21d2; Object </a>
656
+ <a href="#enhance_exceptions!-class_method" title="enhance_exceptions! (class method)">.<strong>enhance_exceptions!</strong>(enabled: true, debug: false, capture_events: nil, override_messages: false, **options, &amp;block) &#x21d2; Object </a>
657
657
 
658
658
 
659
659
 
@@ -675,7 +675,7 @@
675
675
  <li class="public ">
676
676
  <span class="summary_signature">
677
677
 
678
- <a href="#enhance_exceptions!-class_method" title="enhance_exceptions! (class method)">.<strong>enhance_exceptions!</strong>(enabled: true, debug: false, capture_events: nil, override_messages: false, **options, &amp;block) &#x21d2; Object </a>
678
+ <a href="#format-class_method" title="format (class method)">.<strong>format</strong>(captured_binding_infos = [], output_format = get_default_format_for_environment) &#x21d2; Object </a>
679
679
 
680
680
 
681
681
 
@@ -697,7 +697,7 @@
697
697
  <li class="public ">
698
698
  <span class="summary_signature">
699
699
 
700
- <a href="#format-class_method" title="format (class method)">.<strong>format</strong>(captured_binding_infos = [], output_format = get_default_format_for_environment) &#x21d2; Object </a>
700
+ <a href="#get_default_format_for_environment-class_method" title="get_default_format_for_environment (class method)">.<strong>get_default_format_for_environment</strong> &#x21d2; Object </a>
701
701
 
702
702
 
703
703
 
@@ -719,7 +719,7 @@
719
719
  <li class="public ">
720
720
  <span class="summary_signature">
721
721
 
722
- <a href="#get_default_format_for_environment-class_method" title="get_default_format_for_environment (class method)">.<strong>get_default_format_for_environment</strong> &#x21d2; Object </a>
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
723
 
724
724
 
725
725
 
@@ -741,7 +741,7 @@
741
741
  <li class="public ">
742
742
  <span class="summary_signature">
743
743
 
744
- <a href="#increment_capture_events_count-class_method" title="increment_capture_events_count (class method)">.<strong>increment_capture_events_count</strong> &#x21d2; Object </a>
744
+ <a href="#is_a_minitest%3F-class_method" title="is_a_minitest? (class method)">.<strong>is_a_minitest?</strong>(klass) &#x21d2; Boolean </a>
745
745
 
746
746
 
747
747
 
@@ -763,7 +763,7 @@
763
763
  <li class="public ">
764
764
  <span class="summary_signature">
765
765
 
766
- <a href="#is_a_minitest%3F-class_method" title="is_a_minitest? (class method)">.<strong>is_a_minitest?</strong>(klass) &#x21d2; Boolean </a>
766
+ <a href="#is_rspec_example%3F-class_method" title="is_rspec_example? (class method)">.<strong>is_rspec_example?</strong>(tracepoint) &#x21d2; Boolean </a>
767
767
 
768
768
 
769
769
 
@@ -785,7 +785,7 @@
785
785
  <li class="public ">
786
786
  <span class="summary_signature">
787
787
 
788
- <a href="#is_rspec_example%3F-class_method" title="is_rspec_example? (class method)">.<strong>is_rspec_example?</strong>(tracepoint) &#x21d2; Boolean </a>
788
+ <a href="#max_capture_events-class_method" title="max_capture_events (class method)">.<strong>max_capture_events</strong> &#x21d2; Object </a>
789
789
 
790
790
 
791
791
 
@@ -807,7 +807,7 @@
807
807
  <li class="public ">
808
808
  <span class="summary_signature">
809
809
 
810
- <a href="#max_capture_events-class_method" title="max_capture_events (class method)">.<strong>max_capture_events</strong> &#x21d2; Object </a>
810
+ <a href="#max_capture_events=-class_method" title="max_capture_events= (class method)">.<strong>max_capture_events=</strong>(value) &#x21d2; Object </a>
811
811
 
812
812
 
813
813
 
@@ -829,7 +829,7 @@
829
829
  <li class="public ">
830
830
  <span class="summary_signature">
831
831
 
832
- <a href="#max_capture_events=-class_method" title="max_capture_events= (class method)">.<strong>max_capture_events=</strong>(value) &#x21d2; Object </a>
832
+ <a href="#max_capture_length-class_method" title="max_capture_length (class method)">.<strong>max_capture_length</strong> &#x21d2; Object </a>
833
833
 
834
834
 
835
835
 
@@ -851,7 +851,7 @@
851
851
  <li class="public ">
852
852
  <span class="summary_signature">
853
853
 
854
- <a href="#max_length-class_method" title="max_length (class method)">.<strong>max_length</strong>(value = nil) &#x21d2; Object </a>
854
+ <a href="#max_capture_length=-class_method" title="max_capture_length= (class method)">.<strong>max_capture_length=</strong>(val) &#x21d2; Object </a>
855
855
 
856
856
 
857
857
 
@@ -1515,14 +1515,14 @@
1515
1515
  <pre class="lines">
1516
1516
 
1517
1517
 
1518
- 231
1519
- 232
1520
- 233
1521
- 234
1522
- 235</pre>
1518
+ 220
1519
+ 221
1520
+ 222
1521
+ 223
1522
+ 224</pre>
1523
1523
  </td>
1524
1524
  <td>
1525
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 231</span>
1525
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 220</span>
1526
1526
 
1527
1527
  <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
1528
  <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 +1549,20 @@
1549
1549
  <pre class="lines">
1550
1550
 
1551
1551
 
1552
- 539
1553
- 540
1554
- 541
1555
- 542
1556
- 543
1557
- 544
1558
- 545
1559
- 546
1560
- 547
1561
- 548
1562
- 549</pre>
1552
+ 523
1553
+ 524
1554
+ 525
1555
+ 526
1556
+ 527
1557
+ 528
1558
+ 529
1559
+ 530
1560
+ 531
1561
+ 532
1562
+ 533</pre>
1563
1563
  </td>
1564
1564
  <td>
1565
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 539</span>
1565
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 523</span>
1566
1566
 
1567
1567
  <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
1568
  <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,6 +1595,22 @@
1595
1595
  <pre class="lines">
1596
1596
 
1597
1597
 
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
1598
1614
  558
1599
1615
  559
1600
1616
  560
@@ -1622,26 +1638,10 @@
1622
1638
  582
1623
1639
  583
1624
1640
  584
1625
- 585
1626
- 586
1627
- 587
1628
- 588
1629
- 589
1630
- 590
1631
- 591
1632
- 592
1633
- 593
1634
- 594
1635
- 595
1636
- 596
1637
- 597
1638
- 598
1639
- 599
1640
- 600
1641
- 601</pre>
1642
- </td>
1643
- <td>
1644
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 558</span>
1641
+ 585</pre>
1642
+ </td>
1643
+ <td>
1644
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 542</span>
1645
1645
 
1646
1646
  <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
1647
  <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>
@@ -1676,7 +1676,7 @@
1676
1676
  <span class='kw'>end</span>
1677
1677
 
1678
1678
  <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>
1679
- <span class='id identifier rubyid_max_len'>max_len</span> <span class='op'>=</span> <span class='ivar'>@max_length</span> <span class='op'>||</span> <span class='const'><span class='object_link'><a href="#DEFAULT_MAX_LENGTH-constant" title="EnhancedErrors::DEFAULT_MAX_LENGTH (constant)">DEFAULT_MAX_LENGTH</a></span></span>
1679
+ <span class='id identifier rubyid_max_len'>max_len</span> <span class='op'>=</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>
1680
1680
  <span class='kw'>if</span> <span class='id identifier rubyid_result'>result</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span> <span class='op'>&gt;</span> <span class='id identifier rubyid_max_len'>max_len</span>
1681
1681
  <span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='id identifier rubyid_result'>result</span><span class='lbracket'>[</span><span class='int'>0</span><span class='op'>...</span><span class='id identifier rubyid_max_len'>max_len</span><span class='rbracket'>]</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>... (truncated)</span><span class='tstring_end'>&quot;</span></span>
1682
1682
  <span class='kw'>end</span>
@@ -1707,16 +1707,16 @@
1707
1707
  <pre class="lines">
1708
1708
 
1709
1709
 
1710
- 496
1711
- 497
1712
- 498
1713
- 499
1714
- 500
1715
- 501
1716
- 502</pre>
1710
+ 480
1711
+ 481
1712
+ 482
1713
+ 483
1714
+ 484
1715
+ 485
1716
+ 486</pre>
1717
1717
  </td>
1718
1718
  <td>
1719
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 496</span>
1719
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 480</span>
1720
1720
 
1721
1721
  <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
1722
  <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>
@@ -1827,14 +1827,14 @@
1827
1827
  <pre class="lines">
1828
1828
 
1829
1829
 
1830
- 146
1831
- 147
1832
- 148
1833
1830
  149
1834
- 150</pre>
1831
+ 150
1832
+ 151
1833
+ 152
1834
+ 153</pre>
1835
1835
  </td>
1836
1836
  <td>
1837
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 146</span>
1837
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 149</span>
1838
1838
 
1839
1839
  <span class='kw'>def</span> <span class='id identifier rubyid_capture_limit_exceeded?'>capture_limit_exceeded?</span>
1840
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>
@@ -1921,17 +1921,17 @@
1921
1921
  <pre class="lines">
1922
1922
 
1923
1923
 
1924
- 329
1925
- 330
1926
- 331
1927
- 332
1928
- 333
1929
- 334
1930
- 335
1931
- 336</pre>
1924
+ 316
1925
+ 317
1926
+ 318
1927
+ 319
1928
+ 320
1929
+ 321
1930
+ 322
1931
+ 323</pre>
1932
1932
  </td>
1933
1933
  <td>
1934
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 329</span>
1934
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 316</span>
1935
1935
 
1936
1936
  <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
1937
  <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,6 +1961,22 @@
1961
1961
  <pre class="lines">
1962
1962
 
1963
1963
 
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
1964
1980
  393
1965
1981
  394
1966
1982
  395
@@ -1984,26 +2000,10 @@
1984
2000
  413
1985
2001
  414
1986
2002
  415
1987
- 416
1988
- 417
1989
- 418
1990
- 419
1991
- 420
1992
- 421
1993
- 422
1994
- 423
1995
- 424
1996
- 425
1997
- 426
1998
- 427
1999
- 428
2000
- 429
2001
- 430
2002
- 431
2003
- 432</pre>
2003
+ 416</pre>
2004
2004
  </td>
2005
2005
  <td>
2006
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 393</span>
2006
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 377</span>
2007
2007
 
2008
2008
  <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
2009
  <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 +2065,17 @@
2065
2065
  <pre class="lines">
2066
2066
 
2067
2067
 
2068
- 152
2069
- 153
2070
- 154
2071
2068
  155
2072
2069
  156
2073
2070
  157
2074
2071
  158
2075
- 159</pre>
2072
+ 159
2073
+ 160
2074
+ 161
2075
+ 162</pre>
2076
2076
  </td>
2077
2077
  <td>
2078
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 152</span>
2078
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 155</span>
2079
2079
 
2080
2080
  <span class='kw'>def</span> <span class='id identifier rubyid_disable_capturing!'>disable_capturing!</span>
2081
2081
  <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>
@@ -2088,40 +2088,6 @@
2088
2088
  </td>
2089
2089
  </tr>
2090
2090
  </table>
2091
- </div>
2092
-
2093
- <div class="method_details ">
2094
- <h3 class="signature " id="enforce_capture_limit-class_method">
2095
-
2096
- .<strong>enforce_capture_limit</strong> &#x21d2; <tt>Object</tt>
2097
-
2098
-
2099
-
2100
-
2101
-
2102
- </h3><table class="source_code">
2103
- <tr>
2104
- <td>
2105
- <pre class="lines">
2106
-
2107
-
2108
- 140
2109
- 141
2110
- 142
2111
- 143
2112
- 144</pre>
2113
- </td>
2114
- <td>
2115
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 140</span>
2116
-
2117
- <span class='kw'>def</span> <span class='id identifier rubyid_enforce_capture_limit'>enforce_capture_limit</span>
2118
- <span class='id identifier rubyid_exceeded'>exceeded</span> <span class='op'>=</span> <span class='id identifier rubyid_capture_limit_exceeded?'>capture_limit_exceeded?</span>
2119
- <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>
2120
- <span class='id identifier rubyid_exceeded'>exceeded</span>
2121
- <span class='kw'>end</span></pre>
2122
- </td>
2123
- </tr>
2124
- </table>
2125
2091
  </div>
2126
2092
 
2127
2093
  <div class="method_details ">
@@ -2139,6 +2105,17 @@
2139
2105
  <pre class="lines">
2140
2106
 
2141
2107
 
2108
+ 226
2109
+ 227
2110
+ 228
2111
+ 229
2112
+ 230
2113
+ 231
2114
+ 232
2115
+ 233
2116
+ 234
2117
+ 235
2118
+ 236
2142
2119
  237
2143
2120
  238
2144
2121
  239
@@ -2180,21 +2157,10 @@
2180
2157
  275
2181
2158
  276
2182
2159
  277
2183
- 278
2184
- 279
2185
- 280
2186
- 281
2187
- 282
2188
- 283
2189
- 284
2190
- 285
2191
- 286
2192
- 287
2193
- 288
2194
- 289</pre>
2160
+ 278</pre>
2195
2161
  </td>
2196
2162
  <td>
2197
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 237</span>
2163
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 226</span>
2198
2164
 
2199
2165
  <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>
2200
2166
  <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>
@@ -2269,28 +2235,28 @@
2269
2235
  <pre class="lines">
2270
2236
 
2271
2237
 
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
2272
2254
  476
2273
2255
  477
2274
- 478
2275
- 479
2276
- 480
2277
- 481
2278
- 482
2279
- 483
2280
- 484
2281
- 485
2282
- 486
2283
- 487
2284
- 488
2285
- 489
2286
- 490
2287
- 491
2288
- 492
2289
- 493
2290
- 494</pre>
2256
+ 478</pre>
2291
2257
  </td>
2292
2258
  <td>
2293
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 476</span>
2259
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 460</span>
2294
2260
 
2295
2261
  <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>
2296
2262
  <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>
@@ -2331,27 +2297,27 @@
2331
2297
  <pre class="lines">
2332
2298
 
2333
2299
 
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
2334
2316
  504
2335
- 505
2336
- 506
2337
- 507
2338
- 508
2339
- 509
2340
- 510
2341
- 511
2342
- 512
2343
- 513
2344
- 514
2345
- 515
2346
- 516
2347
- 517
2348
- 518
2349
- 519
2350
- 520
2351
- 521</pre>
2317
+ 505</pre>
2352
2318
  </td>
2353
2319
  <td>
2354
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 504</span>
2320
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 488</span>
2355
2321
 
2356
2322
  <span class='kw'>def</span> <span class='id identifier rubyid_get_default_format_for_environment'>get_default_format_for_environment</span>
2357
2323
  <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>
@@ -2391,16 +2357,16 @@
2391
2357
  <pre class="lines">
2392
2358
 
2393
2359
 
2394
- 161
2395
- 162
2396
- 163
2397
2360
  164
2398
2361
  165
2399
2362
  166
2400
- 167</pre>
2363
+ 167
2364
+ 168
2365
+ 169
2366
+ 170</pre>
2401
2367
  </td>
2402
2368
  <td>
2403
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 161</span>
2369
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 164</span>
2404
2370
 
2405
2371
  <span class='kw'>def</span> <span class='id identifier rubyid_increment_capture_events_count'>increment_capture_events_count</span>
2406
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>
@@ -2451,12 +2417,12 @@
2451
2417
  <pre class="lines">
2452
2418
 
2453
2419
 
2454
- 302
2455
- 303
2456
- 304</pre>
2420
+ 291
2421
+ 292
2422
+ 293</pre>
2457
2423
  </td>
2458
2424
  <td>
2459
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 302</span>
2425
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 291</span>
2460
2426
 
2461
2427
  <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>
2462
2428
  <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>
@@ -2503,12 +2469,12 @@
2503
2469
  <pre class="lines">
2504
2470
 
2505
2471
 
2506
- 338
2507
- 339
2508
- 340</pre>
2472
+ 325
2473
+ 326
2474
+ 327</pre>
2509
2475
  </td>
2510
2476
  <td>
2511
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 338</span>
2477
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 325</span>
2512
2478
 
2513
2479
  <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>
2514
2480
  <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>
@@ -2563,14 +2529,14 @@
2563
2529
  <pre class="lines">
2564
2530
 
2565
2531
 
2566
- 134
2567
- 135
2568
- 136
2569
- 137
2570
- 138</pre>
2532
+ 143
2533
+ 144
2534
+ 145
2535
+ 146
2536
+ 147</pre>
2571
2537
  </td>
2572
2538
  <td>
2573
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 134</span>
2539
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 143</span>
2574
2540
 
2575
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>
2576
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>
@@ -2583,9 +2549,9 @@
2583
2549
  </div>
2584
2550
 
2585
2551
  <div class="method_details ">
2586
- <h3 class="signature " id="max_length-class_method">
2552
+ <h3 class="signature " id="max_capture_length-class_method">
2587
2553
 
2588
- .<strong>max_length</strong>(value = nil) &#x21d2; <tt>Object</tt>
2554
+ .<strong>max_capture_length</strong> &#x21d2; <tt>Object</tt>
2589
2555
 
2590
2556
 
2591
2557
 
@@ -2597,29 +2563,45 @@
2597
2563
  <pre class="lines">
2598
2564
 
2599
2565
 
2600
- 182
2601
- 183
2602
- 184
2603
- 185
2604
- 186
2605
- 187
2606
- 188
2607
- 189
2608
- 190
2609
- 191</pre>
2566
+ 135
2567
+ 136
2568
+ 137</pre>
2610
2569
  </td>
2611
2570
  <td>
2612
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 182</span>
2571
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 135</span>
2613
2572
 
2614
- <span class='kw'>def</span> <span class='id identifier rubyid_max_length'>max_length</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
2615
- <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>
2616
- <span class='kw'>if</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
2617
- <span class='ivar'>@max_length</span> <span class='op'>||=</span> <span class='const'><span class='object_link'><a href="#DEFAULT_MAX_LENGTH-constant" title="EnhancedErrors::DEFAULT_MAX_LENGTH (constant)">DEFAULT_MAX_LENGTH</a></span></span>
2618
- <span class='kw'>else</span>
2619
- <span class='ivar'>@max_length</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span>
2620
- <span class='kw'>end</span>
2621
- <span class='ivar'>@max_length</span>
2622
- <span class='kw'>end</span>
2573
+ <span class='kw'>def</span> <span class='id identifier rubyid_max_capture_length'>max_capture_length</span>
2574
+ <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>
2575
+ <span class='kw'>end</span></pre>
2576
+ </td>
2577
+ </tr>
2578
+ </table>
2579
+ </div>
2580
+
2581
+ <div class="method_details ">
2582
+ <h3 class="signature " id="max_capture_length=-class_method">
2583
+
2584
+ .<strong>max_capture_length=</strong>(val) &#x21d2; <tt>Object</tt>
2585
+
2586
+
2587
+
2588
+
2589
+
2590
+ </h3><table class="source_code">
2591
+ <tr>
2592
+ <td>
2593
+ <pre class="lines">
2594
+
2595
+
2596
+ 139
2597
+ 140
2598
+ 141</pre>
2599
+ </td>
2600
+ <td>
2601
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 139</span>
2602
+
2603
+ <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
+ <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
2605
  <span class='kw'>end</span></pre>
2624
2606
  </td>
2625
2607
  </tr>
@@ -2671,18 +2653,18 @@
2671
2653
  <pre class="lines">
2672
2654
 
2673
2655
 
2674
- 444
2675
- 445
2676
- 446
2677
- 447
2678
- 448
2679
- 449
2680
- 450
2681
- 451
2682
- 452</pre>
2656
+ 428
2657
+ 429
2658
+ 430
2659
+ 431
2660
+ 432
2661
+ 433
2662
+ 434
2663
+ 435
2664
+ 436</pre>
2683
2665
  </td>
2684
2666
  <td>
2685
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 444</span>
2667
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 428</span>
2686
2668
 
2687
2669
  <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>
2688
2670
  <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>
@@ -2713,14 +2695,14 @@
2713
2695
  <pre class="lines">
2714
2696
 
2715
2697
 
2716
- 454
2717
- 455
2718
- 456
2719
- 457
2720
- 458</pre>
2698
+ 438
2699
+ 439
2700
+ 440
2701
+ 441
2702
+ 442</pre>
2721
2703
  </td>
2722
2704
  <td>
2723
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 454</span>
2705
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 438</span>
2724
2706
 
2725
2707
  <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>
2726
2708
  <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>
@@ -2747,18 +2729,18 @@
2747
2729
  <pre class="lines">
2748
2730
 
2749
2731
 
2750
- 460
2751
- 461
2752
- 462
2753
- 463
2754
- 464
2755
- 465
2756
- 466
2757
- 467
2758
- 468</pre>
2732
+ 444
2733
+ 445
2734
+ 446
2735
+ 447
2736
+ 448
2737
+ 449
2738
+ 450
2739
+ 451
2740
+ 452</pre>
2759
2741
  </td>
2760
2742
  <td>
2761
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 460</span>
2743
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 444</span>
2762
2744
 
2763
2745
  <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>
2764
2746
  <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>
@@ -2789,14 +2771,14 @@
2789
2771
  <pre class="lines">
2790
2772
 
2791
2773
 
2792
- 470
2793
- 471
2794
- 472
2795
- 473
2796
- 474</pre>
2774
+ 454
2775
+ 455
2776
+ 456
2777
+ 457
2778
+ 458</pre>
2797
2779
  </td>
2798
2780
  <td>
2799
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 470</span>
2781
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 454</span>
2800
2782
 
2801
2783
  <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>
2802
2784
  <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>
@@ -2823,39 +2805,33 @@
2823
2805
  <pre class="lines">
2824
2806
 
2825
2807
 
2808
+ 205
2809
+ 206
2810
+ 207
2811
+ 208
2812
+ 209
2813
+ 210
2814
+ 211
2815
+ 212
2826
2816
  213
2827
2817
  214
2828
2818
  215
2829
2819
  216
2830
2820
  217
2831
- 218
2832
- 219
2833
- 220
2834
- 221
2835
- 222
2836
- 223
2837
- 224
2838
- 225
2839
- 226
2840
- 227
2841
- 228
2842
- 229</pre>
2821
+ 218</pre>
2843
2822
  </td>
2844
2823
  <td>
2845
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 213</span>
2824
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 205</span>
2846
2825
 
2847
2826
  <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>
2848
2827
  <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>
2849
- <span class='id identifier rubyid_rspec_binding'>rspec_binding</span> <span class='op'>=</span> <span class='op'>!</span><span class='lparen'>(</span><span class='id identifier rubyid_binding_or_bindings'>binding_or_bindings</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>||</span> <span class='id identifier rubyid_binding_or_bindings'>binding_or_bindings</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span><span class='rparen'>)</span>
2828
+ <span class='id identifier rubyid_test_binding'>test_binding</span> <span class='op'>=</span> <span class='op'>!</span><span class='lparen'>(</span><span class='id identifier rubyid_binding_or_bindings'>binding_or_bindings</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>||</span> <span class='id identifier rubyid_binding_or_bindings'>binding_or_bindings</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span><span class='rparen'>)</span>
2850
2829
  <span class='id identifier rubyid_exception_binding'>exception_binding</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='id identifier rubyid_exception'>exception</span><span class='period'>.</span><span class='id identifier rubyid_binding_infos'>binding_infos</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span> <span class='op'>&gt;</span> <span class='int'>0</span><span class='rparen'>)</span>
2851
2830
  <span class='id identifier rubyid_has_message'>has_message</span> <span class='op'>=</span> <span class='op'>!</span><span class='lparen'>(</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'>:unaltered_message</span><span class='rparen'>)</span><span class='rparen'>)</span>
2852
- <span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>unless</span> <span class='lparen'>(</span><span class='id identifier rubyid_rspec_binding'>rspec_binding</span> <span class='op'>||</span> <span class='id identifier rubyid_exception_binding'>exception_binding</span><span class='rparen'>)</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_has_message'>has_message</span>
2831
+ <span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>unless</span> <span class='lparen'>(</span><span class='id identifier rubyid_test_binding'>test_binding</span> <span class='op'>||</span> <span class='id identifier rubyid_exception_binding'>exception_binding</span><span class='rparen'>)</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_has_message'>has_message</span>
2853
2832
 
2854
2833
  <span class='id identifier rubyid_variable_str'>variable_str</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="" title="EnhancedErrors (class)">EnhancedErrors</a></span></span><span class='period'>.</span><span class='id identifier rubyid_format'><span class='object_link'><a href="#format-class_method" title="EnhancedErrors.format (method)">format</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_binding_or_bindings'>binding_or_bindings</span><span class='rparen'>)</span>
2855
2834
  <span class='id identifier rubyid_message_str'>message_str</span> <span class='op'>=</span> <span class='id identifier rubyid_exception'>exception</span><span class='period'>.</span><span class='id identifier rubyid_message'>message</span>
2856
- <span class='kw'>if</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'>:captured_variables</span><span class='rparen'>)</span> <span class='op'>&amp;&amp;</span> <span class='op'>!</span><span class='id identifier rubyid_message_str'>message_str</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='id identifier rubyid_exception'>exception</span><span class='period'>.</span><span class='id identifier rubyid_captured_variables'>captured_variables</span><span class='rparen'>)</span>
2857
- <span class='id identifier rubyid_message_str'>message_str</span> <span class='op'>+=</span> <span class='id identifier rubyid_exception'>exception</span><span class='period'>.</span><span class='id identifier rubyid_captured_variables'>captured_variables</span>
2858
- <span class='kw'>end</span>
2859
2835
  <span class='id identifier rubyid_exception'>exception</span><span class='period'>.</span><span class='id identifier rubyid_define_singleton_method'>define_singleton_method</span><span class='lparen'>(</span><span class='symbol'>:unaltered_message</span><span class='rparen'>)</span> <span class='lbrace'>{</span> <span class='id identifier rubyid_message_str'>message_str</span> <span class='rbrace'>}</span>
2860
2836
  <span class='id identifier rubyid_exception'>exception</span><span class='period'>.</span><span class='id identifier rubyid_define_singleton_method'>define_singleton_method</span><span class='lparen'>(</span><span class='symbol'>:message</span><span class='rparen'>)</span> <span class='kw'>do</span>
2861
2837
  <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_message_str'>message_str</span><span class='embexpr_end'>}</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_variable_str'>variable_str</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
@@ -2881,22 +2857,22 @@
2881
2857
  <pre class="lines">
2882
2858
 
2883
2859
 
2860
+ 191
2861
+ 192
2862
+ 193
2863
+ 194
2864
+ 195
2865
+ 196
2866
+ 197
2867
+ 198
2884
2868
  199
2885
2869
  200
2886
2870
  201
2887
2871
  202
2888
- 203
2889
- 204
2890
- 205
2891
- 206
2892
- 207
2893
- 208
2894
- 209
2895
- 210
2896
- 211</pre>
2872
+ 203</pre>
2897
2873
  </td>
2898
2874
  <td>
2899
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 199</span>
2875
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 191</span>
2900
2876
 
2901
2877
  <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>
2902
2878
  <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>
@@ -2931,9 +2907,6 @@
2931
2907
  <pre class="lines">
2932
2908
 
2933
2909
 
2934
- 169
2935
- 170
2936
- 171
2937
2910
  172
2938
2911
  173
2939
2912
  174
@@ -2942,10 +2915,13 @@
2942
2915
  177
2943
2916
  178
2944
2917
  179
2945
- 180</pre>
2918
+ 180
2919
+ 181
2920
+ 182
2921
+ 183</pre>
2946
2922
  </td>
2947
2923
  <td>
2948
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 169</span>
2924
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 172</span>
2949
2925
 
2950
2926
  <span class='kw'>def</span> <span class='id identifier rubyid_reset!'>reset!</span>
2951
2927
  <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,24 +2977,24 @@
3001
2977
  <pre class="lines">
3002
2978
 
3003
2979
 
3004
- 523
3005
- 524
3006
- 525
3007
- 526
3008
- 527
3009
- 528
3010
- 529
3011
- 530
3012
- 531
3013
- 532
3014
- 533
3015
- 534
3016
- 535
3017
- 536
3018
- 537</pre>
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>
3019
2995
  </td>
3020
2996
  <td>
3021
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 523</span>
2997
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 507</span>
3022
2998
 
3023
2999
  <span class='kw'>def</span> <span class='id identifier rubyid_running_in_ci?'>running_in_ci?</span>
3024
3000
  <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>
@@ -3055,19 +3031,19 @@
3055
3031
  <pre class="lines">
3056
3032
 
3057
3033
 
3058
- 291
3059
- 292
3060
- 293
3061
- 294
3062
- 295
3063
- 296
3064
- 297
3065
- 298
3066
- 299
3067
- 300</pre>
3034
+ 280
3035
+ 281
3036
+ 282
3037
+ 283
3038
+ 284
3039
+ 285
3040
+ 286
3041
+ 287
3042
+ 288
3043
+ 289</pre>
3068
3044
  </td>
3069
3045
  <td>
3070
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 291</span>
3046
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 280</span>
3071
3047
 
3072
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>
3073
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>
@@ -3099,14 +3075,14 @@
3099
3075
  <pre class="lines">
3100
3076
 
3101
3077
 
3102
- 193
3103
- 194
3104
- 195
3105
- 196
3106
- 197</pre>
3078
+ 185
3079
+ 186
3080
+ 187
3081
+ 188
3082
+ 189</pre>
3107
3083
  </td>
3108
3084
  <td>
3109
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 193</span>
3085
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 185</span>
3110
3086
 
3111
3087
  <span class='kw'>def</span> <span class='id identifier rubyid_skip_list'>skip_list</span>
3112
3088
  <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>
@@ -3133,32 +3109,28 @@
3133
3109
  <pre class="lines">
3134
3110
 
3135
3111
 
3136
- 306
3137
- 307
3138
- 308
3139
- 309
3140
- 310
3141
- 311
3142
- 312
3143
- 313
3144
- 314
3145
- 315
3146
- 316
3147
- 317
3148
- 318</pre>
3112
+ 295
3113
+ 296
3114
+ 297
3115
+ 298
3116
+ 299
3117
+ 300
3118
+ 301
3119
+ 302
3120
+ 303
3121
+ 304
3122
+ 305</pre>
3149
3123
  </td>
3150
3124
  <td>
3151
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 306</span>
3125
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 295</span>
3152
3126
 
3153
3127
  <span class='kw'>def</span> <span class='id identifier rubyid_start_minitest_binding_capture'>start_minitest_binding_capture</span>
3154
3128
  <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>
3155
- <span class='kw'>return</span> <span class='kw'>if</span> <span class='id identifier rubyid_enforce_capture_limit'>enforce_capture_limit</span>
3156
3129
  <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>
3157
3130
  <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>
3158
3131
  <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>
3159
3132
  <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>
3160
3133
  <span class='ivar'>@minitest_test_binding</span> <span class='op'>=</span> <span class='id identifier rubyid_tp'>tp</span><span class='period'>.</span><span class='id identifier rubyid_binding'>binding</span>
3161
- <span class='id identifier rubyid_increment_capture_events_count'>increment_capture_events_count</span>
3162
3134
  <span class='kw'>end</span>
3163
3135
  <span class='ivar'>@minitest_trace</span><span class='period'>.</span><span class='id identifier rubyid_enable'>enable</span>
3164
3136
  <span class='kw'>end</span>
@@ -3183,6 +3155,19 @@
3183
3155
  <pre class="lines">
3184
3156
 
3185
3157
 
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
3186
3171
  342
3187
3172
  343
3188
3173
  344
@@ -3204,29 +3189,12 @@
3204
3189
  360
3205
3190
  361
3206
3191
  362
3207
- 363
3208
- 364
3209
- 365
3210
- 366
3211
- 367
3212
- 368
3213
- 369
3214
- 370
3215
- 371
3216
- 372
3217
- 373
3218
- 374
3219
- 375
3220
- 376
3221
- 377
3222
- 378
3223
- 379</pre>
3192
+ 363</pre>
3224
3193
  </td>
3225
3194
  <td>
3226
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 342</span>
3195
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 329</span>
3227
3196
 
3228
3197
  <span class='kw'>def</span> <span class='id identifier rubyid_start_rspec_binding_capture'>start_rspec_binding_capture</span>
3229
- <span class='kw'>return</span> <span class='kw'>if</span> <span class='id identifier rubyid_enforce_capture_limit'>enforce_capture_limit</span>
3230
3198
  <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>
3231
3199
  <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>
3232
3200
  <span class='ivar'>@rspec_example_binding</span> <span class='op'>=</span> <span class='kw'>nil</span>
@@ -3244,10 +3212,8 @@
3244
3212
  <span class='kw'>next</span>
3245
3213
  <span class='kw'>end</span>
3246
3214
  <span class='kw'>next</span> <span class='kw'>unless</span> <span class='ivar'>@capture_next_binding</span>
3247
-
3248
3215
  <span class='kw'>if</span> <span class='ivar'>@capture_next_binding</span> <span class='op'>==</span> <span class='symbol'>:next</span> <span class='op'>||</span> <span class='ivar'>@capture_next_binding</span> <span class='op'>==</span> <span class='symbol'>:next_matching</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_is_rspec_example?'>is_rspec_example?</span><span class='lparen'>(</span><span class='id identifier rubyid_tp'>tp</span><span class='rparen'>)</span>
3249
3216
  <span class='ivar'>@capture_next_binding</span> <span class='op'>=</span> <span class='kw'>false</span>
3250
- <span class='id identifier rubyid_increment_capture_events_count'>increment_capture_events_count</span>
3251
3217
  <span class='ivar'>@rspec_example_binding</span> <span class='op'>=</span> <span class='id identifier rubyid_tp'>tp</span><span class='period'>.</span><span class='id identifier rubyid_binding'>binding</span>
3252
3218
  <span class='kw'>end</span>
3253
3219
  <span class='kw'>elsif</span> <span class='id identifier rubyid_tp'>tp</span><span class='period'>.</span><span class='id identifier rubyid_event'>event</span> <span class='op'>==</span> <span class='symbol'>:raise</span>
@@ -3283,17 +3249,17 @@
3283
3249
  <pre class="lines">
3284
3250
 
3285
3251
 
3286
- 320
3287
- 321
3288
- 322
3289
- 323
3290
- 324
3291
- 325
3292
- 326
3293
- 327</pre>
3252
+ 307
3253
+ 308
3254
+ 309
3255
+ 310
3256
+ 311
3257
+ 312
3258
+ 313
3259
+ 314</pre>
3294
3260
  </td>
3295
3261
  <td>
3296
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 320</span>
3262
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 307</span>
3297
3263
 
3298
3264
  <span class='kw'>def</span> <span class='id identifier rubyid_stop_minitest_binding_capture'>stop_minitest_binding_capture</span>
3299
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>
@@ -3323,20 +3289,20 @@
3323
3289
  <pre class="lines">
3324
3290
 
3325
3291
 
3326
- 381
3327
- 382
3328
- 383
3329
- 384
3330
- 385
3331
- 386
3332
- 387
3333
- 388
3334
- 389
3335
- 390
3336
- 391</pre>
3292
+ 365
3293
+ 366
3294
+ 367
3295
+ 368
3296
+ 369
3297
+ 370
3298
+ 371
3299
+ 372
3300
+ 373
3301
+ 374
3302
+ 375</pre>
3337
3303
  </td>
3338
3304
  <td>
3339
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 381</span>
3305
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 365</span>
3340
3306
 
3341
3307
  <span class='kw'>def</span> <span class='id identifier rubyid_stop_rspec_binding_capture'>stop_rspec_binding_capture</span>
3342
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>
@@ -3369,15 +3335,15 @@
3369
3335
  <pre class="lines">
3370
3336
 
3371
3337
 
3372
- 551
3373
- 552
3374
- 553
3375
- 554
3376
- 555
3377
- 556</pre>
3338
+ 535
3339
+ 536
3340
+ 537
3341
+ 538
3342
+ 539
3343
+ 540</pre>
3378
3344
  </td>
3379
3345
  <td>
3380
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 551</span>
3346
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 535</span>
3381
3347
 
3382
3348
  <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>
3383
3349
  <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>
@@ -3395,7 +3361,7 @@
3395
3361
  </div>
3396
3362
 
3397
3363
  <div id="footer">
3398
- Generated on Tue Dec 17 14:09:26 2024 by
3364
+ Generated on Tue Dec 17 15:42:48 2024 by
3399
3365
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
3400
3366
  0.9.37 (ruby-3.3.6).
3401
3367
  </div>