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,129 +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
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";
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">Replacer</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
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/base.rb<span class="defines">,<br />
82
- 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/replacer/replace_sprokets.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/replacer/replace_action_controller.rb</span>
83
- </dd>
84
- </dl>
85
-
86
- </div>
87
-
88
- <h2>Overview</h2><div class="docstring">
89
- <div class="discussion">
90
-
91
- <p>Replacer will replace methods to report tainted input and taint values from
92
- user input coming from librairies.</p>
93
-
94
-
95
- </div>
96
- </div>
97
- <div class="tags">
98
-
99
-
100
- </div><h2>Defined Under Namespace</h2>
101
- <p class="children">
102
-
103
-
104
-
105
-
106
- <strong class="classes">Classes:</strong> <span class='object_link'><a href="Replacer/Base.html" title="TaintedLove::Replacer::Base (class)">Base</a></span>, <span class='object_link'><a href="Replacer/ReplaceActionController.html" title="TaintedLove::Replacer::ReplaceActionController (class)">ReplaceActionController</a></span>, <span class='object_link'><a href="Replacer/ReplaceActionView.html" title="TaintedLove::Replacer::ReplaceActionView (class)">ReplaceActionView</a></span>, <span class='object_link'><a href="Replacer/ReplaceActiveRecord.html" title="TaintedLove::Replacer::ReplaceActiveRecord (class)">ReplaceActiveRecord</a></span>, <span class='object_link'><a href="Replacer/ReplaceDigest.html" title="TaintedLove::Replacer::ReplaceDigest (class)">ReplaceDigest</a></span>, <span class='object_link'><a href="Replacer/ReplaceFile.html" title="TaintedLove::Replacer::ReplaceFile (class)">ReplaceFile</a></span>, <span class='object_link'><a href="Replacer/ReplaceKernel.html" title="TaintedLove::Replacer::ReplaceKernel (class)">ReplaceKernel</a></span>, <span class='object_link'><a href="Replacer/ReplaceMarshal.html" title="TaintedLove::Replacer::ReplaceMarshal (class)">ReplaceMarshal</a></span>, <span class='object_link'><a href="Replacer/ReplaceObject.html" title="TaintedLove::Replacer::ReplaceObject (class)">ReplaceObject</a></span>, <span class='object_link'><a href="Replacer/ReplaceRailsUserInput.html" title="TaintedLove::Replacer::ReplaceRailsUserInput (class)">ReplaceRailsUserInput</a></span>, <span class='object_link'><a href="Replacer/ReplaceSprokets.html" title="TaintedLove::Replacer::ReplaceSprokets (class)">ReplaceSprokets</a></span>
107
-
108
-
109
- </p>
110
-
111
-
112
-
113
-
114
-
115
-
116
-
117
-
118
-
119
- </div>
120
-
121
- <div id="footer">
122
- Generated on Tue Apr 2 15:50:34 2019 by
123
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
124
- 0.9.18 (ruby-2.5.3).
125
- </div>
126
-
127
- </div>
128
- </body>
129
- </html>
@@ -1,230 +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::ActionViewHelpersMod
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::ActionViewHelpersMod";
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 (A)</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">ActionViewHelpersMod</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::ActionViewHelpersMod
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_action_view.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
- 27
170
- 28
171
- 29
172
- 30</pre>
173
- </td>
174
- <td>
175
- <pre class="code"><span class="info file"># File 'lib/tainted_love/replacer/replace_action_view.rb', line 27</span>
176
-
177
- <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>
178
- <span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>js tag</span><span class='tstring_end'>&#39;</span></span>
179
- <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>
180
- <span class='kw'>end</span></pre>
181
- </td>
182
- </tr>
183
- </table>
184
- </div>
185
-
186
- <div class="method_details ">
187
- <h3 class="signature " id="stylesheet_link_tag-instance_method">
188
-
189
- #<strong>stylesheet_link_tag</strong>(*sources) &#x21d2; <tt>Object</tt>
190
-
191
-
192
-
193
-
194
-
195
- </h3><table class="source_code">
196
- <tr>
197
- <td>
198
- <pre class="lines">
199
-
200
-
201
- 32
202
- 33
203
- 34
204
- 35</pre>
205
- </td>
206
- <td>
207
- <pre class="code"><span class="info file"># File 'lib/tainted_love/replacer/replace_action_view.rb', line 32</span>
208
-
209
- <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>
210
- <span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>style tag</span><span class='tstring_end'>&#39;</span></span>
211
- <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>
212
- <span class='kw'>end</span></pre>
213
- </td>
214
- </tr>
215
- </table>
216
- </div>
217
-
218
- </div>
219
-
220
- </div>
221
-
222
- <div id="footer">
223
- Generated on Mon Mar 11 16:19:38 2019 by
224
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
225
- 0.9.18 (ruby-2.5.3).
226
- </div>
227
-
228
- </div>
229
- </body>
230
- </html>
@@ -1,320 +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::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::Replacer::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="../Replacer.html" title="TaintedLove::Replacer (module)">Replacer</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::Replacer::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::Replacer::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/replacer/base.rb</dd>
98
- </dl>
99
-
100
- </div>
101
-
102
- <div id="subclasses">
103
- <h2>Direct Known Subclasses</h2>
104
- <p class="children"><span class='object_link'><a href="ReplaceActionController.html" title="TaintedLove::Replacer::ReplaceActionController (class)">ReplaceActionController</a></span>, <span class='object_link'><a href="ReplaceActionView.html" title="TaintedLove::Replacer::ReplaceActionView (class)">ReplaceActionView</a></span>, <span class='object_link'><a href="ReplaceActiveRecord.html" title="TaintedLove::Replacer::ReplaceActiveRecord (class)">ReplaceActiveRecord</a></span>, <span class='object_link'><a href="ReplaceDigest.html" title="TaintedLove::Replacer::ReplaceDigest (class)">ReplaceDigest</a></span>, <span class='object_link'><a href="ReplaceFile.html" title="TaintedLove::Replacer::ReplaceFile (class)">ReplaceFile</a></span>, <span class='object_link'><a href="ReplaceKernel.html" title="TaintedLove::Replacer::ReplaceKernel (class)">ReplaceKernel</a></span>, <span class='object_link'><a href="ReplaceMarshal.html" title="TaintedLove::Replacer::ReplaceMarshal (class)">ReplaceMarshal</a></span>, <span class='object_link'><a href="ReplaceObject.html" title="TaintedLove::Replacer::ReplaceObject (class)">ReplaceObject</a></span>, <span class='object_link'><a href="ReplaceRailsUserInput.html" title="TaintedLove::Replacer::ReplaceRailsUserInput (class)">ReplaceRailsUserInput</a></span>, <span class='object_link'><a href="ReplaceSprokets.html" title="TaintedLove::Replacer::ReplaceSprokets (class)">ReplaceSprokets</a></span></p>
105
- </div>
106
-
107
-
108
-
109
-
110
-
111
-
112
-
113
-
114
- <h2>
115
- Class Method Summary
116
- <small><a href="#" class="summary_toggle">collapse</a></small>
117
- </h2>
118
-
119
- <ul class="summary">
120
-
121
- <li class="public ">
122
- <span class="summary_signature">
123
-
124
- <a href="#replacers-class_method" title="replacers (class method)">.<strong>replacers</strong> &#x21d2; Array&lt;Class&gt; </a>
125
-
126
-
127
-
128
- </span>
129
-
130
-
131
-
132
-
133
-
134
-
135
-
136
-
137
-
138
- <span class="summary_desc"><div class='inline'>
139
- <p>List of defined replacers.</p>
140
- </div></span>
141
-
142
- </li>
143
-
144
-
145
- </ul>
146
-
147
- <h2>
148
- Instance Method Summary
149
- <small><a href="#" class="summary_toggle">collapse</a></small>
150
- </h2>
151
-
152
- <ul class="summary">
153
-
154
- <li class="public ">
155
- <span class="summary_signature">
156
-
157
- <a href="#should_replace%3F-instance_method" title="#should_replace? (instance method)">#<strong>should_replace?</strong> &#x21d2; Boolean </a>
158
-
159
-
160
-
161
- </span>
162
-
163
-
164
-
165
-
166
-
167
-
168
-
169
-
170
-
171
- <span class="summary_desc"><div class='inline'>
172
- <p>Determines if the replacer can run in the current context.</p>
173
- </div></span>
174
-
175
- </li>
176
-
177
-
178
- </ul>
179
-
180
-
181
-
182
-
183
- <div id="class_method_details" class="method_details_list">
184
- <h2>Class Method Details</h2>
185
-
186
-
187
- <div class="method_details first">
188
- <h3 class="signature first" id="replacers-class_method">
189
-
190
- .<strong>replacers</strong> &#x21d2; <tt>Array&lt;Class&gt;</tt>
191
-
192
-
193
-
194
-
195
-
196
- </h3><div class="docstring">
197
- <div class="discussion">
198
-
199
- <p>List of defined replacers</p>
200
-
201
-
202
- </div>
203
- </div>
204
- <div class="tags">
205
-
206
- <p class="tag_title">Returns:</p>
207
- <ul class="return">
208
-
209
- <li>
210
-
211
-
212
- <span class='type'>(<tt>Array&lt;Class&gt;</tt>)</span>
213
-
214
-
215
-
216
- </li>
217
-
218
- </ul>
219
-
220
- </div><table class="source_code">
221
- <tr>
222
- <td>
223
- <pre class="lines">
224
-
225
-
226
- 17
227
- 18
228
- 19
229
- 20
230
- 21
231
- 22</pre>
232
- </td>
233
- <td>
234
- <pre class="code"><span class="info file"># File 'lib/tainted_love/replacer/base.rb', line 17</span>
235
-
236
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_replacers'>replacers</span>
237
- <span class='const'><span class='object_link'><a href="../../TaintedLove.html" title="TaintedLove (module)">TaintedLove</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Replacer.html" title="TaintedLove::Replacer (module)">Replacer</a></span></span><span class='period'>.</span><span class='id identifier rubyid_constants'>constants</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_const'>const</span><span class='op'>|</span>
238
- <span class='id identifier rubyid_cls'>cls</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../../TaintedLove.html" title="TaintedLove (module)">TaintedLove</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Replacer.html" title="TaintedLove::Replacer (module)">Replacer</a></span></span><span class='period'>.</span><span class='id identifier rubyid_const_get'>const_get</span><span class='lparen'>(</span><span class='id identifier rubyid_const'>const</span><span class='rparen'>)</span>
239
- <span class='id identifier rubyid_cls'>cls</span> <span class='kw'>if</span> <span class='id identifier rubyid_cls'>cls</span><span class='period'>.</span><span class='id identifier rubyid_method_defined?'>method_defined?</span><span class='lparen'>(</span><span class='symbol'>:replace!</span><span class='rparen'>)</span>
240
- <span class='kw'>end</span><span class='period'>.</span><span class='id identifier rubyid_compact'>compact</span>
241
- <span class='kw'>end</span></pre>
242
- </td>
243
- </tr>
244
- </table>
245
- </div>
246
-
247
- </div>
248
-
249
- <div id="instance_method_details" class="method_details_list">
250
- <h2>Instance Method Details</h2>
251
-
252
-
253
- <div class="method_details first">
254
- <h3 class="signature first" id="should_replace?-instance_method">
255
-
256
- #<strong>should_replace?</strong> &#x21d2; <tt>Boolean</tt>
257
-
258
-
259
-
260
-
261
-
262
- </h3><div class="docstring">
263
- <div class="discussion">
264
-
265
- <p>Determines if the replacer can run in the current context. This would
266
- usually check Ruby version or gem versions to see which methods to replace.</p>
267
-
268
-
269
- </div>
270
- </div>
271
- <div class="tags">
272
-
273
- <p class="tag_title">Returns:</p>
274
- <ul class="return">
275
-
276
- <li>
277
-
278
-
279
- <span class='type'>(<tt>Boolean</tt>)</span>
280
-
281
-
282
-
283
- </li>
284
-
285
- </ul>
286
-
287
- </div><table class="source_code">
288
- <tr>
289
- <td>
290
- <pre class="lines">
291
-
292
-
293
- 10
294
- 11
295
- 12</pre>
296
- </td>
297
- <td>
298
- <pre class="code"><span class="info file"># File 'lib/tainted_love/replacer/base.rb', line 10</span>
299
-
300
- <span class='kw'>def</span> <span class='id identifier rubyid_should_replace?'>should_replace?</span>
301
- <span class='kw'>true</span>
302
- <span class='kw'>end</span></pre>
303
- </td>
304
- </tr>
305
- </table>
306
- </div>
307
-
308
- </div>
309
-
310
- </div>
311
-
312
- <div id="footer">
313
- Generated on Tue Apr 2 15:50:34 2019 by
314
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
315
- 0.9.18 (ruby-2.5.3).
316
- </div>
317
-
318
- </div>
319
- </body>
320
- </html>