reap 03.01 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (228) hide show
  1. data/{LICENSE → COPYING} +0 -0
  2. data/ChangeLog +5 -0
  3. data/ProjectInfo +55 -15
  4. data/README +32 -31
  5. data/Rakefile +0 -141
  6. data/bin/reap +2 -158
  7. data/data/reap/scaffold/COPYING +11 -0
  8. data/data/reap/scaffold/ChangeLog +0 -0
  9. data/data/reap/scaffold/INSTALL +0 -0
  10. data/data/reap/scaffold/ProjectInfo +78 -0
  11. data/data/reap/scaffold/README +0 -0
  12. data/data/reap/scaffold/Rakefile +146 -0
  13. data/data/reap/scaffold/Todo +0 -0
  14. data/data/reap/scaffold/setup.rb +1551 -0
  15. data/dev/Rakefile +60 -0
  16. data/dev/composite_task.rb +27 -0
  17. data/dev/compositepublisher.rb +24 -0
  18. data/dev/ftptools.rb +139 -0
  19. data/dev/license-each.rb +85 -0
  20. data/dev/publisher.rb +75 -0
  21. data/dev/rubyforgepublisher.rb +18 -0
  22. data/dev/sshpublisher.rb +47 -0
  23. data/dev/suby-cvs.rb +46 -0
  24. data/{data/site_ruby/reap/template.yaml → dev/template.rb} +15 -37
  25. data/lib/reap/bin/reap.rb +132 -0
  26. data/lib/reap/lint.rb +0 -0
  27. data/lib/reap/projectinfo.rb +13 -8
  28. data/lib/reap/readymade.rb +21 -0
  29. data/lib/reap/task.rb +120 -68
  30. data/lib/reap/{announce_task.rb → task/announce.rb} +15 -20
  31. data/lib/reap/{filemod_task.rb → task/fileperm.rb} +12 -16
  32. data/lib/reap/task/info.rb +20 -0
  33. data/lib/reap/task/install.rb +33 -0
  34. data/lib/reap/task/noop.rb +26 -0
  35. data/lib/reap/{package_task.rb → task/package.rb} +88 -71
  36. data/lib/reap/{publish_task.rb → task/publish.rb} +5 -13
  37. data/lib/reap/{rdoc_task.rb → task/rdoc.rb} +29 -22
  38. data/lib/reap/task/scaffold.rb +114 -0
  39. data/lib/reap/{test_task.rb → task/test.rb} +32 -25
  40. data/lib/reap/task/testext.rb +110 -0
  41. data/lib/reap/{web_publish_task.rb → task/webpublish.rb} +5 -11
  42. data/lib/reap/tasks.rb +12 -8
  43. data/lib/reap/test.rb +138 -0
  44. data/setup.rb +726 -534
  45. data/web/ProjectInfo +57 -0
  46. data/{pub/www → web}/images/appleboy.jpg +0 -0
  47. data/{pub → web/images}/grape.jpg +0 -0
  48. data/web/index.html +123 -0
  49. data/web/rdoc/classes/Object.html +121 -0
  50. data/{pub/www → web}/rdoc/classes/ProjectInfo.html +36 -36
  51. data/{pub/www/rdoc/classes/ProjectInfo.src/M000055.html → web/rdoc/classes/ProjectInfo.src/M000092.html} +3 -3
  52. data/{pub/www/rdoc/classes/ProjectInfo.src/M000056.html → web/rdoc/classes/ProjectInfo.src/M000093.html} +2 -1
  53. data/{pub/www/rdoc/classes/ProjectInfo.src/M000057.html → web/rdoc/classes/ProjectInfo.src/M000094.html} +1 -1
  54. data/{pub/www/rdoc/classes/ProjectInfo.src/M000058.html → web/rdoc/classes/ProjectInfo.src/M000095.html} +1 -1
  55. data/{pub/www/rdoc/classes/ProjectInfo.src/M000059.html → web/rdoc/classes/ProjectInfo.src/M000096.html} +1 -1
  56. data/web/rdoc/classes/Reap.html +248 -0
  57. data/web/rdoc/classes/Reap.src/M000022.html +16 -0
  58. data/web/rdoc/classes/Reap.src/M000023.html +19 -0
  59. data/web/rdoc/classes/Reap.src/M000024.html +16 -0
  60. data/web/rdoc/classes/Reap.src/M000025.html +27 -0
  61. data/{pub/www/rdoc/classes/Reap/AnnounceTask.html → web/rdoc/classes/Reap/Announce.html} +22 -40
  62. data/web/rdoc/classes/Reap/Announce.src/M000029.html +18 -0
  63. data/{pub/www/rdoc/classes/Reap/AnnounceTask.src/M000041.html → web/rdoc/classes/Reap/Announce.src/M000030.html} +13 -10
  64. data/{pub/www/rdoc/classes/Reap/AnnounceTask.src/M000042.html → web/rdoc/classes/Reap/Announce.src/M000031.html} +2 -2
  65. data/{pub/www/rdoc/classes/Reap/InfoTask.html → web/rdoc/classes/Reap/Info.html} +23 -41
  66. data/{pub/www/rdoc/classes/Reap/RDocTask.src/M000002.html → web/rdoc/classes/Reap/Info.src/M000032.html} +4 -4
  67. data/{pub/www/rdoc/classes/Reap/InfoTask.src/M000049.html → web/rdoc/classes/Reap/Info.src/M000033.html} +2 -2
  68. data/{pub/www/rdoc/classes/Reap/NoopTask.src/M000046.html → web/rdoc/classes/Reap/Info.src/M000034.html} +3 -3
  69. data/web/rdoc/classes/Reap/Install.html +193 -0
  70. data/web/rdoc/classes/Reap/Install.src/M000035.html +18 -0
  71. data/{pub/www/rdoc/classes/Reap/AnnounceTask.src/M000040.html → web/rdoc/classes/Reap/Install.src/M000036.html} +6 -4
  72. data/web/rdoc/classes/Reap/Install.src/M000037.html +26 -0
  73. data/{pub/www/rdoc/classes/Reap/NoopTask.html → web/rdoc/classes/Reap/Noop.html} +23 -41
  74. data/web/rdoc/classes/Reap/Noop.src/M000026.html +18 -0
  75. data/{pub/www/rdoc/classes/Reap/NoopTask.src/M000045.html → web/rdoc/classes/Reap/Noop.src/M000027.html} +2 -2
  76. data/{pub/www/rdoc/classes/Reap/InfoTask.src/M000050.html → web/rdoc/classes/Reap/Noop.src/M000028.html} +3 -3
  77. data/{pub/www/rdoc/classes/Reap/PackageTask.html → web/rdoc/classes/Reap/Package.html} +40 -68
  78. data/{pub/www/rdoc/classes/Reap/NoopTask.src/M000044.html → web/rdoc/classes/Reap/Package.src/M000053.html} +4 -4
  79. data/{pub/www/rdoc/classes/Reap/PackageTask.src/M000007.html → web/rdoc/classes/Reap/Package.src/M000054.html} +28 -13
  80. data/{pub/www/rdoc/classes/Reap/PackageTask.src/M000008.html → web/rdoc/classes/Reap/Package.src/M000055.html} +43 -32
  81. data/{pub/www/rdoc/classes/Reap/PackageTask.src/M000009.html → web/rdoc/classes/Reap/Package.src/M000056.html} +13 -3
  82. data/{pub/www/rdoc/classes/Reap/FilemodTask.html → web/rdoc/classes/Reap/Perm.html} +34 -52
  83. data/web/rdoc/classes/Reap/Perm.src/M000076.html +18 -0
  84. data/{pub/www/rdoc/classes/Reap/FilemodTask.src/M000029.html → web/rdoc/classes/Reap/Perm.src/M000077.html} +3 -3
  85. data/{pub/www/rdoc/classes/Reap/FilemodTask.src/M000030.html → web/rdoc/classes/Reap/Perm.src/M000078.html} +2 -2
  86. data/{pub/www/rdoc/classes/Reap/FilemodTask.src/M000031.html → web/rdoc/classes/Reap/Perm.src/M000079.html} +2 -2
  87. data/{pub/www/rdoc/classes/Reap/FilemodTask.src/M000032.html → web/rdoc/classes/Reap/Perm.src/M000080.html} +2 -2
  88. data/{pub/www/rdoc/classes/Reap/PublishTask.html → web/rdoc/classes/Reap/Publish.html} +23 -41
  89. data/web/rdoc/classes/Reap/Publish.src/M000068.html +18 -0
  90. data/{pub/www/rdoc/classes/Reap/PublishTask.src/M000025.html → web/rdoc/classes/Reap/Publish.src/M000069.html} +2 -2
  91. data/{pub/www/rdoc/classes/Reap/PublishTask.src/M000026.html → web/rdoc/classes/Reap/Publish.src/M000070.html} +3 -4
  92. data/{pub/www/rdoc/classes/Reap/RDocTask.html → web/rdoc/classes/Reap/RDoc.html} +23 -41
  93. data/web/rdoc/classes/Reap/RDoc.src/M000057.html +18 -0
  94. data/{pub/www/rdoc/classes/Reap/RDocTask.src/M000003.html → web/rdoc/classes/Reap/RDoc.src/M000058.html} +4 -5
  95. data/{pub/www/rdoc/classes/Reap/RDocTask.src/M000004.html → web/rdoc/classes/Reap/RDoc.src/M000059.html} +26 -9
  96. data/web/rdoc/classes/Reap/Task.html +381 -0
  97. data/web/rdoc/classes/Reap/Task.src/M000038.html +18 -0
  98. data/{pub/www/rdoc/classes/Reap/AnnounceTask.src → web/rdoc/classes/Reap/Task.src}/M000039.html +3 -3
  99. data/web/rdoc/classes/Reap/Task.src/M000040.html +16 -0
  100. data/web/rdoc/classes/Reap/Task.src/M000041.html +18 -0
  101. data/{pub/www/rdoc/classes/Reap/FilemodTask.src/M000027.html → web/rdoc/classes/Reap/Task.src/M000042.html} +5 -3
  102. data/{pub/www/rdoc/classes/Reap/NoopTask.src → web/rdoc/classes/Reap/Task.src}/M000043.html +3 -3
  103. data/web/rdoc/classes/Reap/Task.src/M000044.html +16 -0
  104. data/{pub/www/rdoc/classes/Reap/Task.src/M000034.html → web/rdoc/classes/Reap/Task.src/M000045.html} +2 -4
  105. data/{pub/www/rdoc/classes/Reap/Task.src/M000036.html → web/rdoc/classes/Reap/Task.src/M000046.html} +3 -3
  106. data/web/rdoc/classes/Reap/Task.src/M000047.html +16 -0
  107. data/web/rdoc/classes/Reap/Task.src/M000048.html +27 -0
  108. data/web/rdoc/classes/Reap/Task.src/M000049.html +19 -0
  109. data/{pub/www/rdoc/classes/Reap/Task.src/M000037.html → web/rdoc/classes/Reap/Task.src/M000050.html} +2 -2
  110. data/web/rdoc/classes/Reap/Task.src/M000051.html +18 -0
  111. data/web/rdoc/classes/Reap/Task.src/M000052.html +19 -0
  112. data/{pub/www/rdoc/classes/Reap/TestTask.html → web/rdoc/classes/Reap/Test.html} +47 -56
  113. data/web/rdoc/classes/Reap/Test.src/M000060.html +18 -0
  114. data/{pub/www/rdoc/classes/Reap/TestTask.src/M000016.html → web/rdoc/classes/Reap/Test.src/M000061.html} +5 -4
  115. data/{pub/www/rdoc/classes/Reap/TestTask.src/M000017.html → web/rdoc/classes/Reap/Test.src/M000062.html} +2 -2
  116. data/{pub/www/rdoc/classes/Reap/TestTask.src/M000018.html → web/rdoc/classes/Reap/Test.src/M000063.html} +2 -2
  117. data/{pub/www/rdoc/classes/Reap/TestTask.src/M000019.html → web/rdoc/classes/Reap/Test.src/M000064.html} +18 -4
  118. data/{pub/www/rdoc/classes/Reap/TestTask → web/rdoc/classes/Reap/Test}/TestResults.html +21 -19
  119. data/{pub/www/rdoc/classes/Reap/TestTask/TestResults.src/M000020.html → web/rdoc/classes/Reap/Test/TestResults.src/M000065.html} +2 -2
  120. data/{pub/www/rdoc/classes/Reap/TestTask/TestResults.src/M000021.html → web/rdoc/classes/Reap/Test/TestResults.src/M000066.html} +2 -2
  121. data/{pub/www/rdoc/classes/Reap/TestTask/TestResults.src/M000022.html → web/rdoc/classes/Reap/Test/TestResults.src/M000067.html} +2 -2
  122. data/web/rdoc/classes/Reap/TestExt.html +234 -0
  123. data/{pub/www/rdoc/classes/Reap/InfoTask.src/M000048.html → web/rdoc/classes/Reap/TestExt.src/M000071.html} +4 -4
  124. data/web/rdoc/classes/Reap/TestExt.src/M000072.html +20 -0
  125. data/web/rdoc/classes/Reap/TestExt.src/M000073.html +49 -0
  126. data/web/rdoc/classes/Reap/TestExt.src/M000074.html +34 -0
  127. data/web/rdoc/classes/Reap/TestExt.src/M000075.html +27 -0
  128. data/{pub/www/rdoc/classes/Reap/WebPublishTask.html → web/rdoc/classes/Reap/WebPublish.html} +23 -41
  129. data/{pub/www/rdoc/classes/Reap/WebPublishTask.src/M000011.html → web/rdoc/classes/Reap/WebPublish.src/M000081.html} +4 -4
  130. data/{pub/www/rdoc/classes/Reap/WebPublishTask.src/M000012.html → web/rdoc/classes/Reap/WebPublish.src/M000082.html} +2 -2
  131. data/{pub/www/rdoc/classes/Reap/WebPublishTask.src/M000013.html → web/rdoc/classes/Reap/WebPublish.src/M000083.html} +2 -2
  132. data/web/rdoc/classes/ReapCommand.html +407 -0
  133. data/web/rdoc/classes/ReapCommand.src/M000001.html +16 -0
  134. data/web/rdoc/classes/ReapCommand.src/M000003.html +16 -0
  135. data/web/rdoc/classes/ReapCommand.src/M000005.html +16 -0
  136. data/{pub/www/rdoc/classes/Reap/InfoTask.src/M000047.html → web/rdoc/classes/ReapCommand.src/M000007.html} +4 -4
  137. data/web/rdoc/classes/ReapCommand.src/M000009.html +16 -0
  138. data/web/rdoc/classes/ReapCommand.src/M000011.html +16 -0
  139. data/web/rdoc/classes/ReapCommand.src/M000013.html +18 -0
  140. data/web/rdoc/classes/ReapCommand.src/M000014.html +19 -0
  141. data/web/rdoc/classes/ReapCommand.src/M000015.html +19 -0
  142. data/web/rdoc/classes/ReapCommand.src/M000016.html +23 -0
  143. data/web/rdoc/classes/Scaffold.html +211 -0
  144. data/web/rdoc/classes/Scaffold.src/M000084.html +16 -0
  145. data/web/rdoc/classes/Scaffold.src/M000085.html +28 -0
  146. data/web/rdoc/classes/Scaffold.src/M000086.html +32 -0
  147. data/web/rdoc/classes/Scaffold.src/M000087.html +18 -0
  148. data/{pub/www/rdoc/classes/RakeTask.html → web/rdoc/classes/UnitTestKernel.html} +28 -34
  149. data/web/rdoc/classes/UnitTestKernel.src/M000018.html +18 -0
  150. data/web/rdoc/classes/UnitTestKernel.src/M000019.html +18 -0
  151. data/web/rdoc/classes/UnitTestKernel.src/M000020.html +22 -0
  152. data/web/rdoc/classes/UnitTestKernel.src/M000021.html +22 -0
  153. data/{pub/www/rdoc/classes/Reap.html → web/rdoc/classes/UnitTesting.html} +48 -54
  154. data/web/rdoc/classes/UnitTesting.src/M000088.html +34 -0
  155. data/web/rdoc/classes/UnitTesting.src/M000089.html +18 -0
  156. data/web/rdoc/classes/UnitTesting/Failure.html +156 -0
  157. data/web/rdoc/classes/UnitTesting/Failure.src/M000090.html +18 -0
  158. data/web/rdoc/classes/UnitTesting/Failure.src/M000091.html +21 -0
  159. data/web/rdoc/created.rid +1 -0
  160. data/web/rdoc/files/ANN.html +107 -0
  161. data/{pub/www/rdoc/files/LICENSE.html → web/rdoc/files/COPYING.html} +3 -3
  162. data/web/rdoc/files/ChangeLog.html +144 -0
  163. data/web/rdoc/files/ProjectInfo.html +190 -0
  164. data/{pub/www → web}/rdoc/files/README.html +17 -24
  165. data/web/rdoc/files/Rakefile.html +101 -0
  166. data/web/rdoc/files/lib/reap/bin/reap_rb.html +124 -0
  167. data/web/rdoc/files/lib/reap/lint_rb.html +101 -0
  168. data/{pub/www → web}/rdoc/files/lib/reap/projectinfo_rb.html +3 -4
  169. data/web/rdoc/files/lib/reap/readymade_rb.html +123 -0
  170. data/{pub/www/rdoc/files/lib/reap/announce_task_rb.html → web/rdoc/files/lib/reap/task/announce_rb.html} +5 -5
  171. data/{pub/www/rdoc/files/lib/reap/filemod_task_rb.html → web/rdoc/files/lib/reap/task/fileperm_rb.html} +5 -5
  172. data/{pub/www/rdoc/files/lib/reap/rdoc_task_rb.html → web/rdoc/files/lib/reap/task/info_rb.html} +5 -5
  173. data/web/rdoc/files/lib/reap/task/install_rb.html +108 -0
  174. data/{pub/www/rdoc/files/lib/reap/noop_task_rb.html → web/rdoc/files/lib/reap/task/noop_rb.html} +5 -5
  175. data/{pub/www/rdoc/files/lib/reap/package_task_rb.html → web/rdoc/files/lib/reap/task/package_rb.html} +5 -5
  176. data/web/rdoc/files/lib/reap/task/publish_rb.html +108 -0
  177. data/web/rdoc/files/lib/reap/task/rdoc_rb.html +108 -0
  178. data/web/rdoc/files/lib/reap/task/scaffold_rb.html +107 -0
  179. data/{pub/www/rdoc/files/lib/reap/test_task_rb.html → web/rdoc/files/lib/reap/task/test_rb.html} +5 -5
  180. data/web/rdoc/files/lib/reap/task/testext_rb.html +109 -0
  181. data/{pub/www/rdoc/files/lib/reap/publish_task_rb.html → web/rdoc/files/lib/reap/task/webpublish_rb.html} +5 -5
  182. data/{pub/www → web}/rdoc/files/lib/reap/task_rb.html +11 -3
  183. data/{pub/www → web}/rdoc/files/lib/reap/tasks_rb.html +10 -9
  184. data/{pub/www/rdoc/files/lib/reap/info_task_rb.html → web/rdoc/files/lib/reap/test_rb.html} +6 -5
  185. data/web/rdoc/fr_class_index.html +47 -0
  186. data/web/rdoc/fr_file_index.html +51 -0
  187. data/web/rdoc/fr_method_index.html +122 -0
  188. data/{pub/www → web}/rdoc/index.html +0 -0
  189. data/{pub/www → web}/rdoc/rdoc-style.css +0 -0
  190. metadata +234 -158
  191. data/lib/reap/info_task.rb +0 -29
  192. data/lib/reap/noop_task.rb +0 -35
  193. data/lib/reap/ready_made.rb +0 -12
  194. data/pub/www/Reapfile +0 -99
  195. data/pub/www/index.html +0 -90
  196. data/pub/www/rdoc/classes/RakeTask.src/M000051.html +0 -18
  197. data/pub/www/rdoc/classes/RakeTask.src/M000052.html +0 -18
  198. data/pub/www/rdoc/classes/RakeTask.src/M000053.html +0 -18
  199. data/pub/www/rdoc/classes/RakeTask.src/M000054.html +0 -18
  200. data/pub/www/rdoc/classes/Reap/FilemodTask.src/M000028.html +0 -18
  201. data/pub/www/rdoc/classes/Reap/PackageTask.src/M000005.html +0 -16
  202. data/pub/www/rdoc/classes/Reap/PackageTask.src/M000006.html +0 -24
  203. data/pub/www/rdoc/classes/Reap/PublishTask.src/M000023.html +0 -16
  204. data/pub/www/rdoc/classes/Reap/PublishTask.src/M000024.html +0 -18
  205. data/pub/www/rdoc/classes/Reap/RDocTask.src/M000001.html +0 -16
  206. data/pub/www/rdoc/classes/Reap/Task.html +0 -239
  207. data/pub/www/rdoc/classes/Reap/Task.src/M000033.html +0 -21
  208. data/pub/www/rdoc/classes/Reap/Task.src/M000035.html +0 -41
  209. data/pub/www/rdoc/classes/Reap/Task.src/M000038.html +0 -19
  210. data/pub/www/rdoc/classes/Reap/TestTask.src/M000014.html +0 -16
  211. data/pub/www/rdoc/classes/Reap/TestTask.src/M000015.html +0 -18
  212. data/pub/www/rdoc/classes/Reap/WebPublishTask.src/M000010.html +0 -16
  213. data/pub/www/rdoc/classes/ReapTask.html +0 -287
  214. data/pub/www/rdoc/classes/ReapTask.src/M000060.html +0 -18
  215. data/pub/www/rdoc/classes/ReapTask.src/M000061.html +0 -18
  216. data/pub/www/rdoc/classes/ReapTask.src/M000062.html +0 -18
  217. data/pub/www/rdoc/classes/ReapTask.src/M000063.html +0 -18
  218. data/pub/www/rdoc/classes/ReapTask.src/M000064.html +0 -18
  219. data/pub/www/rdoc/classes/ReapTask.src/M000065.html +0 -18
  220. data/pub/www/rdoc/classes/ReapTask.src/M000066.html +0 -18
  221. data/pub/www/rdoc/classes/ReapTask.src/M000067.html +0 -18
  222. data/pub/www/rdoc/classes/ReapTask.src/M000068.html +0 -18
  223. data/pub/www/rdoc/created.rid +0 -1
  224. data/pub/www/rdoc/files/lib/reap/ready_made_rb.html +0 -115
  225. data/pub/www/rdoc/files/lib/reap/web_publish_task_rb.html +0 -108
  226. data/pub/www/rdoc/fr_class_index.html +0 -41
  227. data/pub/www/rdoc/fr_file_index.html +0 -41
  228. data/pub/www/rdoc/fr_method_index.html +0 -94
