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.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/Gemfile.lock +1 -1
- data/README.md +8 -0
- data/example/Gemfile.lock +1 -1
- data/example/test/test_helper.rb +3 -1
- data/lib/tainted_love/replacer/replace_action_view.rb +1 -1
- data/lib/tainted_love/reporter/file_reporter.rb +9 -5
- data/lib/tainted_love/reporter/stdout_reporter.rb +29 -9
- data/lib/tainted_love/validator/railties_yaml_load.rb +16 -0
- data/lib/tainted_love/version.rb +1 -1
- data/tools/web/.gitignore +1 -0
- data/tools/web/Gemfile +3 -0
- data/tools/web/application.rb +39 -0
- data/tools/web/public/application.css +79 -0
- data/tools/web/public/application.js +0 -0
- data/tools/web/views/index.erb +57 -0
- data/tools/web/views/layout.erb +25 -0
- data/tools/web/views/line.erb +11 -0
- data/tools/web/views/warning.erb +3 -0
- data/tools/web/views/warnings.erb +3 -0
- metadata +13 -53
- data/docs/TaintedLove.html +0 -482
- data/docs/TaintedLove/Configuration.html +0 -499
- data/docs/TaintedLove/Replacer.html +0 -129
- data/docs/TaintedLove/Replacer/ActionViewHelpersMod.html +0 -230
- data/docs/TaintedLove/Replacer/Base.html +0 -320
- data/docs/TaintedLove/Replacer/HelperMod.html +0 -226
- data/docs/TaintedLove/Replacer/HelpersMod.html +0 -230
- data/docs/TaintedLove/Replacer/MarshalMod.html +0 -178
- data/docs/TaintedLove/Replacer/ObjectMod.html +0 -282
- data/docs/TaintedLove/Replacer/ReplaceActionController.html +0 -329
- data/docs/TaintedLove/Replacer/ReplaceActionView.html +0 -317
- data/docs/TaintedLove/Replacer/ReplaceActiveRecord.html +0 -341
- data/docs/TaintedLove/Replacer/ReplaceDigest.html +0 -369
- data/docs/TaintedLove/Replacer/ReplaceFile.html +0 -245
- data/docs/TaintedLove/Replacer/ReplaceKernel.html +0 -211
- data/docs/TaintedLove/Replacer/ReplaceMarshal.html +0 -219
- data/docs/TaintedLove/Replacer/ReplaceObject.html +0 -231
- data/docs/TaintedLove/Replacer/ReplaceRailsUserInput.html +0 -374
- data/docs/TaintedLove/Replacer/ReplaceSprokets.html +0 -297
- data/docs/TaintedLove/Replacer/SprocketsHelperMod.html +0 -226
- data/docs/TaintedLove/Reporter.html +0 -117
- data/docs/TaintedLove/Reporter/Base.html +0 -466
- data/docs/TaintedLove/Reporter/RackReporter.html +0 -309
- data/docs/TaintedLove/Reporter/SinatraReporter.html +0 -402
- data/docs/TaintedLove/Reporter/SinatraReporter/App.html +0 -210
- data/docs/TaintedLove/Reporter/StdoutReporter.html +0 -305
- data/docs/TaintedLove/SinatraReporter.html +0 -387
- data/docs/TaintedLove/SinatraReporter/App.html +0 -210
- data/docs/TaintedLove/StackTrace.html +0 -650
- data/docs/TaintedLove/Utils.html +0 -550
- data/docs/TaintedLove/Validator.html +0 -129
- data/docs/TaintedLove/Validator/ActionViewObjectSend.html +0 -233
- data/docs/TaintedLove/Validator/Base.html +0 -200
- data/docs/TaintedLove/Validator/ErbEval.html +0 -229
- data/docs/TaintedLove/Validator/RedisStoreSerialization.html +0 -238
- data/docs/TaintedLove/Validator/SproketsMarshal.html +0 -233
- data/docs/TaintedLove/Warning.html +0 -665
- data/docs/_index.html +0 -371
- data/docs/class_list.html +0 -51
- data/docs/css/common.css +0 -1
- data/docs/css/full_list.css +0 -58
- data/docs/css/style.css +0 -496
- data/docs/file.README.html +0 -134
- data/docs/file_list.html +0 -56
- data/docs/frames.html +0 -17
- data/docs/index.html +0 -134
- data/docs/js/app.js +0 -292
- data/docs/js/full_list.js +0 -216
- data/docs/js/jquery.js +0 -4
- data/docs/method_list.html +0 -523
- data/docs/top-level-namespace.html +0 -110
@@ -1,329 +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::Replacer::ReplaceActionController
|
8
|
-
|
9
|
-
— 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::ReplaceActionController";
|
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> »
|
40
|
-
<span class='title'><span class='object_link'><a href="../../TaintedLove.html" title="TaintedLove (module)">TaintedLove</a></span></span> » <span class='title'><span class='object_link'><a href="../Replacer.html" title="TaintedLove::Replacer (module)">Replacer</a></span></span>
|
41
|
-
»
|
42
|
-
<span class="title">ReplaceActionController</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::Replacer::ReplaceActionController
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
</h1>
|
67
|
-
<div class="box_info">
|
68
|
-
|
69
|
-
<dl>
|
70
|
-
<dt>Inherits:</dt>
|
71
|
-
<dd>
|
72
|
-
<span class="inheritName"><span class='object_link'><a href="Base.html" title="TaintedLove::Replacer::Base (class)">Base</a></span></span>
|
73
|
-
|
74
|
-
<ul class="fullTree">
|
75
|
-
<li>Object</li>
|
76
|
-
|
77
|
-
<li class="next"><span class='object_link'><a href="Base.html" title="TaintedLove::Replacer::Base (class)">Base</a></span></li>
|
78
|
-
|
79
|
-
<li class="next">TaintedLove::Replacer::ReplaceActionController</li>
|
80
|
-
|
81
|
-
</ul>
|
82
|
-
<a href="#" class="inheritanceTree">show all</a>
|
83
|
-
|
84
|
-
</dd>
|
85
|
-
</dl>
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
<dl>
|
98
|
-
<dt>Defined in:</dt>
|
99
|
-
<dd>lib/tainted_love/replacer/replace_action_controller.rb</dd>
|
100
|
-
</dl>
|
101
|
-
|
102
|
-
</div>
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
<h2>
|
113
|
-
Instance Method Summary
|
114
|
-
<small><a href="#" class="summary_toggle">collapse</a></small>
|
115
|
-
</h2>
|
116
|
-
|
117
|
-
<ul class="summary">
|
118
|
-
|
119
|
-
<li class="public ">
|
120
|
-
<span class="summary_signature">
|
121
|
-
|
122
|
-
<a href="#replace!-instance_method" title="#replace! (instance method)">#<strong>replace!</strong> ⇒ Object </a>
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
</span>
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
137
|
-
|
138
|
-
</li>
|
139
|
-
|
140
|
-
|
141
|
-
<li class="public ">
|
142
|
-
<span class="summary_signature">
|
143
|
-
|
144
|
-
<a href="#should_replace%3F-instance_method" title="#should_replace? (instance method)">#<strong>should_replace?</strong> ⇒ Boolean </a>
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
</span>
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
159
|
-
|
160
|
-
</li>
|
161
|
-
|
162
|
-
|
163
|
-
</ul>
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Base.html" title="TaintedLove::Replacer::Base (class)">Base</a></span></h3>
|
176
|
-
<p class="inherited"><span class='object_link'><a href="Base.html#replacers-class_method" title="TaintedLove::Replacer::Base.replacers (method)">replacers</a></span></p>
|
177
|
-
|
178
|
-
|
179
|
-
<div id="instance_method_details" class="method_details_list">
|
180
|
-
<h2>Instance Method Details</h2>
|
181
|
-
|
182
|
-
|
183
|
-
<div class="method_details first">
|
184
|
-
<h3 class="signature first" id="replace!-instance_method">
|
185
|
-
|
186
|
-
#<strong>replace!</strong> ⇒ <tt>Object</tt>
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
</h3><table class="source_code">
|
193
|
-
<tr>
|
194
|
-
<td>
|
195
|
-
<pre class="lines">
|
196
|
-
|
197
|
-
|
198
|
-
10
|
199
|
-
11
|
200
|
-
12
|
201
|
-
13
|
202
|
-
14
|
203
|
-
15
|
204
|
-
16
|
205
|
-
17
|
206
|
-
18
|
207
|
-
19
|
208
|
-
20
|
209
|
-
21
|
210
|
-
22
|
211
|
-
23
|
212
|
-
24
|
213
|
-
25
|
214
|
-
26
|
215
|
-
27
|
216
|
-
28
|
217
|
-
29
|
218
|
-
30
|
219
|
-
31
|
220
|
-
32
|
221
|
-
33
|
222
|
-
34
|
223
|
-
35
|
224
|
-
36
|
225
|
-
37
|
226
|
-
38</pre>
|
227
|
-
</td>
|
228
|
-
<td>
|
229
|
-
<pre class="code"><span class="info file"># File 'lib/tainted_love/replacer/replace_action_controller.rb', line 10</span>
|
230
|
-
|
231
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_replace!'>replace!</span>
|
232
|
-
<span class='const'><span class='object_link'><a href="../../TaintedLove.html" title="TaintedLove (module)">TaintedLove</a></span></span><span class='period'>.</span><span class='id identifier rubyid_proxy_method'><span class='object_link'><a href="../Utils.html#proxy_method-instance_method" title="TaintedLove::Utils#proxy_method (method)">proxy_method</a></span></span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>ActionController::Instrumentation</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:send_file</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid__'>_</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='op'>|</span>
|
233
|
-
<span class='const'><span class='object_link'><a href="../../TaintedLove.html" title="TaintedLove (module)">TaintedLove</a></span></span><span class='period'>.</span><span class='id identifier rubyid_report'><span class='object_link'><a href="../../TaintedLove.html#report-class_method" title="TaintedLove.report (method)">report</a></span></span><span class='lparen'>(</span><span class='symbol'>:ReplaceActionController</span><span class='comma'>,</span> <span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span><span class='period'>.</span><span class='id identifier rubyid_tainted?'>tainted?</span>
|
234
|
-
<span class='kw'>end</span>
|
235
|
-
|
236
|
-
<span class='const'><span class='object_link'><a href="../../TaintedLove.html" title="TaintedLove (module)">TaintedLove</a></span></span><span class='period'>.</span><span class='id identifier rubyid_proxy_method'><span class='object_link'><a href="../Utils.html#proxy_method-instance_method" title="TaintedLove::Utils#proxy_method (method)">proxy_method</a></span></span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>ActionController::Instrumentation</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:render</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid__'>_</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='op'>|</span>
|
237
|
-
<span class='kw'>unless</span> <span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
|
238
|
-
<span class='id identifier rubyid_f'>f</span> <span class='op'>=</span> <span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span>
|
239
|
-
|
240
|
-
<span class='kw'>if</span> <span class='id identifier rubyid_f'>f</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>
|
241
|
-
<span class='kw'>if</span> <span class='id identifier rubyid_f'>f</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='symbol'>:inline</span><span class='rparen'>)</span> <span class='op'>&&</span> <span class='id identifier rubyid_f'>f</span><span class='lbracket'>[</span><span class='symbol'>:inline</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_tainted?'>tainted?</span>
|
242
|
-
<span class='const'><span class='object_link'><a href="../../TaintedLove.html" title="TaintedLove (module)">TaintedLove</a></span></span><span class='period'>.</span><span class='id identifier rubyid_report'><span class='object_link'><a href="../../TaintedLove.html#report-class_method" title="TaintedLove.report (method)">report</a></span></span><span class='lparen'>(</span><span class='symbol'>:ReplaceActionController</span><span class='comma'>,</span> <span class='id identifier rubyid_f'>f</span><span class='lbracket'>[</span><span class='symbol'>:inline</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
243
|
-
<span class='kw'>end</span>
|
244
|
-
|
245
|
-
<span class='kw'>if</span> <span class='id identifier rubyid_f'>f</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='symbol'>:file</span><span class='rparen'>)</span> <span class='op'>&&</span> <span class='id identifier rubyid_f'>f</span><span class='lbracket'>[</span><span class='symbol'>:file</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_tainted?'>tainted?</span>
|
246
|
-
<span class='const'><span class='object_link'><a href="../../TaintedLove.html" title="TaintedLove (module)">TaintedLove</a></span></span><span class='period'>.</span><span class='id identifier rubyid_report'><span class='object_link'><a href="../../TaintedLove.html#report-class_method" title="TaintedLove.report (method)">report</a></span></span><span class='lparen'>(</span><span class='symbol'>:ReplaceActionController</span><span class='comma'>,</span> <span class='id identifier rubyid_f'>f</span><span class='lbracket'>[</span><span class='symbol'>:file</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
247
|
-
<span class='kw'>end</span>
|
248
|
-
<span class='kw'>end</span>
|
249
|
-
|
250
|
-
<span class='kw'>if</span> <span class='id identifier rubyid_f'>f</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>String</span><span class='rparen'>)</span> <span class='op'>&&</span> <span class='id identifier rubyid_f'>f</span><span class='period'>.</span><span class='id identifier rubyid_tainted?'>tainted?</span>
|
251
|
-
<span class='const'><span class='object_link'><a href="../../TaintedLove.html" title="TaintedLove (module)">TaintedLove</a></span></span><span class='period'>.</span><span class='id identifier rubyid_report'><span class='object_link'><a href="../../TaintedLove.html#report-class_method" title="TaintedLove.report (method)">report</a></span></span><span class='lparen'>(</span><span class='symbol'>:ReplaceActionController</span><span class='comma'>,</span> <span class='id identifier rubyid_f'>f</span><span class='rparen'>)</span>
|
252
|
-
<span class='kw'>end</span>
|
253
|
-
<span class='kw'>end</span>
|
254
|
-
<span class='kw'>end</span>
|
255
|
-
|
256
|
-
<span class='const'><span class='object_link'><a href="../../TaintedLove.html" title="TaintedLove (module)">TaintedLove</a></span></span><span class='period'>.</span><span class='id identifier rubyid_proxy_method'><span class='object_link'><a href="../Utils.html#proxy_method-instance_method" title="TaintedLove::Utils#proxy_method (method)">proxy_method</a></span></span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>ActionController::Base</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:redirect_to</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid__'>_</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='op'>|</span>
|
257
|
-
<span class='const'><span class='object_link'><a href="../../TaintedLove.html" title="TaintedLove (module)">TaintedLove</a></span></span><span class='period'>.</span><span class='id identifier rubyid_report'><span class='object_link'><a href="../../TaintedLove.html#report-class_method" title="TaintedLove.report (method)">report</a></span></span><span class='lparen'>(</span><span class='symbol'>:ReplaceActionController</span><span class='comma'>,</span> <span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span><span class='period'>.</span><span class='id identifier rubyid_tainted?'>tainted?</span>
|
258
|
-
<span class='kw'>end</span>
|
259
|
-
<span class='kw'>end</span></pre>
|
260
|
-
</td>
|
261
|
-
</tr>
|
262
|
-
</table>
|
263
|
-
</div>
|
264
|
-
|
265
|
-
<div class="method_details ">
|
266
|
-
<h3 class="signature " id="should_replace?-instance_method">
|
267
|
-
|
268
|
-
#<strong>should_replace?</strong> ⇒ <tt>Boolean</tt>
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
</h3><div class="docstring">
|
275
|
-
<div class="discussion">
|
276
|
-
|
277
|
-
|
278
|
-
</div>
|
279
|
-
</div>
|
280
|
-
<div class="tags">
|
281
|
-
|
282
|
-
<p class="tag_title">Returns:</p>
|
283
|
-
<ul class="return">
|
284
|
-
|
285
|
-
<li>
|
286
|
-
|
287
|
-
|
288
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
</li>
|
293
|
-
|
294
|
-
</ul>
|
295
|
-
|
296
|
-
</div><table class="source_code">
|
297
|
-
<tr>
|
298
|
-
<td>
|
299
|
-
<pre class="lines">
|
300
|
-
|
301
|
-
|
302
|
-
6
|
303
|
-
7
|
304
|
-
8</pre>
|
305
|
-
</td>
|
306
|
-
<td>
|
307
|
-
<pre class="code"><span class="info file"># File 'lib/tainted_love/replacer/replace_action_controller.rb', line 6</span>
|
308
|
-
|
309
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_should_replace?'>should_replace?</span>
|
310
|
-
<span class='const'>Object</span><span class='period'>.</span><span class='id identifier rubyid_const_defined?'>const_defined?</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>ActionController</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
311
|
-
<span class='kw'>end</span></pre>
|
312
|
-
</td>
|
313
|
-
</tr>
|
314
|
-
</table>
|
315
|
-
</div>
|
316
|
-
|
317
|
-
</div>
|
318
|
-
|
319
|
-
</div>
|
320
|
-
|
321
|
-
<div id="footer">
|
322
|
-
Generated on Tue Apr 2 15:50:34 2019 by
|
323
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
324
|
-
0.9.18 (ruby-2.5.3).
|
325
|
-
</div>
|
326
|
-
|
327
|
-
</div>
|
328
|
-
</body>
|
329
|
-
</html>
|
@@ -1,317 +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::Replacer::ReplaceActionView
|
8
|
-
|
9
|
-
— 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::ReplaceActionView";
|
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> »
|
40
|
-
<span class='title'><span class='object_link'><a href="../../TaintedLove.html" title="TaintedLove (module)">TaintedLove</a></span></span> » <span class='title'><span class='object_link'><a href="../Replacer.html" title="TaintedLove::Replacer (module)">Replacer</a></span></span>
|
41
|
-
»
|
42
|
-
<span class="title">ReplaceActionView</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::Replacer::ReplaceActionView
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
</h1>
|
67
|
-
<div class="box_info">
|
68
|
-
|
69
|
-
<dl>
|
70
|
-
<dt>Inherits:</dt>
|
71
|
-
<dd>
|
72
|
-
<span class="inheritName"><span class='object_link'><a href="Base.html" title="TaintedLove::Replacer::Base (class)">Base</a></span></span>
|
73
|
-
|
74
|
-
<ul class="fullTree">
|
75
|
-
<li>Object</li>
|
76
|
-
|
77
|
-
<li class="next"><span class='object_link'><a href="Base.html" title="TaintedLove::Replacer::Base (class)">Base</a></span></li>
|
78
|
-
|
79
|
-
<li class="next">TaintedLove::Replacer::ReplaceActionView</li>
|
80
|
-
|
81
|
-
</ul>
|
82
|
-
<a href="#" class="inheritanceTree">show all</a>
|
83
|
-
|
84
|
-
</dd>
|
85
|
-
</dl>
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
<dl>
|
98
|
-
<dt>Defined in:</dt>
|
99
|
-
<dd>lib/tainted_love/replacer/replace_action_view.rb</dd>
|
100
|
-
</dl>
|
101
|
-
|
102
|
-
</div>
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
<h2>
|
113
|
-
Instance Method Summary
|
114
|
-
<small><a href="#" class="summary_toggle">collapse</a></small>
|
115
|
-
</h2>
|
116
|
-
|
117
|
-
<ul class="summary">
|
118
|
-
|
119
|
-
<li class="public ">
|
120
|
-
<span class="summary_signature">
|
121
|
-
|
122
|
-
<a href="#replace!-instance_method" title="#replace! (instance method)">#<strong>replace!</strong> ⇒ Object </a>
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
</span>
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
137
|
-
|
138
|
-
</li>
|
139
|
-
|
140
|
-
|
141
|
-
<li class="public ">
|
142
|
-
<span class="summary_signature">
|
143
|
-
|
144
|
-
<a href="#should_replace%3F-instance_method" title="#should_replace? (instance method)">#<strong>should_replace?</strong> ⇒ Boolean </a>
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
</span>
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
159
|
-
|
160
|
-
</li>
|
161
|
-
|
162
|
-
|
163
|
-
</ul>
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Base.html" title="TaintedLove::Replacer::Base (class)">Base</a></span></h3>
|
176
|
-
<p class="inherited"><span class='object_link'><a href="Base.html#replacers-class_method" title="TaintedLove::Replacer::Base.replacers (method)">replacers</a></span></p>
|
177
|
-
|
178
|
-
|
179
|
-
<div id="instance_method_details" class="method_details_list">
|
180
|
-
<h2>Instance Method Details</h2>
|
181
|
-
|
182
|
-
|
183
|
-
<div class="method_details first">
|
184
|
-
<h3 class="signature first" id="replace!-instance_method">
|
185
|
-
|
186
|
-
#<strong>replace!</strong> ⇒ <tt>Object</tt>
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
</h3><table class="source_code">
|
193
|
-
<tr>
|
194
|
-
<td>
|
195
|
-
<pre class="lines">
|
196
|
-
|
197
|
-
|
198
|
-
10
|
199
|
-
11
|
200
|
-
12
|
201
|
-
13
|
202
|
-
14
|
203
|
-
15
|
204
|
-
16
|
205
|
-
17
|
206
|
-
18
|
207
|
-
19
|
208
|
-
20
|
209
|
-
21
|
210
|
-
22
|
211
|
-
23
|
212
|
-
24
|
213
|
-
25
|
214
|
-
26
|
215
|
-
27
|
216
|
-
28
|
217
|
-
29
|
218
|
-
30
|
219
|
-
31
|
220
|
-
32</pre>
|
221
|
-
</td>
|
222
|
-
<td>
|
223
|
-
<pre class="code"><span class="info file"># File 'lib/tainted_love/replacer/replace_action_view.rb', line 10</span>
|
224
|
-
|
225
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_replace!'>replace!</span>
|
226
|
-
<span class='const'>ActionView</span><span class='op'>::</span><span class='const'>OutputBuffer</span><span class='period'>.</span><span class='id identifier rubyid_class_eval'>class_eval</span> <span class='kw'>do</span>
|
227
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_append='>append=</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
|
228
|
-
<span class='kw'>if</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_tainted?'>tainted?</span> <span class='op'>&&</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_html_safe?'>html_safe?</span>
|
229
|
-
<span class='const'><span class='object_link'><a href="../../TaintedLove.html" title="TaintedLove (module)">TaintedLove</a></span></span><span class='period'>.</span><span class='id identifier rubyid_report'><span class='object_link'><a href="../../TaintedLove.html#report-class_method" title="TaintedLove.report (method)">report</a></span></span><span class='lparen'>(</span><span class='symbol'>:ReplaceActionView</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
|
230
|
-
<span class='kw'>end</span>
|
231
|
-
|
232
|
-
<span class='kw'>self</span> <span class='op'><<</span> <span class='id identifier rubyid_value'>value</span>
|
233
|
-
<span class='kw'>end</span>
|
234
|
-
<span class='kw'>end</span>
|
235
|
-
|
236
|
-
<span class='const'><span class='object_link'><a href="../../TaintedLove.html" title="TaintedLove (module)">TaintedLove</a></span></span><span class='period'>.</span><span class='id identifier rubyid_proxy_method'><span class='object_link'><a href="../Utils.html#proxy_method-instance_method" title="TaintedLove::Utils#proxy_method (method)">proxy_method</a></span></span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>ActionView::Helpers::TagHelper::TagBuilder</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:content_tag_string</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid__'>_</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='op'>|</span>
|
237
|
-
<span class='comment'># if tag name is tainted
|
238
|
-
</span> <span class='kw'>if</span> <span class='id identifier rubyid_args'>args</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_tainted?'>tainted?</span>
|
239
|
-
<span class='kw'>return</span> <span class='const'>TainterLove</span><span class='period'>.</span><span class='id identifier rubyid_report'>report</span><span class='lparen'>(</span><span class='symbol'>:ReplaceActionView</span><span class='comma'>,</span> <span class='id identifier rubyid_args'>args</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
240
|
-
<span class='kw'>end</span>
|
241
|
-
|
242
|
-
<span class='comment'># if tag content is tainted + html_safe
|
243
|
-
</span> <span class='kw'>if</span> <span class='id identifier rubyid_args'>args</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_tainted?'>tainted?</span> <span class='op'>&&</span> <span class='id identifier rubyid_args'>args</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_html_safe?'>html_safe?</span>
|
244
|
-
<span class='kw'>return</span> <span class='const'>TainterLove</span><span class='period'>.</span><span class='id identifier rubyid_report'>report</span><span class='lparen'>(</span><span class='symbol'>:ReplaceActionView</span><span class='comma'>,</span> <span class='id identifier rubyid_args'>args</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
245
|
-
<span class='kw'>end</span>
|
246
|
-
<span class='kw'>end</span>
|
247
|
-
<span class='kw'>end</span></pre>
|
248
|
-
</td>
|
249
|
-
</tr>
|
250
|
-
</table>
|
251
|
-
</div>
|
252
|
-
|
253
|
-
<div class="method_details ">
|
254
|
-
<h3 class="signature " id="should_replace?-instance_method">
|
255
|
-
|
256
|
-
#<strong>should_replace?</strong> ⇒ <tt>Boolean</tt>
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
</h3><div class="docstring">
|
263
|
-
<div class="discussion">
|
264
|
-
|
265
|
-
|
266
|
-
</div>
|
267
|
-
</div>
|
268
|
-
<div class="tags">
|
269
|
-
|
270
|
-
<p class="tag_title">Returns:</p>
|
271
|
-
<ul class="return">
|
272
|
-
|
273
|
-
<li>
|
274
|
-
|
275
|
-
|
276
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
</li>
|
281
|
-
|
282
|
-
</ul>
|
283
|
-
|
284
|
-
</div><table class="source_code">
|
285
|
-
<tr>
|
286
|
-
<td>
|
287
|
-
<pre class="lines">
|
288
|
-
|
289
|
-
|
290
|
-
6
|
291
|
-
7
|
292
|
-
8</pre>
|
293
|
-
</td>
|
294
|
-
<td>
|
295
|
-
<pre class="code"><span class="info file"># File 'lib/tainted_love/replacer/replace_action_view.rb', line 6</span>
|
296
|
-
|
297
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_should_replace?'>should_replace?</span>
|
298
|
-
<span class='const'>Object</span><span class='period'>.</span><span class='id identifier rubyid_const_defined?'>const_defined?</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>ActionView</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
299
|
-
<span class='kw'>end</span></pre>
|
300
|
-
</td>
|
301
|
-
</tr>
|
302
|
-
</table>
|
303
|
-
</div>
|
304
|
-
|
305
|
-
</div>
|
306
|
-
|
307
|
-
</div>
|
308
|
-
|
309
|
-
<div id="footer">
|
310
|
-
Generated on Tue Apr 2 15:50:34 2019 by
|
311
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
312
|
-
0.9.18 (ruby-2.5.3).
|
313
|
-
</div>
|
314
|
-
|
315
|
-
</div>
|
316
|
-
</body>
|
317
|
-
</html>
|