enhanced_errors 0.1.4 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -618,7 +618,7 @@
618
618
  <li class="public ">
619
619
  <span class="summary_signature">
620
620
 
621
- <a href="#enhance!-class_method" title="enhance! (class method)">.<strong>enhance!</strong>(enabled: true, debug: false, **options) {|void| ... } &#x21d2; void </a>
621
+ <a href="#enhance!-class_method" title="enhance! (class method)">.<strong>enhance!</strong>(enabled: true, debug: false, capture_events: default_capture_events, **options) {|void| ... } &#x21d2; void </a>
622
622
 
623
623
 
624
624
 
@@ -906,12 +906,12 @@
906
906
  <pre class="lines">
907
907
 
908
908
 
909
- 41
910
- 42
911
- 43</pre>
909
+ 55
910
+ 56
911
+ 57</pre>
912
912
  </td>
913
913
  <td>
914
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 41</span>
914
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 55</span>
915
915
 
916
916
  <span class='kw'>def</span> <span class='id identifier rubyid_capture_let_variables'>capture_let_variables</span>
917
917
  <span class='ivar'>@capture_let_variables</span>
@@ -962,12 +962,12 @@
962
962
  <pre class="lines">
963
963
 
964
964
 
965
- 26
966
- 27
967
- 28</pre>
965
+ 40
966
+ 41
967
+ 42</pre>
968
968
  </td>
969
969
  <td>
970
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 26</span>
970
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 40</span>
971
971
 
972
972
  <span class='kw'>def</span> <span class='id identifier rubyid_config_block'>config_block</span>
973
973
  <span class='ivar'>@config_block</span>
@@ -1043,12 +1043,12 @@
1043
1043
  <pre class="lines">
1044
1044
 
1045
1045
 
1046
- 46
1047
- 47
1048
- 48</pre>
1046
+ 60
1047
+ 61
1048
+ 62</pre>
1049
1049
  </td>
1050
1050
  <td>
1051
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 46</span>
1051
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 60</span>
1052
1052
 
1053
1053
  <span class='kw'>def</span> <span class='id identifier rubyid_eligible_for_capture'>eligible_for_capture</span>
1054
1054
  <span class='ivar'>@eligible_for_capture</span>
@@ -1099,12 +1099,12 @@
1099
1099
  <pre class="lines">
1100
1100
 
1101
1101
 
1102
- 16
1103
- 17
1104
- 18</pre>
1102
+ 30
1103
+ 31
1104
+ 32</pre>
1105
1105
  </td>
1106
1106
  <td>
1107
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 16</span>
1107
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 30</span>
1108
1108
 
1109
1109
  <span class='kw'>def</span> <span class='id identifier rubyid_enabled'>enabled</span>
1110
1110
  <span class='ivar'>@enabled</span>
@@ -1182,12 +1182,12 @@
1182
1182
  <pre class="lines">
1183
1183
 
1184
1184
 
1185
- 31
1186
- 32
1187
- 33</pre>
1185
+ 45
1186
+ 46
1187
+ 47</pre>
1188
1188
  </td>
1189
1189
  <td>
1190
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 31</span>
1190
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 45</span>
1191
1191
 
1192
1192
  <span class='kw'>def</span> <span class='id identifier rubyid_max_length'>max_length</span>
1193
1193
  <span class='ivar'>@max_length</span>
@@ -1238,12 +1238,12 @@
1238
1238
  <pre class="lines">
1239
1239
 
1240
1240
 
1241
- 36
1242
- 37
1243
- 38</pre>
1241
+ 50
1242
+ 51
1243
+ 52</pre>
1244
1244
  </td>
1245
1245
  <td>
1246
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 36</span>
1246
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 50</span>
1247
1247
 
1248
1248
  <span class='kw'>def</span> <span class='id identifier rubyid_on_capture_hook'>on_capture_hook</span>
1249
1249
  <span class='ivar'>@on_capture_hook</span>
@@ -1299,12 +1299,12 @@
1299
1299
  <pre class="lines">
1300
1300
 
1301
1301
 
1302
- 51
1303
- 52
1304
- 53</pre>
1302
+ 65
1303
+ 66
1304
+ 67</pre>
1305
1305
  </td>
1306
1306
  <td>
1307
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 51</span>
1307
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 65</span>
1308
1308
 