@@ -0,0 +1,32 @@
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>template (Scaffold)</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/scaffold.rb, line 57</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">template</span>( <span class="ruby-identifier">filename</span> )
15
+ <span class="ruby-identifier">dir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-keyword kw">__FILE__</span>), <span class="ruby-value str">'data'</span> )
16
+ <span class="ruby-comment cmt">#dir = File.join( ::Config::CONFIG['datadir'], DATA_DIR )</span>
17
+ <span class="ruby-identifier">f</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>( <span class="ruby-identifier">dir</span>, <span class="ruby-identifier">filename</span> )
18
+ <span class="ruby-keyword kw">unless</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">file?</span>( <span class="ruby-identifier">f</span> )
19
+ <span class="ruby-identifier">puts</span> <span class="ruby-identifier">f</span>
20
+ <span class="ruby-identifier">raise</span> <span class="ruby-value str">&quot;Tempfile is missing.&quot;</span>
21
+ <span class="ruby-keyword kw">end</span>
22
+
23
+ <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-identifier">filename</span>)
24
+ <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;#{filename} already exists.&quot;</span>
25
+ <span class="ruby-keyword kw">return</span>
26
+ <span class="ruby-keyword kw">end</span>
27
+ <span class="ruby-comment cmt"># copy tmpf to Reapfile</span>
28
+ <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">cp</span>( <span class="ruby-identifier">f</span>, <span class="ruby-identifier">filename</span> )
29
+ <span class="ruby-comment cmt">#puts &quot;#{filename} created. You'll need to fill it out.&quot;</span>
30
+ <span class="ruby-keyword kw">end</span></pre>
31
+ </body>
32
+ </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>makedir (Scaffold)</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/scaffold.rb, line 76</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">makedir</span>( <span class="ruby-identifier">dir</span> )
15
+ <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">makedir_p</span>( <span class="ruby-identifier">dir</span> ) <span class="ruby-keyword kw">unless</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">directory?</span>( <span class="ruby-identifier">dir</span> )
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -5,7 +5,7 @@
5
5
 
