enhanced_errors 2.1.3 → 3.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 513b8ed3fa638473a49b9ada309fc2282212cb1009855a5af81c3c3e3f7fc5d2
4
- data.tar.gz: 74831a00033cfc88ea7fedc4363c07702f05e51d708636c723833aad420c1e0b
3
+ metadata.gz: a8efc7b9715b813d79eb37a6d20b5977094ee4190a505d57820e0b82b8284878
4
+ data.tar.gz: 9914dbe5fc5f7d354b8bfdd967197dc062a7fdba4b6cf5e77a868f0f532ee5bb
5
5
  SHA512:
6
- metadata.gz: 8f5273f036ab1d936e392e889f58cbbe5080e5b17a5c15283dee19a67f6ff4a32ee1c7ae9d7565ceebb915e5d8b58fca7f1b7b519f79339b1b9abee2a54035f2
7
- data.tar.gz: a2b2ab7ca50dff2f1446a94dba0e952da52acf0f00596839a212007ab63eb40f4fa1b08d815cc2b6f3a244f778deecf9c3270d46ff58b6d7a819ba49ac178fbf
6
+ metadata.gz: 5848a612d8ab1c209aafc70943115b399286d2ba894465ce05b17002485504cf0188cdc59171b5c3e7fa547b2de88cf6fcc459fcf76bb43462886d9cc16a0f3c
7
+ data.tar.gz: 4f0dadf6d0ff3640b7a7483926fd4ab62b4981291f2fc480722ef693ff2f784c804d9c313e507fbb64eb9d1b4ff0de9bb5e416b07cb45f476b83c13f7c1a045d
data/.yardoc/checksums CHANGED
@@ -1,4 +1,6 @@
1
1
  lib/enhanced/colors.rb ed3b11d00ff9ceed089d4a65f0be5b3fca64bbe6
2
- lib/enhanced_errors.rb efa6c18fdbde38083877a48d6c5e10d390c34ab0
3
- lib/enhanced/exception.rb 72c62e85ce9cea875bc3e835240059bbf1b00f0b
2
+ lib/enhanced_errors.rb e10cc8625a5bec6503d359dd006ad478cf3544c4
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
Binary file
data/README.md CHANGED
@@ -200,7 +200,7 @@ You can pass configuration options to `enhance_exceptions!`:
200
200
 
201
201
  ```ruby
202
202
 
203
- EnhancedErrors.enhance_exceptions!(enabled: true, max_length: 2000) do
203
+ EnhancedErrors.enhance_exceptions!(enabled: true, max_capture_length: 2000) do
204
204
  # Additional configuration here
205
205
  add_to_skip_list :@instance_variable_to_skip, :local_to_skip
206
206
  end
@@ -208,7 +208,7 @@ end
208
208
  ```
209
209
  - `add_to_skip_list`: Variables to ignore, as symbols. ex: :@instance_variable_to_skip, :local_to_skip`
210
210
  - `enabled`: Enables or disables the enhancement (default: `true`).
211
- - `max_length`: Sets the maximum length of the captured_variables string (default: `2500`).
211
+ - `max_capture_length`: Sets the maximum length of the captured_variables string (default: `2500`).
212
212
 
213
213
 
214
214
  ### Environment-Based Defaults
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
+ &mdash; 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> &raquo;
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> &#x21d2; 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> &#x21d2; 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> &#x21d2; <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> &#x21d2; <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 15:42:48 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>
@@ -381,7 +381,7 @@
381
381
  </div>
382
382
 
383
383
  <div id="footer">
384
- Generated on Mon Dec 16 11:33:57 2024 by
384
+ Generated on Tue Dec 17 15:42:48 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 Mon Dec 16 11:33:57 2024 by
113
+ Generated on Tue Dec 17 15:42:48 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>