reap 5.0.0 → 5.10.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (236) hide show
  1. data/ANN +3 -0
  2. data/COPYING +11 -0
  3. data/ChangeLog +25 -0
  4. data/ProjectInfo +41 -66
  5. data/README +125 -0
  6. data/Rakefile +0 -10
  7. data/bin/reap +3 -4
  8. data/data/reap/scaffold/COPYING +11 -0
  9. data/data/reap/scaffold/{standard/ChangeLog → ChangeLog} +0 -0
  10. data/data/reap/scaffold/{standard/TODO → INSTALL} +0 -0
  11. data/data/reap/scaffold/{standard/ProjectInfo → ProjectInfo} +20 -20
  12. data/data/reap/scaffold/{subversion/trunk/ChangeLog → README} +0 -0
  13. data/data/reap/scaffold/Rakefile +146 -0
  14. data/data/reap/scaffold/{subversion/trunk/TODO → Todo} +0 -0
  15. data/{doc/note → data/reap/scaffold}/setup.rb +11 -18
  16. data/{doc/note/aRakefile → dev/Rakefile} +0 -0
  17. data/{doc/note → dev}/composite_task.rb +0 -0
  18. data/{doc/note → dev}/compositepublisher.rb +0 -0
  19. data/{doc/note → dev}/ftptools.rb +0 -0
  20. data/{doc/note → dev}/license-each.rb +0 -0
  21. data/{doc/note → dev}/publisher.rb +0 -0
  22. data/{doc/note → dev}/rubyforgepublisher.rb +0 -0
  23. data/{doc/note → dev}/sshpublisher.rb +0 -0
  24. data/{doc/note → dev}/suby-cvs.rb +0 -0
  25. data/{doc/note → dev}/template.rb +0 -0
  26. data/lib/reap/bin/reap.rb +67 -84
  27. data/{doc/note/interface/interface.rb → lib/reap/lint.rb} +0 -0
  28. data/lib/reap/projectinfo.rb +28 -206
  29. data/lib/reap/readymade.rb +21 -0
  30. data/lib/reap/task.rb +118 -184
  31. data/lib/reap/task/announce.rb +93 -181
  32. data/lib/reap/task/fileperm.rb +16 -46
  33. data/lib/reap/task/info.rb +7 -33
  34. data/lib/reap/task/install.rb +17 -52
  35. data/{task → lib/reap/task}/noop.rb +9 -4
  36. data/lib/reap/task/package.rb +102 -348
  37. data/lib/reap/task/publish.rb +29 -155
  38. data/lib/reap/task/rdoc.rb +40 -92
  39. data/lib/reap/task/scaffold.rb +98 -41
  40. data/lib/reap/task/test.rb +52 -147
  41. data/lib/reap/task/testext.rb +110 -0
  42. data/lib/reap/task/webpublish.rb +43 -0
  43. data/lib/reap/tasks.rb +13 -0
  44. data/lib/reap/test.rb +138 -0
  45. data/setup.rb +272 -287
  46. data/test/tc_reap.rb +1 -1
  47. data/web/ProjectInfo +57 -0
  48. data/web/images/appleboy.jpg +0 -0
  49. data/web/images/grape.jpg +0 -0
  50. data/web/index.html +124 -0
  51. data/web/rdoc/classes/Object.html +121 -0
  52. data/web/rdoc/classes/ProjectInfo.html +207 -0
  53. data/web/rdoc/classes/ProjectInfo.src/M000094.html +18 -0
  54. data/web/rdoc/classes/ProjectInfo.src/M000095.html +24 -0
  55. data/web/rdoc/classes/ProjectInfo.src/M000096.html +22 -0
  56. data/web/rdoc/classes/ProjectInfo.src/M000097.html +21 -0
  57. data/web/rdoc/classes/ProjectInfo.src/M000098.html +18 -0
  58. data/web/rdoc/classes/Reap.html +248 -0
  59. data/web/rdoc/classes/Reap.src/M000023.html +16 -0
  60. data/web/rdoc/classes/Reap.src/M000024.html +21 -0
  61. data/web/rdoc/classes/Reap.src/M000025.html +16 -0
  62. data/web/rdoc/classes/Reap.src/M000026.html +21 -0
  63. data/web/rdoc/classes/Reap/Announce.html +262 -0
  64. data/web/rdoc/classes/Reap/Announce.src/M000030.html +18 -0
  65. data/web/rdoc/classes/Reap/Announce.src/M000031.html +114 -0
  66. data/web/rdoc/classes/Reap/Announce.src/M000032.html +46 -0
  67. data/web/rdoc/classes/Reap/Info.html +176 -0
  68. data/web/rdoc/classes/Reap/Info.src/M000033.html +18 -0
  69. data/web/rdoc/classes/Reap/Info.src/M000034.html +17 -0
  70. data/web/rdoc/classes/Reap/Info.src/M000035.html +18 -0
  71. data/web/rdoc/classes/Reap/Install.html +193 -0
  72. data/web/rdoc/classes/Reap/Install.src/M000036.html +18 -0
  73. data/web/rdoc/classes/Reap/Install.src/M000037.html +20 -0
  74. data/web/rdoc/classes/Reap/Install.src/M000038.html +26 -0
  75. data/web/rdoc/classes/Reap/Noop.html +192 -0
  76. data/web/rdoc/classes/Reap/Noop.src/M000027.html +18 -0
  77. data/web/rdoc/classes/Reap/Noop.src/M000028.html +17 -0
  78. data/web/rdoc/classes/Reap/Noop.src/M000029.html +18 -0
  79. data/web/rdoc/classes/Reap/Package.html +310 -0
  80. data/web/rdoc/classes/Reap/Package.src/M000055.html +18 -0
  81. data/web/rdoc/classes/Reap/Package.src/M000056.html +68 -0
  82. data/web/rdoc/classes/Reap/Package.src/M000057.html +84 -0
  83. data/web/rdoc/classes/Reap/Package.src/M000058.html +61 -0
  84. data/web/rdoc/classes/Reap/Perm.html +236 -0
  85. data/web/rdoc/classes/Reap/Perm.src/M000078.html +18 -0
  86. data/web/rdoc/classes/Reap/Perm.src/M000079.html +21 -0
  87. data/web/rdoc/classes/Reap/Perm.src/M000080.html +42 -0
  88. data/web/rdoc/classes/Reap/Perm.src/M000081.html +26 -0
  89. data/web/rdoc/classes/Reap/Perm.src/M000082.html +18 -0
  90. data/web/rdoc/classes/Reap/Publish.html +213 -0
  91. data/web/rdoc/classes/Reap/Publish.src/M000070.html +18 -0
  92. data/web/rdoc/classes/Reap/Publish.src/M000071.html +22 -0
  93. data/web/rdoc/classes/Reap/Publish.src/M000072.html +37 -0
  94. data/web/rdoc/classes/Reap/RDoc.html +218 -0
  95. data/web/rdoc/classes/Reap/RDoc.src/M000059.html +18 -0
  96. data/web/rdoc/classes/Reap/RDoc.src/M000060.html +24 -0
  97. data/web/rdoc/classes/Reap/RDoc.src/M000061.html +70 -0
  98. data/web/rdoc/classes/Reap/Task.html +396 -0
  99. data/web/rdoc/classes/Reap/Task.src/M000039.html +18 -0
  100. data/web/rdoc/classes/Reap/Task.src/M000040.html +16 -0
  101. data/web/rdoc/classes/Reap/Task.src/M000041.html +16 -0
  102. data/web/rdoc/classes/Reap/Task.src/M000042.html +16 -0
  103. data/web/rdoc/classes/Reap/Task.src/M000043.html +16 -0
  104. data/web/rdoc/classes/Reap/Task.src/M000044.html +22 -0
  105. data/web/rdoc/classes/Reap/Task.src/M000045.html +16 -0
  106. data/web/rdoc/classes/Reap/Task.src/M000046.html +16 -0
  107. data/web/rdoc/classes/Reap/Task.src/M000047.html +16 -0
  108. data/web/rdoc/classes/Reap/Task.src/M000048.html +16 -0
  109. data/web/rdoc/classes/Reap/Task.src/M000049.html +16 -0
  110. data/web/rdoc/classes/Reap/Task.src/M000050.html +27 -0
  111. data/web/rdoc/classes/Reap/Task.src/M000051.html +19 -0
  112. data/web/rdoc/classes/Reap/Task.src/M000052.html +18 -0
  113. data/web/rdoc/classes/Reap/Task.src/M000053.html +18 -0
  114. data/web/rdoc/classes/Reap/Task.src/M000054.html +19 -0
  115. data/web/rdoc/classes/Reap/Test.html +253 -0
  116. data/web/rdoc/classes/Reap/Test.src/M000062.html +18 -0
  117. data/web/rdoc/classes/Reap/Test.src/M000063.html +26 -0
  118. data/web/rdoc/classes/Reap/Test.src/M000064.html +77 -0
  119. data/web/rdoc/classes/Reap/Test.src/M000065.html +27 -0
  120. data/web/rdoc/classes/Reap/Test.src/M000066.html +50 -0
  121. data/web/rdoc/classes/Reap/Test/TestResults.html +205 -0
  122. data/web/rdoc/classes/Reap/Test/TestResults.src/M000067.html +21 -0
  123. data/web/rdoc/classes/Reap/Test/TestResults.src/M000068.html +21 -0
  124. data/web/rdoc/classes/Reap/Test/TestResults.src/M000069.html +23 -0
  125. data/web/rdoc/classes/Reap/TestExt.html +234 -0
  126. data/web/rdoc/classes/Reap/TestExt.src/M000073.html +18 -0
  127. data/web/rdoc/classes/Reap/TestExt.src/M000074.html +20 -0
  128. data/web/rdoc/classes/Reap/TestExt.src/M000075.html +49 -0
  129. data/web/rdoc/classes/Reap/TestExt.src/M000076.html +34 -0
  130. data/web/rdoc/classes/Reap/TestExt.src/M000077.html +27 -0
  131. data/web/rdoc/classes/Reap/WebPublish.html +213 -0
  132. data/web/rdoc/classes/Reap/WebPublish.src/M000083.html +18 -0
  133. data/web/rdoc/classes/Reap/WebPublish.src/M000084.html +21 -0
  134. data/web/rdoc/classes/Reap/WebPublish.src/M000085.html +32 -0
  135. data/web/rdoc/classes/ReapCommand.html +425 -0
  136. data/web/rdoc/classes/ReapCommand.src/M000001.html +16 -0
  137. data/web/rdoc/classes/ReapCommand.src/M000003.html +16 -0
  138. data/web/rdoc/classes/ReapCommand.src/M000005.html +16 -0
  139. data/web/rdoc/classes/ReapCommand.src/M000007.html +16 -0
  140. data/web/rdoc/classes/ReapCommand.src/M000009.html +16 -0
  141. data/web/rdoc/classes/ReapCommand.src/M000011.html +16 -0
  142. data/web/rdoc/classes/ReapCommand.src/M000013.html +18 -0
  143. data/web/rdoc/classes/ReapCommand.src/M000014.html +19 -0
  144. data/web/rdoc/classes/ReapCommand.src/M000015.html +19 -0
  145. data/web/rdoc/classes/ReapCommand.src/M000016.html +24 -0
  146. data/web/rdoc/classes/ReapCommand.src/M000018.html +29 -0
  147. data/web/rdoc/classes/Scaffold.html +211 -0
  148. data/web/rdoc/classes/Scaffold.src/M000086.html +16 -0
  149. data/web/rdoc/classes/Scaffold.src/M000087.html +28 -0
  150. data/web/rdoc/classes/Scaffold.src/M000088.html +32 -0
  151. data/web/rdoc/classes/Scaffold.src/M000089.html +18 -0
  152. data/web/rdoc/classes/UnitTestKernel.html +176 -0
  153. data/web/rdoc/classes/UnitTestKernel.src/M000019.html +18 -0
  154. data/web/rdoc/classes/UnitTestKernel.src/M000020.html +18 -0
  155. data/web/rdoc/classes/UnitTestKernel.src/M000021.html +22 -0
  156. data/web/rdoc/classes/UnitTestKernel.src/M000022.html +22 -0
  157. data/web/rdoc/classes/UnitTesting.html +165 -0
  158. data/web/rdoc/classes/UnitTesting.src/M000090.html +34 -0
  159. data/web/rdoc/classes/UnitTesting.src/M000091.html +18 -0
  160. data/web/rdoc/classes/UnitTesting/Failure.html +156 -0
  161. data/web/rdoc/classes/UnitTesting/Failure.src/M000092.html +18 -0
  162. data/web/rdoc/classes/UnitTesting/Failure.src/M000093.html +21 -0
  163. data/web/rdoc/created.rid +1 -0
  164. data/web/rdoc/files/ANN.html +107 -0
  165. data/web/rdoc/files/COPYING.html +119 -0
  166. data/web/rdoc/files/ChangeLog.html +144 -0
  167. data/web/rdoc/files/ProjectInfo.html +190 -0
  168. data/web/rdoc/files/README.html +274 -0
  169. data/web/rdoc/files/Rakefile.html +101 -0
  170. data/web/rdoc/files/lib/reap/bin/reap_rb.html +129 -0
  171. data/web/rdoc/files/lib/reap/lint_rb.html +101 -0
  172. data/web/rdoc/files/lib/reap/projectinfo_rb.html +110 -0
  173. data/web/rdoc/files/lib/reap/readymade_rb.html +123 -0
  174. data/web/rdoc/files/lib/reap/task/announce_rb.html +114 -0
  175. data/web/rdoc/files/lib/reap/task/fileperm_rb.html +108 -0
  176. data/web/rdoc/files/lib/reap/task/info_rb.html +108 -0
  177. data/web/rdoc/files/lib/reap/task/install_rb.html +108 -0
  178. data/web/rdoc/files/lib/reap/task/noop_rb.html +108 -0
  179. data/web/rdoc/files/lib/reap/task/package_rb.html +109 -0
  180. data/web/rdoc/files/lib/reap/task/publish_rb.html +108 -0
  181. data/web/rdoc/files/lib/reap/task/rdoc_rb.html +108 -0
  182. data/web/rdoc/files/lib/reap/task/scaffold_rb.html +107 -0
  183. data/web/rdoc/files/lib/reap/task/test_rb.html +110 -0
  184. data/web/rdoc/files/lib/reap/task/testext_rb.html +109 -0
  185. data/web/rdoc/files/lib/reap/task/webpublish_rb.html +108 -0
  186. data/web/rdoc/files/lib/reap/task_rb.html +120 -0
  187. data/web/rdoc/files/lib/reap/tasks_rb.html +116 -0
  188. data/web/rdoc/files/lib/reap/test_rb.html +109 -0
  189. data/web/rdoc/fr_class_index.html +47 -0
  190. data/web/rdoc/fr_file_index.html +51 -0
  191. data/web/rdoc/fr_method_index.html +124 -0
  192. data/web/rdoc/index.html +24 -0
  193. data/web/rdoc/rdoc-style.css +208 -0
  194. metadata +257 -138
  195. data/bin/rubytest +0 -5
  196. data/data/reap/scaffold/standard/COPYING +0 -403
  197. data/data/reap/scaffold/standard/INSTALL +0 -14
  198. data/data/reap/scaffold/standard/README +0 -3
  199. data/data/reap/scaffold/standard/Rakefile +0 -10
  200. data/data/reap/scaffold/standard/setup.rb +0 -1568
  201. data/data/reap/scaffold/subversion/trunk/COPYING +0 -403
  202. data/data/reap/scaffold/subversion/trunk/INSTALL +0 -14
  203. data/data/reap/scaffold/subversion/trunk/ProjectInfo +0 -78
  204. data/data/reap/scaffold/subversion/trunk/README +0 -3
  205. data/data/reap/scaffold/subversion/trunk/Rakefile +0 -10
  206. data/data/reap/scaffold/subversion/trunk/setup.rb +0 -1568
  207. data/data/reap/setup.rb +0 -1568
  208. data/doc/COPYING +0 -403
  209. data/doc/ChangeLog +0 -18
  210. data/doc/LATEST +0 -29
  211. data/doc/README +0 -182
  212. data/doc/doap.xml +0 -27
  213. data/doc/note/ProjectInfo.rb +0 -88
  214. data/doc/note/Rakefile.0 +0 -118
  215. data/doc/note/Rakefile.htm +0 -69
  216. data/doc/note/application.rb +0 -124
  217. data/doc/note/interface/rubyforge.rb +0 -247
  218. data/doc/note/intro.txt +0 -42
  219. data/doc/note/package.rb +0 -629
  220. data/doc/note/package.rb.0 +0 -394
  221. data/doc/note/scaffold.rb +0 -123
  222. data/lib/reap/app.rb +0 -74
  223. data/lib/reap/bin/rubylint.rb +0 -1
  224. data/lib/reap/bin/rubytest.rb +0 -45
  225. data/lib/reap/rake.rb +0 -12
  226. data/lib/reap/rakeadapter.rb +0 -50
  227. data/lib/reap/reap.rb +0 -32
  228. data/lib/reap/task/custom.rb +0 -12
  229. data/lib/reap/task/doap.rb +0 -85
  230. data/lib/reap/task/extest.rb +0 -161
  231. data/lib/reap/task/manifest.rb +0 -70
  232. data/lib/reap/task/release.rb +0 -512
  233. data/lib/reap/task/template.rb +0 -46
  234. data/lib/reap/vendor/http-access2.rb +0 -1590
  235. data/lib/reap/vendor/http-access2/cookie.rb +0 -538
  236. data/lib/reap/vendor/http-access2/http.rb +0 -542
