reap 5.10.10 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (224) hide show
  1. data/COPYING +400 -8
  2. data/README +136 -75
  3. data/bin/reap +2 -2
  4. data/bin/rubytest +5 -0
  5. data/data/reap/scaffold/standard/COPYING +403 -0
  6. data/data/reap/scaffold/{ChangeLog → standard/ChangeLog} +0 -0
  7. data/data/reap/scaffold/standard/INSTALL +14 -0
  8. data/data/reap/scaffold/{ProjectInfo → standard/ProjectInfo} +23 -24
  9. data/data/reap/scaffold/standard/README +3 -0
  10. data/data/reap/scaffold/standard/Rakefile +10 -0
  11. data/{Rakefile → data/reap/scaffold/standard/TODO} +0 -0
  12. data/data/reap/scaffold/{setup.rb → standard/setup.rb} +287 -270
  13. data/data/reap/scaffold/subversion/trunk/COPYING +403 -0
  14. data/data/reap/scaffold/{INSTALL → subversion/trunk/ChangeLog} +0 -0
  15. data/data/reap/scaffold/subversion/trunk/INSTALL +14 -0
  16. data/data/reap/scaffold/subversion/trunk/ProjectInfo +76 -0
  17. data/data/reap/scaffold/subversion/trunk/README +3 -0
  18. data/data/reap/scaffold/subversion/trunk/Rakefile +10 -0
  19. data/data/reap/scaffold/{README → subversion/trunk/TODO} +0 -0
  20. data/data/reap/scaffold/subversion/trunk/setup.rb +1568 -0
  21. data/data/reap/setup.rb +1568 -0
  22. data/lib/reap/bin/reap.rb +176 -80
  23. data/lib/reap/bin/rubytest.rb +53 -0
  24. data/lib/reap/class/announce.rb +220 -0
  25. data/lib/reap/class/doap.rb +80 -0
  26. data/lib/reap/class/extest.rb +151 -0
  27. data/lib/reap/class/filer.rb +62 -0
  28. data/lib/reap/class/installer.rb +178 -0
  29. data/lib/reap/class/manifest.rb +72 -0
  30. data/lib/reap/class/package.rb +468 -0
  31. data/lib/reap/class/publish.rb +152 -0
  32. data/lib/reap/class/rdoc.rb +131 -0
  33. data/lib/reap/class/test.rb +269 -0
  34. data/lib/reap/projectinfo.rb +187 -30
  35. data/lib/reap/rake.rb +42 -0
  36. data/lib/reap/reap.rb +89 -0
  37. data/lib/reap/tasks.rb +672 -11
  38. data/lib/reap/taskutils.rb +122 -0
  39. data/sample/ProjectInfo +96 -0
  40. data/sample/Rakefile +9 -0
  41. data/sample/Reapfile +11 -0
  42. data/sample/task/demo.rb +15 -0
  43. data/setup.rb +287 -272
  44. metadata +99 -257
  45. data/ANN +0 -3
  46. data/ChangeLog +0 -25
  47. data/ProjectInfo +0 -65
  48. data/data/reap/scaffold/COPYING +0 -11
  49. data/data/reap/scaffold/Rakefile +0 -146
  50. data/data/reap/scaffold/Todo +0 -0
  51. data/dev/Rakefile +0 -60
  52. data/dev/composite_task.rb +0 -27
  53. data/dev/compositepublisher.rb +0 -24
  54. data/dev/ftptools.rb +0 -139
  55. data/dev/license-each.rb +0 -85
  56. data/dev/publisher.rb +0 -75
  57. data/dev/rubyforgepublisher.rb +0 -18
  58. data/dev/sshpublisher.rb +0 -47
  59. data/dev/suby-cvs.rb +0 -46
  60. data/dev/template.rb +0 -72
  61. data/lib/reap/lint.rb +0 -0
  62. data/lib/reap/readymade.rb +0 -21
  63. data/lib/reap/task.rb +0 -187
  64. data/lib/reap/task/announce.rb +0 -156
  65. data/lib/reap/task/fileperm.rb +0 -82
  66. data/lib/reap/task/info.rb +0 -20
  67. data/lib/reap/task/install.rb +0 -33
  68. data/lib/reap/task/noop.rb +0 -26
  69. data/lib/reap/task/package.rb +0 -204
  70. data/lib/reap/task/publish.rb +0 -49
  71. data/lib/reap/task/rdoc.rb +0 -82
  72. data/lib/reap/task/scaffold.rb +0 -114
  73. data/lib/reap/task/test.rb +0 -186
  74. data/lib/reap/task/testext.rb +0 -110
  75. data/lib/reap/task/webpublish.rb +0 -43
  76. data/lib/reap/test.rb +0 -138
  77. data/test/tc_reap.rb +0 -11
  78. data/web/ProjectInfo +0 -57
  79. data/web/images/appleboy.jpg +0 -0
  80. data/web/images/grape.jpg +0 -0
  81. data/web/index.html +0 -124
  82. data/web/rdoc/classes/Object.html +0 -121
  83. data/web/rdoc/classes/ProjectInfo.html +0 -207
  84. data/web/rdoc/classes/ProjectInfo.src/M000094.html +0 -18
  85. data/web/rdoc/classes/ProjectInfo.src/M000095.html +0 -24
  86. data/web/rdoc/classes/ProjectInfo.src/M000096.html +0 -22
  87. data/web/rdoc/classes/ProjectInfo.src/M000097.html +0 -21
  88. data/web/rdoc/classes/ProjectInfo.src/M000098.html +0 -18
  89. data/web/rdoc/classes/Reap.html +0 -248
  90. data/web/rdoc/classes/Reap.src/M000023.html +0 -16
  91. data/web/rdoc/classes/Reap.src/M000024.html +0 -21
  92. data/web/rdoc/classes/Reap.src/M000025.html +0 -16
  93. data/web/rdoc/classes/Reap.src/M000026.html +0 -21
  94. data/web/rdoc/classes/Reap/Announce.html +0 -262
  95. data/web/rdoc/classes/Reap/Announce.src/M000030.html +0 -18
  96. data/web/rdoc/classes/Reap/Announce.src/M000031.html +0 -114
  97. data/web/rdoc/classes/Reap/Announce.src/M000032.html +0 -46
  98. data/web/rdoc/classes/Reap/Info.html +0 -176
  99. data/web/rdoc/classes/Reap/Info.src/M000033.html +0 -18
  100. data/web/rdoc/classes/Reap/Info.src/M000034.html +0 -17
  101. data/web/rdoc/classes/Reap/Info.src/M000035.html +0 -18
  102. data/web/rdoc/classes/Reap/Install.html +0 -193
  103. data/web/rdoc/classes/Reap/Install.src/M000036.html +0 -18
  104. data/web/rdoc/classes/Reap/Install.src/M000037.html +0 -20
  105. data/web/rdoc/classes/Reap/Install.src/M000038.html +0 -26
  106. data/web/rdoc/classes/Reap/Noop.html +0 -192
  107. data/web/rdoc/classes/Reap/Noop.src/M000027.html +0 -18
  108. data/web/rdoc/classes/Reap/Noop.src/M000028.html +0 -17
  109. data/web/rdoc/classes/Reap/Noop.src/M000029.html +0 -18
  110. data/web/rdoc/classes/Reap/Package.html +0 -310
  111. data/web/rdoc/classes/Reap/Package.src/M000055.html +0 -18
  112. data/web/rdoc/classes/Reap/Package.src/M000056.html +0 -68
  113. data/web/rdoc/classes/Reap/Package.src/M000057.html +0 -84
  114. data/web/rdoc/classes/Reap/Package.src/M000058.html +0 -61
  115. data/web/rdoc/classes/Reap/Perm.html +0 -236
  116. data/web/rdoc/classes/Reap/Perm.src/M000078.html +0 -18
  117. data/web/rdoc/classes/Reap/Perm.src/M000079.html +0 -21
  118. data/web/rdoc/classes/Reap/Perm.src/M000080.html +0 -42
  119. data/web/rdoc/classes/Reap/Perm.src/M000081.html +0 -26
  120. data/web/rdoc/classes/Reap/Perm.src/M000082.html +0 -18
  121. data/web/rdoc/classes/Reap/Publish.html +0 -213
  122. data/web/rdoc/classes/Reap/Publish.src/M000070.html +0 -18
  123. data/web/rdoc/classes/Reap/Publish.src/M000071.html +0 -22
  124. data/web/rdoc/classes/Reap/Publish.src/M000072.html +0 -37
  125. data/web/rdoc/classes/Reap/RDoc.html +0 -218
  126. data/web/rdoc/classes/Reap/RDoc.src/M000059.html +0 -18
  127. data/web/rdoc/classes/Reap/RDoc.src/M000060.html +0 -24
  128. data/web/rdoc/classes/Reap/RDoc.src/M000061.html +0 -70
  129. data/web/rdoc/classes/Reap/Task.html +0 -396
  130. data/web/rdoc/classes/Reap/Task.src/M000039.html +0 -18
  131. data/web/rdoc/classes/Reap/Task.src/M000040.html +0 -16
  132. data/web/rdoc/classes/Reap/Task.src/M000041.html +0 -16
  133. data/web/rdoc/classes/Reap/Task.src/M000042.html +0 -16
  134. data/web/rdoc/classes/Reap/Task.src/M000043.html +0 -16
  135. data/web/rdoc/classes/Reap/Task.src/M000044.html +0 -22
  136. data/web/rdoc/classes/Reap/Task.src/M000045.html +0 -16
  137. data/web/rdoc/classes/Reap/Task.src/M000046.html +0 -16
  138. data/web/rdoc/classes/Reap/Task.src/M000047.html +0 -16
  139. data/web/rdoc/classes/Reap/Task.src/M000048.html +0 -16
  140. data/web/rdoc/classes/Reap/Task.src/M000049.html +0 -16
  141. data/web/rdoc/classes/Reap/Task.src/M000050.html +0 -27
  142. data/web/rdoc/classes/Reap/Task.src/M000051.html +0 -19
  143. data/web/rdoc/classes/Reap/Task.src/M000052.html +0 -18
  144. data/web/rdoc/classes/Reap/Task.src/M000053.html +0 -18
  145. data/web/rdoc/classes/Reap/Task.src/M000054.html +0 -19
  146. data/web/rdoc/classes/Reap/Test.html +0 -253
  147. data/web/rdoc/classes/Reap/Test.src/M000062.html +0 -18
  148. data/web/rdoc/classes/Reap/Test.src/M000063.html +0 -26
  149. data/web/rdoc/classes/Reap/Test.src/M000064.html +0 -77
  150. data/web/rdoc/classes/Reap/Test.src/M000065.html +0 -27
  151. data/web/rdoc/classes/Reap/Test.src/M000066.html +0 -50
  152. data/web/rdoc/classes/Reap/Test/TestResults.html +0 -205
  153. data/web/rdoc/classes/Reap/Test/TestResults.src/M000067.html +0 -21
  154. data/web/rdoc/classes/Reap/Test/TestResults.src/M000068.html +0 -21
  155. data/web/rdoc/classes/Reap/Test/TestResults.src/M000069.html +0 -23
  156. data/web/rdoc/classes/Reap/TestExt.html +0 -234
  157. data/web/rdoc/classes/Reap/TestExt.src/M000073.html +0 -18
  158. data/web/rdoc/classes/Reap/TestExt.src/M000074.html +0 -20
  159. data/web/rdoc/classes/Reap/TestExt.src/M000075.html +0 -49
  160. data/web/rdoc/classes/Reap/TestExt.src/M000076.html +0 -34
  161. data/web/rdoc/classes/Reap/TestExt.src/M000077.html +0 -27
  162. data/web/rdoc/classes/Reap/WebPublish.html +0 -213
  163. data/web/rdoc/classes/Reap/WebPublish.src/M000083.html +0 -18
  164. data/web/rdoc/classes/Reap/WebPublish.src/M000084.html +0 -21
  165. data/web/rdoc/classes/Reap/WebPublish.src/M000085.html +0 -32
  166. data/web/rdoc/classes/ReapCommand.html +0 -425
  167. data/web/rdoc/classes/ReapCommand.src/M000001.html +0 -16
  168. data/web/rdoc/classes/ReapCommand.src/M000003.html +0 -16
  169. data/web/rdoc/classes/ReapCommand.src/M000005.html +0 -16
  170. data/web/rdoc/classes/ReapCommand.src/M000007.html +0 -16
  171. data/web/rdoc/classes/ReapCommand.src/M000009.html +0 -16
  172. data/web/rdoc/classes/ReapCommand.src/M000011.html +0 -16
  173. data/web/rdoc/classes/ReapCommand.src/M000013.html +0 -18
  174. data/web/rdoc/classes/ReapCommand.src/M000014.html +0 -19
  175. data/web/rdoc/classes/ReapCommand.src/M000015.html +0 -19
  176. data/web/rdoc/classes/ReapCommand.src/M000016.html +0 -24
  177. data/web/rdoc/classes/ReapCommand.src/M000018.html +0 -29
  178. data/web/rdoc/classes/Scaffold.html +0 -211
  179. data/web/rdoc/classes/Scaffold.src/M000086.html +0 -16
  180. data/web/rdoc/classes/Scaffold.src/M000087.html +0 -28
  181. data/web/rdoc/classes/Scaffold.src/M000088.html +0 -32
  182. data/web/rdoc/classes/Scaffold.src/M000089.html +0 -18
  183. data/web/rdoc/classes/UnitTestKernel.html +0 -176
  184. data/web/rdoc/classes/UnitTestKernel.src/M000019.html +0 -18
  185. data/web/rdoc/classes/UnitTestKernel.src/M000020.html +0 -18
  186. data/web/rdoc/classes/UnitTestKernel.src/M000021.html +0 -22
  187. data/web/rdoc/classes/UnitTestKernel.src/M000022.html +0 -22
  188. data/web/rdoc/classes/UnitTesting.html +0 -165
  189. data/web/rdoc/classes/UnitTesting.src/M000090.html +0 -34
  190. data/web/rdoc/classes/UnitTesting.src/M000091.html +0 -18
  191. data/web/rdoc/classes/UnitTesting/Failure.html +0 -156
  192. data/web/rdoc/classes/UnitTesting/Failure.src/M000092.html +0 -18
  193. data/web/rdoc/classes/UnitTesting/Failure.src/M000093.html +0 -21
  194. data/web/rdoc/created.rid +0 -1
  195. data/web/rdoc/files/ANN.html +0 -107
  196. data/web/rdoc/files/COPYING.html +0 -119
  197. data/web/rdoc/files/ChangeLog.html +0 -144
  198. data/web/rdoc/files/ProjectInfo.html +0 -190
  199. data/web/rdoc/files/README.html +0 -274
  200. data/web/rdoc/files/Rakefile.html +0 -101
  201. data/web/rdoc/files/lib/reap/bin/reap_rb.html +0 -129
  202. data/web/rdoc/files/lib/reap/lint_rb.html +0 -101
  203. data/web/rdoc/files/lib/reap/projectinfo_rb.html +0 -110
  204. data/web/rdoc/files/lib/reap/readymade_rb.html +0 -123
  205. data/web/rdoc/files/lib/reap/task/announce_rb.html +0 -114
  206. data/web/rdoc/files/lib/reap/task/fileperm_rb.html +0 -108
  207. data/web/rdoc/files/lib/reap/task/info_rb.html +0 -108
  208. data/web/rdoc/files/lib/reap/task/install_rb.html +0 -108
  209. data/web/rdoc/files/lib/reap/task/noop_rb.html +0 -108
  210. data/web/rdoc/files/lib/reap/task/package_rb.html +0 -109
  211. data/web/rdoc/files/lib/reap/task/publish_rb.html +0 -108
  212. data/web/rdoc/files/lib/reap/task/rdoc_rb.html +0 -108
  213. data/web/rdoc/files/lib/reap/task/scaffold_rb.html +0 -107
  214. data/web/rdoc/files/lib/reap/task/test_rb.html +0 -110
  215. data/web/rdoc/files/lib/reap/task/testext_rb.html +0 -109
  216. data/web/rdoc/files/lib/reap/task/webpublish_rb.html +0 -108
  217. data/web/rdoc/files/lib/reap/task_rb.html +0 -120
  218. data/web/rdoc/files/lib/reap/tasks_rb.html +0 -116
  219. data/web/rdoc/files/lib/reap/test_rb.html +0 -109
  220. data/web/rdoc/fr_class_index.html +0 -47
  221. data/web/rdoc/fr_file_index.html +0 -51
  222. data/web/rdoc/fr_method_index.html +0 -124
  223. data/web/rdoc/index.html +0 -24
  224. data/web/rdoc/rdoc-style.css +0 -208
