reap 0.6.1 → 3.01

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. data/{ANN-0.6.1 → ANN} +0 -0
  2. data/ChangeLog +19 -8
  3. data/ProjectInfo +25 -0
  4. data/README +76 -11
  5. data/Rakefile +139 -17
  6. data/bin/reap +159 -0
  7. data/lib/reap/{announce-task.rb → announce_task.rb} +43 -41
  8. data/lib/reap/{chmod-task.rb → filemod_task.rb} +24 -20
  9. data/lib/reap/info_task.rb +29 -0
  10. data/lib/reap/noop_task.rb +35 -0
  11. data/lib/reap/{package-task.rb → package_task.rb} +63 -43
  12. data/lib/reap/projectinfo.rb +40 -0
  13. data/lib/reap/{publish-task.rb → publish_task.rb} +21 -17
  14. data/lib/reap/{rdoc-task.rb → rdoc_task.rb} +24 -19
  15. data/lib/reap/ready_made.rb +12 -0
  16. data/lib/reap/task.rb +89 -162
  17. data/lib/reap/tasks.rb +9 -0
  18. data/lib/reap/{test-task.rb → test_task.rb} +35 -15
  19. data/lib/reap/web_publish_task.rb +49 -0
  20. data/pub/grape.jpg +0 -0
  21. data/pub/www/index.html +61 -21
  22. data/pub/www/rdoc/classes/ProjectInfo.html +207 -0
  23. data/pub/www/rdoc/classes/ProjectInfo.src/M000055.html +18 -0
  24. data/pub/www/rdoc/classes/ProjectInfo.src/M000056.html +23 -0
  25. data/pub/www/rdoc/classes/ProjectInfo.src/M000057.html +18 -0
  26. data/pub/www/rdoc/classes/ProjectInfo.src/M000058.html +21 -0
  27. data/pub/www/rdoc/classes/ProjectInfo.src/M000059.html +18 -0
  28. data/pub/www/rdoc/classes/RakeTask.html +182 -0
  29. data/pub/www/rdoc/classes/RakeTask.src/M000051.html +18 -0
  30. data/pub/www/rdoc/classes/RakeTask.src/M000052.html +18 -0
  31. data/pub/www/rdoc/classes/RakeTask.src/M000053.html +18 -0
  32. data/pub/www/rdoc/classes/RakeTask.src/M000054.html +18 -0
  33. data/pub/www/rdoc/classes/Reap.html +57 -4
  34. data/pub/www/rdoc/classes/Reap/AnnounceTask.html +140 -14
  35. data/pub/www/rdoc/classes/Reap/AnnounceTask.src/M000039.html +16 -0
  36. data/pub/www/rdoc/classes/Reap/{TemplateTask.src/M000021.html → AnnounceTask.src/M000040.html} +4 -4
  37. data/pub/www/rdoc/classes/Reap/AnnounceTask.src/{M000031.html → M000041.html} +34 -34
  38. data/pub/www/rdoc/classes/Reap/AnnounceTask.src/{M000032.html → M000042.html} +1 -1
  39. data/pub/www/rdoc/classes/Reap/FilemodTask.html +254 -0
  40. data/pub/www/rdoc/classes/Reap/FilemodTask.src/M000027.html +16 -0
  41. data/pub/www/rdoc/classes/Reap/FilemodTask.src/M000028.html +18 -0
  42. data/pub/www/rdoc/classes/Reap/FilemodTask.src/M000029.html +21 -0
  43. data/pub/www/rdoc/classes/Reap/{ChmodTask.src/M000017.html → FilemodTask.src/M000030.html} +3 -3
  44. data/pub/www/rdoc/classes/Reap/{ChmodTask.src/M000018.html → FilemodTask.src/M000031.html} +2 -2
  45. data/pub/www/rdoc/classes/Reap/FilemodTask.src/M000032.html +18 -0
  46. data/pub/www/rdoc/classes/Reap/{TemplateTask.html → InfoTask.html} +46 -34
  47. data/pub/www/rdoc/classes/Reap/InfoTask.src/M000047.html +16 -0
  48. data/pub/www/rdoc/classes/Reap/{Task.src/M000026.html → InfoTask.src/M000048.html} +4 -4
  49. data/pub/www/rdoc/classes/Reap/{Task.src/M000025.html → InfoTask.src/M000049.html} +2 -3
  50. data/pub/www/rdoc/classes/Reap/InfoTask.src/M000050.html +18 -0
  51. data/pub/www/rdoc/classes/Reap/NoopTask.html +210 -0
  52. data/pub/www/rdoc/classes/Reap/NoopTask.src/M000043.html +16 -0
  53. data/pub/www/rdoc/classes/Reap/NoopTask.src/M000044.html +18 -0
  54. data/pub/www/rdoc/classes/Reap/{Task.src/M000028.html → NoopTask.src/M000045.html} +4 -3
  55. data/pub/www/rdoc/classes/Reap/NoopTask.src/M000046.html +18 -0
  56. data/pub/www/rdoc/classes/Reap/PackageTask.html +179 -22
  57. data/pub/www/rdoc/classes/Reap/PackageTask.src/M000005.html +16 -0
  58. data/pub/www/rdoc/classes/Reap/PackageTask.src/M000006.html +24 -0
  59. data/pub/www/rdoc/classes/Reap/PackageTask.src/M000007.html +53 -0
  60. data/pub/www/rdoc/classes/Reap/PackageTask.src/{M000002.html → M000008.html} +3 -4
  61. data/pub/www/rdoc/classes/Reap/PackageTask.src/{M000003.html → M000009.html} +1 -1
  62. data/pub/www/rdoc/classes/Reap/PublishTask.html +85 -14
  63. data/pub/www/rdoc/classes/Reap/PublishTask.src/M000023.html +16 -0
  64. data/pub/www/rdoc/classes/Reap/PublishTask.src/M000024.html +18 -0
  65. data/pub/www/rdoc/classes/Reap/PublishTask.src/M000025.html +22 -0
  66. data/pub/www/rdoc/classes/Reap/PublishTask.src/{M000020.html → M000026.html} +2 -2
  67. data/pub/www/rdoc/classes/Reap/RDocTask.html +37 -21
  68. data/pub/www/rdoc/classes/Reap/RDocTask.src/M000001.html +16 -0
  69. data/pub/www/rdoc/classes/Reap/RDocTask.src/M000002.html +18 -0
  70. data/pub/www/rdoc/classes/Reap/RDocTask.src/M000003.html +25 -0
  71. data/pub/www/rdoc/classes/Reap/RDocTask.src/M000004.html +39 -10
  72. data/pub/www/rdoc/classes/Reap/Task.html +44 -124
  73. data/pub/www/rdoc/classes/Reap/Task.src/M000033.html +21 -0
  74. data/pub/www/rdoc/classes/Reap/Task.src/{M000030.html → M000034.html} +4 -5
  75. data/pub/www/rdoc/classes/Reap/Task.src/M000035.html +41 -0
  76. data/pub/www/rdoc/classes/Reap/Task.src/M000036.html +16 -0
  77. data/pub/www/rdoc/classes/Reap/Task.src/M000037.html +18 -0
  78. data/pub/www/rdoc/classes/Reap/Task.src/M000038.html +19 -0
  79. data/pub/www/rdoc/classes/Reap/TestTask.html +66 -32
  80. data/pub/www/rdoc/classes/Reap/TestTask.src/M000014.html +16 -0
  81. data/pub/www/rdoc/classes/Reap/TestTask.src/M000015.html +18 -0
  82. data/pub/www/rdoc/classes/Reap/TestTask.src/M000016.html +25 -0
  83. data/pub/www/rdoc/classes/Reap/TestTask.src/{M000009.html → M000017.html} +5 -5
  84. data/pub/www/rdoc/classes/Reap/TestTask.src/{M000010.html → M000018.html} +3 -3
  85. data/pub/www/rdoc/classes/Reap/TestTask.src/{M000011.html → M000019.html} +1 -1
  86. data/pub/www/rdoc/classes/Reap/TestTask/TestResults.html +17 -17
  87. data/pub/www/rdoc/classes/Reap/TestTask/TestResults.src/{M000012.html → M000020.html} +1 -1
  88. data/pub/www/rdoc/classes/Reap/TestTask/TestResults.src/{M000013.html → M000021.html} +1 -1
  89. data/pub/www/rdoc/classes/Reap/TestTask/TestResults.src/{M000014.html → M000022.html} +1 -1
  90. data/pub/www/rdoc/classes/Reap/{ChmodTask.html → WebPublishTask.html} +46 -35
  91. data/pub/www/rdoc/classes/Reap/WebPublishTask.src/M000010.html +16 -0
  92. data/pub/www/rdoc/classes/Reap/WebPublishTask.src/M000011.html +18 -0
  93. data/pub/www/rdoc/classes/Reap/WebPublishTask.src/M000012.html +21 -0
  94. data/pub/www/rdoc/classes/Reap/WebPublishTask.src/M000013.html +32 -0
  95. data/pub/www/rdoc/classes/ReapTask.html +287 -0
  96. data/pub/www/rdoc/classes/ReapTask.src/M000060.html +18 -0
  97. data/pub/www/rdoc/classes/ReapTask.src/M000061.html +18 -0
  98. data/pub/www/rdoc/classes/ReapTask.src/M000062.html +18 -0
  99. data/pub/www/rdoc/classes/ReapTask.src/M000063.html +18 -0
  100. data/pub/www/rdoc/classes/ReapTask.src/M000064.html +18 -0
  101. data/pub/www/rdoc/classes/ReapTask.src/M000065.html +18 -0
  102. data/pub/www/rdoc/classes/ReapTask.src/M000066.html +18 -0
  103. data/pub/www/rdoc/classes/ReapTask.src/M000067.html +18 -0
  104. data/pub/www/rdoc/classes/ReapTask.src/M000068.html +18 -0
  105. data/pub/www/rdoc/created.rid +1 -1
  106. data/pub/www/rdoc/files/{lib/reap2/publish-task_rb.html → LICENSE.html} +19 -7
  107. data/pub/www/rdoc/files/README.html +271 -0
  108. data/pub/www/rdoc/files/lib/{reap2/announce-task_rb.html → reap/announce_task_rb.html} +5 -4
  109. data/pub/www/rdoc/files/lib/{reap2/template-task_rb.html → reap/filemod_task_rb.html} +5 -5
  110. data/pub/www/rdoc/files/lib/{reap2/rdoc-task_rb.html → reap/info_task_rb.html} +5 -5
  111. data/pub/www/rdoc/files/lib/{reap2/chmod-task_rb.html → reap/noop_task_rb.html} +5 -5
  112. data/pub/www/rdoc/files/lib/{reap2/package-task_rb.html → reap/package_task_rb.html} +5 -4
  113. data/pub/www/rdoc/files/lib/reap/projectinfo_rb.html +111 -0
  114. data/pub/www/rdoc/files/lib/reap/publish_task_rb.html +108 -0
  115. data/pub/www/rdoc/files/lib/reap/rdoc_task_rb.html +108 -0
  116. data/pub/www/rdoc/files/lib/reap/ready_made_rb.html +115 -0
  117. data/pub/www/rdoc/files/lib/{reap2 → reap}/task_rb.html +5 -6
  118. data/pub/www/rdoc/files/lib/reap/tasks_rb.html +115 -0
  119. data/pub/www/rdoc/files/lib/{reap2/test-task_rb.html → reap/test_task_rb.html} +5 -10
  120. data/pub/www/rdoc/files/lib/reap/web_publish_task_rb.html +108 -0
  121. data/pub/www/rdoc/fr_class_index.html +7 -2
  122. data/pub/www/rdoc/fr_file_index.html +15 -9
  123. data/pub/www/rdoc/fr_method_index.html +68 -32
  124. data/pub/www/rdoc/index.html +1 -1
  125. data/test/tc_reap.rb +1 -1
  126. metadata +126 -58
  127. data/Reapfile +0 -99
  128. data/lib/reap/reap-all.rb +0 -15
  129. data/lib/reap/template-task.rb +0 -40
  130. data/pub/www/rdoc/classes/Reap/ChmodTask.src/M000015.html +0 -21
  131. data/pub/www/rdoc/classes/Reap/ChmodTask.src/M000016.html +0 -21
  132. data/pub/www/rdoc/classes/Reap/PackageTask.src/M000001.html +0 -49
  133. data/pub/www/rdoc/classes/Reap/PublishTask.src/M000019.html +0 -24
  134. data/pub/www/rdoc/classes/Reap/RDocTask.src/M000005.html +0 -21
  135. data/pub/www/rdoc/classes/Reap/RDocTask.src/M000006.html +0 -53
  136. data/pub/www/rdoc/classes/Reap/Task.src/M000024.html +0 -21
  137. data/pub/www/rdoc/classes/Reap/Task.src/M000027.html +0 -28
  138. data/pub/www/rdoc/classes/Reap/Task.src/M000029.html +0 -18
  139. data/pub/www/rdoc/classes/Reap/TemplateTask.src/M000022.html +0 -21
  140. data/pub/www/rdoc/classes/Reap/TemplateTask.src/M000023.html +0 -34
  141. data/pub/www/rdoc/classes/Reap/TestTask.src/M000007.html +0 -25
  142. data/pub/www/rdoc/classes/Reap/TestTask.src/M000008.html +0 -21
  143. data/pub/www/rdoc/files/lib/reap2/reap-all_rb.html +0 -110
