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,226 +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::Replacer::SprocketsHelperMod
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::Replacer::SprocketsHelperMod";
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 (S)</a> &raquo;
40
- <span class='title'><span class='object_link'><a href="../../TaintedLove.html" title="TaintedLove (module)">TaintedLove</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Replacer.html" title="TaintedLove::Replacer (module)">Replacer</a></span></span>
41
- &raquo;
42
- <span class="title">SprocketsHelperMod</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::Replacer::SprocketsHelperMod
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
-
70
-
71
-
72
-
73
-
74
-
75
-
76
-
77
-
78
-
79
- <dl>
80
- <dt>Defined in:</dt>
81
- <dd>lib/tainted_love/replacer/replace_sprokets.rb</dd>
82
- </dl>
83
-
84
- </div>
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
- <h2>
95
- Instance Method Summary
96
- <small><a href="#" class="summary_toggle">collapse</a></small>
97
- </h2>
98
-
99
- <ul class="summary">
100
-
101
- <li class="public ">
102
- <span class="summary_signature">
103
-
104
- <a href="#javascript_include_tag-instance_method" title="#javascript_include_tag (instance method)">#<strong>javascript_include_tag</strong>(*sources) &#x21d2; Object </a>
105
-
106
-
107
-
108
- </span>
109
-
110
-
111
-
112
-
113
-
114
-
115
-
116
-
117
-
118
- <span class="summary_desc"><div class='inline'></div></span>
119
-
120
- </li>
121
-
122
-
123
- <li class="public ">
124
- <span class="summary_signature">
125
-
126
- <a href="#stylesheet_link_tag-instance_method" title="#stylesheet_link_tag (instance method)">#<strong>stylesheet_link_tag</strong>(*sources) &#x21d2; Object </a>
127
-
128
-
129
-
130
- </span>
131
-
132
-
133
-
134
-
135
-
136
-
137
-
138
-
139
-
140
- <span class="summary_desc"><div class='inline'></div></span>
141
-
142
- </li>
143
-
144
-
145
- </ul>
146
-
147
-
148
-
149
-
150
- <div id="instance_method_details" class="method_details_list">
151
- <h2>Instance Method Details</h2>
152
-
153
-
154
- <div class="method_details first">
155
- <h3 class="signature first" id="javascript_include_tag-instance_method">
156
-
157
- #<strong>javascript_include_tag</strong>(*sources) &#x21d2; <tt>Object</tt>
158
-
159
-
160
-
161
-
162
-
163
- </h3><table class="source_code">
164
- <tr>
165
- <td>
166
- <pre class="lines">
167
-
168
-
169
- 16
170
- 17
171
- 18</pre>
172
- </td>
173
- <td>
174
- <pre class="code"><span class="info file"># File 'lib/tainted_love/replacer/replace_sprokets.rb', line 16</span>
175
-
176
- <span class='kw'>def</span> <span class='id identifier rubyid_javascript_include_tag'>javascript_include_tag</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_sources'>sources</span><span class='rparen'>)</span>
177
- <span class='kw'>super</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_sources'>sources</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_untaint'>untaint</span>
178
- <span class='kw'>end</span></pre>
179
- </td>
180
- </tr>
181
- </table>
182
- </div>
183
-
184
- <div class="method_details ">
185
- <h3 class="signature " id="stylesheet_link_tag-instance_method">
186
-
187
- #<strong>stylesheet_link_tag</strong>(*sources) &#x21d2; <tt>Object</tt>
188
-
189
-
190
-
191
-
192
-
193
- </h3><table class="source_code">
194
- <tr>
195
- <td>
196
- <pre class="lines">
197
-
198
-
199
- 20
200
- 21
201
- 22</pre>
202
- </td>
203
- <td>
204
- <pre class="code"><span class="info file"># File 'lib/tainted_love/replacer/replace_sprokets.rb', line 20</span>
205
-
206
- <span class='kw'>def</span> <span class='id identifier rubyid_stylesheet_link_tag'>stylesheet_link_tag</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_sources'>sources</span><span class='rparen'>)</span>
207
- <span class='kw'>super</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_sources'>sources</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_untaint'>untaint</span>
208
- <span class='kw'>end</span></pre>
209
- </td>
210
- </tr>
211
- </table>
212
- </div>
213
-
214
- </div>
215
-
216
- </div>
217
-
218
- <div id="footer">
219
- Generated on Mon Apr 1 14:07:45 2019 by
220
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
221
- 0.9.18 (ruby-2.5.3).
222
- </div>
223
-
224
- </div>
225
- </body>
226
- </html>
@@ -1,117 +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::Reporter
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::Reporter";
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 (R)</a> &raquo;
40
- <span class='title'><span class='object_link'><a href="../TaintedLove.html" title="TaintedLove (module)">TaintedLove</a></span></span>
41
- &raquo;
42
- <span class="title">Reporter</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::Reporter
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
-
70
-
71
-
72
-
73
-
74
-
75
-
76
-
77
-
78
-
79
- <dl>
80
- <dt>Defined in:</dt>
81
- <dd>lib/tainted_love/reporter/base.rb<span class="defines">,<br />
82
- lib/tainted_love/reporter/stdout_reporter.rb,<br /> lib/tainted_love/reporter/sinatra_reporter.rb</span>
83
- </dd>
84
- </dl>
85
-
86
- </div>
87
-
88
- <h2>Defined Under Namespace</h2>
89
- <p class="children">
90
-
91
-
92
-
93
-
94
- <strong class="classes">Classes:</strong> <span class='object_link'><a href="Reporter/Base.html" title="TaintedLove::Reporter::Base (class)">Base</a></span>, <span class='object_link'><a href="Reporter/SinatraReporter.html" title="TaintedLove::Reporter::SinatraReporter (class)">SinatraReporter</a></span>, <span class='object_link'><a href="Reporter/StdoutReporter.html" title="TaintedLove::Reporter::StdoutReporter (class)">StdoutReporter</a></span>
95
-
96
-
97
- </p>
98
-
99
-
100
-
101
-
102
-
103
-
104
-
105
-
106
-
107
- </div>
108
-
109
- <div id="footer">
110
- Generated on Tue Apr 2 15:50:34 2019 by
111
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
112
- 0.9.18 (ruby-2.5.3).
113
- </div>
114
-
115
- </div>
116
- </body>
117
- </html>
@@ -1,466 +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
- Class: TaintedLove::Reporter::Base
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::Reporter::Base";
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 (B)</a> &raquo;
40
- <span class='title'><span class='object_link'><a href="../../TaintedLove.html" title="TaintedLove (module)">TaintedLove</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Reporter.html" title="TaintedLove::Reporter (module)">Reporter</a></span></span>
41
- &raquo;
42
- <span class="title">Base</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: TaintedLove::Reporter::Base
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">TaintedLove::Reporter::Base</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/tainted_love/reporter/base.rb</dd>
98
- </dl>
99
-
100
- </div>
101
-
102
- <h2>Overview</h2><div class="docstring">
103
- <div class="discussion">
104
-
105
- <p>Base reporter</p>
106
-
107
-
108
- </div>
109
- </div>
110
- <div class="tags">
111
-
112
-
113
- </div><div id="subclasses">
114
- <h2>Direct Known Subclasses</h2>
115
- <p class="children"><span class='object_link'><a href="SinatraReporter.html" title="TaintedLove::Reporter::SinatraReporter (class)">SinatraReporter</a></span>, <span class='object_link'><a href="StdoutReporter.html" title="TaintedLove::Reporter::StdoutReporter (class)">StdoutReporter</a></span></p>
116
- </div>
117
-
118
-
119
-
120
-
121
- <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
122
- <ul class="summary">
123
-
124
- <li class="public ">
125
- <span class="summary_signature">
126
-
127
- <a href="#warnings-instance_method" title="#warnings (instance method)">#<strong>warnings</strong> &#x21d2; Object </a>
128
-
129
-
130
-
131
- </span>
132
-
133
-
134
-
135
-
136
- <span class="note title readonly">readonly</span>
137
-
138
-
139
-
140
-
141
-
142
-
143
-
144
-
145
-
146
- <span class="summary_desc"><div class='inline'>
147
- <p>Returns the value of attribute warnings.</p>
148
- </div></span>
149
-
150
- </li>
151
-
152
-
153
- </ul>
154
-
155
-
156
-
157
-
158
-
159
- <h2>
160
- Instance Method Summary
161
- <small><a href="#" class="summary_toggle">collapse</a></small>
162
- </h2>
163
-
164
- <ul class="summary">
165
-
166
- <li class="public ">
167
- <span class="summary_signature">
168
-
169
- <a href="#add_warning-instance_method" title="#add_warning (instance method)">#<strong>add_warning</strong>(warning) &#x21d2; Object </a>
170
-
171
-
172
-
173
- </span>
174
-
175
-
176
-
177
-
178
-
179
-
180
-
181
-
182
-
183
- <span class="summary_desc"><div class='inline'>
184
- <p>Adds a warning to the reporter.</p>
185
- </div></span>
186
-
187
- </li>
188
-
189
-
190
- <li class="public ">
191
- <span class="summary_signature">
192
-
193
- <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong> &#x21d2; Base </a>
194
-
195
-
196
-
197
- </span>
198
-
199
-
200
- <span class="note title constructor">constructor</span>
201
-
202
-
203
-
204
-
205
-
206
-
207
-
208
-
209
- <span class="summary_desc"><div class='inline'>
210
- <p>A new instance of Base.</p>
211
- </div></span>
212
-
213
- </li>
214
-
215
-
216
- <li class="public ">
217
- <span class="summary_signature">
218
-
219
- <a href="#store_warning-instance_method" title="#store_warning (instance method)">#<strong>store_warning</strong>(warning) &#x21d2; Object </a>
220
-
221
-
222
-
223
- </span>
224
-
225
-
226
-
227
-
228
-
229
-
230
-
231
-
232
-
233
- <span class="summary_desc"><div class='inline'>
234
- <p>Stores a warning by its stack trace hash.</p>
235
- </div></span>
236
-
237
- </li>
238
-
239
-
240
- </ul>
241
-
242
-
243
- <div id="constructor_details" class="method_details_list">
244
- <h2>Constructor Details</h2>
245
-
246
- <div class="method_details first">
247
- <h3 class="signature first" id="initialize-instance_method">
248
-
249
- #<strong>initialize</strong> &#x21d2; <tt><span class='object_link'><a href="" title="TaintedLove::Reporter::Base (class)">Base</a></span></tt>
250
-
251
-
252
-
253
-
254
-
255
- </h3><div class="docstring">
256
- <div class="discussion">
257
-
258
- <p>Returns a new instance of Base</p>
259
-
260
-
261
- </div>
262
- </div>
263
- <div class="tags">
264
-
265
-
266
- </div><table class="source_code">
267
- <tr>
268
- <td>
269
- <pre class="lines">
270
-
271
-
272
- 11
273
- 12
274
- 13</pre>
275
- </td>
276
- <td>
277
- <pre class="code"><span class="info file"># File 'lib/tainted_love/reporter/base.rb', line 11</span>
278
-
279
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
280
- <span class='ivar'>@warnings</span> <span class='op'>=</span> <span class='const'>Hash</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_h'>h</span><span class='comma'>,</span> <span class='id identifier rubyid_k'>k</span><span class='op'>|</span> <span class='id identifier rubyid_h'>h</span><span class='lbracket'>[</span><span class='id identifier rubyid_k'>k</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='const'>Set</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='rbrace'>}</span>
281
- <span class='kw'>end</span></pre>
282
- </td>
283
- </tr>
284
- </table>
285
- </div>
286
-
287
- </div>
288
-
289
- <div id="instance_attr_details" class="attr_details">
290
- <h2>Instance Attribute Details</h2>
291
-
292
-
293
- <span id=""></span>
294
- <div class="method_details first">
295
- <h3 class="signature first" id="warnings-instance_method">
296
-
297
- #<strong>warnings</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
298
-
299
-
300
-
301
-
302
-
303
- </h3><div class="docstring">
304
- <div class="discussion">
305
-
306
- <p>Returns the value of attribute warnings</p>
307
-
308
-
309
- </div>
310
- </div>
311
- <div class="tags">
312
-
313
-
314
- </div><table class="source_code">
315
- <tr>
316
- <td>
317
- <pre class="lines">
318
-
319
-
320
- 9
321
- 10
322
- 11</pre>
323
- </td>
324
- <td>
325
- <pre class="code"><span class="info file"># File 'lib/tainted_love/reporter/base.rb', line 9</span>
326
-
327
- <span class='kw'>def</span> <span class='id identifier rubyid_warnings'>warnings</span>
328
- <span class='ivar'>@warnings</span>
329
- <span class='kw'>end</span></pre>
330
- </td>
331
- </tr>
332
- </table>
333
- </div>
334
-
335
- </div>
336
-
337
-
338
- <div id="instance_method_details" class="method_details_list">
339
- <h2>Instance Method Details</h2>
340
-
341
-
342
- <div class="method_details first">
343
- <h3 class="signature first" id="add_warning-instance_method">
344
-
345
- #<strong>add_warning</strong>(warning) &#x21d2; <tt>Object</tt>
346
-
347
-
348
-
349
-
350
-
351
- </h3><div class="docstring">
352
- <div class="discussion">
353
-
354
- <p>Adds a warning to the reporter</p>
355
-
356
-
357
- </div>
358
- </div>
359
- <div class="tags">
360
- <p class="tag_title">Parameters:</p>
361
- <ul class="param">
362
-
363
- <li>
364
-
365
- <span class='name'>warning</span>
366
-
367
-
368
- <span class='type'>(<tt><span class='object_link'><a href="../Warning.html" title="TaintedLove::Warning (class)">TaintedLove::Warning</a></span></tt>)</span>
369
-
370
-
371
-
372
- </li>
373
-
374
- </ul>
375
-
376
-
377
- </div><table class="source_code">
378
- <tr>
379
- <td>
380
- <pre class="lines">
381
-
382
-
383
- 25
384
- 26
385
- 27</pre>
386
- </td>
387
- <td>
388
- <pre class="code"><span class="info file"># File 'lib/tainted_love/reporter/base.rb', line 25</span>
389
-
390
- <span class='kw'>def</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>
391
- <span class='id identifier rubyid_store_warning'>store_warning</span><span class='lparen'>(</span><span class='id identifier rubyid_warning'>warning</span><span class='rparen'>)</span>
392
- <span class='kw'>end</span></pre>
393
- </td>
394
- </tr>
395
- </table>
396
- </div>
397
-
398
- <div class="method_details ">
399
- <h3 class="signature " id="store_warning-instance_method">
400
-
401
- #<strong>store_warning</strong>(warning) &#x21d2; <tt>Object</tt>
402
-
403
-
404
-
405
-
406
-
407
- </h3><div class="docstring">
408
- <div class="discussion">
409
-
410
- <p>Stores a warning by its stack trace hash</p>
411
-
412
-
413
- </div>
414
- </div>
415
- <div class="tags">
416
- <p class="tag_title">Parameters:</p>
417
- <ul class="param">
418
-
419
- <li>
420
-
421
- <span class='name'>warning</span>
422
-
423
-
424
- <span class='type'>(<tt><span class='object_link'><a href="../Warning.html" title="TaintedLove::Warning (class)">TaintedLove::Warning</a></span></tt>)</span>
425
-
426
-
427
-
428
- </li>
429
-
430
- </ul>
431
-
432
-
433
- </div><table class="source_code">
434
- <tr>
435
- <td>
436
- <pre class="lines">
437
-
438
-
439
- 18
440
- 19
441
- 20</pre>
442
- </td>
443
- <td>
444
- <pre class="code"><span class="info file"># File 'lib/tainted_love/reporter/base.rb', line 18</span>
445
-
446
- <span class='kw'>def</span> <span class='id identifier rubyid_store_warning'>store_warning</span><span class='lparen'>(</span><span class='id identifier rubyid_warning'>warning</span><span class='rparen'>)</span>
447
- <span class='ivar'>@warnings</span><span class='lbracket'>[</span><span class='id identifier rubyid_warning'>warning</span><span class='period'>.</span><span class='id identifier rubyid_stack_trace'>stack_trace</span><span class='period'>.</span><span class='id identifier rubyid_trace_hash'>trace_hash</span><span class='rbracket'>]</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_warning'>warning</span>
448
- <span class='kw'>end</span></pre>
449
- </td>
450
- </tr>
451
- </table>
452
- </div>
453
-
454
- </div>
455
-
456
- </div>
457
-
458
- <div id="footer">
459
- Generated on Tue Apr 2 15:50:34 2019 by
460
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
461
- 0.9.18 (ruby-2.5.3).
462
- </div>
463
-
464
- </div>
465
- </body>
466
- </html>