tool-shed 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +3 -1
- data/Gemfile.lock +82 -0
- data/README.md +7 -5
- data/bin/as-asset-detector +0 -0
- data/lib/shed/asdoc_package.rb +1 -1
- data/lib/shed/manifest.rb +12 -4
- data/lib/shed/opts/manifest_opts.rb +11 -4
- data/lib/shed/opts/tool_opts.rb +8 -5
- data/lib/shed/opts/unused_asset_opts.rb +1 -1
- data/lib/shed/opts/unused_class_opts.rb +16 -1
- data/lib/shed/opts/unused_style_opts.rb +1 -1
- data/lib/shed/search.rb +6 -5
- data/lib/shed/tool.rb +16 -3
- data/lib/shed/unused_asset.rb +37 -12
- data/lib/shed/unused_class.rb +4 -4
- data/lib/shed/version.rb +1 -1
- data/rakefile.rb +20 -84
- data/test/fixtures/unused-asset/src/org/helvector/ToolBox.mxml +4 -0
- data/test/test_helper.rb +13 -0
- data/test/unit/test_manifest.rb +23 -2
- data/test/unit/test_manifest_opts.rb +15 -0
- data/test/unit/test_search.rb +16 -4
- data/test/unit/test_unused_asset.rb +24 -14
- data/test/unit/test_unused_class_opts.rb +28 -1
- metadata +41 -69
- data/coverage/unit/index.html +0 -330
- data/coverage/unit/jquery-1.3.2.min.js +0 -19
- data/coverage/unit/jquery.tablesorter.min.js +0 -15
- data/coverage/unit/lib-hel-asdoc_package_rb.html +0 -447
- data/coverage/unit/lib-hel-manifest_rb.html +0 -555
- data/coverage/unit/lib-hel-opts-asdoc_package_opts_rb.html +0 -195
- data/coverage/unit/lib-hel-opts-manifest_opts_rb.html +0 -195
- data/coverage/unit/lib-hel-opts-tool_opts_rb.html +0 -531
- data/coverage/unit/lib-hel-opts-unused_class_opts_rb.html +0 -207
- data/coverage/unit/lib-hel-opts-unused_style_opts_rb.html +0 -201
- data/coverage/unit/lib-hel-project_tools_rb.html +0 -423
- data/coverage/unit/lib-hel-search_rb.html +0 -363
- data/coverage/unit/lib-hel-stripper_rb.html +0 -357
- data/coverage/unit/lib-hel-tool_rb.html +0 -423
- data/coverage/unit/lib-hel-unused_class_rb.html +0 -675
- data/coverage/unit/lib-hel-unused_style_rb.html +0 -747
- data/coverage/unit/lib-hel-version_rb.html +0 -135
- data/coverage/unit/lib-hel_tools_rb.html +0 -165
- data/coverage/unit/print.css +0 -12
- data/coverage/unit/rcov.js +0 -42
- data/coverage/unit/screen.css +0 -270
- data/coverage.data +0 -0
- data/rdoc/classes/ASDocPackage.html +0 -281
- data/rdoc/classes/ASDocPackageOpts.html +0 -204
- data/rdoc/classes/Manifest.html +0 -323
- data/rdoc/classes/ManifestOpts.html +0 -205
- data/rdoc/classes/ProjectTools.html +0 -302
- data/rdoc/classes/Search.html +0 -203
- data/rdoc/classes/Stripper.html +0 -223
- data/rdoc/classes/Tool.html +0 -313
- data/rdoc/classes/ToolOpts.html +0 -297
- data/rdoc/classes/UnusedClass.html +0 -258
- data/rdoc/classes/UnusedClassOpts.html +0 -206
- data/rdoc/classes/UnusedStyle.html +0 -277
- data/rdoc/classes/UnusedStyleOpts.html +0 -205
- data/rdoc/created.rid +0 -1
- data/rdoc/files/LICENSE.html +0 -129
- data/rdoc/files/README_md.html +0 -138
- data/rdoc/files/lib/hel/asdoc_package_rb.html +0 -107
- data/rdoc/files/lib/hel/manifest_rb.html +0 -107
- data/rdoc/files/lib/hel/opts/asdoc_package_opts_rb.html +0 -107
- data/rdoc/files/lib/hel/opts/manifest_opts_rb.html +0 -107
- data/rdoc/files/lib/hel/opts/tool_opts_rb.html +0 -114
- data/rdoc/files/lib/hel/opts/unused_class_opts_rb.html +0 -107
- data/rdoc/files/lib/hel/opts/unused_style_opts_rb.html +0 -107
- data/rdoc/files/lib/hel/project_tools_rb.html +0 -107
- data/rdoc/files/lib/hel/search_rb.html +0 -114
- data/rdoc/files/lib/hel/stripper_rb.html +0 -107
- data/rdoc/files/lib/hel/tool_rb.html +0 -107
- data/rdoc/files/lib/hel/unused_class_rb.html +0 -107
- data/rdoc/files/lib/hel/unused_style_rb.html +0 -107
- data/rdoc/files/lib/hel/version_rb.html +0 -107
- data/rdoc/files/lib/hel_tools_rb.html +0 -127
- data/rdoc/fr_class_index.html +0 -39
- data/rdoc/fr_file_index.html +0 -43
- data/rdoc/fr_method_index.html +0 -75
- data/rdoc/index.html +0 -24
- data/rdoc/rdoc-style.css +0 -208
- data/tool-shed-0.0.3.gem +0 -0
- data/tool-shed.gemspec +0 -41
data/rdoc/classes/Manifest.html
DELETED
@@ -1,323 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>Class: Manifest</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>Class</strong></td>
|
53
|
-
<td class="class-name-in-header">Manifest</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../files/lib/hel/manifest_rb.html">
|
59
|
-
lib/hel/manifest.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
|
65
|
-
<tr class="top-aligned-row">
|
66
|
-
<td><strong>Parent:</strong></td>
|
67
|
-
<td>
|
68
|
-
<a href="Tool.html">
|
69
|
-
Tool
|
70
|
-
</a>
|
71
|
-
</td>
|
72
|
-
</tr>
|
73
|
-
</table>
|
74
|
-
</div>
|
75
|
-
<!-- banner header -->
|
76
|
-
|
77
|
-
<div id="bodyContent">
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
<div id="contextContent">
|
82
|
-
|
83
|
-
<div id="description">
|
84
|
-
<p>
|
85
|
-
Scans a specified source tree for ActionScript and MXML files and for each
|
86
|
-
one found creates a manifest entry. When complete writes the resulting
|
87
|
-
manfiest file to disk.
|
88
|
-
</p>
|
89
|
-
|
90
|
-
</div>
|
91
|
-
|
92
|
-
|
93
|
-
</div>
|
94
|
-
|
95
|
-
<div id="method-list">
|
96
|
-
<h3 class="section-bar">Methods</h3>
|
97
|
-
|
98
|
-
<div class="name-list">
|
99
|
-
<a href="#M000038">add</a>
|
100
|
-
<a href="#M000040">build</a>
|
101
|
-
<a href="#M000041">create_xml</a>
|
102
|
-
<a href="#M000037">new</a>
|
103
|
-
<a href="#M000039">scan</a>
|
104
|
-
</div>
|
105
|
-
</div>
|
106
|
-
|
107
|
-
</div>
|
108
|
-
|
109
|
-
|
110
|
-
<!-- if includes -->
|
111
|
-
|
112
|
-
<div id="section">
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
<div id="attribute-list">
|
119
|
-
<h3 class="section-bar">Attributes</h3>
|
120
|
-
|
121
|
-
<div class="name-list">
|
122
|
-
<table>
|
123
|
-
<tr class="top-aligned-row context-row">
|
124
|
-
<td class="context-item-name">components</td>
|
125
|
-
<td class="context-item-value"> [R] </td>
|
126
|
-
<td class="context-item-desc"></td>
|
127
|
-
</tr>
|
128
|
-
<tr class="top-aligned-row context-row">
|
129
|
-
<td class="context-item-name">xml</td>
|
130
|
-
<td class="context-item-value"> [R] </td>
|
131
|
-
<td class="context-item-desc"></td>
|
132
|
-
</tr>
|
133
|
-
</table>
|
134
|
-
</div>
|
135
|
-
</div>
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
<!-- if method_list -->
|
140
|
-
<div id="methods">
|
141
|
-
<h3 class="section-bar">Public Class methods</h3>
|
142
|
-
|
143
|
-
<div id="method-M000037" class="method-detail">
|
144
|
-
<a name="M000037"></a>
|
145
|
-
|
146
|
-
<div class="method-heading">
|
147
|
-
<a href="#M000037" class="method-signature">
|
148
|
-
<span class="method-name">new</span><span class="method-args">(opt,out=STDOUT)</span>
|
149
|
-
</a>
|
150
|
-
</div>
|
151
|
-
|
152
|
-
<div class="method-description">
|
153
|
-
<p><a class="source-toggle" href="#"
|
154
|
-
onclick="toggleCode('M000037-source');return false;">[Source]</a></p>
|
155
|
-
<div class="method-source-code" id="M000037-source">
|
156
|
-
<pre>
|
157
|
-
<span class="ruby-comment cmt"># File lib/hel/manifest.rb, line 12</span>
|
158
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">opt</span>,<span class="ruby-identifier">out</span>=<span class="ruby-constant">STDOUT</span>)
|
159
|
-
<span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">opt</span>,<span class="ruby-identifier">out</span>)
|
160
|
-
|
161
|
-
<span class="ruby-ivar">@filetypes</span> = <span class="ruby-regexp re">/\.(as|mxml)$/</span>
|
162
|
-
|
163
|
-
<span class="ruby-identifier">build</span>
|
164
|
-
<span class="ruby-keyword kw">end</span>
|
165
|
-
</pre>
|
166
|
-
</div>
|
167
|
-
</div>
|
168
|
-
</div>
|
169
|
-
|
170
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
171
|
-
|
172
|
-
<div id="method-M000038" class="method-detail">
|
173
|
-
<a name="M000038"></a>
|
174
|
-
|
175
|
-
<div class="method-heading">
|
176
|
-
<a href="#M000038" class="method-signature">
|
177
|
-
<span class="method-name">add</span><span class="method-args">(path, id)</span>
|
178
|
-
</a>
|
179
|
-
</div>
|
180
|
-
|
181
|
-
<div class="method-description">
|
182
|
-
<p>
|
183
|
-
Generates a hash containing id and xml vales. The xml can be to be inserted
|
184
|
-
into the manifest for the specified class.
|
185
|
-
</p>
|
186
|
-
<p><a class="source-toggle" href="#"
|
187
|
-
onclick="toggleCode('M000038-source');return false;">[Source]</a></p>
|
188
|
-
<div class="method-source-code" id="M000038-source">
|
189
|
-
<pre>
|
190
|
-
<span class="ruby-comment cmt"># File lib/hel/manifest.rb, line 24</span>
|
191
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">id</span>)
|
192
|
-
<span class="ruby-identifier">log</span>(<span class="ruby-node">"Adding '#{path}'"</span>)
|
193
|
-
|
194
|
-
<span class="ruby-identifier">cp</span> = <span class="ruby-constant">ProjectTools</span>.<span class="ruby-identifier">import</span>(<span class="ruby-identifier">path</span>)
|
195
|
-
|
196
|
-
{ <span class="ruby-identifier">:key</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">id</span>, <span class="ruby-identifier">:xml</span> =<span class="ruby-operator">></span> <span class="ruby-node">"<component id=\"#{id}\" class=\"#{cp}\" />"</span> }
|
197
|
-
<span class="ruby-keyword kw">end</span>
|
198
|
-
</pre>
|
199
|
-
</div>
|
200
|
-
</div>
|
201
|
-
</div>
|
202
|
-
|
203
|
-
<div id="method-M000040" class="method-detail">
|
204
|
-
<a name="M000040"></a>
|
205
|
-
|
206
|
-
<div class="method-heading">
|
207
|
-
<a href="#M000040" class="method-signature">
|
208
|
-
<span class="method-name">build</span><span class="method-args">()</span>
|
209
|
-
</a>
|
210
|
-
</div>
|
211
|
-
|
212
|
-
<div class="method-description">
|
213
|
-
<p>
|
214
|
-
Build the manifest file and save it to disk.
|
215
|
-
</p>
|
216
|
-
<p><a class="source-toggle" href="#"
|
217
|
-
onclick="toggleCode('M000040-source');return false;">[Source]</a></p>
|
218
|
-
<div class="method-source-code" id="M000040-source">
|
219
|
-
<pre>
|
220
|
-
<span class="ruby-comment cmt"># File lib/hel/manifest.rb, line 56</span>
|
221
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">build</span>
|
222
|
-
<span class="ruby-ivar">@components</span> = <span class="ruby-identifier">scan</span>(<span class="ruby-ivar">@src</span>)
|
223
|
-
|
224
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@components</span>.<span class="ruby-identifier">empty?</span>
|
225
|
-
<span class="ruby-identifier">puts</span> <span class="ruby-value str">"No ActionScript or Mxml files found."</span>
|
226
|
-
<span class="ruby-keyword kw">else</span>
|
227
|
-
|
228
|
-
<span class="ruby-ivar">@components</span>.<span class="ruby-identifier">sort!</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">a</span>,<span class="ruby-identifier">b</span><span class="ruby-operator">|</span> <span class="ruby-identifier">a</span>[<span class="ruby-identifier">:xml</span>] <span class="ruby-operator"><=></span> <span class="ruby-identifier">b</span>[<span class="ruby-identifier">:xml</span>] }
|
229
|
-
|
230
|
-
<span class="ruby-ivar">@xml</span> = <span class="ruby-identifier">create_xml</span>(<span class="ruby-ivar">@components</span>)
|
231
|
-
|
232
|
-
<span class="ruby-comment cmt">#Open/Create the manifest file and write the output to it.</span>
|
233
|
-
<span class="ruby-identifier">to_disk</span>(<span class="ruby-ivar">@xml</span>)
|
234
|
-
<span class="ruby-keyword kw">end</span>
|
235
|
-
<span class="ruby-keyword kw">end</span>
|
236
|
-
</pre>
|
237
|
-
</div>
|
238
|
-
</div>
|
239
|
-
</div>
|
240
|
-
|
241
|
-
<div id="method-M000041" class="method-detail">
|
242
|
-
<a name="M000041"></a>
|
243
|
-
|
244
|
-
<div class="method-heading">
|
245
|
-
<a href="#M000041" class="method-signature">
|
246
|
-
<span class="method-name">create_xml</span><span class="method-args">(comps)</span>
|
247
|
-
</a>
|
248
|
-
</div>
|
249
|
-
|
250
|
-
<div class="method-description">
|
251
|
-
<p>
|
252
|
-
Constructs the flex complier config file when given a list of paths to
|
253
|
-
asdoc files.
|
254
|
-
</p>
|
255
|
-
<p><a class="source-toggle" href="#"
|
256
|
-
onclick="toggleCode('M000041-source');return false;">[Source]</a></p>
|
257
|
-
<div class="method-source-code" id="M000041-source">
|
258
|
-
<pre>
|
259
|
-
<span class="ruby-comment cmt"># File lib/hel/manifest.rb, line 76</span>
|
260
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create_xml</span>(<span class="ruby-identifier">comps</span>)
|
261
|
-
<span class="ruby-identifier">x</span> = <span class="ruby-value str">"<?xml version='1.0'?>\n<componentPackage>\n"</span>
|
262
|
-
<span class="ruby-identifier">comps</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-identifier">x</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"\t#{c[:xml]}\n"</span> }
|
263
|
-
<span class="ruby-identifier">x</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"</componentPackage>"</span>
|
264
|
-
<span class="ruby-identifier">x</span>
|
265
|
-
<span class="ruby-keyword kw">end</span>
|
266
|
-
</pre>
|
267
|
-
</div>
|
268
|
-
</div>
|
269
|
-
</div>
|
270
|
-
|
271
|
-
<div id="method-M000039" class="method-detail">
|
272
|
-
<a name="M000039"></a>
|
273
|
-
|
274
|
-
<div class="method-heading">
|
275
|
-
<a href="#M000039" class="method-signature">
|
276
|
-
<span class="method-name">scan</span><span class="method-args">(path)</span>
|
277
|
-
</a>
|
278
|
-
</div>
|
279
|
-
|
280
|
-
<div class="method-description">
|
281
|
-
<p>
|
282
|
-
<a href="Search.html">Search</a> the provided path for as and mxml
|
283
|
-
documents and return those found as a list.
|
284
|
-
</p>
|
285
|
-
<p><a class="source-toggle" href="#"
|
286
|
-
onclick="toggleCode('M000039-source');return false;">[Source]</a></p>
|
287
|
-
<div class="method-source-code" id="M000039-source">
|
288
|
-
<pre>
|
289
|
-
<span class="ruby-comment cmt"># File lib/hel/manifest.rb, line 36</span>
|
290
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">scan</span>(<span class="ruby-identifier">path</span>)
|
291
|
-
<span class="ruby-identifier">puts</span> <span class="ruby-node">"Scanning '#{path}' for as and mxml files..."</span>
|
292
|
-
|
293
|
-
<span class="ruby-identifier">found</span> = []
|
294
|
-
|
295
|
-
<span class="ruby-constant">Search</span>.<span class="ruby-identifier">find_all</span>(<span class="ruby-ivar">@filetypes</span>,<span class="ruby-identifier">path</span>,<span class="ruby-ivar">@excludes</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">p</span><span class="ruby-operator">|</span>
|
296
|
-
<span class="ruby-identifier">ext</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">extname</span>(<span class="ruby-identifier">p</span>)
|
297
|
-
<span class="ruby-identifier">cn</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-identifier">p</span>, <span class="ruby-identifier">ext</span>)
|
298
|
-
|
299
|
-
<span class="ruby-identifier">found</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">add</span>(<span class="ruby-identifier">p</span>, <span class="ruby-identifier">cn</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">cn</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^[A-Z]/</span>
|
300
|
-
<span class="ruby-keyword kw">end</span>
|
301
|
-
|
302
|
-
<span class="ruby-identifier">found</span>.<span class="ruby-identifier">uniq!</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">found</span>.<span class="ruby-identifier">empty?</span>
|
303
|
-
|
304
|
-
<span class="ruby-identifier">found</span>
|
305
|
-
<span class="ruby-keyword kw">end</span>
|
306
|
-
</pre>
|
307
|
-
</div>
|
308
|
-
</div>
|
309
|
-
</div>
|
310
|
-
|
311
|
-
|
312
|
-
</div>
|
313
|
-
|
314
|
-
|
315
|
-
</div>
|
316
|
-
|
317
|
-
|
318
|
-
<div id="validator-badges">
|
319
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
320
|
-
</div>
|
321
|
-
|
322
|
-
</body>
|
323
|
-
</html>
|
@@ -1,205 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>Class: ManifestOpts</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>Class</strong></td>
|
53
|
-
<td class="class-name-in-header">ManifestOpts</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../files/lib/hel/opts/manifest_opts_rb.html">
|
59
|
-
lib/hel/opts/manifest_opts.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
|
65
|
-
<tr class="top-aligned-row">
|
66
|
-
<td><strong>Parent:</strong></td>
|
67
|
-
<td>
|
68
|
-
<a href="ToolOpts.html">
|
69
|
-
ToolOpts
|
70
|
-
</a>
|
71
|
-
</td>
|
72
|
-
</tr>
|
73
|
-
</table>
|
74
|
-
</div>
|
75
|
-
<!-- banner header -->
|
76
|
-
|
77
|
-
<div id="bodyContent">
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
<div id="contextContent">
|
82
|
-
|
83
|
-
<div id="description">
|
84
|
-
<p>
|
85
|
-
Manages the command line interface for the AS3 <a
|
86
|
-
href="Manifest.html">Manifest</a> File generation tool.
|
87
|
-
</p>
|
88
|
-
|
89
|
-
</div>
|
90
|
-
|
91
|
-
|
92
|
-
</div>
|
93
|
-
|
94
|
-
<div id="method-list">
|
95
|
-
<h3 class="section-bar">Methods</h3>
|
96
|
-
|
97
|
-
<div class="name-list">
|
98
|
-
<a href="#M000036">default_config</a>
|
99
|
-
<a href="#M000034">description</a>
|
100
|
-
<a href="#M000035">name</a>
|
101
|
-
</div>
|
102
|
-
</div>
|
103
|
-
|
104
|
-
</div>
|
105
|
-
|
106
|
-
|
107
|
-
<!-- if includes -->
|
108
|
-
|
109
|
-
<div id="section">
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
<!-- if method_list -->
|
119
|
-
<div id="methods">
|
120
|
-
<h3 class="section-bar">Public Class methods</h3>
|
121
|
-
|
122
|
-
<div id="method-M000036" class="method-detail">
|
123
|
-
<a name="M000036"></a>
|
124
|
-
|
125
|
-
<div class="method-heading">
|
126
|
-
<a href="#M000036" class="method-signature">
|
127
|
-
<span class="method-name">default_config</span><span class="method-args">()</span>
|
128
|
-
</a>
|
129
|
-
</div>
|
130
|
-
|
131
|
-
<div class="method-description">
|
132
|
-
<p><a class="source-toggle" href="#"
|
133
|
-
onclick="toggleCode('M000036-source');return false;">[Source]</a></p>
|
134
|
-
<div class="method-source-code" id="M000036-source">
|
135
|
-
<pre>
|
136
|
-
<span class="ruby-comment cmt"># File lib/hel/opts/manifest_opts.rb, line 16</span>
|
137
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">default_config</span>
|
138
|
-
<span class="ruby-identifier">dc</span> = <span class="ruby-identifier">superclass</span>.<span class="ruby-identifier">default_config</span>
|
139
|
-
<span class="ruby-identifier">dc</span>[<span class="ruby-identifier">:output</span>] = <span class="ruby-value str">"manifest.xml"</span>
|
140
|
-
<span class="ruby-identifier">dc</span>
|
141
|
-
<span class="ruby-keyword kw">end</span>
|
142
|
-
</pre>
|
143
|
-
</div>
|
144
|
-
</div>
|
145
|
-
</div>
|
146
|
-
|
147
|
-
<div id="method-M000034" class="method-detail">
|
148
|
-
<a name="M000034"></a>
|
149
|
-
|
150
|
-
<div class="method-heading">
|
151
|
-
<a href="#M000034" class="method-signature">
|
152
|
-
<span class="method-name">description</span><span class="method-args">()</span>
|
153
|
-
</a>
|
154
|
-
</div>
|
155
|
-
|
156
|
-
<div class="method-description">
|
157
|
-
<p><a class="source-toggle" href="#"
|
158
|
-
onclick="toggleCode('M000034-source');return false;">[Source]</a></p>
|
159
|
-
<div class="method-source-code" id="M000034-source">
|
160
|
-
<pre>
|
161
|
-
<span class="ruby-comment cmt"># File lib/hel/opts/manifest_opts.rb, line 8</span>
|
162
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">description</span>
|
163
|
-
<span class="ruby-value str">"Helvector ActionScript Manifest Generator Tool"</span>
|
164
|
-
<span class="ruby-keyword kw">end</span>
|
165
|
-
</pre>
|
166
|
-
</div>
|
167
|
-
</div>
|
168
|
-
</div>
|
169
|
-
|
170
|
-
<div id="method-M000035" class="method-detail">
|
171
|
-
<a name="M000035"></a>
|
172
|
-
|
173
|
-
<div class="method-heading">
|
174
|
-
<a href="#M000035" class="method-signature">
|
175
|
-
<span class="method-name">name</span><span class="method-args">()</span>
|
176
|
-
</a>
|
177
|
-
</div>
|
178
|
-
|
179
|
-
<div class="method-description">
|
180
|
-
<p><a class="source-toggle" href="#"
|
181
|
-
onclick="toggleCode('M000035-source');return false;">[Source]</a></p>
|
182
|
-
<div class="method-source-code" id="M000035-source">
|
183
|
-
<pre>
|
184
|
-
<span class="ruby-comment cmt"># File lib/hel/opts/manifest_opts.rb, line 12</span>
|
185
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">name</span>
|
186
|
-
<span class="ruby-value str">"hel-manifest"</span>
|
187
|
-
<span class="ruby-keyword kw">end</span>
|
188
|
-
</pre>
|
189
|
-
</div>
|
190
|
-
</div>
|
191
|
-
</div>
|
192
|
-
|
193
|
-
|
194
|
-
</div>
|
195
|
-
|
196
|
-
|
197
|
-
</div>
|
198
|
-
|
199
|
-
|
200
|
-
<div id="validator-badges">
|
201
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
202
|
-
</div>
|
203
|
-
|
204
|
-
</body>
|
205
|
-
</html>
|