6
6
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
7
  <head>
8
- <title>Module: RakeTask</title>
8
+ <title>Module: UnitTestKernel</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
11
  <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
@@ -50,13 +50,13 @@
50
50
  <table class="header-table">
51
51
  <tr class="top-aligned-row">
52
52
  <td><strong>Module</strong></td>
53
- <td class="class-name-in-header">RakeTask</td>
53
+ <td class="class-name-in-header">UnitTestKernel</td>
54
54
  </tr>
55
55
  <tr class="top-aligned-row">
56
56
  <td><strong>In:</strong></td>
57
57
  <td>
58
- <a href="../files/lib/reap/task_rb.html">
59
- lib/reap/task.rb
58
+ <a href="../files/lib/reap/test_rb.html">
59
+ lib/reap/test.rb
60
60
  </a>
61
61
  <br />
62
62
  </td>
@@ -72,12 +72,6 @@
72
72
 
73
73
  <div id="contextContent">
74
74
 
75
- <div id="description">
76
- <p>
77
- Convenience methods for built-in rake tasks
78
- </p>
79
-
80
- </div>
81
75
 
82
76
 
83
77
  </div>
@@ -86,10 +80,10 @@ Convenience methods for built-in rake tasks
86
80
  <h3 class="section-bar">Methods</h3>