@@ -55,8 +55,8 @@
55
55
  <tr class="top-aligned-row">
56
56
  <td><strong>In:</strong></td>
57
57
  <td>
58
- <a href="../../files/lib/reap2/task_rb.html">
59
- lib/reap2/task.rb
58
+ <a href="../../files/lib/reap/task_rb.html">
59
+ lib/reap/task.rb
60
60
  </a>
61
61
  <br />
62
62
  </td>
@@ -65,7 +65,7 @@
65
65
  <tr class="top-aligned-row">
66
66
  <td><strong>Parent:</strong></td>
67
67
  <td>
68
- Rake::TaskLib
68
+ ::Rake::TaskLib
69
69
  </td>
70
70
  </tr>
71
71
  </table>
@@ -80,56 +80,8 @@
80
80
 
81
81
  <div id="description">
82
82
  <p>
83
- Base class for reap tasks.
83
+ def self.registry ; @registry ; end
84
84
  </p>
85
- <p>
86
- When creating a specifc task, subclass this one and create two class-level
87
- methods task and desc. task will return the name of the task and desc a
88
- description of the task. Then create an instance method called setup to do
89
- any initial preping. Usually that means assigning some instance vars from
90
- the Reapfile configutration. You can use section[&lt;name&gt;] for settings
91
- from the task&#8217;s particular section (as determined by self.task method
92
- above) and/or use master[&lt;name&gt;] for top-level settings. Finally
93
- write a run method that preforms the actual task.
94
- </p>
95
- <p>
96
- Here&#8217;s an oh so simple example:
97
- </p>
98
- <pre>
99
- class MyTask &lt; Task
100
- def self.task ; 'mytask' ; end
101
- def self.desc ; 'This is my first custom task.' ; end
102
-
103
- def setup
104
- @message = section['message'] || master['default'] || 'None Found!'
105
- end
106
-
107
- def run
108
- puts @message
109
- end
110
- end
111
- </pre>
112
- <p>
113
- This corresponding settings in the Reapfile will then be:
114
- </p>
115
- <pre>
116
- default: Default text, if any.
117
-
118
- mytask:
119
- message: Message text, if any.
120
- </pre>
121
- <p>
122
- <a href="../Reap.html">Reap</a> automatically handles multiple task runs if
123
- an array is provided under the task section instead of a single mapping.
124
- For example:
125
- </p>
126
- <pre>
127
- mytask:
128
- -
129
- message: First Run.
130
- -
131
- message: Second Run.
132
- </pre>
133
85
 
