enhanced_errors 2.1.3 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.yardoc/checksums +4 -2
- data/.yardoc/object_types +0 -0
- data/.yardoc/objects/root.dat +0 -0
- data/doc/Context.html +283 -0
- data/doc/Enhanced/Colors.html +1 -1
- data/doc/Enhanced.html +1 -1
- data/doc/EnhancedErrors.html +63 -61
- data/doc/EnhancedExceptionContext.html +397 -0
- data/doc/Exception.html +9 -139
- data/doc/ExceptionBindingInfos.html +255 -0
- data/doc/Minitest.html +1 -1
- data/doc/_index.html +16 -1
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +1 -1
- data/doc/index.html +1 -1
- data/doc/method_list.html +84 -36
- data/doc/top-level-namespace.html +3 -3
- data/enhanced_errors.gemspec +1 -1
- data/examples/demo_rspec.rb +0 -4
- data/lib/enhanced/context.rb +7 -0
- data/lib/enhanced/enhanced_exception_context.rb +47 -0
- data/lib/enhanced/exception.rb +15 -5
- data/lib/enhanced_errors.rb +6 -5
- metadata +7 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 652ef4dea4409fb68f856748fd7f7098ba59775671cd5fad9e5b477499e13571
         | 
| 4 | 
            +
              data.tar.gz: fec85707f98aacab2f321fa69334fddaf20ad9fe66923db7a6ab265d2d3d3eb7
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 02c8f335a839bdac98d380be69805c479041ec045bf39d91d9e410426722969bb34a224c71853dfaceeaabd4a260bcf1a57827e8fd2193d348ceb07a89d470bc
         | 
| 7 | 
            +
              data.tar.gz: 1869bab096f6f5f40729b73dcd3f20bffbf8770bdd22242a0576a14447883f154e5548a4eddf12acd1eb57da6136545909ad0dd8588706d396c62beda90c7031
         | 
    
        data/.yardoc/checksums
    CHANGED
    
    | @@ -1,4 +1,6 @@ | |
| 1 1 | 
             
            lib/enhanced/colors.rb ed3b11d00ff9ceed089d4a65f0be5b3fca64bbe6
         | 
| 2 | 
            -
            lib/enhanced_errors.rb  | 
| 3 | 
            -
            lib/enhanced/ | 
| 2 | 
            +
            lib/enhanced_errors.rb 76aa5637b95a6bff38f5da383191553578aad257
         | 
| 3 | 
            +
            lib/enhanced/context.rb 24ca2d1f4ee2ff48dd83c913ad1f1e7c1aa367c4
         | 
| 4 | 
            +
            lib/enhanced/exception.rb 5572411e9e32bbe9ed01b98787e1a53a4ab61408
         | 
| 4 5 | 
             
            lib/enhanced/minitest_patch.rb c8c934389dfa3789de66eeeacc8402a48a34d5b4
         | 
| 6 | 
            +
            lib/enhanced/enhanced_exception_context.rb 23423dbdb33b7961a0b8a297e052ebb2fbe1c6ac
         | 
    
        data/.yardoc/object_types
    CHANGED
    
    | Binary file | 
    
        data/.yardoc/objects/root.dat
    CHANGED
    
    | Binary file | 
    
        data/doc/Context.html
    ADDED
    
    | @@ -0,0 +1,283 @@ | |
| 1 | 
            +
            <!DOCTYPE html>
         | 
| 2 | 
            +
            <html>
         | 
| 3 | 
            +
              <head>
         | 
| 4 | 
            +
                <meta charset="utf-8">
         | 
| 5 | 
            +
            <meta name="viewport" content="width=device-width, initial-scale=1.0">
         | 
| 6 | 
            +
            <title>
         | 
| 7 | 
            +
              Class: Context
         | 
| 8 | 
            +
              
         | 
| 9 | 
            +
                — Documentation by YARD 0.9.37
         | 