87
81
 
88
82
  <div class="name-list">
89
- <a href="#M000051">gem_package_task</a>&nbsp;&nbsp;
90
- <a href="#M000052">package_task</a>&nbsp;&nbsp;
91
- <a href="#M000054">rdoc_task</a>&nbsp;&nbsp;
92
- <a href="#M000053">test_task</a>&nbsp;&nbsp;
83
+ <a href="#M000020">assert!</a>&nbsp;&nbsp;
84
+ <a href="#M000019">assert_off!</a>&nbsp;&nbsp;
85
+ <a href="#M000018">assert_on!</a>&nbsp;&nbsp;
86
+ <a href="#M000021">no_assertion!</a>&nbsp;&nbsp;
93
87
  </div>
94
88
  </div>
95
89
 
@@ -111,13 +105,13 @@ Convenience methods for built-in rake tasks
111
105
  <div id="methods">
112
106
  <h3 class="section-bar">Public Instance methods</h3>
113
107
 
114
- <div id="method-M000051" class="method-detail">
115
- <a name="M000051"></a>
108
+ <div id="method-M000020" class="method-detail">
109
+ <a name="M000020"></a>
116
110
 
117
111
  <div class="method-heading">
118
- <a href="RakeTask.src/M000051.html" target="Code" class="method-signature"
119
- onclick="popupCode('RakeTask.src/M000051.html');return false;">
120
- <span class="method-name">gem_package_task</span><span class="method-args">(*args,&amp;blk)</span>
112
+ <a href="UnitTestKernel.src/M000020.html" target="Code" class="method-signature"
113
+ onclick="popupCode('UnitTestKernel.src/M000020.html');return false;">
114
+ <span class="method-name">assert!</span><span class="method-args">(&amp;blk)</span>
121
115
  </a>
