sprout 1.1.15.pre → 1.1.16.pre

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of sprout might be problematic. Click here for more details.

Files changed (101) hide show
  1. data/VERSION +1 -1
  2. data/lib/sprout/executable/base.rb +7 -7
  3. metadata +101 -252
  4. data/Gemfile.lock +0 -50
  5. data/doc/Dir.html +0 -288
  6. data/doc/Rake/Task.html +0 -184
  7. data/doc/Sprout.html +0 -740
  8. data/doc/Sprout/ArchiveUnpacker.html +0 -1246
  9. data/doc/Sprout/CommandLine.html +0 -520
  10. data/doc/Sprout/Concern.html +0 -351
  11. data/doc/Sprout/Errors.html +0 -101
  12. data/doc/Sprout/Errors/ArchiveUnpackerError.html +0 -125
  13. data/doc/Sprout/Errors/DestinationExistsError.html +0 -133
  14. data/doc/Sprout/Errors/DuplicateMemberError.html +0 -132
  15. data/doc/Sprout/Errors/ExecutableError.html +0 -125
  16. data/doc/Sprout/Errors/ExecutableRegistrationError.html +0 -132
  17. data/doc/Sprout/Errors/ExecutionError.html +0 -121
  18. data/doc/Sprout/Errors/GeneratorError.html +0 -125
  19. data/doc/Sprout/Errors/InvalidArgumentError.html +0 -132
  20. data/doc/Sprout/Errors/LoadError.html +0 -121
  21. data/doc/Sprout/Errors/MissingArgumentError.html +0 -132
  22. data/doc/Sprout/Errors/MissingExecutableError.html +0 -132
  23. data/doc/Sprout/Errors/MissingGeneratorError.html +0 -132
  24. data/doc/Sprout/Errors/MissingTemplateError.html +0 -132
  25. data/doc/Sprout/Errors/ProcessRunnerError.html +0 -121
  26. data/doc/Sprout/Errors/RemoteFileLoaderError.html +0 -110
  27. data/doc/Sprout/Errors/SproutError.html +0 -114
  28. data/doc/Sprout/Errors/UnknownArchiveType.html +0 -122
  29. data/doc/Sprout/Errors/UsageError.html +0 -121
  30. data/doc/Sprout/Errors/ValidationError.html +0 -121
  31. data/doc/Sprout/Errors/VersionRequirementNotMetError.html +0 -121
  32. data/doc/Sprout/Executable.html +0 -169
  33. data/doc/Sprout/Executable/Base.html +0 -2813
  34. data/doc/Sprout/Executable/Boolean.html +0 -534
  35. data/doc/Sprout/Executable/CollectionParam.html +0 -483
  36. data/doc/Sprout/Executable/FileParam.html +0 -484
  37. data/doc/Sprout/Executable/Files.html +0 -292
  38. data/doc/Sprout/Executable/Number.html +0 -141
  39. data/doc/Sprout/Executable/Param.html +0 -2874
  40. data/doc/Sprout/Executable/ParameterFactory.html +0 -232
  41. data/doc/Sprout/Executable/Path.html +0 -223
  42. data/doc/Sprout/Executable/Paths.html +0 -253
  43. data/doc/Sprout/Executable/Session.html +0 -1513
  44. data/doc/Sprout/Executable/StringParam.html +0 -213
  45. data/doc/Sprout/Executable/Strings.html +0 -167
  46. data/doc/Sprout/Executable/Url.html +0 -160
  47. data/doc/Sprout/Executable/Urls.html +0 -170
  48. data/doc/Sprout/FileTarget.html +0 -1109
  49. data/doc/Sprout/Generator.html +0 -750
  50. data/doc/Sprout/Generator/Base.html +0 -1902
  51. data/doc/Sprout/Generator/Command.html +0 -690
  52. data/doc/Sprout/Generator/DirectoryManifest.html +0 -476
  53. data/doc/Sprout/Generator/FileManifest.html +0 -643
  54. data/doc/Sprout/Generator/Manifest.html +0 -377
  55. data/doc/Sprout/Generator/TemplateManifest.html +0 -194
  56. data/doc/Sprout/GeneratorGenerator.html +0 -1115
  57. data/doc/Sprout/Library.html +0 -1146
  58. data/doc/Sprout/LibraryGenerator.html +0 -331
  59. data/doc/Sprout/OutputBuffer.html +0 -445
  60. data/doc/Sprout/Platform.html +0 -714
  61. data/doc/Sprout/ProcessRunner.html +0 -1707
  62. data/doc/Sprout/ProgressBar.html +0 -366
  63. data/doc/Sprout/ProgressBarImpl.html +0 -2109
  64. data/doc/Sprout/ProgressBarManager.html +0 -424
  65. data/doc/Sprout/ProgressBarOutputStream.html +0 -406
  66. data/doc/Sprout/RDocParser.html +0 -211
  67. data/doc/Sprout/RemoteFileLoader.html +0 -172
  68. data/doc/Sprout/RemoteFileTarget.html +0 -679
  69. data/doc/Sprout/ReversedProgressBar.html +0 -184
  70. data/doc/Sprout/RubyFeature.html +0 -155
  71. data/doc/Sprout/RubyFeature/ClassMethods.html +0 -1065
  72. data/doc/Sprout/RubyGenerator.html +0 -786
  73. data/doc/Sprout/Specification.html +0 -767
  74. data/doc/Sprout/System.html +0 -191
  75. data/doc/Sprout/System/BaseSystem.html +0 -1660
  76. data/doc/Sprout/System/JavaSystem.html +0 -122
  77. data/doc/Sprout/System/OSXSystem.html +0 -335
  78. data/doc/Sprout/System/ThreadMock.html +0 -183
  79. data/doc/Sprout/System/UnixSystem.html +0 -584
  80. data/doc/Sprout/System/VistaSystem.html +0 -251
  81. data/doc/Sprout/System/WinNixSystem.html +0 -325
  82. data/doc/Sprout/System/WinSystem.html +0 -571
  83. data/doc/Sprout/TestHelper.html +0 -2165
  84. data/doc/Sprout/ToolGenerator.html +0 -953
  85. data/doc/Sprout/VERSION.html +0 -118
  86. data/doc/String.html +0 -290
  87. data/doc/_index.html +0 -820
  88. data/doc/class_list.html +0 -36
  89. data/doc/css/common.css +0 -1
  90. data/doc/css/full_list.css +0 -53
  91. data/doc/css/style.css +0 -310
  92. data/doc/file.README.html +0 -96
  93. data/doc/file_list.html +0 -41
  94. data/doc/frames.html +0 -13
  95. data/doc/index.html +0 -96
  96. data/doc/js/app.js +0 -202
  97. data/doc/js/full_list.js +0 -149
  98. data/doc/js/jquery.js +0 -154
  99. data/doc/method_list.html +0 -3603
  100. data/doc/top-level-namespace.html +0 -192
  101. data/test/fixtures/library/archive/Archive.swc +0 -0