134
86
  </div>
135
87
 
@@ -140,13 +92,12 @@ For example:
140
92
  <h3 class="section-bar">Methods</h3>
141
93
 
142
94
  <div class="name-list">
143
- <a href="#M000026">define</a>&nbsp;&nbsp;
144
- <a href="#M000025">init</a>&nbsp;&nbsp;
145
- <a href="#M000027">load_config</a>&nbsp;&nbsp;
146
- <a href="#M000028">master</a>&nbsp;&nbsp;
147
- <a href="#M000024">new</a>&nbsp;&nbsp;
148
- <a href="#M000029">section</a>&nbsp;&nbsp;
149
- <a href="#M000030">section_name</a>&nbsp;&nbsp;
95
+ <a href="#M000036">default_desc</a>&nbsp;&nbsp;
96
+ <a href="#M000037">init</a>&nbsp;&nbsp;
97
+ <a href="#M000034">master</a>&nbsp;&nbsp;
98
+ <a href="#M000035">new</a>&nbsp;&nbsp;
99
+ <a href="#M000033">register</a>&nbsp;&nbsp;
100
+ <a href="#M000038">section</a>&nbsp;&nbsp;
150
101
  </div>
151
102
  </div>
152
103
 
@@ -168,35 +119,12 @@ For example:
168
119
  <td>=</td>