1309
1309
  <span class='kw'>def</span> <span class='id identifier rubyid_skip_list'>skip_list</span>
1310
1310
  <span class='ivar'>@skip_list</span>
@@ -1355,12 +1355,12 @@
1355
1355
  <pre class="lines">
1356
1356
 
1357
1357
 
1358
- 21
1359
- 22
1360
- 23</pre>
1358
+ 35
1359
+ 36
1360
+ 37</pre>
1361
1361
  </td>
1362
1362
  <td>
1363
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 21</span>
1363
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 35</span>
1364
1364
 
1365
1365
  <span class='kw'>def</span> <span class='id identifier rubyid_trace'>trace</span>
1366
1366
  <span class='ivar'>@trace</span>
@@ -1441,12 +1441,12 @@
1441
1441
  <pre class="lines">
1442
1442
 
1443
1443
 
1444
- 139
1445
- 140
1446
- 141</pre>
1444
+ 153
1445
+ 154
1446
+ 155</pre>
1447
1447
  </td>
1448
1448
  <td>
1449
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 139</span>
1449
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 153</span>
1450
1450
 
1451
1451
  <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>
1452
1452
  <span class='id identifier rubyid_skip_list'>skip_list</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='id identifier rubyid_vars'>vars</span><span class='rparen'>)</span>
@@ -1520,23 +1520,23 @@
1520
1520
  <pre class="lines">
1521
1521
 
1522
1522
 
1523
- 311
1524
- 312
1525
- 313
1526
- 314
1527
- 315
1528
- 316
1529
- 317
1530
- 318
1531
- 319</pre>
1523
+ 327
1524
+ 328
1525
+ 329
1526
+ 330
1527
+ 331
1528
+ 332
1529
+ 333
1530
+ 334
1531
+ 335</pre>
1532
1532
  </td>
1533
1533
  <td>
1534
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 311</span>
1534
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 327</span>
1535
1535
 
1536
1536
  <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>
1537
1537
  <span class='kw'>unless</span> <span class='ivar'>@debug</span>
1538
1538
  <span class='id identifier rubyid_variables'>variables</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>
1539
- <span class='id identifier rubyid_variables'>variables</span><span class='lbracket'>[</span><span class='symbol'>:instances</span><span class='rbracket'>]</span><span class='op'>&amp;.</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='id identifier rubyid_var'>var</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'>@__</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span> <span class='rbrace'>}</span>
1539
+ <span class='id identifier rubyid_variables'>variables</span><span class='lbracket'>[</span><span class='symbol'>:instances</span><span class='rbracket'>]</span><span class='op'>&amp;.</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='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'>@_</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span> <span class='op'>&amp;&amp;</span> <span class='op'>!</span><span class='ivar'>@debug</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
1540
1540
  <span class='id identifier rubyid_variables'>variables</span><span class='lbracket'>[</span><span class='symbol'>:locals</span><span class='rbracket'>]</span><span class='op'>&amp;.</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='rbrace'>}</span>
1541
1541
  <span class='id identifier rubyid_variables'>variables</span><span class='lbracket'>[</span><span class='symbol'>:globals</span><span class='rbracket'>]</span><span class='op'>&amp;.</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='rbrace'>}</span>
1542
1542
  <span class='kw'>end</span>
@@ -1611,22 +1611,6 @@
1611
1611
  <pre class="lines">
1612
1612
 
1613
1613
 
1614
- 337
1615
- 338
1616
- 339
1617
- 340
1618
- 341
1619
- 342
1620
- 343
1621
- 344
1622
- 345
1623
- 346
1624
- 347
1625
- 348
1626
- 349
1627
- 350
1628
- 351
1629
- 352
1630
1614
  353
1631
1615
  354
1632
1616
  355
@@ -1641,13 +1625,35 @@
1641
1625
  364
1642
1626
  365
1643
1627
  366
1644
- 367</pre>
1628
+ 367
1629
+ 368
1630
+ 369
1631
+ 370
1632
+ 371
1633
+ 372
1634
+ 373
1635
+ 374
1636
+ 375
1637
+ 376
1638
+ 377
1639
+ 378
1640
+ 379
1641
+ 380
1642
+ 381
1643
+ 382
1644
+ 383
1645
+ 384
1646
+ 385
1647
+ 386
1648
+ 387
1649
+ 388</pre>
1645
1650
  </td>