| 10 | 
            +
              
         | 
| 11 | 
            +
            </title>
         | 
| 12 | 
            +
             | 
| 13 | 
            +
              <link rel="stylesheet" href="css/style.css" type="text/css" />
         | 
| 14 | 
            +
             | 
| 15 | 
            +
              <link rel="stylesheet" href="css/common.css" type="text/css" />
         | 
| 16 | 
            +
             | 
| 17 | 
            +
            <script type="text/javascript">
         | 
| 18 | 
            +
              pathId = "Context";
         | 
| 19 | 
            +
              relpath = '';
         | 
| 20 | 
            +
            </script>
         | 
| 21 | 
            +
             | 
| 22 | 
            +
             | 
| 23 | 
            +
              <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
         | 
| 24 | 
            +
             | 
| 25 | 
            +
              <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
         | 
| 26 | 
            +
             | 
| 27 | 
            +
             | 
| 28 | 
            +
              </head>
         | 
| 29 | 
            +
              <body>
         | 
| 30 | 
            +
                <div class="nav_wrap">
         | 
| 31 | 
            +
                  <iframe id="nav" src="class_list.html?1"></iframe>
         | 
| 32 | 
            +
                  <div id="resizer"></div>
         | 
| 33 | 
            +
                </div>
         | 
| 34 | 
            +
             | 
| 35 | 
            +
                <div id="main" tabindex="-1">
         | 
| 36 | 
            +
                  <div id="header">
         | 
| 37 | 
            +
                    <div id="menu">
         | 
| 38 | 
            +
              
         | 
| 39 | 
            +
                <a href="_index.html">Index (C)</a> »
         | 
| 40 | 
            +
                
         | 
| 41 | 
            +
                
         | 
| 42 | 
            +
                <span class="title">Context</span>
         | 
| 43 | 
            +
              
         | 
| 44 | 
            +
            </div>
         | 
| 45 | 
            +
             | 
| 46 | 
            +
                    <div id="search">
         | 
| 47 | 
            +
              
         | 
| 48 | 
            +
                <a class="full_list_link" id="class_list_link"
         | 
| 49 | 
            +
                    href="class_list.html">
         | 
| 50 | 
            +
             | 
| 51 | 
            +
                    <svg width="24" height="24">
         | 
| 52 | 
            +
                      <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
         | 
| 53 | 
            +
                      <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
         | 
| 54 | 
            +
                      <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
         | 
| 55 | 
            +
                    </svg>
         | 
| 56 | 
            +
                </a>
         | 
| 57 | 
            +
              
         | 
| 58 | 
            +
            </div>
         | 
| 59 | 
            +
                    <div class="clear"></div>
         | 
| 60 | 
            +
                  </div>
         | 
| 61 | 
            +
             | 
| 62 | 
            +
                  <div id="content"><h1>Class: Context
         | 
| 63 | 
            +
              
         | 
| 64 | 
            +
              
         | 
| 65 | 
            +
              
         | 
| 66 | 
            +
            </h1>
         | 
| 67 | 
            +
            <div class="box_info">
         | 
| 68 | 
            +
              
         | 
| 69 | 
            +
              <dl>
         | 
| 70 | 
            +
                <dt>Inherits:</dt>
         | 
| 71 | 
            +
                <dd>
         | 
| 72 | 
            +
                  <span class="inheritName">Object</span>
         | 
| 73 | 
            +
                  
         | 
| 74 | 
            +
                    <ul class="fullTree">
         | 
| 75 | 
            +
                      <li>Object</li>
         | 
| 76 | 
            +
                      
         | 
| 77 | 
            +
                        <li class="next">Context</li>
         | 
| 78 | 
            +
                      
         | 
| 79 | 
            +
                    </ul>
         | 
| 80 | 
            +
                    <a href="#" class="inheritanceTree">show all</a>
         | 
| 81 | 
            +
                  
         | 
| 82 | 
            +
                </dd>
         | 