@@ -1,75 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- # Copyright 2003, 2004 by Jim Weirich (jim@weirichhouse.org)
4
- # All rights reserved.
5
-
6
- # Permission is granted for use, copying, modification, distribution,
7
- # and distribution of modified versions of this work as long as the
8
- # above copyright notice is included.
9
-
10
- # Configuration information about an upload host system.
11
- # * name :: Name of host system.
12
- # * webdir :: Base directory for the web information for the
13
- # application. The application name (APP) is appended to
14
- # this directory before using.
15
- # * pkgdir :: Directory on the host system where packages can be
16
- # placed.
17
- HostInfo = Struct.new(:name, :webdir, :pkgdir)
18
-
19
- # Manage several publishers as a single entity.
20
- class CompositePublisher
21
- def initialize
22
- @publishers = []
23
- end
24
-
25
- # Add a publisher to the composite.
26
- def add(pub)
27
- @publishers << pub
28
- end
29
-
30
- # Upload all the individual publishers.
31
- def upload
32
- @publishers.each { |p| p.upload }
33
- end
34
- end
35
-
36
- # Publish an entire directory to an existing remote directory using
37
- # SSH.
38
- class SshDirPublisher
39
- def initialize(host, remote_dir, local_dir)
40
- @host = host
41
- @remote_dir = remote_dir
42
- @local_dir = local_dir
43
- end
44
-
45
- def upload
46
- run %{scp -rq #{@local_dir}/* #{@host}:#{@remote_dir}}
47
- end
48
- end
49
-
50
- # Publish an entire directory to a fresh remote directory using SSH.
51
- class SshFreshDirPublisher < SshDirPublisher
52
- def upload
53
- run %{ssh #{@host} rm -rf #{@remote_dir}} rescue nil
54
- run %{ssh #{@host} mkdir #{@remote_dir}}
55
- super
56
- end
57
- end
58
-
59
- # Publish a list of files to an existing remote directory.
60
- class SshFilePublisher
61
- # Create a publisher using the give host information.
62
- def initialize(host, remote_dir, local_dir, *files)
63
- @host = host
64
- @remote_dir = remote_dir
65
- @local_dir = local_dir
66
- @files = files
67
- end
68
-
69
- # Upload the local directory to the remote directory.
70
- def upload
71
- @files.each do |fn|
72
- run %{scp -q #{@local_dir}/#{fn} #{@host}:#{@remote_dir}}
73
- end
74
- end
75
- end
@@ -1,18 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'rake/contrib/sshpublisher'
4
-
5
- module Rake
6
-
7
- class RubyForgePublisher < SshDirPublisher
8
- attr_reader :project, :proj_id, :user
9
-
10
- def initialize(projname, user)
11
- super(
12
- "#{user}@rubyforge.org",
13
- "/var/www/gforge-projects/#{projname}",
14
- "html")
15
- end
16
- end
17
-
18
- end
@@ -1,47 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'rake/contrib/compositepublisher'
4
-
5
- module Rake
6
-
7
- # Publish an entire directory to an existing remote directory using
8
- # SSH.
9
- class SshDirPublisher
10
- def initialize(host, remote_dir, local_dir)
11
- @host = host
12
- @remote_dir = remote_dir
13
- @local_dir = local_dir
14
- end
15
-
16
- def upload
17
- sh %{scp -rq #{@local_dir}/* #{@host}:#{@remote_dir}}
18
- end
19
- end
20
-
21
- # Publish an entire directory to a fresh remote directory using SSH.
22
- class SshFreshDirPublisher < SshDirPublisher
23
- def upload
24
- sh %{ssh #{@host} rm -rf #{@remote_dir}} rescue nil
25
- sh %{ssh #{@host} mkdir #{@remote_dir}}
26
- super
27
- end
28
- end
29
-
30
- # Publish a list of files to an existing remote directory.
31
- class SshFilePublisher
32
- # Create a publisher using the give host information.
33
- def initialize(host, remote_dir, local_dir, *files)
34
- @host = host
35
- @remote_dir = remote_dir
36
- @local_dir = local_dir
37
- @files = files
38
- end
39
-
40
- # Upload the local directory to the remote directory.
41
- def upload
42
- @files.each do |fn|
43
- sh %{scp -q #{@local_dir}/#{fn} #{@host}:#{@remote_dir}}
44
- end
45
- end
46
- end
47
- end
@@ -1,46 +0,0 @@
1
- #!/usr/bin/ruby
2
-
3
- DEBUG = false
4
- URI = "-dtransami@cvs.suby.berlios.de:/cvsroot/suby"
5
-
6
- cmd = nil
7
-
8
- case ARGV[0]
9
- when 'checkout', 'co'
10
- if ARGV[1] and ARGV[1] != ''
11
- cmd = %Q{cvs -z3 #{URI} co "#{ARGV[1]}"}
12
- else
13
- puts "no module given"
14
- cmd = nil
15
- end
16
- when 'commit'
17
- if ARGV[1] and ARGV[1] != ''
18
- cmd = %Q{cvs -z3 #{URI} commit -m "#{ARGV[1]}"}
19
- else
20
- puts "no commit message given"
21
- cmd = nil
22
- end
23
- when 'update'
24
- cmd = %Q{cvs -z3 #{URI} update}
25
- when 'add'
26
- if ARGV[1]
27
- cmd = %Q{cvs -z3 #{URI} add #{ARGV[1..-1].join(' ')}}
28
- else
29
- puts "no files given to add"
30
- cmd = nil
31
- end
32
- when 'remove'
33
- if ARGV[1]
34
- cmd = %Q{cvs -z3 #{URI} remove #{ARGV[1..-1].join(' ')}}
35
- else
36
- puts "no file given to remove"
37
- cmd = nil
38
- end
39
- end
40
-
41
- if DEBUG
42
- puts cmd
43
- elsif cmd
44
- `#{cmd}`
45
- end
46
-
@@ -1,72 +0,0 @@
1
- --- %YAML:1.0
2
-
3
- TITLE: &title Your Package
4
- NAME: &pkg your_package_name
5
- VERSION: '0.0.1'
6
- AUTHOR: Your Name
7
- EMAIL: &email youremail@address.com
8
- HOMEPAGE: "http://your_package_name.rubyforge.org"
9
- SUMMARY: One line summary
10
- DESCRIPTION: >
11
- Multline description goes here.
12
-
13
- RUBYFORGE:
14
- PROJECT: 'your_project_name'
15
- USERNAME: your_rubyforge_username
16
-
17
- TEST:
18
- FILES:
19
- - 'test/**/tc_*.rb'
20
- OPTIONS: ~
21
-
22
- RDOC:
23
- TITLE: *title
24
- DIR: 'doc' #'rdoc'
25
- TEMPLATE: html #ruby-red
26
- OPTIONS: ['--merge', '--promiscuous', '--all']
27
- MAIN: README
28
- INCLUDE:
29
- - 'README'
30
- - 'LICEN*'
31
- - 'lib/**/*.rb'
32
- - 'bin/**/*.rb'
33
- EXCLUDE: []
34
-
35
- PACKAGE:
36
- DIR: pkg
37
- INCLUDE:
38
- - 'lib/**/*'
39
- - 'bin/**/*'
40
- - 'bench/**/*'
41
- - 'test/**/*'
42
- - 'doc/**/*'
43
- - 'rdoc/**/*'
44
- - 'pub/**/*'
45
- - 'www/**/*'
46
- - 'demo/**/*'
47
- - 'samples/**/*'
48
- - 'examples/**/*'
49
- - 'setup.rb'
50
- - '[A-Z]*'
51
- EXCLUDE:
52
- - InstalledFiles
53
- ZIP: true
54
- GZIP: true
55
- BZIP2: true
56
-
57
- ANNOUNCE:
58
- TO: ruby-talk@ruby-lang.org
59
- FROM: *email
60
- DOMAIN: your_domain.net
61
- SERVER: smtp.your_email_server.com
62
- PORT: 25
63
- ACCOUNT: email_account_name
64
- AUTHTYPE: login #cram_md5 #plain
65
- FILE: ANN #which file contains tha announcement text
66
- SLOGAN: ALL YOUR BASE ARE BELONG TO RUBY!
67
- INFO:
68
- - http://your_homepage.org
69
-
70
- GEMSPEC:
71
- ACTIVE: true
72
-
File without changes
@@ -1,21 +0,0 @@
1
-
2
- # This loads in the reap tasks and setsup
3
- # some tasks that are typically ready to go
4
- # without additional paramaters.
5
-
6
- require 'reap/task/announce'
7
- require 'reap/task/extract_tests'
8
- require 'reap/task/fileperm'
9
- require 'reap/task/info'
10
- require 'reap/task/install'
11
- require 'reap/task/package'
12
- require 'reap/task/publish'
13
- require 'reap/task/rdoc'
14
- require 'reap/task/test'
15
-
16
- rdoc_task( :rdoc )
17
- tests_task( :test )
18
- install_task( :install )
19
- info_task( :info )
20
- package_task( :package )
21
- extract_tests_task( :exttests )
@@ -1,187 +0,0 @@
1
-
2
- require 'rbconfig'
3
- require 'fileutils'
4
-
5
- require 'facet/fileutils/safe_ln'
6
- require 'facet/string/tabto'
7
- require 'facet/module/basename'
8
-
9
- require 'carat/filelist'
10
-
11
- require 'reap/projectinfo'
12
-
13
- # Base class for reap tasks.
14
- #
15
- # Here's an oh so simple example:
16
- #
17
- # class MyTask < Reap::Task
18
- #
19
- # register 'mytask'
20
- #
21
- # default_desc 'this is a custom reap task'
22
- #
23
- # attr_accessor :message
24
- #
25
- # def init
26
- # @message ||= master['default'] || 'None Found!'
27
- # end
28
- #
29
- # def run
30
- # puts @message
31
- # end
32
- # end
33
- #
34
- # The corresponding settings in the ProjectInfo file will then be:
35
- #
36
- # default: Default text, if any.
37
- #
38
- # myname:
39
- # TASK: mytask
40
- # message: Message text, if any.
41
- #
42
- module Reap
43
-
44
- def self.registry ; @registry ; end
45
-
46
- def self.register
47
- @registry ||= {}
48
- ObjectSpace.each_object(Class) { |klass|
49
- if klass < ::Reap::Task
50
- if klass.verify
51
- @registry[klass.basename.downcase] = klass
52
- end
53
- end
54
- }
55
- end
56
-
57
- def self.tasks ; @tasks ; end
58
-
59
- def self.initialize
60
- @tasks ||= {}
61
- registry.each do |name, klass|
62
- @tasks[name] = klass.new
63
- end
64
- end
65
-
66
-
67
- class Task
68
-
69
- include ::Config
70
- include ::FileUtils
71
-
72
- RUBY = CONFIG['ruby_install_name']
73
-
74
- # class methods
75
-
76
- def self.task_desc ; '(no desciption given)' ; end
77
- def self.task_name ; basename.downcase ; end
78
-
79
- def self.section_required( val ) ; @section_required = val ;end
80
- def self.section_required? ; @section_required ; end
81
-
82
- def self.verify
83
- assume = true
84
- if section_required?
85
- assume = ::ProjectInfo.info.key?(task_name)
86
- end
87
- assume
88
- end
89
-
90
- # instance methods
91
-
92
- def task_name ; self.class.task_name ; end
93
- def task_desc ; self.class.task_desc ; end
94
-
95
- def master ; ::ProjectInfo.info ; end
96
-
97
- def section ; @section ; end
98
-
99
- def section_required? ; self.class.section_required? ; end
100
-
101
- def initialize
102
- sect = master[task_name]
103
- if sect.is_a?(Array)
104
- sect.each do |s|
105
- section_parameters_set( s )
106
- init
107
- end
108
- else
109
- section_parameters_set( sect || {} )
110
- init
111
- end
112
- end
113
-
114
- def section_parameters_set( s )
115
- @section = s
116
- @section.each { |k,v| send("#{k}=", v) }
117
- end
118
-
119
- def init
120
- raise "not implemented for '#{task_name}' task"
121
- end
122
-
123
- def run( *args )
124
- raise "no action defined for task #{task_name}"
125
- end
126
-
127
- # task support methods
128
-
129
- def sh( arg )
130
- puts arg
131
- system arg unless $PRETEND
132
- end
133
-
134
- # o = nil
135
- # o = yld.call(self) if yld
136
- # if String === o
137
- # begin
138
- # section( o ).each { |k,v| send("#{k}=", v ) }
139
- # end
140
- # end
141
- #
142
- # init
143
- #
144
- # task_name ||= default_name
145
- # task_desc = @desc || default_desc
146
- #
147
- # if subtask
148
- # desc task_desc
149
- # task task_name => subtask do
150
- # run
151
- # end
152
- # else
153
- # desc task_desc
154
- # task task_name do
155
- # run
156
- # end
157
- # end
158
- # end
159
-
160
- end #class Task
161
-
162
- end #module Reap
163
-
164
-
165
- ##
166
- # Convenience methods for built-in rake tasks
167
- ##
168
- # module RakeTask
169
- # extend self
170
- #
171
- # def gem_package_task(*args,&blk)
172
- # ::Rake::GemPackageTask.new(*args,&blk)
173
- # end
174
- #
175
- # def package_task(*args,&blk)
176
- # ::Rake::PackageTask.new(*args,&blk)
177
- # end
178
- #
179
- # def test_task(*args,&blk)
180
- # ::Rake::TestTask.new(*args,&blk)
181
- # end
182
- #
183
- # def rdoc_task(*args,&blk)
184
- # ::Rake::RDocTask.new(*args,&blk)
185
- # end
186
- #
187
- # end