data/doc/README DELETED
@@ -1,182 +0,0 @@
1
- = Reap
2
-
3
- Project Assistant for Ruby
4
-
5
-
6
- == What's This Then?
7
-
8
- Reap is an easy to use project assistant for Ruby developers.
9
- By organizing your project in a conventional manner,
10
- (as promoted by setup.rb), Reap makes it easy to do the
11
- following tasks:
12
-
13
- * Generate RDoc API documentation.
14
- * Run unit tests (each in it's ruby process).
15
- * Extract embedded tests from source code.
16
- * Run embedded unit test directly.
17
- * Create source tar and/or zip packages.
18
- * Create Ruby Gem and/or Debian packages.
19
- * Publish documents to Rubyforge or other web sites.
20
- * Announce a release to Ruby-talk or other mailing list.
21
- * Prepare files for distribution (i.e. chmod, tag, etc.).
22
- * Release distributions on Rubyforge or other host.
23
- * Even generate a DOAP project file.
24
-
25
- If you have special needs that Reap doesn't accomodate,
26
- new tasks are farily easy to create. And I am always
27
- happy to engage suggestions.
28
-
29
-
30
- == Installation
31
-
32
- Note that Reap requires Ruby Facets.
33
-
34
- === Gem Install
35
-
36
- Install the ruby gem as you would any other:
37
-
38
- <tt>gem install reap</tt>
39
-
40
- Gems still suffers from the datadir problem, so we've had
41
- to create some work arounds, for the template and scaffold
42
- tasks in particular. If you have any trouble with the Gem
43
- install please let us know so we can correct.
44
-
45
- === Manual Install
46
-
47
- To install manually follow the usual setup.eb steps:
48
-
49
- 1. Download the compressed package.
50
- 2. Unpack it.
51
- 3. Change into the unpacked directory.
52
- 4. run <tt>sudo ruby setup.rb</tt>
53
-
54
- You should be good to go.
55
-
56
-
57
- == Usage
58
-
59
- === Using a Reap Task
60
-
61
- Reap makes it pretty easy to use it's built-in tasks.
62
- Largely this is because it grabs common data from the
63
- ProjectInfo file. Some tasks can operate automatically based
64
- on reasonable defaults, others require section entries
65
- in the ProjectInfo file.
66
-
67
- For instance, to create a "package" target you generally do not need
68
- an entry in the ProjectInfo file. Reap will package up everything
69
- in the typical directories and makes compressed versions in the most
70
- common formats. It will then place those in either dist/, pkg/,
71
- ../packages/, ../dist or ../pkg. Depending on which of these exists.
72
- The reasonable assumtions exist for other tasks. Reap will do
73
- it's best to extrapolate the needed information waht's avaialbe
74
- in the ProjectInfo file.
75
-
76
- Of course, no matter the level of content, you will need to
77
- create this file in you projects main directory. A template is provided
78
- and a command to copy it to your current directory. Simply type:
79
-
80
- > reap template
81
-
82
- Then edit the ProjectInfo file creted. The fields are fairly self
83
- explanitiory. Apart from Reap, such a file is nice to have just on
84
- it's own merits too.
85
-
86
- Reap can also build an entire new project directory with all the
87
- standard components. Try:
88
-
89
- > reap scaffold myproj
90
-
91
- A new directory will be created called 'myproj' with all the ususal
92
- directories like lib/, bin/, etc. If you use subversion for
93
- version management, you can create a subversion layout easily
94
- as well.
95
-
96
- > reap scaffold svn
97
-
98
- For more help, use
99
-
100
- > reap help
101
-
102
- or
103
-
104
- > reap help [task]
105
-
106
- Supplying the task name provides specific help for that particular task.
107
-
108
-
109
- === Building a Reap Task
110
-
111
- Building a Reap task is pretty easy too, but is is quite different
112
- from building a Rake task. You are just defining a method, but a
113
- whole class.
114
-
115
- Here's an "oh so simple" example:
116
-
117
- class MySimple < Reap::Task
118
-
119
- task_desc 'This is a custom reap task class.'
120
-
121
- task_help %{
122
- This is help information for a custom reap task.
123
- }
124
-
125
- task_attr :simple
126
-
127
- def run
128
- simple.message ||= 'None Found!'
129
- simple.another ||= 'Again!'
130
-
131
- puts simple.message + "\n" + simple.another
132
- end
133
-
134
- end
135
-
136
- The corresponding settings in the ProjectInfo file (master) will then be:
137
-
138
- message: Default text, if any.
139
-
140
- simple: !!mysimple
141
- another: Your other message here.
142
-
143
- And to use it
144
-
145
- > reap simple
146
-
147
- While Reap had used instance varaibles for task properties in the past,
148
- this has changed as of version 4.3.3. Now it uses the 'task' object,
149
- which can be referenced by any name you like using task_attr to alias it.
150
- The nice thing about using this interface instead of instance
151
- variables is that reap will automatically search the
152
- ProjectInfo's root if the property is not found in the task
153
- specific section. This allows for a nice form of inheritance
154
- within the document.
155
-
156
- Sometimes you may need to override this inheritance behavor, though.
157
- In that case just set the task property directly equal to the
158
- section property in the run method. Eg.
159
-
160
- def run
161
- task.message = section.message
162
- ...
163
- end
164
-
165
- Notice we used 'task' here rather than 'simple'. This task object
166
- is always available. In the above, 'simple' is just being aliased
167
- to 'task' for readability convenience. Both refer to the same
168
- underlying object.
169
-
170
-
171
- == Status
172
-
173
- Reap is currently "Usable Beta". Most of the tasks
174
- work very well. Refinements are still common though.
175
-
176
-
177
- == Legal
178
-
179
- Reap
180
- Copyright(c)2004-2006 Thomas Sawyer
181
- Ruby License
182
-
@@ -1,27 +0,0 @@
1
- <Project xmlns="http://usefulinc.com/ns/doap#"
2
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
3
- xmlns:foaf="http://xmlns.com/foaf/0.1/">
4
- <name>Reap</name>
5
- <shortname>reap</shortname>
6
- <homepage rdf:resource="http://reap.rubyforge.org" />
7
- <wiki rdf:resource="" />
8
- <created>2004-04-01</created>
9
- <shortdesc xml:lang="en">
10
- Tools for Ruby project testing, management and
11
- assistance.
12
- </shortdesc>
13
- <description xml:lang="en">
14
- Reap comprises a set of commonly needed tools for
15
- Ruby package developers/deployers. Because of the
16
- commonality, Reap utilizes a YAML configuration
17
- file to harvest project information, significantly
18
- simplifying usage.
19
- </description>
20
- <maintainer>
21
- <foaf:Person>
22
- <foaf:name>Thomas Sawyer</foaf:name>
23
- <foaf:email>transfire@gmail.com</foaf:name>
24
- <foaf:homepage rdf:resource="http://reap.rubyforge.org" />
25
- </foaf:Person>
26
- </maintainer>
27
- </Project>
@@ -1,88 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- # NOTE This is here for expiremental reasons.
4
- # It is a pure Ruby alternative to the
5
- # YAML based project file. (It actually
6
- # works if it's renamed w/o the '.rb'.)
7
-
8
- title 'Reap'
9
- name 'reap'
10
- version '4.3.4'
11
- date '2006-04-07'
12
- created '2004-04-01'
13
- status 'beta/stable'
14
-
15
- author 'Thomas Sawyer'
16
- email 'transfire@gmail.com'
17
- homepage 'http://reap.rubyforge.org'
18
- summary 'Tools for Ruby project testing, management and assistance.'
19
-
20
- description %{
21
- Reap comprises a set of commonly needed tools for Ruby package
22
- developers/deployers. Because of the commonality,
23
- Reap utilizes a YAML configuration file to harvest project
24
- information, significantly simplifying usage.
25
- }
26
-
27
- distribute [ 'gem', 'deb' ] # zip, tar.gz, tbz, tgz, deb
28
- dependencies [ 'facets' ]
29
- executables [ 'reap' ]
30
-
31
- package {
32
- dir '../DISTRIBUTION'
33
- distribute [ 'deb' ]
34
- exclude [ 'dist', 'dev', 'scrap', 'web' ]
35
- }
36
-
37
- rubyforge {
38
- project 'reap'
39
- username 'transami'
40
- }
41
-
42
- release {
43
- host 'rubyforge.org'
44
- username 'transami'
45
- project 'reap'
46
- groupid '811'
47
- package 'Reap'
48
- dir '../DISTRIBUTION'
49
- }
50
-
51
- publish {
52
- type 'web'
53
- host 'rubyforge.org'
54
- username 'transami'
55
- dir 'web'
56
- }
57
-
58
- rdoc {
59
- dir 'web/doc/api'
60
- include [ 'A-Z*', 'lib/**/*' ]
61
- exclude [ 'lib/reap/data' ]
62
- }
63
-
64
- anncounce {
65
- to 'transfire@gmail.com' # ruby-talk@ruby-lang.org
66
- from 'transfire@gmail.com'
67
- domain 'unit.rubyforge.org'
68
- server 'smtp.gmail.com'
69
- port '587'
70
- account 'transfire@gmail.com'
71
- type 'login' # cram_md5, plain
72
- security 'tls' # ~, tls, ssl (not working yet)
73
- #file 'ANN' # which file contains announcement
74
- slogan 'REAP THE REWARDS!'
75
- links []
76
- }
77
-
78
- perm {
79
- filemod '644'
80
- dirmod '755'
81
- user 'trans'
82
- group 'users'
83
- }
84
-
85
- #noop {
86
- # message 'Hello Dude!'
87
- #}
88
-
@@ -1,118 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'rake'
4
- require 'reap/reap'
5
-
6
- # Load the project information file from standard location.
7
- # (Note that this sets the global variable $PROJECT_INFO.)
8
-
9
- ProjectInfo.load
10
-
11
- # If one wished this could do the following
12
- # instead of using an exteranl file.
13
-
14
- =begin
15
- ProjectInfo.new do
16
-
17
- title 'Reap'
18
- name 'reap'
19
- version '4.3.4'
20
- date '2006-04-07'
21
- created '2004-04-01'
22
- status 'beta/stable'
23
-
24
- author 'Thomas Sawyer'
25
- email 'transfire@gmail.com'
26
- homepage 'http://reap.rubyforge.org'
27
- summary 'Tools for Ruby project testing, management and assistance.'
28
-
29
- description %{
30
- Reap comprises a set of commonly needed tools for Ruby package
31
- developers/deployers. Because of the commonality,
32
- Reap utilizes a YAML configuration file to harvest project
33
- information, significantly simplifying usage.
34
- }
35
-
36
- distribute [ 'gem', 'deb', 'zip' ] # zip, tar.gz, tbz, tgz, deb
37
- dependencies [ 'facets' ]
38
- executables [ 'reap' ]
39
-
40
- package {
41
- dir '../DISTRIBUTION'
42
- distribute [ 'deb' ]
43
- exclude [ 'dist', 'dev', 'scrap', 'web' ]
44
- }
45
-
46
- rubyforge {
47
- project 'reap'
48
- username 'transami'
49
- }
50
-
51
- release {
52
- host 'rubyforge.org'
53
- username 'transami'
54
- project 'reap'
55
- groupid '811'
56
- package 'Reap'
57
- dir '../DISTRIBUTION'
58
- }
59
-
60
- publish {
61
- type 'web'
62
- host 'rubyforge.org'
63
- username 'transami'
64
- dir 'web'
65
- }
66
-
67
- rdoc {
68
- dir 'web/doc/api'
69
- include [ 'A-Z*', 'lib/**/*' ]
70
- exclude [ 'lib/reap/data' ]
71
- }
72
-
73
- announce {
74
- to 'transfire@gmail.com' # ruby-talk@ruby-lang.org
75
- from 'transfire@gmail.com'
76
- domain 'unit.rubyforge.org'
77
- server 'smtp.gmail.com'
78
- port '587'
79
- account 'transfire@gmail.com'
80
- type 'login' # cram_md5, plain
81
- security 'tls' # ~, tls, ssl (not working yet)
82
- #file 'ANN' # which file contains announcement
83
- slogan 'REAP THE REWARDS!'
84
- links []
85
- }
86
-
87
- end
88
- =end
89
-
90
- # Here's an exmaple of a task where the parameters
91
- # are set progamatically, like a regular Rake task
92
- # --instead of being pulled from the project info data.
93
- # Even so, the task can still look to the project info's
94
- # master (ie. root) level for any missing information.
95
-
96
- Rake::ReapPackage.new do |pkg|
97
- pkg.dir = '../DISTRIBUTION'
98
- pkg.distribute = [ 'tar.bz2', 'gem', 'deb' ]
99
- pkg.dependencies [ 'facets' ]
100
- pkg.executables [ 'reap' ]
101
- pkg.exclude = [ 'dist', 'dev', 'scrap', 'web' ]
102
- end
103
-
104
- # The easy way -- just setup the tasks to pull info
105
- # from the project information data/file.
106
-
107
- Rake::ReapAnnounce.new
108
- Rake::ReapExTest.new
109
- Rake::ReapTest.new
110
- Rake::ReapInstall.new
111
- Rake::ReapRelease.new
112
- Rake::ReapInfo.new
113
- Rake::ReapRDoc.new
114
- Rake::ReapDoap.new
115
- Rake::ReapPublish.new
116
- Rake::ReapManifest.new
117
-
118
-
@@ -1,69 +0,0 @@
1
- # Rakefile for xoxo-rb. -*-ruby-*-
2
- require 'rake/rdoctask'
3
- require 'rake/testtask'
4
-
5
-
6
- desc "Run all the tests"
7
- task :default => [:test]
8
-
9
- desc "Do predistribution stuff"
10
- task :predist => [:chmod, :changelog, :doc]
11
-
12
-
13
- desc "Run all the tests"
14
- Rake::TestTask.new do |t|
15
- t.libs << "test"
16
- t.test_files = FileList['test_*.rb']
17
- t.verbose = true
18
- end
19
-
20
- desc "Make an archive as .tar.gz"
21
- task :dist => :test do
22
- system "export DARCS_REPO=#{File.expand_path "."}; " +
23
- "darcs dist -d xoxo-rb#{get_darcs_tree_version}"
24
- end
25
-
26
- desc "Make binaries executable"
27
- task :chmod do
28
- Dir["bin/*"].each { |binary| File.chmod(0775, binary) }
29
- end
30
-
31
- desc "Generate a ChangeLog"
32
- task :changelog do
33
- system "darcs changes --repo=#{ENV["DARCS_REPO"] || "."} >ChangeLog"
34
- end
35
-
36
- desc "Generate RDoc documentation"
37
- Rake::RDocTask.new(:doc) do |rdoc|
38
- rdoc.options << '--line-numbers --inline-source'
39
- rdoc.rdoc_dir = "rdoc"
40
- rdoc.rdoc_files.include 'README'
41
- rdoc.rdoc_files.include 'xoxo.rb'
42
- end
43
-
44
-
45
- # Helper to retrieve the "revision number" of the darcs tree.
46
- def get_darcs_tree_version
47
- return "" unless File.directory? "_darcs"
48
-
49
- changes = `darcs changes`
50
- count = 0
51
- tag = "0.0"
52
-
53
- changes.each("\n\n") { |change|
54
- head, title, desc = change.split("\n", 3)
55
-
56
- if title =~ /^ \*/
57
- # Normal change.
58
- count += 1
59
- elsif title =~ /tagged (.*)/
60
- # Tag. We look for these.
61
- tag = $1
62
- break
63
- else
64
- warn "Unparsable change: #{change}"
65
- end
66
- }
67
-
68
- "-" + tag + "." + count.to_s
69
- end