| 83 | 
            +
              </dl>
         | 
| 84 | 
            +
              
         | 
| 85 | 
            +
             | 
| 86 | 
            +
              
         | 
| 87 | 
            +
              
         | 
| 88 | 
            +
              
         | 
| 89 | 
            +
              
         | 
| 90 | 
            +
              
         | 
| 91 | 
            +
             | 
| 92 | 
            +
              
         | 
| 93 | 
            +
             | 
| 94 | 
            +
              
         | 
| 95 | 
            +
              <dl>
         | 
| 96 | 
            +
                <dt>Defined in:</dt>
         | 
| 97 | 
            +
                <dd>lib/enhanced/context.rb</dd>
         | 
| 98 | 
            +
              </dl>
         | 
| 99 | 
            +
              
         | 
| 100 | 
            +
            </div>
         | 
| 101 | 
            +
             | 
| 102 | 
            +
             | 
| 103 | 
            +
             | 
| 104 | 
            +
             | 
| 105 | 
            +
             | 
| 106 | 
            +
              <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
         | 
| 107 | 
            +
              <ul class="summary">
         | 
| 108 | 
            +
                
         | 
| 109 | 
            +
                  <li class="public ">
         | 
| 110 | 
            +
              <span class="summary_signature">
         | 
| 111 | 
            +
                
         | 
| 112 | 
            +
                  <a href="#binding_infos-instance_method" title="#binding_infos (instance method)">#<strong>binding_infos</strong>  ⇒ Object </a>
         | 
| 113 | 
            +
                
         | 
| 114 | 
            +
             | 
| 115 | 
            +
                
         | 
| 116 | 
            +
              </span>
         | 
| 117 | 
            +
              
         | 
| 118 | 
            +
              
         | 
| 119 | 
            +
              
         | 
| 120 | 
            +
                
         | 
| 121 | 
            +
                
         | 
| 122 | 
            +
              
         | 
| 123 | 
            +
              
         | 
| 124 | 
            +
              
         | 
| 125 | 
            +
              
         | 
| 126 | 
            +
              
         | 
| 127 | 
            +
             | 
| 128 | 
            +
              
         | 
| 129 | 
            +
                <span class="summary_desc"><div class='inline'>
         | 
| 130 | 
            +
            <p>Returns the value of attribute binding_infos.</p>
         | 
| 131 | 
            +
            </div></span>
         | 
| 132 | 
            +
              
         | 
| 133 | 
            +
            </li>
         | 
| 134 | 
            +
             | 
| 135 | 
            +
                
         | 
| 136 | 
            +
              </ul>
         | 
| 137 | 
            +
             | 
| 138 | 
            +
             | 
| 139 | 
            +
             | 
| 140 | 
            +
             | 
| 141 | 
            +
              
         | 
| 142 | 
            +
                <h2>
         | 
| 143 | 
            +
                  Instance Method Summary
         | 
| 144 | 
            +
                  <small><a href="#" class="summary_toggle">collapse</a></small>
         | 
| 145 | 
            +
                </h2>
         | 
| 146 | 
            +
             | 
| 147 | 
            +
                <ul class="summary">
         | 
| 148 | 
            +
                  
         | 
| 149 | 
            +
                    <li class="public ">
         | 
| 150 | 
            +
              <span class="summary_signature">
         | 
| 151 | 
            +
                
         | 
| 152 | 
            +
                  <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>  ⇒ Context </a>
         | 
| 153 | 
            +
                
         | 
| 154 | 
            +
             | 
| 155 | 
            +
                
         | 
| 156 | 
            +
              </span>
         | 
| 157 | 
            +
              
         | 
| 158 | 
            +
              
         | 
| 159 | 
            +
                <span class="note title constructor">constructor</span>
         | 
| 160 | 
            +
              
         | 
| 161 | 
            +
              
         | 
| 162 | 
            +
              
         | 
