enhanced_errors 3.0.4 → 3.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +41 -34
- data/benchmark/result.txt +5 -7
- data/doc/Enhanced/Colors.html +2 -2
- data/doc/Enhanced/Context.html +2 -2
- data/doc/Enhanced/ExceptionBindingInfos.html +6 -12
- data/doc/Enhanced/ExceptionContext.html +2 -2
- data/doc/Enhanced.html +2 -2
- data/doc/EnhancedErrors.html +105 -101
- data/doc/Exception.html +2 -2
- data/doc/Minitest.html +2 -2
- data/doc/_index.html +2 -2
- data/doc/file.README.html +36 -46
- data/doc/index.html +36 -46
- data/doc/top-level-namespace.html +2 -2
- data/enhanced_errors.gemspec +1 -1
- data/lib/enhanced_errors.rb +1 -1
- metadata +3 -7
data/doc/EnhancedErrors.html
CHANGED
@@ -727,7 +727,7 @@
|
|
727
727
|
<li class="public ">
|
728
728
|
<span class="summary_signature">
|
729
729
|
|
730
|
-
<a href="#max_capture_length=-class_method" title="max_capture_length= (class method)">.<strong>max_capture_length=</strong>(
|
730
|
+
<a href="#max_capture_length=-class_method" title="max_capture_length= (class method)">.<strong>max_capture_length=</strong>(value) ⇒ Object </a>
|
731
731
|
|
732
732
|
|
733
733
|
|
@@ -1417,14 +1417,14 @@
|
|
1417
1417
|
<pre class="lines">
|
1418
1418
|
|
1419
1419
|
|
1420
|
-
181
|
1421
1420
|
182
|
1422
1421
|
183
|
1423
1422
|
184
|
1424
|
-
185
|
1423
|
+
185
|
1424
|
+
186</pre>
|
1425
1425
|
</td>
|
1426
1426
|
<td>
|
1427
|
-
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line
|
1427
|
+
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 182</span>
|
1428
1428
|
|
1429
1429
|
<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>
|
1430
1430
|
<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>
|
@@ -1451,17 +1451,17 @@
|
|
1451
1451
|
<pre class="lines">
|
1452
1452
|
|
1453
1453
|
|
1454
|
-
462
|
1455
1454
|
463
|
1456
1455
|
464
|
1457
1456
|
465
|
1458
1457
|
466
|
1459
1458
|
467
|
1460
1459
|
468
|
1461
|
-
469
|
1460
|
+
469
|
1461
|
+
470</pre>
|
1462
1462
|
</td>
|
1463
1463
|
<td>
|
1464
|
-
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line
|
1464
|
+
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 463</span>
|
1465
1465
|
|
1466
1466
|
<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>
|
1467
1467
|
<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='lbracket'>[</span><span class='symbol'>:instances</span><span class='rbracket'>]</span><span class='op'>&.</span><span class='id identifier rubyid_reject!'>reject!</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_var'>var</span><span class='comma'>,</span> <span class='id identifier rubyid__'>_</span><span class='op'>|</span> <span class='id identifier rubyid_skip_list'>skip_list</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='id identifier rubyid_var'>var</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='lparen'>(</span><span class='id identifier rubyid_var'>var</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='lbracket'>[</span><span class='int'>0</span><span class='comma'>,</span> <span class='int'>2</span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>@_</span><span class='tstring_end'>'</span></span> <span class='op'>&&</span> <span class='op'>!</span><span class='ivar'>@debug</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
@@ -1491,7 +1491,6 @@
|
|
1491
1491
|
<pre class="lines">
|
1492
1492
|
|
1493
1493
|
|
1494
|
-
486
|
1495
1494
|
487
|
1496
1495
|
488
|
1497
1496
|
489
|
@@ -1534,10 +1533,11 @@
|
|
1534
1533
|
526
|
1535
1534
|
527
|
1536
1535
|
528
|
1537
|
-
529
|
1536
|
+
529
|
1537
|
+
530</pre>
|
1538
1538
|
</td>
|
1539
1539
|
<td>
|
1540
|
-
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line
|
1540
|
+
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 487</span>
|
1541
1541
|
|
1542
1542
|
<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>
|
1543
1543
|
<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>
|
@@ -1603,16 +1603,16 @@
|
|
1603
1603
|
<pre class="lines">
|
1604
1604
|
|
1605
1605
|
|
1606
|
-
432
|
1607
1606
|
433
|
1608
1607
|
434
|
1609
1608
|
435
|
1610
1609
|
436
|
1611
1610
|
437
|
1612
|
-
438
|
1611
|
+
438
|
1612
|
+
439</pre>
|
1613
1613
|
</td>
|
1614
1614
|
<td>
|
1615
|
-
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line
|
1615
|
+
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 433</span>
|
1616
1616
|
|
1617
1617
|
<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>
|
1618
1618
|
<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>
|
@@ -1641,12 +1641,12 @@
|
|
1641
1641
|
<pre class="lines">
|
1642
1642
|
|
1643
1643
|
|
1644
|
+
117
|
1644
1645
|
118
|
1645
|
-
119
|
1646
|
-
120</pre>
|
1646
|
+
119</pre>
|
1647
1647
|
</td>
|
1648
1648
|
<td>
|
1649
|
-
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line
|
1649
|
+
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 117</span>
|
1650
1650
|
|
1651
1651
|
<span class='kw'>def</span> <span class='id identifier rubyid_capture_rescue'>capture_rescue</span>
|
1652
1652
|
<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>
|
@@ -1671,12 +1671,12 @@
|
|
1671
1671
|
<pre class="lines">
|
1672
1672
|
|
1673
1673
|
|
1674
|
+
113
|
1674
1675
|
114
|
1675
|
-
115
|
1676
|
-
116</pre>
|
1676
|
+
115</pre>
|
1677
1677
|
</td>
|
1678
1678
|
<td>
|
1679
|
-
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line
|
1679
|
+
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 113</span>
|
1680
1680
|
|
1681
1681
|
<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>
|
1682
1682
|
<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>
|
@@ -1701,17 +1701,17 @@
|
|
1701
1701
|
<pre class="lines">
|
1702
1702
|
|
1703
1703
|
|
1704
|
-
254
|
1705
1704
|
255
|
1706
1705
|
256
|
1707
1706
|
257
|
1708
1707
|
258
|
1709
1708
|
259
|
1710
1709
|
260
|
1711
|
-
261
|
1710
|
+
261
|
1711
|
+
262</pre>
|
1712
1712
|
</td>
|
1713
1713
|
<td>
|
1714
|
-
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line
|
1714
|
+
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 255</span>
|
1715
1715
|
|
1716
1716
|
<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>
|
1717
1717
|
<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>
|
@@ -1741,7 +1741,6 @@
|
|
1741
1741
|
<pre class="lines">
|
1742
1742
|
|
1743
1743
|
|
1744
|
-
327
|
1745
1744
|
328
|
1746
1745
|
329
|
1747
1746
|
330
|
@@ -1782,10 +1781,11 @@
|
|
1782
1781
|
365
|
1783
1782
|
366
|
1784
1783
|
367
|
1785
|
-
368
|
1784
|
+
368
|
1785
|
+
369</pre>
|
1786
1786
|
</td>
|
1787
1787
|
<td>
|
1788
|
-
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line
|
1788
|
+
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 328</span>
|
1789
1789
|
|
1790
1790
|
<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>
|
1791
1791
|
<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>
|
@@ -1849,17 +1849,17 @@
|
|
1849
1849
|
<pre class="lines">
|
1850
1850
|
|
1851
1851
|
|
1852
|
+
129
|
1852
1853
|
130
|
1853
1854
|
131
|
1854
1855
|
132
|
1855
1856
|
133
|
1856
1857
|
134
|
1857
1858
|
135
|
1858
|
-
136
|
1859
|
-
137</pre>
|
1859
|
+
136</pre>
|
1860
1860
|
</td>
|
1861
1861
|
<td>
|
1862
|
-
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line
|
1862
|
+
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 129</span>
|
1863
1863
|
|
1864
1864
|
<span class='kw'>def</span> <span class='id identifier rubyid_disable_capturing!'>disable_capturing!</span>
|
1865
1865
|
<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>
|
@@ -1889,7 +1889,6 @@
|
|
1889
1889
|
<pre class="lines">
|
1890
1890
|
|
1891
1891
|
|
1892
|
-
187
|
1893
1892
|
188
|
1894
1893
|
189
|
1895
1894
|
190
|
@@ -1928,10 +1927,11 @@
|
|
1928
1927
|
223
|
1929
1928
|
224
|
1930
1929
|
225
|
1931
|
-
226
|
1930
|
+
226
|
1931
|
+
227</pre>
|
1932
1932
|
</td>
|
1933
1933
|
<td>
|
1934
|
-
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line
|
1934
|
+
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 188</span>
|
1935
1935
|
|
1936
1936
|
<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>
|
1937
1937
|
<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>
|
@@ -1993,7 +1993,6 @@
|
|
1993
1993
|
<pre class="lines">
|
1994
1994
|
|
1995
1995
|
|
1996
|
-
412
|
1997
1996
|
413
|
1998
1997
|
414
|
1999
1998
|
415
|
@@ -2011,10 +2010,11 @@
|
|
2011
2010
|
427
|
2012
2011
|
428
|
2013
2012
|
429
|
2014
|
-
430
|
2013
|
+
430
|
2014
|
+
431</pre>
|
2015
2015
|
</td>
|
2016
2016
|
<td>
|
2017
|
-
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line
|
2017
|
+
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 413</span>
|
2018
2018
|
|
2019
2019
|
<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>
|
2020
2020
|
<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>
|
@@ -2055,7 +2055,6 @@
|
|
2055
2055
|
<pre class="lines">
|
2056
2056
|
|
2057
2057
|
|
2058
|
-
440
|
2059
2058
|
441
|
2060
2059
|
442
|
2061
2060
|
443
|
@@ -2068,10 +2067,11 @@
|
|
2068
2067
|
450
|
2069
2068
|
451
|
2070
2069
|
452
|
2071
|
-
453
|
2070
|
+
453
|
2071
|
+
454</pre>
|
2072
2072
|
</td>
|
2073
2073
|
<td>
|
2074
|
-
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line
|
2074
|
+
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 441</span>
|
2075
2075
|
|
2076
2076
|
<span class='kw'>def</span> <span class='id identifier rubyid_get_default_format_for_environment'>get_default_format_for_environment</span>
|
2077
2077
|
<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>
|
@@ -2129,12 +2129,12 @@
|
|
2129
2129
|
<pre class="lines">
|
2130
2130
|
|
2131
2131
|
|
2132
|
-
228
|
2133
2132
|
229
|
2134
|
-
230
|
2133
|
+
230
|
2134
|
+
231</pre>
|
2135
2135
|
</td>
|
2136
2136
|
<td>
|
2137
|
-
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line
|
2137
|
+
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 229</span>
|
2138
2138
|
|
2139
2139
|
<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>
|
2140
2140
|
<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>
|
@@ -2181,12 +2181,12 @@
|
|
2181
2181
|
<pre class="lines">
|
2182
2182
|
|
2183
2183
|
|
2184
|
-
263
|
2185
2184
|
264
|
2186
|
-
265
|
2185
|
+
265
|
2186
|
+
266</pre>
|
2187
2187
|
</td>
|
2188
2188
|
<td>
|
2189
|
-
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line
|
2189
|
+
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 264</span>
|
2190
2190
|
|
2191
2191
|
<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>
|
2192
2192
|
<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>
|
@@ -2211,12 +2211,12 @@
|
|
2211
2211
|
<pre class="lines">
|
2212
2212
|
|
2213
2213
|
|
2214
|
+
121
|
2214
2215
|
122
|
2215
|
-
123
|
2216
|
-
124</pre>
|
2216
|
+
123</pre>
|
2217
2217
|
</td>
|
2218
2218
|
<td>
|
2219
|
-
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line
|
2219
|
+
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 121</span>
|
2220
2220
|
|
2221
2221
|
<span class='kw'>def</span> <span class='id identifier rubyid_max_capture_length'>max_capture_length</span>
|
2222
2222
|
<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>
|
@@ -2229,7 +2229,7 @@
|
|
2229
2229
|
<div class="method_details ">
|
2230
2230
|
<h3 class="signature " id="max_capture_length=-class_method">
|
2231
2231
|
|
2232
|
-
.<strong>max_capture_length=</strong>(
|
2232
|
+
.<strong>max_capture_length=</strong>(value) ⇒ <tt>Object</tt>
|
2233
2233
|
|
2234
2234
|
|
2235
2235
|
|
@@ -2241,14 +2241,14 @@
|
|
2241
2241
|
<pre class="lines">
|
2242
2242
|
|
2243
2243
|
|
2244
|
+
125
|
2244
2245
|
126
|
2245
|
-
127
|
2246
|
-
128</pre>
|
2246
|
+
127</pre>
|
2247
2247
|
</td>
|
2248
2248
|
<td>
|
2249
|
-
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line
|
2249
|
+
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 125</span>
|
2250
2250
|
|
2251
|
-
<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
|
2251
|
+
<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_value'>value</span><span class='rparen'>)</span>
|
2252
2252
|
<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>
|
2253
2253
|
<span class='kw'>end</span></pre>
|
2254
2254
|
</td>
|
@@ -2301,7 +2301,6 @@
|
|
2301
2301
|
<pre class="lines">
|
2302
2302
|
|
2303
2303
|
|
2304
|
-
380
|
2305
2304
|
381
|
2306
2305
|
382
|
2307
2306
|
383
|
@@ -2309,10 +2308,11 @@
|
|
2309
2308
|
385
|
2310
2309
|
386
|
2311
2310
|
387
|
2312
|
-
388
|
2311
|
+
388
|
2312
|
+
389</pre>
|
2313
2313
|
</td>
|
2314
2314
|
<td>
|
2315
|
-
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line
|
2315
|
+
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 381</span>
|
2316
2316
|
|
2317
2317
|
<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>
|
2318
2318
|
<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>
|
@@ -2343,14 +2343,14 @@
|
|
2343
2343
|
<pre class="lines">
|
2344
2344
|
|
2345
2345
|
|
2346
|
-
390
|
2347
2346
|
391
|
2348
2347
|
392
|
2349
2348
|
393
|
2350
|
-
394
|
2349
|
+
394
|
2350
|
+
395</pre>
|
2351
2351
|
</td>
|
2352
2352
|
<td>
|
2353
|
-
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line
|
2353
|
+
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 391</span>
|
2354
2354
|
|
2355
2355
|
<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>
|
2356
2356
|
<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>
|
@@ -2377,7 +2377,6 @@
|
|
2377
2377
|
<pre class="lines">
|
2378
2378
|
|
2379
2379
|
|
2380
|
-
396
|
2381
2380
|
397
|
2382
2381
|
398
|
2383
2382
|
399
|
@@ -2385,10 +2384,11 @@
|
|
2385
2384
|
401
|
2386
2385
|
402
|
2387
2386
|
403
|
2388
|
-
404
|
2387
|
+
404
|
2388
|
+
405</pre>
|
2389
2389
|
</td>
|
2390
2390
|
<td>
|
2391
|
-
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line
|
2391
|
+
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 397</span>
|
2392
2392
|
|
2393
2393
|
<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>
|
2394
2394
|
<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>
|
@@ -2419,14 +2419,14 @@
|
|
2419
2419
|
<pre class="lines">
|
2420
2420
|
|
2421
2421
|
|
2422
|
-
406
|
2423
2422
|
407
|
2424
2423
|
408
|
2425
2424
|
409
|
2426
|
-
410
|
2425
|
+
410
|
2426
|
+
411</pre>
|
2427
2427
|
</td>
|
2428
2428
|
<td>
|
2429
|
-
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line
|
2429
|
+
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 407</span>
|
2430
2430
|
|
2431
2431
|
<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>
|
2432
2432
|
<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>
|
@@ -2453,17 +2453,17 @@
|
|
2453
2453
|
<pre class="lines">
|
2454
2454
|
|
2455
2455
|
|
2456
|
-
172
|
2457
2456
|
173
|
2458
2457
|
174
|
2459
2458
|
175
|
2460
2459
|
176
|
2461
2460
|
177
|
2462
2461
|
178
|
2463
|
-
179
|
2462
|
+
179
|
2463
|
+
180</pre>
|
2464
2464
|
</td>
|
2465
2465
|
<td>
|
2466
|
-
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line
|
2466
|
+
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 173</span>
|
2467
2467
|
|
2468
2468
|
<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>
|
2469
2469
|
<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>
|
@@ -2493,7 +2493,6 @@
|
|
2493
2493
|
<pre class="lines">
|
2494
2494
|
|
2495
2495
|
|
2496
|
-
155
|
2497
2496
|
156
|
2498
2497
|
157
|
2499
2498
|
158
|
@@ -2508,10 +2507,11 @@
|
|
2508
2507
|
167
|
2509
2508
|
168
|
2510
2509
|
169
|
2511
|
-
170
|
2510
|
+
170
|
2511
|
+
171</pre>
|
2512
2512
|
</td>
|
2513
2513
|
<td>
|
2514
|
-
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line
|
2514
|
+
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 156</span>
|
2515
2515
|
|
2516
2516
|
<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>
|
2517
2517
|
<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>
|
@@ -2549,6 +2549,7 @@
|
|
2549
2549
|
<pre class="lines">
|
2550
2550
|
|
2551
2551
|
|
2552
|
+
138
|
2552
2553
|
139
|
2553
2554
|
140
|
2554
2555
|
141
|
@@ -2558,11 +2559,10 @@
|
|
2558
2559
|
145
|
2559
2560
|
146
|
2560
2561
|
147
|
2561
|
-
148
|
2562
|
-
149</pre>
|
2562
|
+
148</pre>
|
2563
2563
|
</td>
|
2564
2564
|
<td>
|
2565
|
-
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line
|
2565
|
+
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 138</span>
|
2566
2566
|
|
2567
2567
|
<span class='kw'>def</span> <span class='id identifier rubyid_reset!'>reset!</span>
|
2568
2568
|
<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>
|
@@ -2617,15 +2617,15 @@
|
|
2617
2617
|
<pre class="lines">
|
2618
2618
|
|
2619
2619
|
|
2620
|
-
455
|
2621
2620
|
456
|
2622
2621
|
457
|
2623
2622
|
458
|
2624
2623
|
459
|
2625
|
-
460
|
2624
|
+
460
|
2625
|
+
461</pre>
|
2626
2626
|
</td>
|
2627
2627
|
<td>
|
2628
|
-
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line
|
2628
|
+
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 456</span>
|
2629
2629
|
|
2630
2630
|
<span class='kw'>def</span> <span class='id identifier rubyid_running_in_ci?'>running_in_ci?</span>
|
2631
2631
|
<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>
|
@@ -2677,16 +2677,16 @@
|
|
2677
2677
|
<pre class="lines">
|
2678
2678
|
|
2679
2679
|
|
2680
|
-
478
|
2681
2680
|
479
|
2682
2681
|
480
|
2683
2682
|
481
|
2684
2683
|
482
|
2685
2684
|
483
|
2686
|
-
484
|
2685
|
+
484
|
2686
|
+
485</pre>
|
2687
2687
|
</td>
|
2688
2688
|
<td>
|
2689
|
-
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line
|
2689
|
+
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 479</span>
|
2690
2690
|
|
2691
2691
|
<span class='kw'>def</span> <span class='id identifier rubyid_safe_to_inspect?'>safe_to_inspect?</span><span class='lparen'>(</span><span class='id identifier rubyid_obj'>obj</span><span class='rparen'>)</span>
|
2692
2692
|
<span class='kw'>begin</span>
|
@@ -2715,15 +2715,19 @@
|
|
2715
2715
|
<pre class="lines">
|
2716
2716
|
|
2717
2717
|
|
2718
|
+
150
|
2718
2719
|
151
|
2719
2720
|
152
|
2720
|
-
153
|
2721
|
+
153
|
2722
|
+
154</pre>
|
2721
2723
|
</td>
|
2722
2724
|
<td>
|
2723
|
-
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line
|
2725
|
+
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 150</span>
|
2724
2726
|
|
2725
2727
|
<span class='kw'>def</span> <span class='id identifier rubyid_skip_list'>skip_list</span>
|
2726
|
-
<span class='
|
2728
|
+
<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
|
+
<span class='ivar'>@skip_list</span> <span class='op'>||=</span> <span class='const'><span class='object_link'><a href="#DEFAULT_SKIP_LIST-constant" title="EnhancedErrors::DEFAULT_SKIP_LIST (constant)">DEFAULT_SKIP_LIST</a></span></span><span class='period'>.</span><span class='id identifier rubyid_to_set'>to_set</span>
|
2730
|
+
<span class='kw'>end</span>
|
2727
2731
|
<span class='kw'>end</span></pre>
|
2728
2732
|
</td>
|
2729
2733
|
</tr>
|
@@ -2745,7 +2749,6 @@
|
|
2745
2749
|
<pre class="lines">
|
2746
2750
|
|
2747
2751
|
|
2748
|
-
232
|
2749
2752
|
233
|
2750
2753
|
234
|
2751
2754
|
235
|
@@ -2757,10 +2760,11 @@
|
|
2757
2760
|
241
|
2758
2761
|
242
|
2759
2762
|
243
|
2760
|
-
244
|
2763
|
+
244
|
2764
|
+
245</pre>
|
2761
2765
|
</td>
|
2762
2766
|
<td>
|
2763
|
-
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line
|
2767
|
+
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 233</span>
|
2764
2768
|
|
2765
2769
|
<span class='kw'>def</span> <span class='id identifier rubyid_start_minitest_binding_capture'>start_minitest_binding_capture</span>
|
2766
2770
|
<span class='id identifier rubyid_ensure_extensions_are_required'>ensure_extensions_are_required</span>
|
@@ -2795,7 +2799,6 @@
|
|
2795
2799
|
<pre class="lines">
|
2796
2800
|
|
2797
2801
|
|
2798
|
-
267
|
2799
2802
|
268
|
2800
2803
|
269
|
2801
2804
|
270
|
@@ -2817,10 +2820,11 @@
|
|
2817
2820
|
286
|
2818
2821
|
287
|
2819
2822
|
288
|
2820
|
-
289
|
2823
|
+
289
|
2824
|
+
290</pre>
|
2821
2825
|
</td>
|
2822
2826
|
<td>
|
2823
|
-
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line
|
2827
|
+
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 268</span>
|
2824
2828
|
|
2825
2829
|
<span class='kw'>def</span> <span class='id identifier rubyid_start_rspec_binding_capture'>start_rspec_binding_capture</span>
|
2826
2830
|
<span class='id identifier rubyid_ensure_extensions_are_required'>ensure_extensions_are_required</span>
|
@@ -2876,7 +2880,6 @@
|
|
2876
2880
|
<pre class="lines">
|
2877
2881
|
|
2878
2882
|
|
2879
|
-
300
|
2880
2883
|
301
|
2881
2884
|
302
|
2882
2885
|
303
|
@@ -2890,10 +2893,11 @@
|
|
2890
2893
|
311
|
2891
2894
|
312
|
2892
2895
|
313
|
2893
|
-
314
|
2896
|
+
314
|
2897
|
+
315</pre>
|
2894
2898
|
</td>
|
2895
2899
|
<td>
|
2896
|
-
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line
|
2900
|
+
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 301</span>
|
2897
2901
|
|
2898
2902
|
<span class='kw'>def</span> <span class='id identifier rubyid_start_rspec_binding_trap'>start_rspec_binding_trap</span>
|
2899
2903
|
<span class='ivar'>@rspec_binding_trap</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'>:b_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>
|
@@ -2930,16 +2934,16 @@
|
|
2930
2934
|
<pre class="lines">
|
2931
2935
|
|
2932
2936
|
|
2933
|
-
246
|
2934
2937
|
247
|
2935
2938
|
248
|
2936
2939
|
249
|
2937
2940
|
250
|
2938
2941
|
251
|
2939
|
-
252
|
2942
|
+
252
|
2943
|
+
253</pre>
|
2940
2944
|
</td>
|
2941
2945
|
<td>
|
2942
|
-
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line
|
2946
|
+
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 247</span>
|
2943
2947
|
|
2944
2948
|
<span class='kw'>def</span> <span class='id identifier rubyid_stop_minitest_binding_capture'>stop_minitest_binding_capture</span>
|
2945
2949
|
<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>
|
@@ -2968,7 +2972,6 @@
|
|
2968
2972
|
<pre class="lines">
|
2969
2973
|
|
2970
2974
|
|
2971
|
-
316
|
2972
2975
|
317
|
2973
2976
|
318
|
2974
2977
|
319
|
@@ -2977,10 +2980,11 @@
|
|
2977
2980
|
322
|
2978
2981
|
323
|
2979
2982
|
324
|
2980
|
-
325
|
2983
|
+
325
|
2984
|
+
326</pre>
|
2981
2985
|
</td>
|
2982
2986
|
<td>
|
2983
|
-
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line
|
2987
|
+
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 317</span>
|
2984
2988
|
|
2985
2989
|
<span class='kw'>def</span> <span class='id identifier rubyid_stop_rspec_binding_capture'>stop_rspec_binding_capture</span>
|
2986
2990
|
<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>
|
@@ -3012,12 +3016,12 @@
|
|
3012
3016
|
<pre class="lines">
|
3013
3017
|
|
3014
3018
|
|
3015
|
-
471
|
3016
3019
|
472
|
3017
|
-
473
|
3020
|
+
473
|
3021
|
+
474</pre>
|
3018
3022
|
</td>
|
3019
3023
|
<td>
|
3020
|
-
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line
|
3024
|
+
<pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 472</span>
|
3021
3025
|
|
3022
3026
|
<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>
|
3023
3027
|
<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>
|
@@ -3032,9 +3036,9 @@
|
|
3032
3036
|
</div>
|
3033
3037
|
|
3034
3038
|
<div id="footer">
|
3035
|
-
Generated on
|
3039
|
+
Generated on Wed Dec 25 13:01:48 2024 by
|
3036
3040
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
3037
|
-
0.9.37 (ruby-3.1
|
3041
|
+
0.9.37 (ruby-3.4.1).
|
3038
3042
|
</div>
|
3039
3043
|
|
3040
3044
|
</div>
|