122
116
  </div>
123
117
 
@@ -125,13 +119,13 @@ Convenience methods for built-in rake tasks
125
119
  </div>
126
120
  </div>
127
121
 
128
- <div id="method-M000052" class="method-detail">
129
- <a name="M000052"></a>
122
+ <div id="method-M000019" class="method-detail">
123
+ <a name="M000019"></a>
130
124
 
131
125
  <div class="method-heading">
132
- <a href="RakeTask.src/M000052.html" target="Code" class="method-signature"
133
- onclick="popupCode('RakeTask.src/M000052.html');return false;">
134
- <span class="method-name">package_task</span><span class="method-args">(*args,&amp;blk)</span>
126
+ <a href="UnitTestKernel.src/M000019.html" target="Code" class="method-signature"
127
+ onclick="popupCode('UnitTestKernel.src/M000019.html');return false;">
128
+ <span class="method-name">assert_off!</span><span class="method-args">()</span>
135
129
  </a>
136
130
  </div>
137
131
 
@@ -139,13 +133,13 @@ Convenience methods for built-in rake tasks
139
133
  </div>
140
134
  </div>
141
135
 
142
- <div id="method-M000054" class="method-detail">
143
- <a name="M000054"></a>
136
+ <div id="method-M000018" class="method-detail">
137
+ <a name="M000018"></a>
144
138
 