| 163 | 
            +
              
         | 
| 164 | 
            +
              
         | 
| 165 | 
            +
              
         | 
| 166 | 
            +
             | 
| 167 | 
            +
              
         | 
| 168 | 
            +
                <span class="summary_desc"><div class='inline'>
         | 
| 169 | 
            +
            <p>A new instance of Context.</p>
         | 
| 170 | 
            +
            </div></span>
         | 
| 171 | 
            +
              
         | 
| 172 | 
            +
            </li>
         | 
| 173 | 
            +
             | 
| 174 | 
            +
                  
         | 
| 175 | 
            +
                </ul>
         | 
| 176 | 
            +
              
         | 
| 177 | 
            +
             | 
| 178 | 
            +
            <div id="constructor_details" class="method_details_list">
         | 
| 179 | 
            +
              <h2>Constructor Details</h2>
         | 
| 180 | 
            +
              
         | 
| 181 | 
            +
                <div class="method_details first">
         | 
| 182 | 
            +
              <h3 class="signature first" id="initialize-instance_method">
         | 
| 183 | 
            +
              
         | 
| 184 | 
            +
                #<strong>initialize</strong>  ⇒ <tt><span class='object_link'><a href="" title="Context (class)">Context</a></span></tt> 
         | 
| 185 | 
            +
              
         | 
| 186 | 
            +
             | 
| 187 | 
            +
              
         | 
| 188 | 
            +
             | 
| 189 | 
            +
              
         | 
| 190 | 
            +
            </h3><div class="docstring">
         | 
| 191 | 
            +
              <div class="discussion">
         | 
| 192 | 
            +
                
         | 
| 193 | 
            +
            <p>Returns a new instance of Context.</p>
         | 
| 194 | 
            +
             | 
| 195 | 
            +
             | 
| 196 | 
            +
              </div>
         | 
| 197 | 
            +
            </div>
         | 
| 198 | 
            +
            <div class="tags">
         | 
| 199 | 
            +
              
         | 
| 200 | 
            +
             | 
| 201 | 
            +
            </div><table class="source_code">
         | 
| 202 | 
            +
              <tr>
         | 
| 203 | 
            +
                <td>
         | 
| 204 | 
            +
                  <pre class="lines">
         | 
| 205 | 
            +
             | 
| 206 | 
            +
             | 
| 207 | 
            +
            4
         | 
| 208 | 
            +
            5
         | 
| 209 | 
            +
            6</pre>
         | 
| 210 | 
            +
                </td>
         | 
| 211 | 
            +
                <td>
         | 
| 212 | 
            +
                  <pre class="code"><span class="info file"># File 'lib/enhanced/context.rb', line 4</span>
         | 
| 213 | 
            +
             | 
| 214 | 
            +
            <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
         | 
| 215 | 
            +
              <span class='ivar'>@binding_infos</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
         | 
| 216 | 
            +
            <span class='kw'>end</span></pre>
         | 
| 217 | 
            +
                </td>
         | 
| 218 | 
            +
              </tr>
         | 
| 219 | 
            +
            </table>
         | 
| 220 | 
            +
            </div>
         | 
| 221 | 
            +
              
         | 
| 222 | 
            +
            </div>
         | 
| 223 | 
            +
             | 
| 224 | 
            +
              <div id="instance_attr_details" class="attr_details">
         | 
| 225 | 
            +
                <h2>Instance Attribute Details</h2>
         | 
| 226 | 
            +
                
         | 
| 227 | 
            +
                  
         | 
| 228 | 
            +
                  <span id="binding_infos=-instance_method"></span>
         | 
| 229 | 
            +
                  <div class="method_details first">
         | 
| 230 | 
            +
              <h3 class="signature first" id="binding_infos-instance_method">
         | 
| 231 | 
            +
              
         | 
| 232 | 
            +
                #<strong>binding_infos</strong>  ⇒ <tt>Object</tt> 
         | 