1646
1651
  <td>
1647
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 337</span>
1652
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 353</span>
1648
1653
 
1649
1654
  <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>
1650
- <span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\n</span><span class='embexpr_beg'>#{</span><span class='const'><span class='object_link'><a href="Colors.html" title="Colors (class)">Colors</a></span></span><span class='period'>.</span><span class='id identifier rubyid_green'>green</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_binding_info'>binding_info</span><span class='lbracket'>[</span><span class='symbol'>:capture_type</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_capitalize'>capitalize</span><span class='embexpr_end'>}</span><span class='tstring_content'>: </span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='embexpr_beg'>#{</span><span class='const'><span class='object_link'><a href="Colors.html" title="Colors (class)">Colors</a></span></span><span class='period'>.</span><span class='id identifier rubyid_blue'>blue</span><span class='lparen'>(</span><span class='id identifier rubyid_binding_info'>binding_info</span><span class='lbracket'>[</span><span class='symbol'>:source</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
1655
+ <span class='id identifier rubyid_capture_event'>capture_event</span> <span class='op'>=</span> <span class='id identifier rubyid_binding_info'>binding_info</span><span class='lbracket'>[</span><span class='symbol'>:capture_event</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_capitalize'>capitalize</span>
1656
+ <span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='const'><span class='object_link'><a href="Colors.html" title="Colors (class)">Colors</a></span></span><span class='period'>.</span><span class='id identifier rubyid_red'>red</span><span class='lparen'>(</span><span class='id identifier rubyid_capture_event'>capture_event</span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_content'>: </span><span class='embexpr_beg'>#{</span><span class='const'><span class='object_link'><a href="Colors.html" title="Colors (class)">Colors</a></span></span><span class='period'>.</span><span class='id identifier rubyid_blue'>blue</span><span class='lparen'>(</span><span class='id identifier rubyid_binding_info'>binding_info</span><span class='lbracket'>[</span><span class='symbol'>:source</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
1651
1657
 
1652
1658
  <span class='id identifier rubyid_result'>result</span> <span class='op'>+=</span> <span class='id identifier rubyid_method_and_args_desc'>method_and_args_desc</span><span class='lparen'>(</span><span class='id identifier rubyid_binding_info'>binding_info</span><span class='lbracket'>[</span><span class='symbol'>:method_and_args</span><span class='rbracket'>]</span><span class='rparen'>)</span>
1653
1659
 
@@ -1659,7 +1665,6 @@
1659
1665
 
1660
1666
  <span class='id identifier rubyid_instance_vars_to_display'>instance_vars_to_display</span> <span class='op'>=</span> <span class='id identifier rubyid_variables'>variables</span><span class='lbracket'>[</span><span class='symbol'>:instances</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
1661
1667
 
1662
-
1663
1668
  <span class='kw'>if</span> <span class='id identifier rubyid_instance_vars_to_display'>instance_vars_to_display</span> <span class='op'>&amp;&amp;</span> <span class='op'>!</span><span class='id identifier rubyid_instance_vars_to_display'>instance_vars_to_display</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
1664
1669
  <span class='id identifier rubyid_result'>result</span> <span class='op'>+=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\n</span><span class='embexpr_beg'>#{</span><span class='const'><span class='object_link'><a href="Colors.html" title="Colors (class)">Colors</a></span></span><span class='period'>.</span><span class='id identifier rubyid_green'>green</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Instances:</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_content'>\n</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_variable_description'>variable_description</span><span class='lparen'>(</span><span class='id identifier rubyid_instance_vars_to_display'>instance_vars_to_display</span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
1665
1670
  <span class='kw'>end</span>
@@ -1675,7 +1680,12 @@
1675
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_length'>max_length</span>
1676
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_length'>max_length</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>
1677
1682
  <span class='kw'>end</span>
1678
- <span class='id identifier rubyid_result'>result</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\n\n</span><span class='tstring_end'>&quot;</span></span>
1683
+ <span class='id identifier rubyid_result'>result</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\n</span><span class='tstring_end'>&quot;</span></span>
1684
+ <span class='kw'>rescue</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_e'>e</span>
1685
+ <span class='comment'># we swallow and don&#39;t re-raise to avoid any recursion problems. We don&#39;t want to
1686
+ </span> <span class='comment'># mess up the original exception handling.
1687
+ </span> <span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>EnhancedErrors error in binding_info_string: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_message'>message</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_backtrace'>backtrace</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
1688
+ <span class='kw'>return</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span>
1679
1689
  <span class='kw'>end</span></pre>
1680
1690
  </td>
1681
1691
  </tr>
@@ -1764,25 +1774,25 @@
1764
1774
  <pre class="lines">
1765
1775
 
1766
1776
 
1767
- 253
1768
- 254
1769
- 255
1770
- 256
1771
- 257
1772
- 258
1773
- 259
1774
- 260
1775
- 261
1776
- 262
1777
- 263
1778
- 264
1779
- 265
1780
- 266
1781
- 267
1782
- 268</pre>
1777
+ 269
1778
+ 270
1779
+ 271
1780
+ 272
1781
+ 273
1782
+ 274
1783
+ 275
1784
+ 276
1785
+ 277
1786
+ 278
1787
+ 279
1788
+ 280
1789
+ 281
1790
+ 282
1791
+ 283
1792
+ 284</pre>
1783
1793
  </td>
1784
1794
  <td>
1785
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 253</span>
1795
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 269</span>
1786
1796
 
1787
1797
  <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>
1788
1798
  <span class='kw'>case</span> <span class='id identifier rubyid_format'>format</span>
@@ -1849,12 +1859,12 @@
1849
1859
  <pre class="lines">
1850
1860
 
1851
1861
 
1852
- 131
1853
- 132
1854
- 133</pre>
1862
+ 145
1863
+ 146
1864
+ 147</pre>
1855
1865
  </td>
1856
1866
  <td>
1857
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 131</span>
1867
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 145</span>
1858
1868
 
1859
1869
  <span class='kw'>def</span> <span class='id identifier rubyid_default_skip_list'>default_skip_list</span>
1860
1870
  <span class='const'>Set</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="#RAILS_SKIP_LIST-constant" title="EnhancedErrors::RAILS_SKIP_LIST (constant)">RAILS_SKIP_LIST</a></span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="#RSPEC_SKIP_LIST-constant" title="EnhancedErrors::RSPEC_SKIP_LIST (constant)">RSPEC_SKIP_LIST</a></span></span><span class='rparen'>)</span>
@@ -1867,7 +1877,7 @@
1867
1877
  <div class="method_details ">
1868
1878
  <h3 class="signature " id="enhance!-class_method">
1869
1879
 
1870
- .<strong>enhance!</strong>(enabled: true, debug: false, **options) {|void| ... } &#x21d2; <tt>void</tt>
1880
+ .<strong>enhance!</strong>(enabled: true, debug: false, capture_events: default_capture_events, **options) {|void| ... } &#x21d2; <tt>void</tt>
1871
1881
 
1872
1882
 
1873
1883
 
@@ -1964,20 +1974,6 @@
1964
1974
  <pre class="lines">
1965
1975
 
1966
1976
 
1967
- 150
1968
- 151
1969
- 152
1970
- 153
1971
- 154
1972
- 155
1973
- 156
1974
- 157
1975
- 158
1976
- 159
1977
- 160
1978
- 161
1979
- 162
1980
- 163
1981
1977
  164
1982
1978
  165
1983
1979
  166
@@ -1993,12 +1989,29 @@
1993
1989
  176
1994
1990
  177
1995
1991
  178
1996
- 179</pre>
1992
+ 179
1993
+ 180
1994
+ 181
1995
+ 182
1996
+ 183
1997
+ 184
1998
+ 185
1999
+ 186
2000
+ 187
2001
+ 188
2002
+ 189
2003
+ 190
2004
+ 191
2005
+ 192
2006
+ 193
2007
+ 194
2008
+ 195</pre>
1997
2009
  </td>
1998
2010
  <td>
1999
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 150</span>
2011
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 164</span>
2000
2012
 
2001
- <span class='kw'>def</span> <span class='id identifier rubyid_enhance!'>enhance!</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='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>
2013
+ <span class='kw'>def</span> <span class='id identifier rubyid_enhance!'>enhance!</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='id identifier rubyid_default_capture_events'>default_capture_events</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>
2014
+ <span class='id identifier rubyid_capture_events'>capture_events</span> <span class='op'>=</span> <span class='const'>Array</span><span class='lparen'>(</span><span class='id identifier rubyid_capture_events'>capture_events</span><span class='rparen'>)</span>
2002
2015
  <span class='ivar'>@output_format</span> <span class='op'>=</span> <span class='kw'>nil</span>
2003
2016
  <span class='ivar'>@eligible_for_capture</span> <span class='op'>=</span> <span class='kw'>nil</span>
2004
2017
  <span class='ivar'>@original_global_variables</span> <span class='op'>=</span> <span class='kw'>nil</span>
@@ -2011,6 +2024,7 @@
2011
2024
  <span class='ivar'>@debug</span> <span class='op'>=</span> <span class='id identifier rubyid_debug'>debug</span>
2012
2025
  <span class='ivar'>@original_global_variables</span> <span class='op'>=</span> <span class='id identifier rubyid_global_variables'>global_variables</span>
2013
2026
 
2027
+ <span class='id identifier rubyid_validate_and_set_capture_events'>validate_and_set_capture_events</span><span class='lparen'>(</span><span class='id identifier rubyid_capture_events'>capture_events</span><span class='rparen'>)</span>
2014
2028
  <span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='op'>|</span>
2015
2029
  <span class='id identifier rubyid_setter_method'>setter_method</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_key'>key</span><span class='embexpr_end'>}</span><span class='tstring_content'>=</span><span class='tstring_end'>&quot;</span></span>
2016
2030
  <span class='kw'>if</span> <span class='id identifier rubyid_respond_to?'>respond_to?</span><span class='lparen'>(</span><span class='id identifier rubyid_setter_method'>setter_method</span><span class='rparen'>)</span>
@@ -2117,18 +2131,18 @@
2117
2131
  <pre class="lines">
2118
2132
 
2119
2133
 
2120
- 238
2121
- 239
2122
- 240
2123
- 241
2124
- 242
2125
- 243
2126
- 244
2127
- 245
2128
- 246</pre>
2134
+ 254
2135
+ 255
2136
+ 256
2137
+ 257
2138
+ 258
2139
+ 259
2140
+ 260
2141
+ 261
2142
+ 262</pre>
2129
2143
  </td>
2130
2144
  <td>
2131
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 238</span>
2145
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 254</span>
2132
2146
 
2133
2147
  <span class='kw'>def</span> <span class='id identifier rubyid_format'>format</span><span class='lparen'>(</span><span class='id identifier rubyid_captured_bindings'>captured_bindings</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>
2134
2148
  <span class='id identifier rubyid_result'>result</span> <span class='op'>=</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_output_format'>output_format</span><span class='rparen'>)</span>
@@ -2188,25 +2202,25 @@
2188
2202
  <pre class="lines">
2189
2203
 
2190
2204
 
2191
- 273
2192
- 274
2193
- 275
2194
- 276
2195
- 277
2196
- 278
2197
- 279
2198
- 280
2199
- 281
2200
- 282
2201
- 283
2202
- 284
2203
- 285
2204
- 286
2205
- 287
2206
- 288</pre>
2205
+ 289
2206
+ 290
2207
+ 291
2208
+ 292
2209
+ 293
2210
+ 294
2211
+ 295
2212
+ 296
2213
+ 297
2214
+ 298
2215
+ 299
2216
+ 300
2217
+ 301
2218
+ 302
2219
+ 303
2220
+ 304</pre>
2207
2221
  </td>
2208
2222
  <td>
2209
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 273</span>
2223
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 289</span>
2210
2224
 
2211
2225
  <span class='kw'>def</span> <span class='id identifier rubyid_get_default_format_for_environment'>get_default_format_for_environment</span>
2212
2226
  <span class='kw'>return</span> <span class='ivar'>@output_format</span> <span class='kw'>unless</span> <span class='ivar'>@output_format</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
@@ -2293,16 +2307,16 @@
2293
2307
  <pre class="lines">
2294
2308
 
2295
2309
 
2296
- 197
2297
- 198
2298
- 199
2299
- 200
2300
- 201
2301
- 202
2302
- 203</pre>
2310
+ 213
2311
+ 214
2312
+ 215
2313
+ 216
2314
+ 217
2315
+ 218
2316
+ 219</pre>
2303
2317
  </td>
2304
2318
  <td>
2305
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 197</span>
2319
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 213</span>
2306
2320
 
2307
2321
  <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>
2308
2322
  <span class='kw'>if</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
@@ -2380,12 +2394,12 @@
2380
2394
  <pre class="lines">
2381
2395
 
2382
2396
 
2383
- 209
2384
- 210
2385
- 211</pre>
2397
+ 225
2398
+ 226
2399
+ 227</pre>
2386
2400
  </td>
2387
2401
  <td>
2388
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 209</span>
2402
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 225</span>
2389
2403
 
2390
2404
  <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>
2391
2405
  <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_on_capture_hook'>on_capture_hook</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span>
@@ -2459,16 +2473,16 @@
2459
2473
  <pre class="lines">
2460
2474
 
2461
2475
 
2462
- 217
2463
- 218
2464
- 219
2465
- 220
2466
- 221
2467
- 222
2468
- 223</pre>
2476
+ 233
2477
+ 234
2478
+ 235
2479
+ 236
2480
+ 237
2481
+ 238
2482
+ 239</pre>
2469
2483
  </td>
2470
2484
  <td>
2471
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 217</span>
2485
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 233</span>
2472
2486
 
2473
2487
  <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>
2474
2488
  <span class='kw'>if</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
@@ -2546,12 +2560,12 @@
2546
2560
  <pre class="lines">
2547
2561
 
2548
2562
 
2549
- 229
2550
- 230
2551
- 231</pre>
2563
+ 245
2564
+ 246
2565
+ 247</pre>
2552
2566
  </td>
2553
2567
  <td>
2554
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 229</span>
2568
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 245</span>
2555
2569
 
2556
2570
  <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>
2557
2571
  <span class='ivar'>@on_format_hook</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span>
@@ -2605,22 +2619,22 @@
2605
2619
  <pre class="lines">
2606
2620
 
2607
2621
 
2608
- 293
2609
- 294
2610
- 295
2611
- 296
2612
- 297
2613
- 298
2614
- 299
2615
- 300
2616
- 301
2617
- 302
2618
- 303
2619
- 304
2620
- 305</pre>
2622
+ 309
2623
+ 310
2624
+ 311
2625
+ 312
2626
+ 313
2627
+ 314
2628
+ 315
2629
+ 316
2630
+ 317
2631
+ 318
2632
+ 319
2633
+ 320
2634
+ 321</pre>
2621
2635
  </td>
2622
2636
  <td>
2623
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 293</span>
2637
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 309</span>
2624
2638
 
2625
2639
  <span class='kw'>def</span> <span class='id identifier rubyid_running_in_ci?'>running_in_ci?</span>
2626
2640
  <span class='kw'>return</span> <span class='ivar'>@running_in_ci</span> <span class='kw'>if</span> <span class='kw'>defined?</span><span class='lparen'>(</span><span class='ivar'>@running_in_ci</span><span class='rparen'>)</span>
@@ -2704,19 +2718,19 @@
2704
2718
  <pre class="lines">
2705
2719
 
2706
2720
 
2707
- 325
2708
- 326
2709
- 327
2710
- 328
2711
- 329
2712
- 330
2713
- 331</pre>
2721
+ 341
2722
+ 342
2723
+ 343
2724
+ 344
2725
+ 345
2726
+ 346
2727
+ 347</pre>
2714
2728
  </td>
2715
2729
  <td>
2716
- <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 325</span>
2730
+ <pre class="code"><span class="info file"># File 'lib/enhanced_errors.rb', line 341</span>
2717
2731
 
2718
2732
  <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>
2719
- <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_type</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>
2733
+ <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>
2720
2734
  <span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Invalid binding_info format.</span><span class='tstring_end'>&quot;</span></span>
2721
2735
  <span class='kw'>return</span> <span class='kw'>nil</span>
2722
2736
  <span class='kw'>end</span>
@@ -2732,7 +2746,7 @@
2732
2746
  </div>
2733
2747
 
2734
2748
  <div id="footer">
2735
- Generated on Tue Oct 22 23:16:25 2024 by
2749
+ Generated on Sun Nov 10 12:01:14 2024 by
2736
2750
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2737
2751
  0.9.37 (ruby-3.1.3).
2738
2752
  </div>