145
139
  <div class="method-heading">
146
- <a href="RakeTask.src/M000054.html" target="Code" class="method-signature"
147
- onclick="popupCode('RakeTask.src/M000054.html');return false;">
148
- <span class="method-name">rdoc_task</span><span class="method-args">(*args,&amp;blk)</span>
140
+ <a href="UnitTestKernel.src/M000018.html" target="Code" class="method-signature"
141
+ onclick="popupCode('UnitTestKernel.src/M000018.html');return false;">
142
+ <span class="method-name">assert_on!</span><span class="method-args">()</span>
149
143
  </a>
150
144
  </div>
151
145
 
@@ -153,13 +147,13 @@ Convenience methods for built-in rake tasks
153
147
  </div>
154
148
  </div>
155
149
 
156
- <div id="method-M000053" class="method-detail">
157
- <a name="M000053"></a>
150
+ <div id="method-M000021" class="method-detail">
151
+ <a name="M000021"></a>
158
152
 
159
153
  <div class="method-heading">
160
- <a href="RakeTask.src/M000053.html" target="Code" class="method-signature"
161
- onclick="popupCode('RakeTask.src/M000053.html');return false;">
162
- <span class="method-name">test_task</span><span class="method-args">(*args,&amp;blk)</span>
154
+ <a href="UnitTestKernel.src/M000021.html" target="Code" class="method-signature"
155
+ onclick="popupCode('UnitTestKernel.src/M000021.html');return false;">
156
+ <span class="method-name">no_assertion!</span><span class="method-args">(&amp;blk)</span>
163
157
  </a>
