tainted_love 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -1
  3. data/Gemfile.lock +1 -1
  4. data/README.md +8 -0
  5. data/example/Gemfile.lock +1 -1
  6. data/example/test/test_helper.rb +3 -1
  7. data/lib/tainted_love/replacer/replace_action_view.rb +1 -1
  8. data/lib/tainted_love/reporter/file_reporter.rb +9 -5
  9. data/lib/tainted_love/reporter/stdout_reporter.rb +29 -9
  10. data/lib/tainted_love/validator/railties_yaml_load.rb +16 -0
  11. data/lib/tainted_love/version.rb +1 -1
  12. data/tools/web/.gitignore +1 -0
  13. data/tools/web/Gemfile +3 -0
  14. data/tools/web/application.rb +39 -0
  15. data/tools/web/public/application.css +79 -0
  16. data/tools/web/public/application.js +0 -0
  17. data/tools/web/views/index.erb +57 -0
  18. data/tools/web/views/layout.erb +25 -0
  19. data/tools/web/views/line.erb +11 -0
  20. data/tools/web/views/warning.erb +3 -0
  21. data/tools/web/views/warnings.erb +3 -0
  22. metadata +13 -53
  23. data/docs/TaintedLove.html +0 -482
  24. data/docs/TaintedLove/Configuration.html +0 -499
  25. data/docs/TaintedLove/Replacer.html +0 -129
  26. data/docs/TaintedLove/Replacer/ActionViewHelpersMod.html +0 -230
  27. data/docs/TaintedLove/Replacer/Base.html +0 -320
  28. data/docs/TaintedLove/Replacer/HelperMod.html +0 -226
  29. data/docs/TaintedLove/Replacer/HelpersMod.html +0 -230
  30. data/docs/TaintedLove/Replacer/MarshalMod.html +0 -178
  31. data/docs/TaintedLove/Replacer/ObjectMod.html +0 -282
  32. data/docs/TaintedLove/Replacer/ReplaceActionController.html +0 -329
  33. data/docs/TaintedLove/Replacer/ReplaceActionView.html +0 -317
  34. data/docs/TaintedLove/Replacer/ReplaceActiveRecord.html +0 -341
  35. data/docs/TaintedLove/Replacer/ReplaceDigest.html +0 -369
  36. data/docs/TaintedLove/Replacer/ReplaceFile.html +0 -245
  37. data/docs/TaintedLove/Replacer/ReplaceKernel.html +0 -211
  38. data/docs/TaintedLove/Replacer/ReplaceMarshal.html +0 -219
  39. data/docs/TaintedLove/Replacer/ReplaceObject.html +0 -231
  40. data/docs/TaintedLove/Replacer/ReplaceRailsUserInput.html +0 -374
  41. data/docs/TaintedLove/Replacer/ReplaceSprokets.html +0 -297
  42. data/docs/TaintedLove/Replacer/SprocketsHelperMod.html +0 -226
  43. data/docs/TaintedLove/Reporter.html +0 -117
  44. data/docs/TaintedLove/Reporter/Base.html +0 -466
  45. data/docs/TaintedLove/Reporter/RackReporter.html +0 -309
  46. data/docs/TaintedLove/Reporter/SinatraReporter.html +0 -402
  47. data/docs/TaintedLove/Reporter/SinatraReporter/App.html +0 -210
  48. data/docs/TaintedLove/Reporter/StdoutReporter.html +0 -305
  49. data/docs/TaintedLove/SinatraReporter.html +0 -387
  50. data/docs/TaintedLove/SinatraReporter/App.html +0 -210
  51. data/docs/TaintedLove/StackTrace.html +0 -650
  52. data/docs/TaintedLove/Utils.html +0 -550
  53. data/docs/TaintedLove/Validator.html +0 -129
  54. data/docs/TaintedLove/Validator/ActionViewObjectSend.html +0 -233
  55. data/docs/TaintedLove/Validator/Base.html +0 -200
  56. data/docs/TaintedLove/Validator/ErbEval.html +0 -229
  57. data/docs/TaintedLove/Validator/RedisStoreSerialization.html +0 -238
  58. data/docs/TaintedLove/Validator/SproketsMarshal.html +0 -233
  59. data/docs/TaintedLove/Warning.html +0 -665
  60. data/docs/_index.html +0 -371
  61. data/docs/class_list.html +0 -51
  62. data/docs/css/common.css +0 -1
  63. data/docs/css/full_list.css +0 -58
  64. data/docs/css/style.css +0 -496
  65. data/docs/file.README.html +0 -134
  66. data/docs/file_list.html +0 -56
  67. data/docs/frames.html +0 -17
  68. data/docs/index.html +0 -134
  69. data/docs/js/app.js +0 -292
  70. data/docs/js/full_list.js +0 -216
  71. data/docs/js/jquery.js +0 -4
  72. data/docs/method_list.html +0 -523
  73. data/docs/top-level-namespace.html +0 -110
