reap 0.6.1 → 3.01
Sign up to get free protection for your applications and to get access to all the features.
- data/{ANN-0.6.1 → ANN} +0 -0
- data/ChangeLog +19 -8
- data/ProjectInfo +25 -0
- data/README +76 -11
- data/Rakefile +139 -17
- data/bin/reap +159 -0
- data/lib/reap/{announce-task.rb → announce_task.rb} +43 -41
- data/lib/reap/{chmod-task.rb → filemod_task.rb} +24 -20
- data/lib/reap/info_task.rb +29 -0
- data/lib/reap/noop_task.rb +35 -0
- data/lib/reap/{package-task.rb → package_task.rb} +63 -43
- data/lib/reap/projectinfo.rb +40 -0
- data/lib/reap/{publish-task.rb → publish_task.rb} +21 -17
- data/lib/reap/{rdoc-task.rb → rdoc_task.rb} +24 -19
- data/lib/reap/ready_made.rb +12 -0
- data/lib/reap/task.rb +89 -162
- data/lib/reap/tasks.rb +9 -0
- data/lib/reap/{test-task.rb → test_task.rb} +35 -15
- data/lib/reap/web_publish_task.rb +49 -0
- data/pub/grape.jpg +0 -0
- data/pub/www/index.html +61 -21
- data/pub/www/rdoc/classes/ProjectInfo.html +207 -0
- data/pub/www/rdoc/classes/ProjectInfo.src/M000055.html +18 -0
- data/pub/www/rdoc/classes/ProjectInfo.src/M000056.html +23 -0
- data/pub/www/rdoc/classes/ProjectInfo.src/M000057.html +18 -0
- data/pub/www/rdoc/classes/ProjectInfo.src/M000058.html +21 -0
- data/pub/www/rdoc/classes/ProjectInfo.src/M000059.html +18 -0
- data/pub/www/rdoc/classes/RakeTask.html +182 -0
- data/pub/www/rdoc/classes/RakeTask.src/M000051.html +18 -0
- data/pub/www/rdoc/classes/RakeTask.src/M000052.html +18 -0
- data/pub/www/rdoc/classes/RakeTask.src/M000053.html +18 -0
- data/pub/www/rdoc/classes/RakeTask.src/M000054.html +18 -0
- data/pub/www/rdoc/classes/Reap.html +57 -4
- data/pub/www/rdoc/classes/Reap/AnnounceTask.html +140 -14
- data/pub/www/rdoc/classes/Reap/AnnounceTask.src/M000039.html +16 -0
- data/pub/www/rdoc/classes/Reap/{TemplateTask.src/M000021.html → AnnounceTask.src/M000040.html} +4 -4
- data/pub/www/rdoc/classes/Reap/AnnounceTask.src/{M000031.html → M000041.html} +34 -34
- data/pub/www/rdoc/classes/Reap/AnnounceTask.src/{M000032.html → M000042.html} +1 -1
- data/pub/www/rdoc/classes/Reap/FilemodTask.html +254 -0
- data/pub/www/rdoc/classes/Reap/FilemodTask.src/M000027.html +16 -0
- data/pub/www/rdoc/classes/Reap/FilemodTask.src/M000028.html +18 -0
- data/pub/www/rdoc/classes/Reap/FilemodTask.src/M000029.html +21 -0
- data/pub/www/rdoc/classes/Reap/{ChmodTask.src/M000017.html → FilemodTask.src/M000030.html} +3 -3
- data/pub/www/rdoc/classes/Reap/{ChmodTask.src/M000018.html → FilemodTask.src/M000031.html} +2 -2
- data/pub/www/rdoc/classes/Reap/FilemodTask.src/M000032.html +18 -0
- data/pub/www/rdoc/classes/Reap/{TemplateTask.html → InfoTask.html} +46 -34
- data/pub/www/rdoc/classes/Reap/InfoTask.src/M000047.html +16 -0
- data/pub/www/rdoc/classes/Reap/{Task.src/M000026.html → InfoTask.src/M000048.html} +4 -4
- data/pub/www/rdoc/classes/Reap/{Task.src/M000025.html → InfoTask.src/M000049.html} +2 -3
- data/pub/www/rdoc/classes/Reap/InfoTask.src/M000050.html +18 -0
- data/pub/www/rdoc/classes/Reap/NoopTask.html +210 -0
- data/pub/www/rdoc/classes/Reap/NoopTask.src/M000043.html +16 -0
- data/pub/www/rdoc/classes/Reap/NoopTask.src/M000044.html +18 -0
- data/pub/www/rdoc/classes/Reap/{Task.src/M000028.html → NoopTask.src/M000045.html} +4 -3
- data/pub/www/rdoc/classes/Reap/NoopTask.src/M000046.html +18 -0
- data/pub/www/rdoc/classes/Reap/PackageTask.html +179 -22
- data/pub/www/rdoc/classes/Reap/PackageTask.src/M000005.html +16 -0
- data/pub/www/rdoc/classes/Reap/PackageTask.src/M000006.html +24 -0
- data/pub/www/rdoc/classes/Reap/PackageTask.src/M000007.html +53 -0
- data/pub/www/rdoc/classes/Reap/PackageTask.src/{M000002.html → M000008.html} +3 -4
- data/pub/www/rdoc/classes/Reap/PackageTask.src/{M000003.html → M000009.html} +1 -1
- data/pub/www/rdoc/classes/Reap/PublishTask.html +85 -14
- data/pub/www/rdoc/classes/Reap/PublishTask.src/M000023.html +16 -0
- data/pub/www/rdoc/classes/Reap/PublishTask.src/M000024.html +18 -0
- data/pub/www/rdoc/classes/Reap/PublishTask.src/M000025.html +22 -0
- data/pub/www/rdoc/classes/Reap/PublishTask.src/{M000020.html → M000026.html} +2 -2
- data/pub/www/rdoc/classes/Reap/RDocTask.html +37 -21
- data/pub/www/rdoc/classes/Reap/RDocTask.src/M000001.html +16 -0
- data/pub/www/rdoc/classes/Reap/RDocTask.src/M000002.html +18 -0
- data/pub/www/rdoc/classes/Reap/RDocTask.src/M000003.html +25 -0
- data/pub/www/rdoc/classes/Reap/RDocTask.src/M000004.html +39 -10
- data/pub/www/rdoc/classes/Reap/Task.html +44 -124
- data/pub/www/rdoc/classes/Reap/Task.src/M000033.html +21 -0
- data/pub/www/rdoc/classes/Reap/Task.src/{M000030.html → M000034.html} +4 -5
- data/pub/www/rdoc/classes/Reap/Task.src/M000035.html +41 -0
- data/pub/www/rdoc/classes/Reap/Task.src/M000036.html +16 -0
- data/pub/www/rdoc/classes/Reap/Task.src/M000037.html +18 -0
- data/pub/www/rdoc/classes/Reap/Task.src/M000038.html +19 -0
- data/pub/www/rdoc/classes/Reap/TestTask.html +66 -32
- data/pub/www/rdoc/classes/Reap/TestTask.src/M000014.html +16 -0
- data/pub/www/rdoc/classes/Reap/TestTask.src/M000015.html +18 -0
- data/pub/www/rdoc/classes/Reap/TestTask.src/M000016.html +25 -0
- data/pub/www/rdoc/classes/Reap/TestTask.src/{M000009.html → M000017.html} +5 -5
- data/pub/www/rdoc/classes/Reap/TestTask.src/{M000010.html → M000018.html} +3 -3
- data/pub/www/rdoc/classes/Reap/TestTask.src/{M000011.html → M000019.html} +1 -1
- data/pub/www/rdoc/classes/Reap/TestTask/TestResults.html +17 -17
- data/pub/www/rdoc/classes/Reap/TestTask/TestResults.src/{M000012.html → M000020.html} +1 -1
- data/pub/www/rdoc/classes/Reap/TestTask/TestResults.src/{M000013.html → M000021.html} +1 -1
- data/pub/www/rdoc/classes/Reap/TestTask/TestResults.src/{M000014.html → M000022.html} +1 -1
- data/pub/www/rdoc/classes/Reap/{ChmodTask.html → WebPublishTask.html} +46 -35
- data/pub/www/rdoc/classes/Reap/WebPublishTask.src/M000010.html +16 -0
- data/pub/www/rdoc/classes/Reap/WebPublishTask.src/M000011.html +18 -0
- data/pub/www/rdoc/classes/Reap/WebPublishTask.src/M000012.html +21 -0
- data/pub/www/rdoc/classes/Reap/WebPublishTask.src/M000013.html +32 -0
- data/pub/www/rdoc/classes/ReapTask.html +287 -0
- data/pub/www/rdoc/classes/ReapTask.src/M000060.html +18 -0
- data/pub/www/rdoc/classes/ReapTask.src/M000061.html +18 -0
- data/pub/www/rdoc/classes/ReapTask.src/M000062.html +18 -0
- data/pub/www/rdoc/classes/ReapTask.src/M000063.html +18 -0
- data/pub/www/rdoc/classes/ReapTask.src/M000064.html +18 -0
- data/pub/www/rdoc/classes/ReapTask.src/M000065.html +18 -0
- data/pub/www/rdoc/classes/ReapTask.src/M000066.html +18 -0
- data/pub/www/rdoc/classes/ReapTask.src/M000067.html +18 -0
- data/pub/www/rdoc/classes/ReapTask.src/M000068.html +18 -0
- data/pub/www/rdoc/created.rid +1 -1
- data/pub/www/rdoc/files/{lib/reap2/publish-task_rb.html → LICENSE.html} +19 -7
- data/pub/www/rdoc/files/README.html +271 -0
- data/pub/www/rdoc/files/lib/{reap2/announce-task_rb.html → reap/announce_task_rb.html} +5 -4
- data/pub/www/rdoc/files/lib/{reap2/template-task_rb.html → reap/filemod_task_rb.html} +5 -5
- data/pub/www/rdoc/files/lib/{reap2/rdoc-task_rb.html → reap/info_task_rb.html} +5 -5
- data/pub/www/rdoc/files/lib/{reap2/chmod-task_rb.html → reap/noop_task_rb.html} +5 -5
- data/pub/www/rdoc/files/lib/{reap2/package-task_rb.html → reap/package_task_rb.html} +5 -4
- data/pub/www/rdoc/files/lib/reap/projectinfo_rb.html +111 -0
- data/pub/www/rdoc/files/lib/reap/publish_task_rb.html +108 -0
- data/pub/www/rdoc/files/lib/reap/rdoc_task_rb.html +108 -0
- data/pub/www/rdoc/files/lib/reap/ready_made_rb.html +115 -0
- data/pub/www/rdoc/files/lib/{reap2 → reap}/task_rb.html +5 -6
- data/pub/www/rdoc/files/lib/reap/tasks_rb.html +115 -0
- data/pub/www/rdoc/files/lib/{reap2/test-task_rb.html → reap/test_task_rb.html} +5 -10
- data/pub/www/rdoc/files/lib/reap/web_publish_task_rb.html +108 -0
- data/pub/www/rdoc/fr_class_index.html +7 -2
- data/pub/www/rdoc/fr_file_index.html +15 -9
- data/pub/www/rdoc/fr_method_index.html +68 -32
- data/pub/www/rdoc/index.html +1 -1
- data/test/tc_reap.rb +1 -1
- metadata +126 -58
- data/Reapfile +0 -99
- data/lib/reap/reap-all.rb +0 -15
- data/lib/reap/template-task.rb +0 -40
- data/pub/www/rdoc/classes/Reap/ChmodTask.src/M000015.html +0 -21
- data/pub/www/rdoc/classes/Reap/ChmodTask.src/M000016.html +0 -21
- data/pub/www/rdoc/classes/Reap/PackageTask.src/M000001.html +0 -49
- data/pub/www/rdoc/classes/Reap/PublishTask.src/M000019.html +0 -24
- data/pub/www/rdoc/classes/Reap/RDocTask.src/M000005.html +0 -21
- data/pub/www/rdoc/classes/Reap/RDocTask.src/M000006.html +0 -53
- data/pub/www/rdoc/classes/Reap/Task.src/M000024.html +0 -21
- data/pub/www/rdoc/classes/Reap/Task.src/M000027.html +0 -28
- data/pub/www/rdoc/classes/Reap/Task.src/M000029.html +0 -18
- data/pub/www/rdoc/classes/Reap/TemplateTask.src/M000022.html +0 -21
- data/pub/www/rdoc/classes/Reap/TemplateTask.src/M000023.html +0 -34
- data/pub/www/rdoc/classes/Reap/TestTask.src/M000007.html +0 -25
- data/pub/www/rdoc/classes/Reap/TestTask.src/M000008.html +0 -21
- data/pub/www/rdoc/files/lib/reap2/reap-all_rb.html +0 -110
@@ -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>filemod_task (ReapTask)</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/filemod_task.rb, line 5</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">filemod_task</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>,<span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
15
|
+
<span class="ruby-operator">::</span><span class="ruby-constant">Reap</span><span class="ruby-operator">::</span><span class="ruby-constant">FilemodTask</span>.<span class="ruby-identifier">new</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>,<span class="ruby-operator">&</span><span class="ruby-identifier">blk</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>info_task (ReapTask)</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/info_task.rb, line 5</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">info_task</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>,<span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
15
|
+
<span class="ruby-operator">::</span><span class="ruby-constant">Reap</span><span class="ruby-operator">::</span><span class="ruby-constant">InfoTask</span>.<span class="ruby-identifier">new</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>,<span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
data/pub/www/rdoc/created.rid
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
Sat Sep 03 11:40:22 EDT 2005
|
@@ -5,10 +5,10 @@
|
|
5
5
|
|
6
6
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
7
|
<head>
|
8
|
-
<title>File:
|
8
|
+
<title>File: LICENSE</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
|
-
<link rel="stylesheet" href="
|
11
|
+
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
12
12
|
<script type="text/javascript">
|
13
13
|
// <![CDATA[
|
14
14
|
|
@@ -47,16 +47,16 @@
|
|
47
47
|
|
48
48
|
|
49
49
|
<div id="fileHeader">
|
50
|
-
<h1>
|
50
|
+
<h1>LICENSE</h1>
|
51
51
|
<table class="header-table">
|
52
52
|
<tr class="top-aligned-row">
|
53
53
|
<td><strong>Path:</strong></td>
|
54
|
-
<td>
|
54
|
+
<td>LICENSE
|
55
55
|
</td>
|
56
56
|
</tr>
|
57
57
|
<tr class="top-aligned-row">
|
58
58
|
<td><strong>Last Update:</strong></td>
|
59
|
-
<td>
|
59
|
+
<td>Fri Aug 27 13:40:41 EDT 2004</td>
|
60
60
|
</tr>
|
61
61
|
</table>
|
62
62
|
</div>
|
@@ -69,9 +69,21 @@
|
|
69
69
|
<div id="contextContent">
|
70
70
|
|
71
71
|
<div id="description">
|
72
|
-
<
|
73
|
-
|
72
|
+
<h1>BUTTERED PANCAKES LICENSE</h1>
|
73
|
+
<p>
|
74
|
+
The following stipulations:
|
74
75
|
</p>
|
76
|
+
<pre>
|
77
|
+
1) Butter my panakes
|
78
|
+
2) Don't feed the lawyers
|
79
|
+
</pre>
|
80
|
+
<p>
|
81
|
+
Which means:
|
82
|
+
</p>
|
83
|
+
<pre>
|
84
|
+
1) Acknowledge arthor and sources
|
85
|
+
2) Don't sue any one over it
|
86
|
+
</pre>
|
75
87
|
|
76
88
|
</div>
|
77
89
|
|
@@ -0,0 +1,271 @@
|
|
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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>File: README</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="fileHeader">
|
50
|
+
<h1>README</h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>Path:</strong></td>
|
54
|
+
<td>README
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr class="top-aligned-row">
|
58
|
+
<td><strong>Last Update:</strong></td>
|
59
|
+
<td>Sat Sep 03 09:48:37 EDT 2005</td>
|
60
|
+
</tr>
|
61
|
+
</table>
|
62
|
+
</div>
|
63
|
+
<!-- banner header -->
|
64
|
+
|
65
|
+
<div id="bodyContent">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
<div id="contextContent">
|
70
|
+
|
71
|
+
<div id="description">
|
72
|
+
<h1><a href="../classes/Reap.html">Reap</a></h1>
|
73
|
+
<p>
|
74
|
+
User Friendly Project Assitant for Ruby
|
75
|
+
</p>
|
76
|
+
<h2>What’s This?</h2>
|
77
|
+
<p>
|
78
|
+
<a href="../classes/Reap.html">Reap</a> is a user friendly project
|
79
|
+
assistant for Ruby developers built on top of Rake. By organizing your
|
80
|
+
project in a semi-formal manner (the same as setup.rb), <a
|
81
|
+
href="../classes/Reap.html">Reap</a> makes it easy to do the following
|
82
|
+
tasks:
|
83
|
+
</p>
|
84
|
+
<ul>
|
85
|
+
<li>Generate RDocs.
|
86
|
+
|
87
|
+
</li>
|
88
|
+
<li>Run unit tests.
|
89
|
+
|
90
|
+
</li>
|
91
|
+
<li>Create Ruby Gem packages.
|
92
|
+
|
93
|
+
</li>
|
94
|
+
<li>Create standard .tgz, tbz (bzip2) and/or .zip packages.
|
95
|
+
|
96
|
+
</li>
|
97
|
+
<li>Publish documents to Rubyforge or other web sites.
|
98
|
+
|
99
|
+
</li>
|
100
|
+
<li>Announce a release to Ruby-talk or other mailing list.
|
101
|
+
|
102
|
+
</li>
|
103
|
+
<li>Prepare files for distribution (i.e. chmod, tag, etc.).
|
104
|
+
|
105
|
+
</li>
|
106
|
+
<li>Upload packages (coming soon!).
|
107
|
+
|
108
|
+
</li>
|
109
|
+
</ul>
|
110
|
+
<p>
|
111
|
+
If you have special needs that <a href="../classes/Reap.html">Reap</a>
|
112
|
+
doesn’t accomodate, new task are farily easy to create. And we are
|
113
|
+
always happy to hear suggestions.
|
114
|
+
</p>
|
115
|
+
<h2>Installation</h2>
|
116
|
+
<h3>Gem Install</h3>
|
117
|
+
<p>
|
118
|
+
Install the ruby gem as you would any other:
|
119
|
+
</p>
|
120
|
+
<pre>
|
121
|
+
<tt>gem install reap</tt>
|
122
|
+
</pre>
|
123
|
+
<p>
|
124
|
+
<a href="../classes/Reap.html">Reap</a> requires Nano Methods.
|
125
|
+
</p>
|
126
|
+
<h3>Manual Install</h3>
|
127
|
+
<p>
|
128
|
+
To install manually follow the usual setup.eb steps:
|
129
|
+
</p>
|
130
|
+
<ol>
|
131
|
+
<li>Download the compressed package.
|
132
|
+
|
133
|
+
</li>
|
134
|
+
<li>Unpack it.
|
135
|
+
|
136
|
+
</li>
|
137
|
+
<li>Change into the unpacked directory.
|
138
|
+
|
139
|
+
</li>
|
140
|
+
<li>run <tt>./setup.rb</tt>
|
141
|
+
|
142
|
+
</li>
|
143
|
+
</ol>
|
144
|
+
<p>
|
145
|
+
You should be good to go.
|
146
|
+
</p>
|
147
|
+
<h2>Usage</h2>
|
148
|
+
<h3>Using a <a href="../classes/Reap.html">Reap</a> Task</h3>
|
149
|
+
<p>
|
150
|
+
<a href="../classes/Reap.html">Reap</a> makes it pretty easy to use
|
151
|
+
it’s built-in tasks. Not only will it grab common data from a <a
|
152
|
+
href="../classes/ProjectInfo.html">ProjectInfo</a> YAML file if available,
|
153
|
+
but it defines convenience methods to make writing Rakefiles easier. For
|
154
|
+
instance, to create a "package" target all you generally need in
|
155
|
+
your Rakefile is:
|
156
|
+
</p>
|
157
|
+
<pre>
|
158
|
+
require 'reap/tasks'
|
159
|
+
|
160
|
+
include ReapTask
|
161
|
+
|
162
|
+
package_task :package
|
163
|
+
</pre>
|
164
|
+
<p>
|
165
|
+
The reaon this can be so simple, is b/c <a
|
166
|
+
href="../classes/Reap.html">Reap</a> extrapolates the information it needs
|
167
|
+
from a comon <a href="../classes/ProjectInfo.html">ProjectInfo</a> file.
|
168
|
+
You will of course need to create this file in you projects main directory.
|
169
|
+
A template is provided and a command line tool to copy it to your current
|
170
|
+
directory. Simply type:
|
171
|
+
</p>
|
172
|
+
<pre>
|
173
|
+
> reap template
|
174
|
+
</pre>
|
175
|
+
<p>
|
176
|
+
Then edit the <a href="../classes/ProjectInfo.html">ProjectInfo</a> file.
|
177
|
+
The fields are fairly self explanitiory. Apart from <a
|
178
|
+
href="../classes/Reap.html">Reap</a> such a file is nice to have on
|
179
|
+
it’s own merits too.
|
180
|
+
</p>
|
181
|
+
<h3>Building a <a href="../classes/Reap.html">Reap</a> Task</h3>
|
182
|
+
<p>
|
183
|
+
Building a <a href="../classes/Reap.html">Reap</a> task differs from
|
184
|
+
building a Rake task by two important factors. First there is only one
|
185
|
+
target per task (this may change) Second, task blocks are yeilded
|
186
|
+
<em>prior</em> to the init routine being exectuted. So your init routine
|
187
|
+
should expect data to already be present in the tasks attribute and take
|
188
|
+
that into account (usually that means using ++||=++)
|
189
|
+
</p>
|
190
|
+
<p>
|
191
|
+
Here’s an, oh so simple, example:
|
192
|
+
</p>
|
193
|
+
<pre>
|
194
|
+
class MyOhSoSimpleTask < Reap::Task
|
195
|
+
|
196
|
+
# This creates the convenience method
|
197
|
+
register 'my_oh_so_simple'
|
198
|
+
|
199
|
+
default_desc 'this is a custom reap task'
|
200
|
+
|
201
|
+
attr_accessor :message
|
202
|
+
|
203
|
+
def init
|
204
|
+
@message ||= master['default'] || 'None Found!'
|
205
|
+
end
|
206
|
+
|
207
|
+
# run the target task
|
208
|
+
def run
|
209
|
+
puts @message
|
210
|
+
end
|
211
|
+
|
212
|
+
end
|
213
|
+
</pre>
|
214
|
+
<p>
|
215
|
+
The corresponding settings in the <a
|
216
|
+
href="../classes/ProjectInfo.html">ProjectInfo</a> file (master) will then
|
217
|
+
be:
|
218
|
+
</p>
|
219
|
+
<pre>
|
220
|
+
default: Default text, if any.
|
221
|
+
</pre>
|
222
|
+
<p>
|
223
|
+
And to use it in your Rake file:
|
224
|
+
</p>
|
225
|
+
<pre>
|
226
|
+
ReapTask::my_oh_so_simple_task :mytarget
|
227
|
+
</pre>
|
228
|
+
<h2>Status</h2>
|
229
|
+
<p>
|
230
|
+
<a href="../classes/Reap.html">Reap</a> is currently Usable Beta. Most of
|
231
|
+
the tasks work very well. Refinements are still common though, and a few
|
232
|
+
important tasks are still being planned.
|
233
|
+
</p>
|
234
|
+
<h2>Legal</h2>
|
235
|
+
<p>
|
236
|
+
<a href="../classes/Reap.html">Reap</a> Copyright©2004-2005 Thomas
|
237
|
+
Sawyer Ruby License
|
238
|
+
</p>
|
239
|
+
|
240
|
+
</div>
|
241
|
+
|
242
|
+
|
243
|
+
</div>
|
244
|
+
|
245
|
+
|
246
|
+
</div>
|
247
|
+
|
248
|
+
|
249
|
+
<!-- if includes -->
|
250
|
+
|
251
|
+
<div id="section">
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
|
260
|
+
<!-- if method_list -->
|
261
|
+
|
262
|
+
|
263
|
+
</div>
|
264
|
+
|
265
|
+
|
266
|
+
<div id="validator-badges">
|
267
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
268
|
+
</div>
|
269
|
+
|
270
|
+
</body>
|
271
|
+
</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>File:
|
8
|
+
<title>File: announce_task.rb</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" />
|
@@ -47,16 +47,16 @@
|
|
47
47
|
|
48
48
|
|
49
49
|
<div id="fileHeader">
|
50
|
-
<h1>
|
50
|
+
<h1>announce_task.rb</h1>
|
51
51
|
<table class="header-table">
|
52
52
|
<tr class="top-aligned-row">
|
53
53
|
<td><strong>Path:</strong></td>
|
54
|
-
<td>lib/
|
54
|
+
<td>lib/reap/announce_task.rb
|
55
55
|
</td>
|
56
56
|
</tr>
|
57
57
|
<tr class="top-aligned-row">
|
58
58
|
<td><strong>Last Update:</strong></td>
|
59
|
-
<td>
|
59
|
+
<td>Sat Sep 03 08:05:45 EDT 2005</td>
|
60
60
|
</tr>
|
61
61
|
</table>
|
62
62
|
</div>
|
@@ -73,6 +73,7 @@
|
|
73
73
|
<h3 class="section-bar">Required files</h3>
|
74
74
|
|
75
75
|
<div class="name-list">
|
76
|
+
reap/task
|
76
77
|
net/smtp
|
77
78
|
nano/string/margin
|
78
79
|
nano/string/tab
|
@@ -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>File:
|
8
|
+
<title>File: filemod_task.rb</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" />
|
@@ -47,16 +47,16 @@
|
|
47
47
|
|
48
48
|
|
49
49
|
<div id="fileHeader">
|
50
|
-
<h1>
|
50
|
+
<h1>filemod_task.rb</h1>
|
51
51
|
<table class="header-table">
|
52
52
|
<tr class="top-aligned-row">
|
53
53
|
<td><strong>Path:</strong></td>
|
54
|
-
<td>lib/
|
54
|
+
<td>lib/reap/filemod_task.rb
|
55
55
|
</td>
|
56
56
|
</tr>
|
57
57
|
<tr class="top-aligned-row">
|
58
58
|
<td><strong>Last Update:</strong></td>
|
59
|
-
<td>
|
59
|
+
<td>Sat Sep 03 08:05:41 EDT 2005</td>
|
60
60
|
</tr>
|
61
61
|
</table>
|
62
62
|
</div>
|
@@ -73,7 +73,7 @@
|
|
73
73
|
<h3 class="section-bar">Required files</h3>
|
74
74
|
|
75
75
|
<div class="name-list">
|
76
|
-
|
76
|
+
reap/task
|
77
77
|
</div>
|
78
78
|
</div>
|
79
79
|
|
@@ -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>File:
|
8
|
+
<title>File: info_task.rb</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" />
|
@@ -47,16 +47,16 @@
|
|
47
47
|
|
48
48
|
|
49
49
|
<div id="fileHeader">
|
50
|
-
<h1>
|
50
|
+
<h1>info_task.rb</h1>
|
51
51
|
<table class="header-table">
|
52
52
|
<tr class="top-aligned-row">
|
53
53
|
<td><strong>Path:</strong></td>
|
54
|
-
<td>lib/
|
54
|
+
<td>lib/reap/info_task.rb
|
55
55
|
</td>
|
56
56
|
</tr>
|
57
57
|
<tr class="top-aligned-row">
|
58
58
|
<td><strong>Last Update:</strong></td>
|
59
|
-
<td>
|
59
|
+
<td>Sat Sep 03 08:05:37 EDT 2005</td>
|
60
60
|
</tr>
|
61
61
|
</table>
|
62
62
|
</div>
|
@@ -73,7 +73,7 @@
|
|
73
73
|
<h3 class="section-bar">Required files</h3>
|
74
74
|
|
75
75
|
<div class="name-list">
|
76
|
-
|
76
|
+
reap/task
|
77
77
|
</div>
|
78
78
|
</div>
|
79
79
|
|