164
158
  </div>
165
159
 
@@ -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>assert_on! (UnitTestKernel)</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/test.rb, line 10</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">assert_on!</span>
15
+ <span class="ruby-identifier">$test_mode</span> = <span class="ruby-keyword kw">true</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </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>assert_off! (UnitTestKernel)</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/test.rb, line 14</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">assert_off!</span>
15
+ <span class="ruby-identifier">$test_mode</span> = <span class="ruby-keyword kw">false</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,22 @@
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>assert! (UnitTestKernel)</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/test.rb, line 18</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">assert!</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">blk</span>)
15
+ <span class="ruby-identifier">old</span> = <span class="ruby-identifier">$test_mode</span>
16
+ <span class="ruby-identifier">$test_mode</span> = <span class="ruby-keyword kw">true</span>
17
+ <span class="ruby-identifier">r</span> = <span class="ruby-identifier">blk</span>.<span class="ruby-identifier">call</span>
18
+ <span class="ruby-identifier">$test_mode</span> = <span class="ruby-identifier">old</span>
19
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">r</span>
20
+ <span class="ruby-keyword kw">end</span></pre>
21
+ </body>
22
+ </html>
@@ -0,0 +1,22 @@
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>no_assertion! (UnitTestKernel)</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/test.rb, line 26</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">no_assertion!</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">blk</span>)
15
+ <span class="ruby-identifier">old</span> = <span class="ruby-identifier">$test_mode</span>
16
+ <span class="ruby-identifier">$test_mode</span> = <span class="ruby-keyword kw">false</span>
17
+ <span class="ruby-identifier">r</span> = <span class="ruby-identifier">blk</span>.<span class="ruby-identifier">call</span>
18
+ <span class="ruby-identifier">$test_mode</span> = <span class="ruby-identifier">old</span>
19
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">r</span>
20
+ <span class="ruby-keyword kw">end</span></pre>
21
+ </body>
22
+ </html>
@@ -5,7 +5,7 @@
5
5
 
6
6
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
7
  <head>
8
- <title>Module: Reap</title>
8
+ <title>Module: UnitTesting</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
11
  <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
@@ -50,13 +50,13 @@
50
50
  <table class="header-table">
51
51
  <tr class="top-aligned-row">
52
52
  <td><strong>Module</strong></td>
53
- <td class="class-name-in-header">Reap</td>
53
+ <td class="class-name-in-header">UnitTesting</td>
54
54
  </tr>
55
55
  <tr class="top-aligned-row">
56
56
  <td><strong>In:</strong></td>
57
57
  <td>
58
- <a href="../files/lib/reap/task_rb.html">
59
- lib/reap/task.rb
58
+ <a href="../files/lib/reap/test_rb.html">
59
+ lib/reap/test.rb
60
60
  </a>
61
61
  <br />
62
62
  </td>
@@ -72,48 +72,18 @@
72
72
 
73
73
  <div id="contextContent">
74
74
 
75
- <div id="description">
76
- <p>
77
- Base class for reap tasks.
78
- </p>
79
- <p>
80
- Here&#8217;s an oh so simple example:
81
- </p>
82
- <pre>
83
- class MyTask &lt; Reap::Task
84
-
85
- register 'mytask'
86
-
87
- default_desc 'this is a custom reap task'
88
-
89
- attr_accessor :message
90
-
91
- def init
92
- @message ||= master['default'] || 'None Found!'
93
- end
94
-
95
- def run
96
- puts @message
97
- end
98
- end
99
- </pre>
100
- <p>
101
- The corresponding settings in the <a
102
- href="ProjectInfo.html">ProjectInfo</a> file will then be:
103
- </p>
104
- <pre>
105
- default: Default text, if any.
106
-
107
- myname:
108
- TASK: mytask
109
- message: Message text, if any.
110
- </pre>
111
-
112
- </div>
113
75
 
114
76
 
115
77
  </div>
116
78
 
79
+ <div id="method-list">
80
+ <h3 class="section-bar">Methods</h3>
81
+
82
+ <div class="name-list">
83
+ <a href="#M000088">advise_assertions</a>&nbsp;&nbsp;
84
+ <a href="#M000089">report</a>&nbsp;&nbsp;
85
+ </div>
86
+ </div>
117
87
 
118
88
  </div>
119
89
 
@@ -125,16 +95,7 @@ href="ProjectInfo.html">ProjectInfo</a> file will then be:
125
95
  <div id="class-list">
126
96
  <h3 class="section-bar">Classes and Modules</h3>
127
97
 