169
120
  <td class="context-item-value">Config::CONFIG['ruby_install_name']</td>
170
121
  </tr>
171
- <tr class="top-aligned-row context-row">
172
- <td class="context-item-name">DEFAULT_INCLUDE</td>
173
- <td>=</td>
174
- <td class="context-item-value">[ '[A-Z]*', 'setup.rb', 'lib/**/*', 'bin/**/*', 'data/**/*', 'doc/**/*', 'rdoc/**/*', 'test/**/*', 'bench/**/*', 'demo/**/*', 'samples/**/*', 'examples/**/*' ]</td>
175
- </tr>
176
- <tr class="top-aligned-row context-row">
177
- <td class="context-item-name">MUST_EXCLUDE</td>
178
- <td>=</td>
179
- <td class="context-item-value">[ 'InstalledFiles', '**/CVS/**/*', '**/*~' ]</td>
180
- </tr>
181
122
  </table>
182
123
  </div>
183
124
  </div>
184
125
 
185
126
 
186
127
 
187
- <div id="attribute-list">
188
- <h3 class="section-bar">Attributes</h3>
189
-
190
- <div class="name-list">
191
- <table>
192
- <tr class="top-aligned-row context-row">
193
- <td class="context-item-name">config</td>
194
- <td class="context-item-value">&nbsp;[R]&nbsp;</td>
195
- <td class="context-item-desc"></td>
196
- </tr>
197
- </table>
198
- </div>
199
- </div>
200
128
 
