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