128
- Class <a href="Reap/AnnounceTask.html" class="link">Reap::AnnounceTask</a><br />
129
- Class <a href="Reap/FilemodTask.html" class="link">Reap::FilemodTask</a><br />
130
- Class <a href="Reap/InfoTask.html" class="link">Reap::InfoTask</a><br />
131
- Class <a href="Reap/NoopTask.html" class="link">Reap::NoopTask</a><br />
132
- Class <a href="Reap/PackageTask.html" class="link">Reap::PackageTask</a><br />
133
- Class <a href="Reap/PublishTask.html" class="link">Reap::PublishTask</a><br />
134
- Class <a href="Reap/RDocTask.html" class="link">Reap::RDocTask</a><br />
135
- Class <a href="Reap/Task.html" class="link">Reap::Task</a><br />
136
- Class <a href="Reap/TestTask.html" class="link">Reap::TestTask</a><br />
137
- Class <a href="Reap/WebPublishTask.html" class="link">Reap::WebPublishTask</a><br />
98
+ Class <a href="UnitTesting/Failure.html" class="link">UnitTesting::Failure</a><br />
138
99
 
139
100
  </div>
140
101
 
@@ -144,9 +105,9 @@ Class <a href="Reap/WebPublishTask.html" class="link">Reap::WebPublishTask</a><b
144
105
  <div class="name-list">
145
106
  <table summary="Constants">
146
107
  <tr class="top-aligned-row context-row">
147
- <td class="context-item-name">VERSION</td>
108
+ <td class="context-item-name">TRANSPARENT_ASSERTIONS</td>
148
109
  <td>=</td>
149
- <td class="context-item-value">3 ;</td>
110
+ <td class="context-item-value">%w{ == === eql? equal? kind_of? include? member? empty? nil? has_key? key? respond_to? between? }</td>
150
111
  </tr>
151
112
  </table>
152
113
  </div>
@@ -158,6 +119,39 @@ Class <a href="Reap/WebPublishTask.html" class="link">Reap::WebPublishTask</a><b
158
119
 
159
120
 
160
121
  <!-- if method_list -->
122
+ <div id="methods">
123
+ <h3 class="section-bar">Public Class methods</h3>
124
+
125
+ <div id="method-M000088" class="method-detail">
126
+ <a name="M000088"></a>
127
+
128
+ <div class="method-heading">
129
+ <a href="UnitTesting.src/M000088.html" target="Code" class="method-signature"
130
+ onclick="popupCode('UnitTesting.src/M000088.html');return false;">
131
+ <span class="method-name">advise_assertions</span><span class="method-args">()</span>
132
+ </a>
133
+ </div>
134
+
135
+ <div class="method-description">
136
+ </div>
137
+ </div>
138
+
139
+ <div id="method-M000089" class="method-detail">
140
+ <a name="M000089"></a>
141
+
142
+ <div class="method-heading">
143
+ <a href="UnitTesting.src/M000089.html" target="Code" class="method-signature"
144
+ onclick="popupCode('UnitTesting.src/M000089.html');return false;">
145
+ <span class="method-name">report</span><span class="method-args">()</span>
146
+ </a>
147
+ </div>
148
+
149
+ <div class="method-description">
150
+ </div>
151
+ </div>
152
+
153
+
154
+ </div>
161
155
 
162
156
 
163
157
  </div>
@@ -0,0 +1,34 @@
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>advise_assertions (UnitTesting)</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/test.rb, line 65</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">advise_assertions</span>
15
+
16
+ <span class="ruby-constant">ObjectSpace</span>.<span class="ruby-identifier">each_object</span>(<span class="ruby-constant">Module</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">m</span><span class="ruby-operator">|</span>
17
+
18
+ <span class="ruby-constant">TRANSPARENT_ASSERTIONS</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">meth</span><span class="ruby-operator">|</span>
19
+
20
+ <span class="ruby-identifier">nmeth</span> = <span class="ruby-node">&quot;assert_#{sym_esc(meth)}&quot;</span>
21
+
22
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">m</span>.<span class="ruby-identifier">method_defined?</span>(<span class="ruby-identifier">meth</span>)
23
+
24
+ <span class="ruby-identifier">m</span>.<span class="ruby-identifier">class_eval</span> <span class="ruby-value str">&quot;alias :\#{nmeth} :\#{meth}\ndef \#{meth}(*args)\nif $test_mode\nr = nil\nno_assertion! {\nr = \#{nmeth}(*args)\nunless r\n$test_failures &lt;&lt; Failure.new( self, :\&quot;\#{meth}\&quot;, args, caller[2..-1] )\nend\n}\nreturn r\nelse\nreturn \#{nmeth}(*args)\nend\nend\n&quot;</span>
25
+
26
+ <span class="ruby-keyword kw">end</span> <span class="ruby-comment cmt">#if</span>
27
+
28
+ <span class="ruby-keyword kw">end</span> <span class="ruby-comment cmt">#do</span>
29
+
30
+ <span class="ruby-keyword kw">end</span> <span class="ruby-comment cmt">#do</span>
31
+
32
+ <span class="ruby-keyword kw">end</span></pre>
33
+ </body>
34
+ </html>