| 233 | 
            +
              
         | 
| 234 | 
            +
             | 
| 235 | 
            +
              
         | 
| 236 | 
            +
             | 
| 237 | 
            +
              
         | 
| 238 | 
            +
            </h3><div class="docstring">
         | 
| 239 | 
            +
              <div class="discussion">
         | 
| 240 | 
            +
                
         | 
| 241 | 
            +
            <p>Returns the value of attribute binding_infos.</p>
         | 
| 242 | 
            +
             | 
| 243 | 
            +
             | 
| 244 | 
            +
              </div>
         | 
| 245 | 
            +
            </div>
         | 
| 246 | 
            +
            <div class="tags">
         | 
| 247 | 
            +
              
         | 
| 248 | 
            +
             | 
| 249 | 
            +
            </div><table class="source_code">
         | 
| 250 | 
            +
              <tr>
         | 
| 251 | 
            +
                <td>
         | 
| 252 | 
            +
                  <pre class="lines">
         | 
| 253 | 
            +
             | 
| 254 | 
            +
             | 
| 255 | 
            +
            2
         | 
| 256 | 
            +
            3
         | 
| 257 | 
            +
            4</pre>
         | 
| 258 | 
            +
                </td>
         | 
| 259 | 
            +
                <td>
         | 
| 260 | 
            +
                  <pre class="code"><span class="info file"># File 'lib/enhanced/context.rb', line 2</span>
         | 
| 261 | 
            +
             | 
| 262 | 
            +
            <span class='kw'>def</span> <span class='id identifier rubyid_binding_infos'>binding_infos</span>
         | 
| 263 | 
            +
              <span class='ivar'>@binding_infos</span>
         | 
| 264 | 
            +
            <span class='kw'>end</span></pre>
         | 
| 265 | 
            +
                </td>
         | 
| 266 | 
            +
              </tr>
         | 
| 267 | 
            +
            </table>
         | 
| 268 | 
            +
            </div>
         | 
| 269 | 
            +
                
         | 
| 270 | 
            +
              </div>
         | 
| 271 | 
            +
             | 
| 272 | 
            +
             | 
| 273 | 
            +
            </div>
         | 
| 274 | 
            +
             | 
| 275 | 
            +
                  <div id="footer">
         | 
| 276 | 
            +
              Generated on Tue Dec 17 14:09:26 2024 by
         | 
| 277 | 
            +
              <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
         | 
| 278 | 
            +
              0.9.37 (ruby-3.3.6).
         | 
| 279 | 
            +
            </div>
         | 
| 280 | 
            +
             | 
| 281 | 
            +
                </div>
         | 
| 282 | 
            +
              </body>
         | 
| 283 | 
            +
            </html>
         | 
    
        data/doc/Enhanced/Colors.html
    CHANGED
    
    | @@ -381,7 +381,7 @@ | |
| 381 381 | 
             
            </div>
         | 
| 382 382 |  | 
| 383 383 | 
             
                  <div id="footer">
         | 
| 384 | 
            -
              Generated on  | 
| 384 | 
            +
              Generated on Tue Dec 17 14:09:26 2024 by
         | 
| 385 385 | 
             
              <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
         | 
| 386 386 | 
             
              0.9.37 (ruby-3.3.6).
         | 
| 387 387 | 
             
            </div>
         | 
    
        data/doc/Enhanced.html
    CHANGED
    
    | @@ -110,7 +110,7 @@ | |
| 110 110 | 
             
            </div>
         | 
| 111 111 |  | 
| 112 112 | 
             
                  <div id="footer">
         | 
| 113 | 
            -
              Generated on  | 
| 113 | 
            +
              Generated on Tue Dec 17 14:09:26 2024 by
         | 
| 114 114 | 
             
              <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
         | 
| 115 115 | 
             
              0.9.37 (ruby-3.3.6).
         | 
| 116 116 | 
             
            </div>
         |