@@ -1,482 +0,0 @@
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
- Module: TaintedLove
8
-
9
- &mdash; Documentation by YARD 0.9.18
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- pathId = "TaintedLove";
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 (T)</a> &raquo;
40
-
41
-
42
- <span class="title">TaintedLove</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>Module: TaintedLove
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
-
70
-
71
-
72
- <dl>
73
- <dt>Extended by:</dt>
74
- <dd><span class='object_link'><a href="TaintedLove/Utils.html" title="TaintedLove::Utils (module)">Utils</a></span></dd>
75
- </dl>
76
-
77
-
78
-
79
-
80
-
81
-
82
-
83
-
84
- <dl>
85
- <dt>Defined in:</dt>
86
- <dd>lib/tainted_love.rb<span class="defines">,<br />
87
- lib/tainted_love/utils.rb,<br /> lib/tainted_love/version.rb,<br /> lib/tainted_love/warning.rb,<br /> lib/tainted_love/stack_trace.rb,<br /> lib/tainted_love/configuration.rb,<br /> lib/tainted_love/replacer/base.rb,<br /> lib/tainted_love/reporter/base.rb,<br /> lib/tainted_love/validator/base.rb,<br /> lib/tainted_love/validator/erb_eval.rb,<br /> lib/tainted_love/replacer/replace_file.rb,<br /> lib/tainted_love/replacer/replace_digest.rb,<br /> lib/tainted_love/replacer/replace_kernel.rb,<br /> lib/tainted_love/replacer/replace_object.rb,<br /> lib/tainted_love/replacer/replace_marshal.rb,<br /> lib/tainted_love/reporter/stdout_reporter.rb,<br /> lib/tainted_love/replacer/replace_sprokets.rb,<br /> lib/tainted_love/reporter/sinatra_reporter.rb,<br /> lib/tainted_love/validator/sprokets_marshal.rb,<br /> lib/tainted_love/replacer/replace_action_view.rb,<br /> lib/tainted_love/replacer/replace_active_record.rb,<br /> lib/tainted_love/replacer/replace_rails_user_input.rb,<br /> lib/tainted_love/validator/action_view_object_send.rb,<br /> lib/tainted_love/replacer/replace_action_controller.rb,<br /> lib/tainted_love/validator/redis_store_serialization.rb</span>
88
- </dd>
89
- </dl>
90
-
91
- </div>
92
-
93
- <h2>Defined Under Namespace</h2>
94
- <p class="children">
95
-
96
-
97
- <strong class="modules">Modules:</strong> <span class='object_link'><a href="TaintedLove/Replacer.html" title="TaintedLove::Replacer (module)">Replacer</a></span>, <span class='object_link'><a href="TaintedLove/Reporter.html" title="TaintedLove::Reporter (module)">Reporter</a></span>, <span class='object_link'><a href="TaintedLove/Utils.html" title="TaintedLove::Utils (module)">Utils</a></span>, <span class='object_link'><a href="TaintedLove/Validator.html" title="TaintedLove::Validator (module)">Validator</a></span>
98
-
99
-
100
-
101
- <strong class="classes">Classes:</strong> <span class='object_link'><a href="TaintedLove/Configuration.html" title="TaintedLove::Configuration (class)">Configuration</a></span>, <span class='object_link'><a href="TaintedLove/StackTrace.html" title="TaintedLove::StackTrace (class)">StackTrace</a></span>, <span class='object_link'><a href="TaintedLove/Warning.html" title="TaintedLove::Warning (class)">Warning</a></span>
102
-
103
-
104
- </p>
105
-
106
-
107
- <h2>
108
- Constant Summary
109
- <small><a href="#" class="constants_summary_toggle">collapse</a></small>
110
- </h2>
111
-
112
- <dl class="constants">
113
-
114
- <dt id="VERSION-constant" class="">VERSION =
115
-
116
- </dt>
117
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>0.1.3</span><span class='tstring_end'>&#39;</span></span></pre></dd>
118
-
119
- </dl>
120
-
121
-
122
-
123
-
124
-
125
- <h2>Class Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
126
- <ul class="summary">
127
-
128
- <li class="public ">
129
- <span class="summary_signature">
130
-
131
- <a href="#configuration-class_method" title="configuration (class method)">.<strong>configuration</strong> &#x21d2; Object </a>
132
-
133
-
134
-
135
- </span>
136
-
137
-
138
-
139
-
140
- <span class="note title readonly">readonly</span>
141
-
142
-
143
-
144
-
145
-
146
-
147
-
148
-
149
-
150
- <span class="summary_desc"><div class='inline'>
151
- <p>Returns the value of attribute configuration.</p>
152
- </div></span>
153
-
154
- </li>
155
-
156
-
157
- </ul>
158
-
159
-
160
-
161
-
162
-
163
- <h2>
164
- Class Method Summary
165
- <small><a href="#" class="summary_toggle">collapse</a></small>
166
- </h2>
167
-
168
- <ul class="summary">
169
-
170
- <li class="public ">
171
- <span class="summary_signature">
172
-
173
- <a href="#enable!-class_method" title="enable! (class method)">.<strong>enable!</strong> {|TaintedLove::Configuration| ... } &#x21d2; Object </a>
174
-
175
-
176
-
177
- </span>
178
-
179
-
180
-
181
-
182
-
183
-
184
-
185
-
186
-
187
- <span class="summary_desc"><div class='inline'>
188
- <p>Enables TaintedLove.</p>
189
- </div></span>
190
-
191
- </li>
192
-
193
-
194
- <li class="public ">
195
- <span class="summary_signature">
196
-
197
- <a href="#report-class_method" title="report (class method)">.<strong>report</strong>(replacer, tainted_input) &#x21d2; Object </a>
198
-
199
-
200
-
201
- </span>
202
-
203
-
204
-
205
-
206
-
207
-
208
-
209
-
210
-
211
- <span class="summary_desc"><div class='inline'>
212
- <p>Report tainted input.</p>
213
- </div></span>
214
-
215
- </li>
216
-
217
-
218
- </ul>
219
-
220
-
221
-
222
-
223
-
224
-
225
-
226
-
227
-
228
-
229
-
230
- <h3 class="inherited">Methods included from <span class='object_link'><a href="TaintedLove/Utils.html" title="TaintedLove::Utils (module)">Utils</a></span></h3>
231
- <p class="inherited"><span class='object_link'><a href="TaintedLove/Utils.html#add_tracking-instance_method" title="TaintedLove::Utils#add_tracking (method)">add_tracking</a></span>, <span class='object_link'><a href="TaintedLove/Utils.html#hash-instance_method" title="TaintedLove::Utils#hash (method)">hash</a></span>, <span class='object_link'><a href="TaintedLove/Utils.html#proxy_method-instance_method" title="TaintedLove::Utils#proxy_method (method)">proxy_method</a></span></p>
232
-
233
- <div id="class_attr_details" class="attr_details">
234
- <h2>Class Attribute Details</h2>
235
-
236
-
237
- <span id=""></span>
238
- <div class="method_details first">
239
- <h3 class="signature first" id="configuration-class_method">
240
-
241
- .<strong>configuration</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
242
-
243
-
244
-
245
-
246
-
247
- </h3><div class="docstring">
248
- <div class="discussion">
249
-
250
- <p>Returns the value of attribute configuration</p>
251
-
252
-
253
- </div>
254
- </div>
255
- <div class="tags">
256
-
257
-
258
- </div><table class="source_code">
259
- <tr>
260
- <td>
261
- <pre class="lines">
262
-
263
-
264
- 9
265
- 10
266
- 11</pre>
267
- </td>
268
- <td>
269
- <pre class="code"><span class="info file"># File 'lib/tainted_love.rb', line 9</span>
270
-
271
- <span class='kw'>def</span> <span class='id identifier rubyid_configuration'>configuration</span>
272
- <span class='ivar'>@configuration</span>
273
- <span class='kw'>end</span></pre>
274
- </td>
275
- </tr>
276
- </table>
277
- </div>
278
-
279
- </div>
280
-
281
-
282
- <div id="class_method_details" class="method_details_list">
283
- <h2>Class Method Details</h2>
284
-
285
-
286
- <div class="method_details first">
287
- <h3 class="signature first" id="enable!-class_method">
288
-
289
- .<strong>enable!</strong> {|TaintedLove::Configuration| ... } &#x21d2; <tt>Object</tt>
290
-
291
-
292
-
293
-
294
-
295
- </h3><div class="docstring">
296
- <div class="discussion">
297
-
298
- <p>Enables TaintedLove. Use a block to configure the
299
- TaintedLove::Configuration</p>
300
-
301
-
302
- </div>
303
- </div>
304
- <div class="tags">
305
-
306
- <p class="tag_title">Yields:</p>
307
- <ul class="yield">
308
-
309
- <li>
310
-
311
-
312
- <span class='type'>(<tt><span class='object_link'><a href="TaintedLove/Configuration.html" title="TaintedLove::Configuration (class)">TaintedLove::Configuration</a></span></tt>)</span>
313
-
314
-
315
-
316
- </li>
317
-
318
- </ul>
319
-
320
- </div><table class="source_code">
321
- <tr>
322
- <td>
323
- <pre class="lines">
324
-
325
-
326
- 15
327
- 16
328
- 17
329
- 18
330
- 19
331
- 20
332
- 21
333
- 22
334
- 23
335
- 24
336
- 25
337
- 26
338
- 27
339
- 28
340
- 29
341
- 30
342
- 31
343
- 32
344
- 33
345
- 34</pre>
346
- </td>
347
- <td>
348
- <pre class="code"><span class="info file"># File 'lib/tainted_love.rb', line 15</span>
349
-
350
- <span class='kw'>def</span> <span class='id identifier rubyid_enable!'>enable!</span>
351
- <span class='id identifier rubyid_configuration'>configuration</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="" title="TaintedLove (module)">TaintedLove</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="TaintedLove/Configuration.html" title="TaintedLove::Configuration (class)">Configuration</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="TaintedLove/Configuration.html#initialize-instance_method" title="TaintedLove::Configuration#initialize (method)">new</a></span></span>
352
-
353
- <span class='id identifier rubyid_configuration'>configuration</span><span class='period'>.</span><span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_info'>info</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>TaintedLove is enabled</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
354
- <span class='id identifier rubyid_configuration'>configuration</span><span class='period'>.</span><span class='id identifier rubyid_replacers'>replacers</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="" title="TaintedLove (module)">TaintedLove</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="TaintedLove/Replacer.html" title="TaintedLove::Replacer (module)">Replacer</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="TaintedLove/Replacer/Base.html" title="TaintedLove::Replacer::Base (class)">Base</a></span></span><span class='period'>.</span><span class='id identifier rubyid_replacers'><span class='object_link'><a href="TaintedLove/Replacer/Base.html#replacers-class_method" title="TaintedLove::Replacer::Base.replacers (method)">replacers</a></span></span>
355
- <span class='id identifier rubyid_configuration'>configuration</span><span class='period'>.</span><span class='id identifier rubyid_validators'>validators</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="" title="TaintedLove (module)">TaintedLove</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="TaintedLove/Validator.html" title="TaintedLove::Validator (module)">Validator</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="TaintedLove/Validator/Base.html" title="TaintedLove::Validator::Base (class)">Base</a></span></span><span class='period'>.</span><span class='id identifier rubyid_validators'><span class='object_link'><a href="TaintedLove/Validator/Base.html#validators-class_method" title="TaintedLove::Validator::Base.validators (method)">validators</a></span></span>
356
- <span class='id identifier rubyid_configuration'>configuration</span><span class='period'>.</span><span class='id identifier rubyid_reporter'>reporter</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="" title="TaintedLove (module)">TaintedLove</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="TaintedLove/Reporter.html" title="TaintedLove::Reporter (module)">Reporter</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="TaintedLove/Reporter/StdoutReporter.html" title="TaintedLove::Reporter::StdoutReporter (class)">StdoutReporter</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="TaintedLove/Reporter/Base.html#initialize-instance_method" title="TaintedLove::Reporter::Base#initialize (method)">new</a></span></span>
357
-
358
- <span class='comment'># Allows customization of which replacers/validators should be used
359
- </span> <span class='kw'>yield</span> <span class='id identifier rubyid_configuration'>configuration</span> <span class='kw'>if</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
360
-
361
- <span class='ivar'>@configuration</span> <span class='op'>=</span> <span class='id identifier rubyid_configuration'>configuration</span>
362
-
363
- <span class='id identifier rubyid_configuration'>configuration</span><span class='period'>.</span><span class='id identifier rubyid_replacers'>replacers</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_replacer'>replacer</span><span class='op'>|</span>
364
- <span class='id identifier rubyid_replacer'>replacer</span> <span class='op'>=</span> <span class='id identifier rubyid_replacer'>replacer</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
365
- <span class='id identifier rubyid_replacer'>replacer</span><span class='period'>.</span><span class='id identifier rubyid_replace!'>replace!</span> <span class='kw'>if</span> <span class='id identifier rubyid_replacer'>replacer</span><span class='period'>.</span><span class='id identifier rubyid_should_replace?'>should_replace?</span>
366
- <span class='kw'>end</span>
367
-
368
- <span class='id identifier rubyid_configuration'>configuration</span>
369
- <span class='kw'>end</span></pre>
370
- </td>
371
- </tr>
372
- </table>
373
- </div>
374
-
375
- <div class="method_details ">
376
- <h3 class="signature " id="report-class_method">
377
-
378
- .<strong>report</strong>(replacer, tainted_input) &#x21d2; <tt>Object</tt>
379
-
380
-
381
-
382
-
383
-
384
- </h3><div class="docstring">
385
- <div class="discussion">
386
-
387
- <p>Report tainted input</p>
388
-
389
-
390
- </div>
391
- </div>
392
- <div class="tags">
393
- <p class="tag_title">Parameters:</p>
394
- <ul class="param">
395
-
396
- <li>
397
-
398
- <span class='name'>replacer</span>
399
-
400
-
401
- <span class='type'>(<tt>Symbol</tt>)</span>
402
-
403
-
404
-
405
- &mdash;
406
- <div class='inline'>
407
- <p>Replacer reporting the issue</p>
408
- </div>
409
-
410
- </li>
411
-
412
- <li>
413
-
414
- <span class='name'>tainted_input</span>
415
-
416
-
417
- <span class='type'>(<tt>Object</tt>)</span>
418
-
419
-
420
-
421
- &mdash;
422
- <div class='inline'>
423
- <p>Tainted object</p>
424
- </div>
425
-
426
- </li>
427
-
428
- </ul>
429
-
430
-
431
- </div><table class="source_code">
432
- <tr>
433
- <td>
434
- <pre class="lines">
435
-
436
-
437
- 40
438
- 41
439
- 42
440
- 43
441
- 44
442
- 45
443
- 46
444
- 47
445
- 48
446
- 49
447
- 50
448
- 51</pre>
449
- </td>
450
- <td>
451
- <pre class="code"><span class="info file"># File 'lib/tainted_love.rb', line 40</span>
452
-
453
- <span class='kw'>def</span> <span class='id identifier rubyid_report'>report</span><span class='lparen'>(</span><span class='id identifier rubyid_replacer'>replacer</span><span class='comma'>,</span> <span class='id identifier rubyid_tainted_input'>tainted_input</span><span class='rparen'>)</span>
454
- <span class='id identifier rubyid_warning'>warning</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="" title="TaintedLove (module)">TaintedLove</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="TaintedLove/Warning.html" title="TaintedLove::Warning (class)">Warning</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="TaintedLove/Warning.html#initialize-instance_method" title="TaintedLove::Warning#initialize (method)">new</a></span></span>
455
- <span class='id identifier rubyid_warning'>warning</span><span class='period'>.</span><span class='id identifier rubyid_tainted_input'>tainted_input</span> <span class='op'>=</span> <span class='id identifier rubyid_tainted_input'>tainted_input</span>
456
- <span class='id identifier rubyid_warning'>warning</span><span class='period'>.</span><span class='id identifier rubyid_stack_trace'>stack_trace</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="" title="TaintedLove (module)">TaintedLove</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="TaintedLove/StackTrace.html" title="TaintedLove::StackTrace (class)">StackTrace</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="TaintedLove/StackTrace.html#initialize-instance_method" title="TaintedLove::StackTrace#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='const'>Thread</span><span class='period'>.</span><span class='id identifier rubyid_current'>current</span><span class='period'>.</span><span class='id identifier rubyid_backtrace'>backtrace</span><span class='lparen'>(</span><span class='int'>3</span><span class='rparen'>)</span><span class='rparen'>)</span>
457
- <span class='id identifier rubyid_warning'>warning</span><span class='period'>.</span><span class='id identifier rubyid_replacer'>replacer</span> <span class='op'>=</span> <span class='id identifier rubyid_replacer'>replacer</span>
458
-
459
- <span class='id identifier rubyid_should_remove'>should_remove</span> <span class='op'>=</span> <span class='ivar'>@configuration</span><span class='period'>.</span><span class='id identifier rubyid_validators'>validators</span><span class='period'>.</span><span class='id identifier rubyid_any?'>any?</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_validator'>validator</span><span class='op'>|</span>
460
- <span class='id identifier rubyid_validator'>validator</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='period'>.</span><span class='id identifier rubyid_remove?'>remove?</span><span class='lparen'>(</span><span class='id identifier rubyid_warning'>warning</span><span class='rparen'>)</span>
461
- <span class='kw'>end</span>
462
-
463
- <span class='ivar'>@configuration</span><span class='period'>.</span><span class='id identifier rubyid_reporter'>reporter</span><span class='period'>.</span><span class='id identifier rubyid_add_warning'>add_warning</span><span class='lparen'>(</span><span class='id identifier rubyid_warning'>warning</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='id identifier rubyid_should_remove'>should_remove</span>
464
- <span class='kw'>end</span></pre>
465
- </td>
466
- </tr>
467
- </table>
468
- </div>
469
-
470
- </div>
471
-
472
- </div>
473
-
474
- <div id="footer">
475
- Generated on Tue Apr 2 15:50:34 2019 by
476
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
477
- 0.9.18 (ruby-2.5.3).
478
- </div>
479
-
480
- </div>
481
- </body>
482
- </html>