201
129
 
202
130
 
@@ -204,27 +132,30 @@ For example:
204
132
  <div id="methods">
205
133
  <h3 class="section-bar">Public Class methods</h3>
206
134
 
207
- <div id="method-M000024" class="method-detail">
208
- <a name="M000024"></a>
135
+ <div id="method-M000035" class="method-detail">
136
+ <a name="M000035"></a>
209
137
 
210
138
  <div class="method-heading">
211
- <a href="Task.src/M000024.html" target="Code" class="method-signature"
212
- onclick="popupCode('Task.src/M000024.html');return false;">
213
- <span class="method-name">new</span><span class="method-args">( {|| ...}</span>
139
+ <a href="Task.src/M000035.html" target="Code" class="method-signature"
140
+ onclick="popupCode('Task.src/M000035.html');return false;">
141
+ <span class="method-name">new</span><span class="method-args">( task_name=nil, subtask=nil ) {|| ...}</span>
214
142
  </a>
215
143
  </div>
216
144
 
217
145
  <div class="method-description">
146
+ <p>
147
+ attr_reader :name, :description, :subtask
148
+ </p>
218
149
  </div>
219
150
  </div>
220
151
 
221
- <div id="method-M000030" class="method-detail">
222
- <a name="M000030"></a>
152
+ <div id="method-M000033" class="method-detail">
153
+ <a name="M000033"></a>
223
154
 
224
155
  <div class="method-heading">
225
- <a href="Task.src/M000030.html" target="Code" class="method-signature"
226
- onclick="popupCode('Task.src/M000030.html');return false;">
227
- <span class="method-name">section_name</span><span class="method-args">(n=nil)</span>
156
+ <a href="Task.src/M000033.html" target="Code" class="method-signature"
157
+ onclick="popupCode('Task.src/M000033.html');return false;">
158
+ <span class="method-name">register</span><span class="method-args">( name )</span>
228
159
  </a>
229
160
  </div>
230
161
 
@@ -234,13 +165,13 @@ For example:
234
165
 
235
166
  <h3 class="section-bar">Public Instance methods</h3>
236
167
 
237
- <div id="method-M000026" class="method-detail">
238
- <a name="M000026"></a>
168
+ <div id="method-M000036" class="method-detail">
169
+ <a name="M000036"></a>
239
170
 
240
171
  <div class="method-heading">
241
- <a href="Task.src/M000026.html" target="Code" class="method-signature"
242
- onclick="popupCode('Task.src/M000026.html');return false;">
243
- <span class="method-name">define</span><span class="method-args">()</span>
172
+ <a href="Task.src/M000036.html" target="Code" class="method-signature"
173
+ onclick="popupCode('Task.src/M000036.html');return false;">
174
+ <span class="method-name">default_desc</span><span class="method-args">()</span>
244
175
  </a>
245
176
  </div>
246
177
 
@@ -248,40 +179,29 @@ For example:
248
179
  </div>
249
180
  </div>
250
181
 
251
- <div id="method-M000025" class="method-detail">
252
- <a name="M000025"></a>
182
+ <div id="method-M000037" class="method-detail">
183
+ <a name="M000037"></a>
253
184
 
254
185
  <div class="method-heading">
255
- <a href="Task.src/M000025.html" target="Code" class="method-signature"
256
- onclick="popupCode('Task.src/M000025.html');return false;">
186
+ <a href="Task.src/M000037.html" target="Code" class="method-signature"
187
+ onclick="popupCode('Task.src/M000037.html');return false;">
257
188
  <span class="method-name">init</span><span class="method-args">()</span>
258
189
  </a>
259
190
  </div>
260
191
 
261
192
  <div class="method-description">
193
+ <p>
194
+ def default_name ; self.class.basename.downcase ; end
195
+ </p>
262
196
  </div>
263
197
  </div>
264
198
 
265
- <div id="method-M000027" class="method-detail">
266
- <a name="M000027"></a>
267
-
268
- <div class="method-heading">
269
- <a href="Task.src/M000027.html" target="Code" class="method-signature"
270
- onclick="popupCode('Task.src/M000027.html');return false;">
271
- <span class="method-name">load_config</span><span class="method-args">( config_file=nil )</span>
272
- </a>
273
- </div>
274
-
275
- <div class="method-description">
276
- </div>
277
- </div>
278
-
279
- <div id="method-M000028" class="method-detail">
280
- <a name="M000028"></a>
199
+ <div id="method-M000034" class="method-detail">
200
+ <a name="M000034"></a>
281
201
 
282
202
  <div class="method-heading">
283
- <a href="Task.src/M000028.html" target="Code" class="method-signature"
284
- onclick="popupCode('Task.src/M000028.html');return false;">
203
+ <a href="Task.src/M000034.html" target="Code" class="method-signature"
204
+ onclick="popupCode('Task.src/M000034.html');return false;">
285
205
  <span class="method-name">master</span><span class="method-args">()</span>
286
206
  </a>
287
207
  </div>
@@ -290,13 +210,13 @@ For example:
290
210
  </div>
291
211
  </div>
292
212
 
293
- <div id="method-M000029" class="method-detail">
294
- <a name="M000029"></a>
213
+ <div id="method-M000038" class="method-detail">
214
+ <a name="M000038"></a>
295
215
 
296
216
  <div class="method-heading">
297
- <a href="Task.src/M000029.html" target="Code" class="method-signature"
298
- onclick="popupCode('Task.src/M000029.html');return false;">
299
- <span class="method-name">section</span><span class="method-args">()</span>
217
+ <a href="Task.src/M000038.html" target="Code" class="method-signature"
218
+ onclick="popupCode('Task.src/M000038.html');return false;">
219
+ <span class="method-name">section</span><span class="method-args">( ymlstr )</span>
300
220
  </a>
301
221
  </div>
302
222
 
@@ -0,0 +1,21 @@
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>
7
+ <head>
8
+ <title>register (Reap::Task)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/reap/task.rb, line 59</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">register</span>( <span class="ruby-identifier">name</span> )
15
+ <span class="ruby-identifier">klass</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>
16
+ <span class="ruby-constant">ReapTask</span>.<span class="ruby-identifier">class_eval</span> {
17
+ <span class="ruby-identifier">define_method</span>( <span class="ruby-node">&quot;#{name}_task&quot;</span> ) { <span class="ruby-operator">|</span><span class="ruby-operator">*</span><span class="ruby-identifier">args</span><span class="ruby-operator">|</span> <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">new</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>) }
18
+ }
19
+ <span class="ruby-keyword kw">end</span></pre>
20
+ </body>
21
+ </html>
@@ -5,15 +5,14 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>section_name (Reap::Task)</title>
8
+ <title>master (Reap::Task)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/reap2/task.rb, line 108</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">section_name</span>(<span class="ruby-identifier">n</span>=<span class="ruby-keyword kw">nil</span>)
15
- <span class="ruby-ivar">@sname</span> = <span class="ruby-identifier">n</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">n</span>
16
- <span class="ruby-ivar">@sname</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/reap/task.rb, line 66</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">master</span>
15
+ <span class="ruby-operator">::</span><span class="ruby-constant">ProjectInfo</span>.<span class="ruby-identifier">info</span>
17
16
  <span class="ruby-keyword kw">end</span></pre>
18
17
  </body>
19
18
  </html>
@@ -0,0 +1,41 @@
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>
7
+ <head>
8
+ <title>new (Reap::Task)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/reap/task.rb, line 72</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>( <span class="ruby-identifier">task_name</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">subtask</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">yld</span> ) <span class="ruby-comment cmt">#:yield:</span>
15
+ <span class="ruby-identifier">o</span> = <span class="ruby-keyword kw">nil</span>
16
+ <span class="ruby-identifier">o</span> = <span class="ruby-identifier">yld</span>.<span class="ruby-identifier">call</span>(<span class="ruby-keyword kw">self</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">yld</span>
17
+ <span class="ruby-keyword kw">if</span> <span class="ruby-constant">String</span> <span class="ruby-operator">===</span> <span class="ruby-identifier">o</span>
18
+ <span class="ruby-keyword kw">begin</span>
19
+ <span class="ruby-identifier">section</span>( <span class="ruby-identifier">o</span> ).<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-identifier">send</span>(<span class="ruby-node">&quot;#{k}=&quot;</span>, <span class="ruby-identifier">v</span> ) }
20
+ <span class="ruby-keyword kw">end</span>
21
+ <span class="ruby-keyword kw">end</span>
22
+
23
+ <span class="ruby-identifier">init</span>
24
+
25
+ <span class="ruby-identifier">task_name</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">default_name</span>
26
+ <span class="ruby-identifier">task_desc</span> = <span class="ruby-ivar">@desc</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">default_desc</span>
27
+
28
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">subtask</span>
29
+ <span class="ruby-identifier">desc</span> <span class="ruby-identifier">task_desc</span>
30
+ <span class="ruby-identifier">task</span> <span class="ruby-identifier">task_name</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">subtask</span> <span class="ruby-keyword kw">do</span>
31
+ <span class="ruby-identifier">run</span>
32
+ <span class="ruby-keyword kw">end</span>
33
+ <span class="ruby-keyword kw">else</span>
34
+ <span class="ruby-identifier">desc</span> <span class="ruby-identifier">task_desc</span>
35
+ <span class="ruby-identifier">task</span> <span class="ruby-identifier">task_name</span> <span class="ruby-keyword kw">do</span>
36
+ <span class="ruby-identifier">run</span>
37
+ <span class="ruby-keyword kw">end</span>
38
+ <span class="ruby-keyword kw">end</span>
39
+ <span class="ruby-keyword kw">end</span></pre>
40
+ </body>
41
+ </html>
@@ -0,0 +1,16 @@
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>
7
+ <head>
8
+ <title>default_desc (Reap::Task)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/reap/task.rb, line 99</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">default_desc</span> ; <span class="ruby-value str">'(no desciption given)'</span> ; <span class="ruby-keyword kw">end</span></pre>
15
+ </body>
16
+ </html>
@@ -0,0 +1,18 @@
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>
7
+ <head>
8
+ <title>init (Reap::Task)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/reap/task.rb, line 102</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init</span>
15
+ <span class="ruby-identifier">raise</span> <span class="ruby-value str">&quot;not implemented&quot;</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,19 @@
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>
7
+ <head>
8
+ <title>section (Reap::Task)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/reap/task.rb, line 106</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">section</span>( <span class="ruby-identifier">ymlstr</span> )
15
+ <span class="ruby-identifier">iy</span> = <span class="ruby-constant">YAML</span><span class="ruby-operator">::</span><span class="ruby-identifier">load</span>(<span class="ruby-constant">ProjectInfo</span>.<span class="ruby-identifier">info_stream</span> <span class="ruby-operator">+</span> <span class="ruby-value str">&quot;\ntask:\n&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">ymlstr</span>.<span class="ruby-identifier">tabto</span>(<span class="ruby-value">2</span>))
16
+ <span class="ruby-identifier">iy</span>[<span class="ruby-value str">'task'</span>] <span class="ruby-operator">||</span> {}
17
+ <span class="ruby-keyword kw">end</span></pre>
18
+ </body>
19
+ </html>
@@ -55,8 +55,8 @@
55
55
  <tr class="top-aligned-row">
56
56
  <td><strong>In:</strong></td>
57
57
  <td>
58
- <a href="../../files/lib/reap2/test-task_rb.html">
59
- lib/reap2/test-task.rb
58
+ <a href="../../files/lib/reap/test_task_rb.html">
59
+ lib/reap/test_task.rb
60
60
  </a>
61
61
  <br />
62
62
  </td>
@@ -80,6 +80,22 @@
80
80
 
81
81
  <div id="contextContent">
82
82
 
83
+ <div id="description">
84
+ <p>
85
+ Test <a href="Task.html">Task</a>
86
+ </p>
87
+ <p>
88
+ The <a href="../Reap.html">Reap</a> test task runs each test in it&#8217;s
89
+ own process, making for purer test facility.
90
+ </p>
91
+ <p>
92
+ NOTE: This works well enough but it is a bit of hack. It actually marshals
93
+ test results across a stdout-&gt;stdin shell pipe. One consequence of this
94
+ is that you can&#8217;t send debug info to stdout (including p and puts)
95
+ within the tests themselves. This, hopefully can be remedied.
96
+ </p>
97
+
98
+ </div>
83
99
 
84
100
 
85
101
  </div>
@@ -88,11 +104,12 @@
88
104
  <h3 class="section-bar">Methods</h3>
89
105
 
90
106
  <div class="name-list">
91
- <a href="#M000008">define</a>&nbsp;&nbsp;
92
- <a href="#M000011">fork_test</a>&nbsp;&nbsp;
93
- <a href="#M000007">init</a>&nbsp;&nbsp;
94
- <a href="#M000010">run_test</a>&nbsp;&nbsp;
95
- <a href="#M000009">run_testsuite</a>&nbsp;&nbsp;
107
+ <a href="#M000015">default_desc</a>&nbsp;&nbsp;
108
+ <a href="#M000014">default_name</a>&nbsp;&nbsp;
109
+ <a href="#M000018">dotest</a>&nbsp;&nbsp;
110
+ <a href="#M000019">fork_test</a>&nbsp;&nbsp;
111
+ <a href="#M000016">init</a>&nbsp;&nbsp;
112
+ <a href="#M000017">run</a>&nbsp;&nbsp;
96
113
  </div>
97
114
  </div>
98
115
 
@@ -143,13 +160,13 @@
143
160
  <div id="methods">
144
161
  <h3 class="section-bar">Public Instance methods</h3>
145
162
 
146
- <div id="method-M000008" class="method-detail">
147
- <a name="M000008"></a>
163
+ <div id="method-M000015" class="method-detail">
164
+ <a name="M000015"></a>
148
165
 
149
166
  <div class="method-heading">
150
- <a href="TestTask.src/M000008.html" target="Code" class="method-signature"
151
- onclick="popupCode('TestTask.src/M000008.html');return false;">
152
- <span class="method-name">define</span><span class="method-args">()</span>
167
+ <a href="TestTask.src/M000015.html" target="Code" class="method-signature"
168
+ onclick="popupCode('TestTask.src/M000015.html');return false;">
169
+ <span class="method-name">default_desc</span><span class="method-args">()</span>
153
170
  </a>
154
171
  </div>
155
172
 
@@ -157,27 +174,30 @@
157
174
  </div>
158
175
  </div>
159
176
 
160
- <div id="method-M000011" class="method-detail">
161
- <a name="M000011"></a>
177
+ <div id="method-M000014" class="method-detail">
178
+ <a name="M000014"></a>
162
179
 
163
180
  <div class="method-heading">
164
- <a href="TestTask.src/M000011.html" target="Code" class="method-signature"
165
- onclick="popupCode('TestTask.src/M000011.html');return false;">
166
- <span class="method-name">fork_test</span><span class="method-args">( testfile )</span>
181
+ <a href="TestTask.src/M000014.html" target="Code" class="method-signature"
182
+ onclick="popupCode('TestTask.src/M000014.html');return false;">
183
+ <span class="method-name">default_name</span><span class="method-args">()</span>
167
184
  </a>
168
185
  </div>
169
186
 
170
187
  <div class="method-description">
188
+ <p>
189
+ register &#8216;test&#8217;
190
+ </p>
171
191
  </div>
172
192
  </div>
173
193
 
174
- <div id="method-M000007" class="method-detail">
175
- <a name="M000007"></a>
194
+ <div id="method-M000018" class="method-detail">
195
+ <a name="M000018"></a>
176
196
 
177
197
  <div class="method-heading">
178
- <a href="TestTask.src/M000007.html" target="Code" class="method-signature"
179
- onclick="popupCode('TestTask.src/M000007.html');return false;">
180
- <span class="method-name">init</span><span class="method-args">()</span>
198
+ <a href="TestTask.src/M000018.html" target="Code" class="method-signature"
199
+ onclick="popupCode('TestTask.src/M000018.html');return false;">
200
+ <span class="method-name">dotest</span><span class="method-args">( test_file )</span>
181
201
  </a>
182
202
  </div>
183
203
 
@@ -185,13 +205,27 @@
185
205
  </div>
186
206
  </div>
187
207
 
188
- <div id="method-M000010" class="method-detail">
189
- <a name="M000010"></a>
208
+ <div id="method-M000019" class="method-detail">
209
+ <a name="M000019"></a>
190
210
 
191
211
  <div class="method-heading">
192
- <a href="TestTask.src/M000010.html" target="Code" class="method-signature"
193
- onclick="popupCode('TestTask.src/M000010.html');return false;">
194
- <span class="method-name">run_test</span><span class="method-args">( test_file )</span>
212
+ <a href="TestTask.src/M000019.html" target="Code" class="method-signature"
213
+ onclick="popupCode('TestTask.src/M000019.html');return false;">
214
+ <span class="method-name">fork_test</span><span class="method-args">( testfile )</span>
215
+ </a>
216
+ </div>
217
+
218
+ <div class="method-description">
219
+ </div>
220
+ </div>
221
+
222
+ <div id="method-M000016" class="method-detail">
223
+ <a name="M000016"></a>
224
+
225
+ <div class="method-heading">
226
+ <a href="TestTask.src/M000016.html" target="Code" class="method-signature"
227
+ onclick="popupCode('TestTask.src/M000016.html');return false;">
228
+ <span class="method-name">init</span><span class="method-args">()</span>
195
229
  </a>
196
230
  </div>
197
231
 
@@ -199,13 +233,13 @@
199
233
  </div>
200
234
  </div>
201
235
 
202
- <div id="method-M000009" class="method-detail">
203
- <a name="M000009"></a>
236
+ <div id="method-M000017" class="method-detail">
237
+ <a name="M000017"></a>
204
238
 
205
239
  <div class="method-heading">
206
- <a href="TestTask.src/M000009.html" target="Code" class="method-signature"
207
- onclick="popupCode('TestTask.src/M000009.html');return false;">
208
- <span class="method-name">run_testsuite</span><span class="method-args">()</span>
240
+ <a href="TestTask.src/M000017.html" target="Code" class="method-signature"
241
+ onclick="popupCode('TestTask.src/M000017.html');return false;">
242
+ <span class="method-name">run</span><span class="method-args">()</span>
209
243
  </a>
210
244
  </div>
211
245