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,16 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>default_name (Reap::AnnounceTask)</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/announce_task.rb, line 22</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">default_name</span> ; <span class="ruby-value str">"announce"</span> ; <span class="ruby-keyword kw">end</span></pre>
|
15
|
+
</body>
|
16
|
+
</html>
|
data/pub/www/rdoc/classes/Reap/{TemplateTask.src/M000021.html → AnnounceTask.src/M000040.html}
RENAMED
@@ -5,14 +5,14 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>default_desc (Reap::AnnounceTask)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
10
|
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
15
|
-
<span class="ruby-
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/reap/announce_task.rb, line 23</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">default_desc</span>
|
15
|
+
<span class="ruby-value str">"send [ANN] email to ruby-talk or other list [reap]"</span>
|
16
16
|
<span class="ruby-keyword kw">end</span></pre>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -5,27 +5,30 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>init (Reap::AnnounceTask)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
10
|
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
15
|
-
<span class="ruby-ivar">@
|
16
|
-
<span class="ruby-ivar">@from</span> = <span class="ruby-
|
17
|
-
<span class="ruby-ivar">@server</span> = <span class="ruby-
|
18
|
-
<span class="ruby-ivar">@port</span> = <span class="ruby-
|
19
|
-
<span class="ruby-ivar">@domain</span> = <span class="ruby-
|
20
|
-
<span class="ruby-ivar">@account</span> = <span class="ruby-
|
21
|
-
<span class="ruby-ivar">@authtype</span> = <span class="ruby-
|
22
|
-
<span class="ruby-ivar">@
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/reap/announce_task.rb, line 32</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init</span>
|
15
|
+
<span class="ruby-ivar">@to</span> = <span class="ruby-ivar">@to</span>.<span class="ruby-identifier">to_s</span>
|
16
|
+
<span class="ruby-ivar">@from</span> = <span class="ruby-ivar">@from</span>.<span class="ruby-identifier">to_s</span>
|
17
|
+
<span class="ruby-ivar">@server</span> = <span class="ruby-ivar">@server</span>.<span class="ruby-identifier">strip</span>
|
18
|
+
<span class="ruby-ivar">@port</span> = (<span class="ruby-ivar">@port</span> <span class="ruby-operator">||</span> <span class="ruby-value">25</span>).<span class="ruby-identifier">to_i</span>
|
19
|
+
<span class="ruby-ivar">@domain</span> = <span class="ruby-ivar">@domain</span>.<span class="ruby-identifier">strip</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@domain</span>
|
20
|
+
<span class="ruby-ivar">@account</span> = <span class="ruby-ivar">@account</span>.<span class="ruby-identifier">to_s</span>
|
21
|
+
<span class="ruby-ivar">@authtype</span> = <span class="ruby-ivar">@authtype</span>.<span class="ruby-identifier">to_s</span>
|
22
|
+
<span class="ruby-ivar">@sectype</span> = <span class="ruby-ivar">@sectype</span>.<span class="ruby-identifier">to_s</span>
|
23
23
|
|
24
|
-
<span class="ruby-ivar">@title</span>
|
25
|
-
<span class="ruby-ivar">@version</span>
|
26
|
-
<span class="ruby-ivar">@summary</span>
|
24
|
+
<span class="ruby-ivar">@title</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">master</span>[<span class="ruby-value str">'title'</span>]
|
25
|
+
<span class="ruby-ivar">@version</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">master</span>[<span class="ruby-value str">'version'</span>]
|
26
|
+
<span class="ruby-ivar">@summary</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">master</span>[<span class="ruby-value str">'summary'</span>]
|
27
|
+
<span class="ruby-ivar">@description</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">master</span>[<span class="ruby-value str">'description'</span>]
|
28
|
+
<span class="ruby-ivar">@links</span> <span class="ruby-operator">||=</span> []
|
29
|
+
<span class="ruby-ivar">@subject</span> <span class="ruby-operator">||=</span> <span class="ruby-node">"[ANN] #{@title}, v#{@version}"</span>
|
27
30
|
|
28
|
-
<span class="ruby-ivar">@
|
31
|
+
<span class="ruby-ivar">@address</span> = <span class="ruby-ivar">@to</span> <span class="ruby-comment cmt"># fix</span>
|
29
32
|
|
30
33
|
<span class="ruby-comment cmt">#raise "DOMAIN is a required field" if @domain.empty?</span>
|
31
34
|
|
@@ -34,58 +37,55 @@
|
|
34
37
|
|
|
35
38
|
|A N N O U N C I N G
|
36
39
|
|
|
37
|
-
|#{
|
40
|
+
|#{title}, v#{version}
|
38
41
|
|
|
39
|
-
|#{
|
42
|
+
|#{summary}
|
40
43
|
|
|
41
|
-
}</span>.<span class="ruby-identifier">margin</span>.<span class="ruby-identifier">
|
44
|
+
}</span>.<span class="ruby-identifier">margin</span>.<span class="ruby-identifier">align_center</span>(<span class="ruby-value">66</span>)
|
42
45
|
|
43
46
|
<span class="ruby-comment cmt"># abstract</span>
|
44
47
|
<span class="ruby-identifier">abstract</span> = <span class="ruby-value str">''</span>
|
45
|
-
<span class="ruby-
|
46
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">desc</span>
|
48
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@description</span>
|
47
49
|
<span class="ruby-identifier">abstract</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n\n"</span>
|
48
|
-
<span class="ruby-identifier">abstract</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"ABSTRACT: #{
|
50
|
+
<span class="ruby-identifier">abstract</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"ABSTRACT: #{@description}"</span>.<span class="ruby-identifier">word_wrap</span>(<span class="ruby-value">72</span>)
|
49
51
|
<span class="ruby-identifier">abstract</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n"</span>
|
50
52
|
<span class="ruby-keyword kw">end</span>
|
51
53
|
|
52
54
|
<span class="ruby-comment cmt"># more info</span>
|
53
55
|
<span class="ruby-identifier">info</span> = <span class="ruby-value str">''</span>
|
54
|
-
<span class="ruby-
|
55
|
-
<span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">info_arr</span>.<span class="ruby-identifier">empty?</span>
|
56
|
+
<span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@links</span>.<span class="ruby-identifier">empty?</span>
|
56
57
|
<span class="ruby-identifier">info</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n"</span>
|
57
58
|
<span class="ruby-identifier">info</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"For More Information"</span>.<span class="ruby-identifier">center</span>(<span class="ruby-value">67</span>)
|
58
59
|
<span class="ruby-identifier">info</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n"</span>
|
59
|
-
<span class="ruby-
|
60
|
-
<span class="ruby-identifier">info</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n
|
60
|
+
<span class="ruby-ivar">@links</span>.<span class="ruby-identifier">each</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">mi</span><span class="ruby-operator">|</span> <span class="ruby-identifier">info</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"#{mi}"</span>.<span class="ruby-identifier">center</span>(<span class="ruby-value">67</span>) <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n"</span> }
|
61
|
+
<span class="ruby-identifier">info</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n"</span>
|
61
62
|
<span class="ruby-keyword kw">end</span>
|
62
63
|
|
63
64
|
<span class="ruby-comment cmt"># slogan</span>
|
64
65
|
<span class="ruby-identifier">slogan</span> = <span class="ruby-value str">''</span>
|
65
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-
|
66
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@slogan</span>
|
66
67
|
<span class="ruby-identifier">slogan</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n\n"</span>
|
67
|
-
<span class="ruby-identifier">slogan</span> <span class="ruby-operator"><<</span> <span class="ruby-
|
68
|
+
<span class="ruby-identifier">slogan</span> <span class="ruby-operator"><<</span> <span class="ruby-ivar">@slogan</span>.<span class="ruby-identifier">center</span>(<span class="ruby-value">67</span>)
|
68
69
|
<span class="ruby-identifier">slogan</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n\n"</span>
|
69
70
|
<span class="ruby-keyword kw">end</span>
|
70
71
|
|
71
72
|
<span class="ruby-comment cmt"># memo</span>
|
72
73
|
<span class="ruby-identifier">memo</span> = <span class="ruby-value str">''</span>
|
73
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-
|
74
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@memo</span>
|
74
75
|
<span class="ruby-identifier">memo</span> = <span class="ruby-value str">''</span>
|
75
76
|
<span class="ruby-identifier">memo</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n"</span> <span class="ruby-operator"><<</span> (<span class="ruby-value str">'-'</span> <span class="ruby-operator">*</span> <span class="ruby-value">72</span>) <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n"</span>
|
76
77
|
<span class="ruby-identifier">memo</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"(Memo)\n\n"</span>
|
77
|
-
<span class="ruby-identifier">memo</span> <span class="ruby-operator"><<</span> <span class="ruby-
|
78
|
+
<span class="ruby-identifier">memo</span> <span class="ruby-operator"><<</span> <span class="ruby-ivar">@memo</span>.<span class="ruby-identifier">fold</span>.<span class="ruby-identifier">word_wrap</span>(<span class="ruby-value">72</span>)
|
78
79
|
<span class="ruby-comment cmt">#memo << "\n"</span>
|
79
80
|
<span class="ruby-keyword kw">end</span>
|
80
81
|
|
81
82
|
<span class="ruby-comment cmt"># msg file</span>
|
82
83
|
<span class="ruby-identifier">msg</span> = <span class="ruby-value str">''</span>
|
83
|
-
<span class="ruby-
|
84
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">msg_file</span> <span class="ruby-keyword kw">and</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">file?</span>( <span class="ruby-identifier">msg_file</span> )
|
84
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@file</span> <span class="ruby-keyword kw">and</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">file?</span>( <span class="ruby-ivar">@file</span> )
|
85
85
|
<span class="ruby-identifier">msg</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n"</span> <span class="ruby-operator"><<</span> (<span class="ruby-value str">"-"</span> <span class="ruby-operator">*</span> <span class="ruby-value">72</span>) <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n"</span>
|
86
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"(from #{
|
86
|
+
<span class="ruby-identifier">msg</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"(from #{@file})\n\n"</span>
|
87
87
|
<span class="ruby-identifier">mg</span> = <span class="ruby-value str">''</span>
|
88
|
-
<span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>( <span class="ruby-
|
88
|
+
<span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>( <span class="ruby-ivar">@file</span> ) { <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">mg</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">gets</span>(<span class="ruby-keyword kw">nil</span>) }
|
89
89
|
<span class="ruby-identifier">msg</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">mg</span>.<span class="ruby-identifier">fold</span>.<span class="ruby-identifier">word_wrap</span>(<span class="ruby-value">72</span>)
|
90
90
|
<span class="ruby-keyword kw">end</span>
|
91
91
|
|
@@ -93,7 +93,7 @@
|
|
93
93
|
<span class="ruby-identifier">stamp</span> = <span class="ruby-value str">''</span>
|
94
94
|
<span class="ruby-identifier">stamp</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n"</span> <span class="ruby-operator"><<</span> (<span class="ruby-value str">"-"</span> <span class="ruby-operator">*</span> <span class="ruby-value">72</span>) <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n"</span>
|
95
95
|
<span class="ruby-identifier">stamp</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">%Q{
|
96
|
-
|Generated by Reap, a
|
96
|
+
|Generated by Reap, a Rake-based Ruby Project Assistant.
|
97
97
|
|Do you Ruby? (http://www.ruby-lang.org)
|
98
98
|
}</span>.<span class="ruby-identifier">margin</span>
|
99
99
|
<span class="ruby-identifier">stamp</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n\n"</span>
|
@@ -10,7 +10,7 @@
|
|
10
10
|
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/reap/announce_task.rb, line 129</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run</span>
|
15
15
|
<span class="ruby-identifier">puts</span> <span class="ruby-node">"\n#{@message}\n\n"</span>
|
16
16
|
<span class="ruby-identifier">print</span> <span class="ruby-value str">"Send? [Y/n] "</span>
|
@@ -0,0 +1,254 @@
|
|
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>Class: Reap::FilemodTask</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="classHeader">
|
50
|
+
<table class="header-table">
|
51
|
+
<tr class="top-aligned-row">
|
52
|
+
<td><strong>Class</strong></td>
|
53
|
+
<td class="class-name-in-header">Reap::FilemodTask</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../../files/lib/reap/filemod_task_rb.html">
|
59
|
+
lib/reap/filemod_task.rb
|
60
|
+
</a>
|
61
|
+
<br />
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
|
65
|
+
<tr class="top-aligned-row">
|
66
|
+
<td><strong>Parent:</strong></td>
|
67
|
+
<td>
|
68
|
+
<a href="Task.html">
|
69
|
+
Reap::Task
|
70
|
+
</a>
|
71
|
+
</td>
|
72
|
+
</tr>
|
73
|
+
</table>
|
74
|
+
</div>
|
75
|
+
<!-- banner header -->
|
76
|
+
|
77
|
+
<div id="bodyContent">
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
<div id="contextContent">
|
82
|
+
|
83
|
+
<div id="description">
|
84
|
+
<p>
|
85
|
+
Filemod <a href="Task.html">Task</a>
|
86
|
+
</p>
|
87
|
+
|
88
|
+
</div>
|
89
|
+
|
90
|
+
|
91
|
+
</div>
|
92
|
+
|
93
|
+
<div id="method-list">
|
94
|
+
<h3 class="section-bar">Methods</h3>
|
95
|
+
|
96
|
+
<div class="name-list">
|
97
|
+
<a href="#M000031">chmod</a>
|
98
|
+
<a href="#M000028">default_desc</a>
|
99
|
+
<a href="#M000027">default_name</a>
|
100
|
+
<a href="#M000029">init</a>
|
101
|
+
<a href="#M000030">run</a>
|
102
|
+
<a href="#M000032">run_chown</a>
|
103
|
+
</div>
|
104
|
+
</div>
|
105
|
+
|
106
|
+
</div>
|
107
|
+
|
108
|
+
|
109
|
+
<!-- if includes -->
|
110
|
+
|
111
|
+
<div id="section">
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
<div id="attribute-list">
|
118
|
+
<h3 class="section-bar">Attributes</h3>
|
119
|
+
|
120
|
+
<div class="name-list">
|
121
|
+
<table>
|
122
|
+
<tr class="top-aligned-row context-row">
|
123
|
+
<td class="context-item-name">dirmod</td>
|
124
|
+
<td class="context-item-value"> [RW] </td>
|
125
|
+
<td class="context-item-desc"></td>
|
126
|
+
</tr>
|
127
|
+
<tr class="top-aligned-row context-row">
|
128
|
+
<td class="context-item-name">filemod</td>
|
129
|
+
<td class="context-item-value"> [RW] </td>
|
130
|
+
<td class="context-item-desc"></td>
|
131
|
+
</tr>
|
132
|
+
<tr class="top-aligned-row context-row">
|
133
|
+
<td class="context-item-name">group</td>
|
134
|
+
<td class="context-item-value"> [RW] </td>
|
135
|
+
<td class="context-item-desc"></td>
|
136
|
+
</tr>
|
137
|
+
<tr class="top-aligned-row context-row">
|
138
|
+
<td class="context-item-name">user</td>
|
139
|
+
<td class="context-item-value"> [RW] </td>
|
140
|
+
<td class="context-item-desc"></td>
|
141
|
+
</tr>
|
142
|
+
</table>
|
143
|
+
</div>
|
144
|
+
</div>
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
<!-- if method_list -->
|
149
|
+
<div id="methods">
|
150
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
151
|
+
|
152
|
+
<div id="method-M000031" class="method-detail">
|
153
|
+
<a name="M000031"></a>
|
154
|
+
|
155
|
+
<div class="method-heading">
|
156
|
+
<a href="FilemodTask.src/M000031.html" target="Code" class="method-signature"
|
157
|
+
onclick="popupCode('FilemodTask.src/M000031.html');return false;">
|
158
|
+
<span class="method-name">chmod</span><span class="method-args">( file_list, file_mode=644, dir_mode=755 )</span>
|
159
|
+
</a>
|
160
|
+
</div>
|
161
|
+
|
162
|
+
<div class="method-description">
|
163
|
+
<p>
|
164
|
+
support function
|
165
|
+
</p>
|
166
|
+
</div>
|
167
|
+
</div>
|
168
|
+
|
169
|
+
<div id="method-M000028" class="method-detail">
|
170
|
+
<a name="M000028"></a>
|
171
|
+
|
172
|
+
<div class="method-heading">
|
173
|
+
<a href="FilemodTask.src/M000028.html" target="Code" class="method-signature"
|
174
|
+
onclick="popupCode('FilemodTask.src/M000028.html');return false;">
|
175
|
+
<span class="method-name">default_desc</span><span class="method-args">()</span>
|
176
|
+
</a>
|
177
|
+
</div>
|
178
|
+
|
179
|
+
<div class="method-description">
|
180
|
+
</div>
|
181
|
+
</div>
|
182
|
+
|
183
|
+
<div id="method-M000027" class="method-detail">
|
184
|
+
<a name="M000027"></a>
|
185
|
+
|
186
|
+
<div class="method-heading">
|
187
|
+
<a href="FilemodTask.src/M000027.html" target="Code" class="method-signature"
|
188
|
+
onclick="popupCode('FilemodTask.src/M000027.html');return false;">
|
189
|
+
<span class="method-name">default_name</span><span class="method-args">()</span>
|
190
|
+
</a>
|
191
|
+
</div>
|
192
|
+
|
193
|
+
<div class="method-description">
|
194
|
+
<p>
|
195
|
+
register ‘filemod’
|
196
|
+
</p>
|
197
|
+
</div>
|
198
|
+
</div>
|
199
|
+
|
200
|
+
<div id="method-M000029" class="method-detail">
|
201
|
+
<a name="M000029"></a>
|
202
|
+
|
203
|
+
<div class="method-heading">
|
204
|
+
<a href="FilemodTask.src/M000029.html" target="Code" class="method-signature"
|
205
|
+
onclick="popupCode('FilemodTask.src/M000029.html');return false;">
|
206
|
+
<span class="method-name">init</span><span class="method-args">()</span>
|
207
|
+
</a>
|
208
|
+
</div>
|
209
|
+
|
210
|
+
<div class="method-description">
|
211
|
+
</div>
|
212
|
+
</div>
|
213
|
+
|
214
|
+
<div id="method-M000030" class="method-detail">
|
215
|
+
<a name="M000030"></a>
|
216
|
+
|
217
|
+
<div class="method-heading">
|
218
|
+
<a href="FilemodTask.src/M000030.html" target="Code" class="method-signature"
|
219
|
+
onclick="popupCode('FilemodTask.src/M000030.html');return false;">
|
220
|
+
<span class="method-name">run</span><span class="method-args">()</span>
|
221
|
+
</a>
|
222
|
+
</div>
|
223
|
+
|
224
|
+
<div class="method-description">
|
225
|
+
</div>
|
226
|
+
</div>
|
227
|
+
|
228
|
+
<div id="method-M000032" class="method-detail">
|
229
|
+
<a name="M000032"></a>
|
230
|
+
|
231
|
+
<div class="method-heading">
|
232
|
+
<a href="FilemodTask.src/M000032.html" target="Code" class="method-signature"
|
233
|
+
onclick="popupCode('FilemodTask.src/M000032.html');return false;">
|
234
|
+
<span class="method-name">run_chown</span><span class="method-args">()</span>
|
235
|
+
</a>
|
236
|
+
</div>
|
237
|
+
|
238
|
+
<div class="method-description">
|
239
|
+
</div>
|
240
|
+
</div>
|
241
|
+
|
242
|
+
|
243
|
+
</div>
|
244
|
+
|
245
|
+
|
246
|
+
</div>
|
247
|
+
|
248
|
+
|
249
|
+
<div id="validator-badges">
|
250
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
251
|
+
</div>
|
252
|
+
|
253
|
+
</body>
|
254
|
+
</html>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>default_name (Reap::FilemodTask)</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 17</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">default_name</span> ; <span class="ruby-value str">'filemod'</span> ; <span class="ruby-keyword kw">end</span></pre>
|
15
|
+
</body>
|
16
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>default_desc (Reap::FilemodTask)</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 18</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">default_desc</span>
|
15
|
+
<span class="ruby-value str">"normalize ownership and permissions of package files [reap]"</span>
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|