@@ -1,1146 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <meta name="Content-Type" content="text/html; charset=utf-8" />
6
- <title>Class: Sprout::Library</title>
7
- <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
8
- <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
9
-
10
- <script type="text/javascript" charset="utf-8">
11
- relpath = '..';
12
- if (relpath != '') relpath += '/';
13
- </script>
14
- <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
15
- <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
16
-
17
- </head>
18
- <body>
19
- <script type="text/javascript" charset="utf-8">
20
- if (window.top.frames.main) document.body.className = 'frames';
21
- </script>
22
-
23
- <div id="header">
24
- <div id="menu">
25
-
26
- <a href="../_index.html">Index (L)</a> &raquo;
27
- <span class='title'><span class='object_link'><a href="../Sprout.html" title="Sprout (module)">Sprout</a></span></span>
28
- &raquo;
29
- <span class="title">Library</span>
30
-
31
-
32
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
33
- </div>
34
-
35
- <div id="search">
36
- <a id="class_list_link" href="#">Class List</a>
37
- <a id="method_list_link" href="#">Method List</a>
38
- <a id ="file_list_link" href="#">File List</a>
39
- </div>
40
-
41
- <div class="clear"></div>
42
- </div>
43
-
44
- <iframe id="search_frame"></iframe>
45
-
46
- <div id="content"><h1>Class: Sprout::Library
47
-
48
-
49
-
50
- </h1>
51
-
52
- <dl class="box">
53
-
54
- <dt class="r1">Inherits:</dt>
55
- <dd class="r1">
56
- <span class="inheritName">Object</span>
57
-
58
- <ul class="fullTree">
59
- <li>Object</li>
60
-
61
- <li class="next">Sprout::Library</li>
62
-
63
- </ul>
64
- <a href="#" class="inheritanceTree">show all</a>
65
-
66
- </dd>
67
-
68
-
69
-
70
-
71
-
72
-
73
- <dt class="r2">Includes:</dt>
74
- <dd class="r2"><span class='object_link'><a href="RubyFeature.html" title="Sprout::RubyFeature (module)">RubyFeature</a></span></dd>
75
-
76
-
77
-
78
-
79
-
80
- <dt class="r1 last">Defined in:</dt>
81
- <dd class="r1 last">lib/sprout/library.rb</dd>
82
-
83
- </dl>
84
- <div class="clear"></div>
85
-
86
- <h2>Overview</h2><div class="docstring">
87
- <div class="discussion">
88
-
89
- <p>Sprout Libraries provide support for sharing and versioning raw or
90
- pre-compiled source code across projects.</p>
91
-
92
- <p>Sprout Libraries give us the ability to include raw (or pre-compiled)
93
- source code directly within a Ruby Gem, or to refer to an archive somewhere
94
- on the internet.</p>
95
-
96
- <p>A Sprout Library is made up of two components:</p>
97
- <ul><li>
98
- <p>Specification: The description of the library</p>
99
- </li><li>
100
- <p>Source Code: Raw or pre-compiled (swc, jar, abc)</p>
101
- </li></ul>
102
-
103
- <h1>Specification</h1>
104
-
105
- <p>Libraries can be added to local or remote file targets in a
106
- Sprout::Specification. When calling add_library, one must provide the
107
- library name (symbol that will be used from Rake) and a relative path (or
108
- Array of paths) from the Specification to the library file or directory.</p>
109
-
110
- <p>Following is an example of a Sprout::Specification that registers a SWC
111
- that will be distributed directly within a Ruby Gem:</p>
112
-
113
- <pre class="code"><span class='const'>Sprout</span><span class='op'>::</span><span class='const'>Specification</span><span class='period'>.</span><span class='id new'>new</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id s'>s</span><span class='op'>|</span>
114
- <span class='id s'>s</span><span class='period'>.</span><span class='id name'>name</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>asunit4</span><span class='tstring_end'>&quot;</span></span>
115
- <span class='id s'>s</span><span class='period'>.</span><span class='id version'>version</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>4.4.2</span><span class='tstring_end'>&quot;</span></span>
116
- <span class='id s'>s</span><span class='period'>.</span><span class='id add_file_target'>add_file_target</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id f'>f</span><span class='op'>|</span>
117
- <span class='id f'>f</span><span class='period'>.</span><span class='id add_library'>add_library</span> <span class='symbol'>:swc</span><span class='comma'>,</span> <span class='const'>File</span><span class='period'>.</span><span class='id join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>bin</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>AsUnit-4.4.2.swc</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
118
- <span class='kw'>end</span>
119
- <span class='kw'>end</span></pre>
120
-
121
- <p>Following is an example of a Sprout::Specification that registers a ZIP
122
- archive that will be distributed separately from the Ruby Gem:</p>
123
-
124
- <pre class="code"><span class='const'>Sprout</span><span class='op'>::</span><span class='const'>Specification</span><span class='period'>.</span><span class='id new'>new</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id s'>s</span><span class='op'>|</span>
125
- <span class='id s'>s</span><span class='period'>.</span><span class='id name'>name</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>asunit3</span><span class='tstring_end'>&quot;</span></span>
126
- <span class='id s'>s</span><span class='period'>.</span><span class='id version'>version</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>3.0.0</span><span class='tstring_end'>&quot;</span></span>
127
- <span class='id s'>s</span><span class='period'>.</span><span class='id add_remote_file_target'>add_remote_file_target</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id f'>f</span><span class='op'>|</span>
128
- <span class='id f'>f</span><span class='period'>.</span><span class='id url'>url</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>https://github.com/patternpark/asunit/tree/3.0.0</span><span class='tstring_end'>&quot;</span></span>
129
- <span class='id f'>f</span><span class='period'>.</span><span class='id md5'>md5</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>abcdefghijklmnopqrstuvwxyz</span><span class='tstring_end'>&quot;</span></span>
130
- <span class='id f'>f</span><span class='period'>.</span><span class='id add_library'>add_library</span> <span class='symbol'>:swc</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>bin/AsUnit-3.0.1.zip</span><span class='tstring_end'>&quot;</span></span>
131
- <span class='kw'>end</span>
132
- <span class='kw'>end</span></pre>
133
-
134
- <p>Libraries can be consumed from any Rakefile without concern for how the
135
- source code is distributed. Following is an example Rake task that uses the
136
- AsUnit 4.0 Library:</p>
137
-
138
- <pre class="code"><span class='comment'># Define the library Rake::Task:
139
- </span><span class='id library'>library</span> <span class='symbol'>:asunit4</span>
140
-
141
- <span class='comment'># Add the library as a dependency from another task
142
- </span><span class='comment'># that should know how to properly associate the files:
143
- </span><span class='id mxmlc'>mxmlc</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>bin/SomeProject.swf</span><span class='tstring_end'>'</span></span> <span class='op'>=&gt;</span> <span class='symbol'>:asunit4</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id t'>t</span><span class='op'>|</span>
144
- <span class='id t'>t</span><span class='period'>.</span><span class='id input'>input</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>src/SomeProject.as</span><span class='tstring_end'>'</span></span>
145
- <span class='kw'>end</span></pre>
146
-
147
- <p>When the library task is executed, the library should be resolved and
148
- expanded into the project. When the mxmlc task is executed, the installed
149
- library should be associated with the compilation command.</p>
150
-
151
- <h1>Flash Libraries</h1>
152
-
153
- <p>Following are links to the Specifications for some of the existing
154
- libraries:</p>
155
- <hr style="height: 1px">
156
-
157
- <p>Previous Topic: <span class='object_link'><a href="Generator.html" title="Sprout::Generator (module)">Generator</a></span></p>
158
-
159
- <p>Next Topic: <span class='object_link'><a href="Executable.html" title="Sprout::Executable (module)">Executable</a></span></p>
160
- <hr style="height: 1px">
161
-
162
-
163
- </div>
164
- </div>
165
- <div class="tags">
166
-
167
- <h3>See Also:</h3>
168
- <ul class="see">
169
-
170
- <li><span class='object_link'><a href="Generator.html" title="Sprout::Generator (module)">Generator</a></span></li>
171
-
172
- <li><span class='object_link'><a href="Executable.html" title="Sprout::Executable (module)">Executable</a></span></li>
173
-
174
- <li><span class='object_link'><a href="Specification.html" title="Sprout::Specification (class)">Specification</a></span></li>
175
-
176
- <li><span class='object_link'><a href="RubyFeature.html" title="Sprout::RubyFeature (module)">RubyFeature</a></span></li>
177
-
178
- <li><span class='object_link'><a href="System.html" title="Sprout::System (module)">System</a></span></li>
179
-
180
- </ul>
181
-
182
- </div>
183
- <h2>Constant Summary</h2>
184
-
185
- <dl class="constants">
186
-
187
- <dt id="TASK_NAME-constant" class="">TASK_NAME =
188
-
189
- </dt>
190
- <dd><pre class="code"><span class='symbol'>:resolve_sprout_libraries</span></pre></dd>
191
-
192
- </dl>
193
-
194
-
195
-
196
-
197
-
198
-
199
-
200
-
201
-
202
-
203
-
204
- <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
205
- <ul class="summary">
206
-
207
- <li class="public ">
208
- <span class="summary_signature">
209
-
210
- <a href="#file_target-instance_method" title="#file_target (instance method)">- (Object) <strong>file_target</strong> </a>
211
-
212
-
213
-
214
- </span>
215
-
216
-
217
-
218
-
219
-
220
-
221
-
222
-
223
-
224
-
225
-
226
- <span class="summary_desc"><div class='inline'>
227
- <p>Returns the value of attribute file_target.</p>
228
- </div></span>
229
-
230
- </li>
231
-
232
-
233
- <li class="public ">
234
- <span class="summary_signature">
235
-
236
- <a href="#installed_project_path-instance_method" title="#installed_project_path (instance method)">- (Object) <strong>installed_project_path</strong> </a>
237
-
238
-
239
-
240
- </span>
241
-
242
-
243
-
244
-
245
-
246
-
247
-
248
-
249
-
250
-
251
-
252
- <span class="summary_desc"><div class='inline'>
253
- <p>Returns the value of attribute installed_project_path.</p>
254
- </div></span>
255
-
256
- </li>
257
-
258
-
259
- <li class="public ">
260
- <span class="summary_signature">
261
-
262
- <a href="#name-instance_method" title="#name (instance method)">- (Object) <strong>name</strong> </a>
263
-
264
-
265
-
266
- </span>
267
-
268
-
269
-
270
-
271
-
272
-
273
-
274
-
275
-
276
-
277
-
278
- <span class="summary_desc"><div class='inline'>
279
- <p>Returns the value of attribute name.</p>
280
- </div></span>
281
-
282
- </li>
283
-
284
-
285
- <li class="public ">
286
- <span class="summary_signature">
287
-
288
- <a href="#path-instance_method" title="#path (instance method)">- (Object) <strong>path</strong> </a>
289
-
290
-
291
-
292
- </span>
293
-
294
-
295
-
296
-
297
-
298
-
299
-
300
-
301
-
302
-
303
-
304
- <span class="summary_desc"><div class='inline'>
305
- <p>Returns the value of attribute path.</p>
306
- </div></span>
307
-
308
- </li>
309
-
310
-
311
- <li class="public ">
312
- <span class="summary_signature">
313
-
314
- <a href="#pkg_name-instance_method" title="#pkg_name (instance method)">- (Object) <strong>pkg_name</strong> </a>
315
-
316
-
317
-
318
- </span>
319
-
320
-
321
-
322
-
323
-
324
-
325
-
326
-
327
-
328
-
329
-
330
- <span class="summary_desc"><div class='inline'>
331
- <p>Returns the value of attribute pkg_name.</p>
332
- </div></span>
333
-
334
- </li>
335
-
336
-
337
- <li class="public ">
338
- <span class="summary_signature">
339
-
340
- <a href="#pkg_version-instance_method" title="#pkg_version (instance method)">- (Object) <strong>pkg_version</strong> </a>
341
-
342
-
343
-
344
- </span>
345
-
346
-
347
-
348
-
349
-
350
-
351
-
352
-
353
-
354
-
355
-
356
- <span class="summary_desc"><div class='inline'>
357
- <p>Returns the value of attribute pkg_version.</p>
358
- </div></span>
359
-
360
- </li>
361
-
362
-
363
- <li class="public ">
364
- <span class="summary_signature">
365
-
366
- <a href="#platform-instance_method" title="#platform (instance method)">- (Object) <strong>platform</strong> </a>
367
-
368
-
369
-
370
- </span>
371
-
372
-
373
-
374
-
375
-
376
-
377
-
378
-
379
-
380
-
381
-
382
- <span class="summary_desc"><div class='inline'>
383
- <p>Returns the value of attribute platform.</p>
384
- </div></span>
385
-
386
- </li>
387
-
388
-
389
- </ul>
390
-
391
-
392
-
393
- <h2>
394
- Class Method Summary
395
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
396
- </h2>
397
-
398
- <ul class="summary">
399
-
400
- <li class="public ">
401
- <span class="summary_signature">
402
-
403
- <a href="#define_task-class_method" title="define_task (class method)">+ (Object) <strong>define_task</strong>(name = nil, pkg_name = nil, pkg_version = nil) </a>
404
-
405
-
406
-
407
- </span>
408
-
409
-
410
-
411
-
412
-
413
-
414
-
415
-
416
- <span class="summary_desc"><div class='inline'>
417
- <p>Create Rake tasks that will load and install a particular library into the
418
- current project.</p>
419
- </div></span>
420
-
421
- </li>
422
-
423
-
424
- <li class="public ">
425
- <span class="summary_signature">
426
-
427
- <a href="#project_path-class_method" title="project_path (class method)">+ (Object) <strong>project_path</strong> </a>
428
-
429
-
430
-
431
- </span>
432
-
433
-
434
-
435
-
436
-
437
-
438
-
439
-
440
- <span class="summary_desc"><div class='inline'>
441
- <p>The path within a project where libraries should be added.</p>
442
- </div></span>
443
-
444
- </li>
445
-
446
-
447
- <li class="public ">
448
- <span class="summary_signature">
449
-
450
- <a href="#project_path%3D-class_method" title="project_path= (class method)">+ (Object) <strong>project_path=</strong>(path) </a>
451
-
452
-
453
-
454
- </span>
455
-
456
-
457
-
458
-
459
-
460
-
461
-
462
-
463
- <span class="summary_desc"><div class='inline'>
464
- <p>Set the path within a project where libraries should be loaded.</p>
465
- </div></span>
466
-
467
- </li>
468
-
469
-
470
- </ul>
471
-
472
- <h2>
473
- Instance Method Summary
474
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
475
- </h2>
476
-
477
- <ul class="summary">
478
-
479
- <li class="public ">
480
- <span class="summary_signature">
481
-
482
- <a href="#create_installation_tasks-instance_method" title="#create_installation_tasks (instance method)">- (Object) <strong>create_installation_tasks</strong> </a>
483
-
484
-
485
-
486
- </span>
487
-
488
-
489
-
490
-
491
-
492
-
493
-
494
-
495
- <span class="summary_desc"><div class='inline'>
496
- <p>Returns the outer Rake::Task which is invokable.</p>
497
- </div></span>
498
-
499
- </li>
500
-
501
-
502
- <li class="public ">
503
- <span class="summary_signature">
504
-
505
- <a href="#create_outer_task-instance_method" title="#create_outer_task (instance method)">- (Object) <strong>create_outer_task</strong> </a>
506
-
507
-
508
-
509
- </span>
510
-
511
-
512
-
513
-
514
-
515
-
516
-
517
-
518
- <span class="summary_desc"><div class='inline'></div></span>
519
-
520
- </li>
521
-
522
-
523
- <li class="public ">
524
- <span class="summary_signature">
525
-
526
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (Library) <strong>initialize</strong>(params = nil) </a>
527
-
528
-
529
-
530
- </span>
531
-
532
- <span class="note title constructor">constructor</span>
533
-
534
-
535
-
536
-
537
-
538
-
539
-
540
-
541
- <span class="summary_desc"><div class='inline'>
542
- <p>A new instance of Library.</p>
543
- </div></span>
544
-
545
- </li>
546
-
547
-
548
- </ul>
549
-
550
-
551
-
552
-
553
-
554
-
555
-
556
-
557
-
558
-
559
-
560
-
561
-
562
-
563
-
564
- <h3 class="inherited">Methods included from <span class='object_link'><a href="Concern.html" title="Sprout::Concern (module)">Concern</a></span></h3>
565
- <p class="inherited"><span class='object_link'><a href="Concern.html#append_features-instance_method" title="Sprout::Concern#append_features (method)">#append_features</a></span>, <span class='object_link'><a href="Concern.html#extended-class_method" title="Sprout::Concern.extended (method)">extended</a></span>, <span class='object_link'><a href="Concern.html#included-instance_method" title="Sprout::Concern#included (method)">#included</a></span></p>
566
- <div id="constructor_details" class="method_details_list">
567
- <h2>Constructor Details</h2>
568
-
569
- <div class="method_details first">
570
- <p class="signature first" id="initialize-instance_method">
571
-
572
- - (<tt><span class='object_link'><a href="" title="Sprout::Library (class)">Library</a></span></tt>) <strong>initialize</strong>(params = nil)
573
-
574
-
575
-
576
- </p><div class="docstring">
577
- <div class="discussion">
578
-
579
- <p>A new instance of Library</p>
580
-
581
-
582
- </div>
583
- </div>
584
- <div class="tags">
585
-
586
- </div><table class="source_code">
587
- <tr>
588
- <td>
589
- <pre class="lines">
590
-
591
-
592
- 142
593
- 143
594
- 144
595
- 145</pre>
596
- </td>
597
- <td>
598
- <pre class="code"><span class="info file"># File 'lib/sprout/library.rb', line 142</span>
599
-
600
- <span class='kw'>def</span> <span class='id initialize'>initialize</span> <span class='id params'>params</span><span class='op'>=</span><span class='kw'>nil</span>
601
- <span class='id params'>params</span><span class='period'>.</span><span class='id each'>each</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id key'>key</span><span class='comma'>,</span><span class='id value'>value</span><span class='op'>|</span> <span class='kw'>self</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id key'>key</span><span class='rbrace'>}</span><span class='tstring_content'>=</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id value'>value</span><span class='rparen'>)</span><span class='rbrace'>}</span> <span class='kw'>unless</span> <span class='id params'>params</span><span class='period'>.</span><span class='id nil?'>nil?</span>
602
- <span class='kw'>super</span><span class='lparen'>(</span><span class='rparen'>)</span>
603
- <span class='kw'>end</span></pre>
604
- </td>
605
- </tr>
606
- </table>
607
- </div>
608
-
609
- </div>
610
-
611
- <div id="instance_attr_details" class="attr_details">
612
- <h2>Instance Attribute Details</h2>
613
-
614
-
615
- <span id="file_target=-instance_method"></span>
616
- <span id="file_target-instance_method"></span>
617
- <div class="method_details first">
618
- <p class="signature first" id="file_target-instance_method">
619
-
620
- - (<tt>Object</tt>) <strong>file_target</strong>
621
-
622
-
623
-
624
- </p><div class="docstring">
625
- <div class="discussion">
626
-
627
- <p>Returns the value of attribute file_target</p>
628
-
629
-
630
- </div>
631
- </div>
632
- <div class="tags">
633
-
634
- </div><table class="source_code">
635
- <tr>
636
- <td>
637
- <pre class="lines">
638
-
639
-
640
- 90
641
- 91
642
- 92</pre>
643
- </td>
644
- <td>
645
- <pre class="code"><span class="info file"># File 'lib/sprout/library.rb', line 90</span>
646
-
647
- <span class='kw'>def</span> <span class='id file_target'>file_target</span>
648
- <span class='ivar'>@file_target</span>
649
- <span class='kw'>end</span></pre>
650
- </td>
651
- </tr>
652
- </table>
653
- </div>
654
-
655
-
656
- <span id="installed_project_path=-instance_method"></span>
657
- <span id="installed_project_path-instance_method"></span>
658
- <div class="method_details ">
659
- <p class="signature " id="installed_project_path-instance_method">
660
-
661
- - (<tt>Object</tt>) <strong>installed_project_path</strong>
662
-
663
-
664
-
665
- </p><div class="docstring">
666
- <div class="discussion">
667
-
668
- <p>Returns the value of attribute installed_project_path</p>
669
-
670
-
671
- </div>
672
- </div>
673
- <div class="tags">
674
-
675
- </div><table class="source_code">
676
- <tr>
677
- <td>
678
- <pre class="lines">
679
-
680
-
681
- 91
682
- 92
683
- 93</pre>
684
- </td>
685
- <td>
686
- <pre class="code"><span class="info file"># File 'lib/sprout/library.rb', line 91</span>
687
-
688
- <span class='kw'>def</span> <span class='id installed_project_path'>installed_project_path</span>
689
- <span class='ivar'>@installed_project_path</span>
690
- <span class='kw'>end</span></pre>
691
- </td>
692
- </tr>
693
- </table>
694
- </div>
695
-
696
-
697
- <span id="name=-instance_method"></span>
698
- <span id="name-instance_method"></span>
699
- <div class="method_details ">
700
- <p class="signature " id="name-instance_method">
701
-
702
- - (<tt>Object</tt>) <strong>name</strong>
703
-
704
-
705
-
706
- </p><div class="docstring">
707
- <div class="discussion">
708
-
709
- <p>Returns the value of attribute name</p>
710
-
711
-
712
- </div>
713
- </div>
714
- <div class="tags">
715
-
716
- </div><table class="source_code">
717
- <tr>
718
- <td>
719
- <pre class="lines">
720
-
721
-
722
- 92
723
- 93
724
- 94</pre>
725
- </td>
726
- <td>
727
- <pre class="code"><span class="info file"># File 'lib/sprout/library.rb', line 92</span>
728
-
729
- <span class='kw'>def</span> <span class='id name'>name</span>
730
- <span class='ivar'>@name</span>
731
- <span class='kw'>end</span></pre>
732
- </td>
733
- </tr>
734
- </table>
735
- </div>
736
-
737
-
738
- <span id="path=-instance_method"></span>
739
- <span id="path-instance_method"></span>
740
- <div class="method_details ">
741
- <p class="signature " id="path-instance_method">
742
-
743
- - (<tt>Object</tt>) <strong>path</strong>
744
-
745
-
746
-
747
- </p><div class="docstring">
748
- <div class="discussion">
749
-
750
- <p>Returns the value of attribute path</p>
751
-
752
-
753
- </div>
754
- </div>
755
- <div class="tags">
756
-
757
- </div><table class="source_code">
758
- <tr>
759
- <td>
760
- <pre class="lines">
761
-
762
-
763
- 93
764
- 94
765
- 95</pre>
766
- </td>
767
- <td>
768
- <pre class="code"><span class="info file"># File 'lib/sprout/library.rb', line 93</span>
769
-
770
- <span class='kw'>def</span> <span class='id path'>path</span>
771
- <span class='ivar'>@path</span>
772
- <span class='kw'>end</span></pre>
773
- </td>
774
- </tr>
775
- </table>
776
- </div>
777
-
778
-
779
- <span id="pkg_name=-instance_method"></span>
780
- <span id="pkg_name-instance_method"></span>
781
- <div class="method_details ">
782
- <p class="signature " id="pkg_name-instance_method">
783
-
784
- - (<tt>Object</tt>) <strong>pkg_name</strong>
785
-
786
-
787
-
788
- </p><div class="docstring">
789
- <div class="discussion">
790
-
791
- <p>Returns the value of attribute pkg_name</p>
792
-
793
-
794
- </div>
795
- </div>
796
- <div class="tags">
797
-
798
- </div><table class="source_code">
799
- <tr>
800
- <td>
801
- <pre class="lines">
802
-
803
-
804
- 94
805
- 95
806
- 96</pre>
807
- </td>
808
- <td>
809
- <pre class="code"><span class="info file"># File 'lib/sprout/library.rb', line 94</span>
810
-
811
- <span class='kw'>def</span> <span class='id pkg_name'>pkg_name</span>
812
- <span class='ivar'>@pkg_name</span>
813
- <span class='kw'>end</span></pre>
814
- </td>
815
- </tr>
816
- </table>
817
- </div>
818
-
819
-
820
- <span id="pkg_version=-instance_method"></span>
821
- <span id="pkg_version-instance_method"></span>
822
- <div class="method_details ">
823
- <p class="signature " id="pkg_version-instance_method">
824
-
825
- - (<tt>Object</tt>) <strong>pkg_version</strong>
826
-
827
-
828
-
829
- </p><div class="docstring">
830
- <div class="discussion">
831
-
832
- <p>Returns the value of attribute pkg_version</p>
833
-
834
-
835
- </div>
836
- </div>
837
- <div class="tags">
838
-
839
- </div><table class="source_code">
840
- <tr>
841
- <td>
842
- <pre class="lines">
843
-
844
-
845
- 95
846
- 96
847
- 97</pre>
848
- </td>
849
- <td>
850
- <pre class="code"><span class="info file"># File 'lib/sprout/library.rb', line 95</span>
851
-
852
- <span class='kw'>def</span> <span class='id pkg_version'>pkg_version</span>
853
- <span class='ivar'>@pkg_version</span>
854
- <span class='kw'>end</span></pre>
855
- </td>
856
- </tr>
857
- </table>
858
- </div>
859
-
860
-
861
- <span id="platform=-instance_method"></span>
862
- <span id="platform-instance_method"></span>
863
- <div class="method_details ">
864
- <p class="signature " id="platform-instance_method">
865
-
866
- - (<tt>Object</tt>) <strong>platform</strong>
867
-
868
-
869
-
870
- </p><div class="docstring">
871
- <div class="discussion">
872
-
873
- <p>Returns the value of attribute platform</p>
874
-
875
-
876
- </div>
877
- </div>
878
- <div class="tags">
879
-
880
- </div><table class="source_code">
881
- <tr>
882
- <td>
883
- <pre class="lines">
884
-
885
-
886
- 96
887
- 97
888
- 98</pre>
889
- </td>
890
- <td>
891
- <pre class="code"><span class="info file"># File 'lib/sprout/library.rb', line 96</span>
892
-
893
- <span class='kw'>def</span> <span class='id platform'>platform</span>
894
- <span class='ivar'>@platform</span>
895
- <span class='kw'>end</span></pre>
896
- </td>
897
- </tr>
898
- </table>
899
- </div>
900
-
901
- </div>
902
-
903
-
904
- <div id="class_method_details" class="method_details_list">
905
- <h2>Class Method Details</h2>
906
-
907
-
908
- <div class="method_details first">
909
- <p class="signature first" id="define_task-class_method">
910
-
911
- + (<tt>Object</tt>) <strong>define_task</strong>(name = nil, pkg_name = nil, pkg_version = nil)
912
-
913
-
914
-
915
- </p><div class="docstring">
916
- <div class="discussion">
917
-
918
- <p>Create Rake tasks that will load and install a particular library into the
919
- current project.</p>
920
-
921
- <p>This method is usually accessed from the global library helper.</p>
922
-
923
- <pre class="code"><span class='id library'>library</span> <span class='symbol'>:asunit4</span></pre>
924
-
925
-
926
- </div>
927
- </div>
928
- <div class="tags">
929
-
930
- </div><table class="source_code">
931
- <tr>
932
- <td>
933
- <pre class="lines">
934
-
935
-
936
- 136
937
- 137
938
- 138
939
- 139</pre>
940
- </td>
941
- <td>
942
- <pre class="code"><span class="info file"># File 'lib/sprout/library.rb', line 136</span>
943
-
944
- <span class='kw'>def</span> <span class='id define_task'>define_task</span> <span class='id name'>name</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='id pkg_name'>pkg_name</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='id pkg_version'>pkg_version</span><span class='op'>=</span><span class='kw'>nil</span>
945
- <span class='id library'>library</span> <span class='op'>=</span> <span class='const'>Sprout</span><span class='op'>::</span><span class='const'>Library</span><span class='period'>.</span><span class='id load'>load</span> <span class='id name'>name</span><span class='comma'>,</span> <span class='id pkg_name'>pkg_name</span><span class='comma'>,</span> <span class='id pkg_version'>pkg_version</span>
946
- <span class='id library'>library</span><span class='period'>.</span><span class='id create_installation_tasks'>create_installation_tasks</span>
947
- <span class='kw'>end</span></pre>
948
- </td>
949
- </tr>
950
- </table>
951
- </div>
952
-
953
- <div class="method_details ">
954
- <p class="signature " id="project_path-class_method">
955
-
956
- + (<tt>Object</tt>) <strong>project_path</strong>
957
-
958
-
959
-
960
- </p><div class="docstring">
961
- <div class="discussion">
962
-
963
- <p>The path within a project where libraries should be added.</p>
964
-
965
- <p>Defaults to 'lib'</p>
966
-
967
- <p>From anywhere in your Rakefile, you can output this value with:</p>
968
-
969
- <pre class="code"><span class='id puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>&gt;&gt; Library Project Path: </span><span class='embexpr_beg'>#{</span><span class='const'>Sprout</span><span class='op'>::</span><span class='const'>Library</span><span class='period'>.</span><span class='id project_path'>project_path</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span></pre>
970
-
971
-
972
- </div>
973
- </div>
974
- <div class="tags">
975
-
976
- </div><table class="source_code">
977
- <tr>
978
- <td>
979
- <pre class="lines">
980
-
981
-
982
- 123
983
- 124
984
- 125</pre>
985
- </td>
986
- <td>
987
- <pre class="code"><span class="info file"># File 'lib/sprout/library.rb', line 123</span>
988
-
989
- <span class='kw'>def</span> <span class='id project_path'>project_path</span>
990
- <span class='ivar'>@project_path</span> <span class='op'>||=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>lib</span><span class='tstring_end'>'</span></span>
991
- <span class='kw'>end</span></pre>
992
- </td>
993
- </tr>
994
- </table>
995
- </div>
996
-
997
- <div class="method_details ">
998
- <p class="signature " id="project_path=-class_method">
999
-
1000
- + (<tt>Object</tt>) <strong>project_path=</strong>(path)
1001
-
1002
-
1003
-
1004
- </p><div class="docstring">
1005
- <div class="discussion">
1006
-
1007
- <p>Set the path within a project where libraries should be loaded.</p>
1008
-
1009
- <p>From top of your Rakefile, you can set this value with:</p>
1010
-
1011
- <pre class="code"><span class='const'>Sprout</span><span class='op'>::</span><span class='const'>Library</span><span class='period'>.</span><span class='id project_path'>project_path</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>libs</span><span class='tstring_end'>'</span></span></pre>
1012
-
1013
-
1014
- </div>
1015
- </div>
1016
- <div class="tags">
1017
-
1018
- </div><table class="source_code">
1019
- <tr>
1020
- <td>
1021
- <pre class="lines">
1022
-
1023
-
1024
- 108
1025
- 109
1026
- 110</pre>
1027
- </td>
1028
- <td>
1029
- <pre class="code"><span class="info file"># File 'lib/sprout/library.rb', line 108</span>
1030
-
1031
- <span class='kw'>def</span> <span class='id project_path='>project_path=</span><span class='lparen'>(</span><span class='id path'>path</span><span class='rparen'>)</span>
1032
- <span class='ivar'>@project_path</span> <span class='op'>=</span> <span class='id path'>path</span>
1033
- <span class='kw'>end</span></pre>
1034
- </td>
1035
- </tr>
1036
- </table>
1037
- </div>
1038
-
1039
- </div>
1040
-
1041
- <div id="instance_method_details" class="method_details_list">
1042
- <h2>Instance Method Details</h2>
1043
-
1044
-
1045
- <div class="method_details first">
1046
- <p class="signature first" id="create_installation_tasks-instance_method">
1047
-
1048
- - (<tt>Object</tt>) <strong>create_installation_tasks</strong>
1049
-
1050
-
1051
-
1052
- </p><div class="docstring">
1053
- <div class="discussion">
1054
-
1055
- <p>Returns the outer Rake::Task which is invokable.</p>
1056
-
1057
-
1058
- </div>
1059
- </div>
1060
- <div class="tags">
1061
-
1062
- </div><table class="source_code">
1063
- <tr>
1064
- <td>
1065
- <pre class="lines">
1066
-
1067
-
1068
- 149
1069
- 150
1070
- 151
1071
- 152
1072
- 153</pre>
1073
- </td>
1074
- <td>
1075
- <pre class="code"><span class="info file"># File 'lib/sprout/library.rb', line 149</span>
1076
-
1077
- <span class='kw'>def</span> <span class='id create_installation_tasks'>create_installation_tasks</span>
1078
- <span class='id define_lib_dir_task_if_necessary'>define_lib_dir_task_if_necessary</span> <span class='id project_path'>project_path</span>
1079
- <span class='id create_project_tasks'>create_project_tasks</span>
1080
- <span class='id create_outer_task'>create_outer_task</span>
1081
- <span class='kw'>end</span></pre>
1082
- </td>
1083
- </tr>
1084
- </table>
1085
- </div>
1086
-
1087
- <div class="method_details ">
1088
- <p class="signature " id="create_outer_task-instance_method">
1089
-
1090
- - (<tt>Object</tt>) <strong>create_outer_task</strong>
1091
-
1092
-
1093
-
1094
- </p><table class="source_code">
1095
- <tr>
1096
- <td>
1097
- <pre class="lines">
1098
-
1099
-
1100
- 155
1101
- 156
1102
- 157
1103
- 158
1104
- 159
1105
- 160
1106
- 161
1107
- 162
1108
- 163
1109
- 164
1110
- 165
1111
- 166
1112
- 167</pre>
1113
- </td>
1114
- <td>
1115
- <pre class="code"><span class="info file"># File 'lib/sprout/library.rb', line 155</span>
1116
-
1117
- <span class='kw'>def</span> <span class='id create_outer_task'>create_outer_task</span>
1118
- <span class='id t'>t</span> <span class='op'>=</span> <span class='id task'>task</span> <span class='id pkg_name'>pkg_name</span>
1119
- <span class='comment'># This helps executable rake tasks decide if they
1120
- </span> <span class='comment'># want to do something special for library tasks.
1121
- </span> <span class='id t'>t</span><span class='period'>.</span><span class='id sprout_entity'>sprout_entity</span> <span class='op'>=</span> <span class='kw'>self</span>
1122
- <span class='kw'>class</span> <span class='op'>&lt;&lt;</span> <span class='id t'>t</span>
1123
- <span class='kw'>def</span> <span class='id sprout_library?'>sprout_library?</span>
1124
- <span class='op'>!</span><span class='id sprout_entity'>sprout_entity</span><span class='period'>.</span><span class='id nil?'>nil?</span> <span class='op'>&amp;&amp;</span>
1125
- <span class='id sprout_entity'>sprout_entity</span><span class='period'>.</span><span class='id is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Sprout</span><span class='op'>::</span><span class='const'>Library</span><span class='rparen'>)</span>
1126
- <span class='kw'>end</span>
1127
- <span class='kw'>end</span>
1128
- <span class='id t'>t</span>
1129
- <span class='kw'>end</span></pre>
1130
- </td>
1131
- </tr>
1132
- </table>
1133
- </div>
1134
-
1135
- </div>
1136
-
1137
- </div>
1138
-
1139
- <div id="footer">
1140
- Generated on Fri Apr 29 18:33:05 2011 by
1141
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1142
- 0.6.3 (ruby-1.9.2).
1143
- </div>
1144
-
1145
- </body>
1146
- </html>