autobuild 0.5.1 → 0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +10 -3
- data/README +106 -273
- data/Rakefile +14 -19
- data/TODO +5 -0
- data/bin/autobuild +17 -67
- data/doc/classes/Autobuild.html +320 -57
- data/doc/classes/{Autobuild/Config.src/M000040.html → Autobuild.src/M000005.html} +8 -5
- data/doc/classes/{Autobuild/Config.src/M000041.html → Autobuild.src/M000006.html} +3 -3
- data/doc/classes/Autobuild.src/M000007.html +18 -0
- data/doc/classes/Autobuild.src/M000008.html +18 -0
- data/doc/classes/Autobuild.src/M000009.html +18 -0
- data/doc/classes/Autobuild.src/M000010.html +18 -0
- data/doc/classes/Autobuild.src/M000011.html +18 -0
- data/doc/classes/Autobuild.src/M000012.html +18 -0
- data/doc/classes/Autobuild.src/M000013.html +25 -0
- data/doc/classes/Autobuild.src/M000014.html +19 -0
- data/doc/classes/Autobuild.src/M000015.html +19 -0
- data/doc/classes/Autobuild.src/M000016.html +16 -0
- data/doc/classes/Autobuild.src/M000017.html +20 -0
- data/doc/classes/Autobuild.src/M000018.html +18 -0
- data/doc/classes/Autobuild.src/M000019.html +52 -0
- data/doc/classes/Autobuild.src/M000020.html +44 -0
- data/doc/classes/Autobuild.src/M000021.html +19 -0
- data/doc/classes/Autobuild.src/M000022.html +19 -0
- data/doc/classes/Autobuild.src/M000023.html +20 -0
- data/doc/classes/Autobuild.src/M000024.html +22 -0
- data/doc/classes/Autobuild.src/M000033.html +31 -0
- data/doc/classes/Autobuild.src/M000034.html +32 -10
- data/doc/classes/Autobuild.src/M000035.html +4 -5
- data/doc/classes/Autobuild.src/M000036.html +4 -30
- data/doc/classes/Autobuild.src/M000037.html +4 -5
- data/doc/classes/Autobuild.src/M000038.html +4 -5
- data/doc/classes/Autobuild.src/M000039.html +4 -6
- data/doc/classes/Autobuild.src/M000040.html +18 -0
- data/doc/classes/Autobuild.src/M000041.html +25 -0
- data/doc/classes/Autobuild.src/M000042.html +19 -0
- data/doc/classes/Autobuild.src/M000043.html +19 -0
- data/doc/classes/Autobuild.src/M000044.html +16 -0
- data/doc/classes/Autobuild.src/M000045.html +20 -0
- data/doc/classes/Autobuild.src/M000046.html +18 -0
- data/doc/classes/Autobuild.src/M000047.html +52 -0
- data/doc/classes/Autobuild.src/M000048.html +44 -0
- data/doc/classes/Autobuild.src/M000049.html +19 -0
- data/doc/classes/Autobuild.src/M000050.html +19 -0
- data/doc/classes/Autobuild.src/M000051.html +20 -0
- data/doc/classes/Autobuild.src/M000052.html +22 -0
- data/doc/classes/Autobuild/Autotools.html +103 -58
- data/doc/classes/Autobuild/Autotools.src/M000055.html +20 -0
- data/doc/classes/Autobuild/Autotools.src/M000056.html +20 -0
- data/doc/classes/Autobuild/Autotools.src/M000057.html +16 -0
- data/doc/classes/Autobuild/Autotools.src/M000058.html +16 -0
- data/doc/classes/Autobuild/Autotools.src/M000059.html +22 -0
- data/doc/classes/Autobuild/Autotools.src/M000060.html +29 -0
- data/doc/classes/Autobuild/Autotools.src/M000061.html +21 -0
- data/doc/classes/Autobuild/Autotools.src/M000062.html +20 -0
- data/doc/classes/Autobuild/Autotools.src/{M000067.html → M000063.html} +4 -10
- data/doc/classes/Autobuild/Autotools.src/M000083.html +20 -0
- data/doc/classes/Autobuild/Autotools.src/M000084.html +20 -0
- data/doc/classes/Autobuild/Autotools.src/M000085.html +16 -0
- data/doc/classes/Autobuild/Autotools.src/M000086.html +16 -0
- data/doc/classes/Autobuild/Autotools.src/M000087.html +22 -0
- data/doc/classes/Autobuild/Autotools.src/M000088.html +29 -0
- data/doc/classes/Autobuild/Autotools.src/M000089.html +21 -0
- data/doc/classes/Autobuild/Autotools.src/M000090.html +20 -0
- data/doc/classes/Autobuild/Autotools.src/M000091.html +32 -0
- data/doc/classes/Autobuild/CVSImporter.html +11 -11
- data/doc/classes/Autobuild/CVSImporter.src/M000036.html +26 -0
- data/doc/classes/Autobuild/CVSImporter.src/{M000049.html → M000037.html} +1 -1
- data/doc/classes/Autobuild/CVSImporter.src/M000064.html +26 -0
- data/doc/classes/Autobuild/CVSImporter.src/M000065.html +18 -0
- data/doc/classes/Autobuild/CommandNotFound.html +6 -0
- data/doc/classes/Autobuild/ConfigException.html +6 -0
- data/doc/classes/Autobuild/{Options.html → DarcsImporter.html} +13 -11
- data/doc/classes/Autobuild/DarcsImporter.src/M000044.html +20 -0
- data/doc/classes/Autobuild/DarcsImporter.src/M000072.html +20 -0
- data/doc/classes/Autobuild/Exception.html +38 -20
- data/doc/classes/Autobuild/Exception.src/{M000103.html → M000087.html} +1 -1
- data/doc/classes/Autobuild/Exception.src/{M000104.html → M000088.html} +1 -1
- data/doc/classes/Autobuild/Exception.src/{M000105.html → M000089.html} +2 -3
- data/doc/classes/Autobuild/Exception.src/M000090.html +24 -0
- data/doc/classes/Autobuild/Exception.src/M000115.html +16 -0
- data/doc/classes/Autobuild/Exception.src/M000116.html +16 -0
- data/doc/classes/Autobuild/Exception.src/M000117.html +18 -0
- data/doc/classes/Autobuild/Exception.src/M000118.html +24 -0
- data/doc/classes/Autobuild/GenomModule.html +83 -37
- data/doc/classes/Autobuild/GenomModule.src/M000091.html +19 -0
- data/doc/classes/Autobuild/GenomModule.src/{M000107.html → M000092.html} +2 -1
- data/doc/classes/Autobuild/GenomModule.src/{M000108.html → M000093.html} +1 -1
- data/doc/classes/Autobuild/GenomModule.src/{M000109.html → M000094.html} +2 -2
- data/doc/classes/Autobuild/GenomModule.src/{M000110.html → M000095.html} +4 -6
- data/doc/classes/Autobuild/GenomModule.src/{M000112.html → M000096.html} +2 -4
- data/doc/classes/Autobuild/GenomModule.src/{M000111.html → M000097.html} +3 -3
- data/doc/classes/Autobuild/GenomModule.src/M000098.html +36 -0
- data/doc/classes/Autobuild/GenomModule.src/M000119.html +19 -0
- data/doc/classes/Autobuild/GenomModule.src/M000120.html +21 -0
- data/doc/classes/Autobuild/GenomModule.src/M000121.html +16 -0
- data/doc/classes/Autobuild/GenomModule.src/M000122.html +18 -0
- data/doc/classes/Autobuild/GenomModule.src/M000123.html +27 -0
- data/doc/classes/Autobuild/GenomModule.src/M000124.html +24 -0
- data/doc/classes/Autobuild/GenomModule.src/M000125.html +19 -0
- data/doc/classes/Autobuild/GenomModule.src/M000126.html +36 -0
- data/doc/classes/Autobuild/Import.html +5 -43
- data/doc/classes/Autobuild/Import.src/{M000047.html → M000033.html} +0 -0
- data/doc/classes/Autobuild/Import.src/{M000045.html → M000061.html} +4 -4
- data/doc/classes/Autobuild/Importer.html +10 -10
- data/doc/classes/Autobuild/Importer.src/{M000056.html → M000034.html} +1 -1
- data/doc/classes/Autobuild/Importer.src/{M000057.html → M000035.html} +3 -3
- data/doc/classes/Autobuild/Importer.src/M000062.html +18 -0
- data/doc/classes/Autobuild/Importer.src/M000063.html +38 -0
- data/doc/classes/Autobuild/ImporterPackage.html +16 -16
- data/doc/classes/Autobuild/ImporterPackage.src/{M000115.html → M000099.html} +1 -1
- data/doc/classes/Autobuild/ImporterPackage.src/{M000116.html → M000100.html} +3 -3
- data/doc/classes/Autobuild/ImporterPackage.src/{M000117.html → M000101.html} +1 -1
- data/doc/classes/Autobuild/{Autotools.src/M000065.html → ImporterPackage.src/M000127.html} +4 -4
- data/doc/classes/Autobuild/ImporterPackage.src/M000128.html +22 -0
- data/doc/classes/Autobuild/ImporterPackage.src/M000129.html +16 -0
- data/doc/classes/Autobuild/Interpolator.html +27 -27
- data/doc/classes/Autobuild/Interpolator.src/{M000051.html → M000039.html} +1 -1
- data/doc/classes/Autobuild/Interpolator.src/{M000052.html → M000040.html} +1 -1
- data/doc/classes/Autobuild/Interpolator.src/{M000053.html → M000041.html} +1 -1
- data/doc/classes/Autobuild/Interpolator.src/{M000054.html → M000042.html} +1 -1
- data/doc/classes/Autobuild/Interpolator.src/{M000055.html → M000043.html} +1 -1
- data/doc/classes/Autobuild/Interpolator.src/M000067.html +18 -0
- data/doc/classes/Autobuild/Interpolator.src/M000068.html +21 -0
- data/doc/classes/Autobuild/Interpolator.src/M000069.html +45 -0
- data/doc/classes/Autobuild/Interpolator.src/M000070.html +39 -0
- data/doc/classes/Autobuild/Interpolator.src/M000071.html +29 -0
- data/doc/classes/Autobuild/MailReporter.html +31 -25
- data/doc/classes/Autobuild/MailReporter.src/{M000060.html → M000045.html} +1 -1
- data/doc/classes/Autobuild/MailReporter.src/{M000061.html → M000046.html} +1 -1
- data/doc/classes/Autobuild/MailReporter.src/{M000062.html → M000047.html} +1 -1
- data/doc/classes/Autobuild/MailReporter.src/{M000063.html → M000048.html} +1 -1
- data/doc/classes/Autobuild/MailReporter.src/{M000064.html → M000049.html} +1 -1
- data/doc/classes/Autobuild/MailReporter.src/M000073.html +24 -0
- data/doc/classes/Autobuild/MailReporter.src/M000074.html +21 -0
- data/doc/classes/Autobuild/MailReporter.src/M000075.html +20 -0
- data/doc/classes/Autobuild/MailReporter.src/M000076.html +18 -0
- data/doc/classes/Autobuild/MailReporter.src/M000077.html +42 -0
- data/doc/classes/Autobuild/Package.html +132 -81
- data/doc/classes/Autobuild/Package.src/M000073.html +16 -0
- data/doc/classes/Autobuild/Package.src/M000074.html +16 -0
- data/doc/classes/Autobuild/Package.src/{M000085.html → M000075.html} +2 -2
- data/doc/classes/Autobuild/Package.src/M000076.html +56 -0
- data/doc/classes/Autobuild/Package.src/M000077.html +16 -0
- data/doc/classes/Autobuild/Package.src/{M000091.html → M000078.html} +3 -3
- data/doc/classes/Autobuild/Package.src/M000079.html +28 -0
- data/doc/classes/Autobuild/Package.src/M000080.html +23 -0
- data/doc/classes/Autobuild/Package.src/{M000086.html → M000081.html} +1 -1
- data/doc/classes/Autobuild/Package.src/{M000087.html → M000082.html} +3 -3
- data/doc/classes/Autobuild/Package.src/M000101.html +16 -0
- data/doc/classes/Autobuild/Package.src/M000102.html +16 -0
- data/doc/classes/Autobuild/Package.src/M000103.html +16 -0
- data/doc/classes/Autobuild/Package.src/M000104.html +56 -0
- data/doc/classes/Autobuild/Package.src/M000105.html +16 -0
- data/doc/classes/Autobuild/Package.src/M000106.html +16 -0
- data/doc/classes/Autobuild/Package.src/M000107.html +28 -0
- data/doc/classes/Autobuild/Package.src/M000108.html +23 -0
- data/doc/classes/Autobuild/Package.src/M000109.html +19 -0
- data/doc/classes/Autobuild/Package.src/{M000093.html → M000110.html} +4 -4
- data/doc/classes/Autobuild/PackageException.html +11 -5
- data/doc/classes/Autobuild/PackageException.src/{M000059.html → M000050.html} +1 -1
- data/doc/classes/Autobuild/PackageException.src/M000078.html +16 -0
- data/doc/classes/Autobuild/Reporter.html +16 -10
- data/doc/classes/Autobuild/Reporter.src/{M000074.html → M000053.html} +1 -1
- data/doc/classes/Autobuild/Reporter.src/{M000075.html → M000054.html} +1 -1
- data/doc/classes/Autobuild/Reporter.src/M000081.html +16 -0
- data/doc/classes/Autobuild/Reporter.src/M000082.html +16 -0
- data/doc/classes/Autobuild/Reporting.html +60 -33
- data/doc/classes/Autobuild/Reporting.src/{M000095.html → M000025.html} +1 -1
- data/doc/classes/Autobuild/Reporting.src/{M000096.html → M000026.html} +1 -1
- data/doc/classes/Autobuild/Reporting.src/{M000097.html → M000027.html} +1 -1
- data/doc/classes/Autobuild/Reporting.src/{M000098.html → M000028.html} +1 -1
- data/doc/classes/Autobuild/Reporting.src/{M000099.html → M000029.html} +2 -2
- data/doc/classes/Autobuild/Reporting.src/M000053.html +24 -0
- data/doc/classes/Autobuild/Reporting.src/M000054.html +18 -0
- data/doc/classes/Autobuild/Reporting.src/M000055.html +18 -0
- data/doc/classes/Autobuild/Reporting.src/M000056.html +18 -0
- data/doc/classes/Autobuild/Reporting.src/M000057.html +18 -0
- data/doc/classes/Autobuild/{SVNImporter.html → SVN.html} +8 -8
- data/doc/classes/Autobuild/SVN.src/M000038.html +22 -0
- data/doc/classes/Autobuild/SVN.src/M000066.html +22 -0
- data/doc/classes/Autobuild/SourceTreeTask.html +5 -5
- data/doc/classes/Autobuild/SourceTreeTask.src/{M000114.html → M000083.html} +1 -1
- data/doc/classes/Autobuild/SourceTreeTask.src/M000111.html +18 -0
- data/doc/classes/Autobuild/StdoutReporter.html +16 -10
- data/doc/classes/Autobuild/StdoutReporter.src/{M000072.html → M000051.html} +1 -1
- data/doc/classes/Autobuild/StdoutReporter.src/{M000073.html → M000052.html} +1 -1
- data/doc/classes/Autobuild/StdoutReporter.src/M000079.html +18 -0
- data/doc/classes/Autobuild/StdoutReporter.src/M000080.html +18 -0
- data/doc/classes/Autobuild/SubcommandFailed.html +21 -15
- data/doc/classes/Autobuild/SubcommandFailed.src/{M000100.html → M000084.html} +1 -1
- data/doc/classes/Autobuild/SubcommandFailed.src/{M000101.html → M000085.html} +2 -2
- data/doc/classes/Autobuild/SubcommandFailed.src/{M000102.html → M000086.html} +1 -1
- data/doc/classes/Autobuild/SubcommandFailed.src/M000112.html +16 -0
- data/doc/classes/Autobuild/SubcommandFailed.src/M000113.html +32 -0
- data/doc/classes/Autobuild/SubcommandFailed.src/M000114.html +20 -0
- data/doc/classes/Autobuild/Subprocess.html +10 -10
- data/doc/classes/Autobuild/Subprocess.src/{M000042.html → M000030.html} +0 -0
- data/doc/classes/Autobuild/Subprocess.src/{M000043.html → M000031.html} +4 -2
- data/doc/classes/Autobuild/Subprocess.src/M000058.html +18 -0
- data/doc/classes/Autobuild/Subprocess.src/M000059.html +98 -0
- data/doc/classes/Autobuild/Subprocess/Failed.html +5 -5
- data/doc/classes/Autobuild/Subprocess/Failed.src/{M000044.html → M000032.html} +0 -0
- data/doc/classes/Autobuild/Subprocess/Failed.src/M000060.html +18 -0
- data/doc/classes/Autobuild/TarImporter.html +35 -35
- data/doc/classes/Autobuild/TarImporter.src/{M000076.html → M000064.html} +0 -0
- data/doc/classes/Autobuild/TarImporter.src/{M000077.html → M000065.html} +0 -0
- data/doc/classes/Autobuild/TarImporter.src/{M000078.html → M000066.html} +0 -0
- data/doc/classes/Autobuild/TarImporter.src/{M000079.html → M000067.html} +0 -0
- data/doc/classes/Autobuild/TarImporter.src/{M000080.html → M000068.html} +0 -0
- data/doc/classes/Autobuild/TarImporter.src/{M000081.html → M000069.html} +1 -1
- data/doc/classes/Autobuild/TarImporter.src/{M000082.html → M000070.html} +2 -2
- data/doc/classes/Autobuild/TarImporter.src/M000092.html +28 -0
- data/doc/classes/Autobuild/TarImporter.src/M000093.html +53 -0
- data/doc/classes/Autobuild/TarImporter.src/M000094.html +26 -0
- data/doc/classes/Autobuild/TarImporter.src/M000095.html +16 -0
- data/doc/classes/Autobuild/TarImporter.src/M000096.html +20 -0
- data/doc/classes/Autobuild/TarImporter.src/M000097.html +20 -0
- data/doc/classes/Autobuild/TarImporter.src/M000098.html +30 -0
- data/doc/classes/Autobuild/UndefinedVariable.html +12 -12
- data/doc/classes/Autobuild/UndefinedVariable.src/{M000083.html → M000071.html} +1 -1
- data/doc/classes/Autobuild/UndefinedVariable.src/{M000084.html → M000072.html} +1 -1
- data/doc/classes/Autobuild/UndefinedVariable.src/M000099.html +19 -0
- data/doc/classes/Autobuild/{Exception.src/M000106.html → UndefinedVariable.src/M000100.html} +3 -4
- data/doc/classes/Hash.html +12 -12
- data/doc/classes/Hash.src/{M000019.html → M000002.html} +1 -1
- data/doc/classes/Hash.src/M000003.html +23 -0
- data/doc/classes/Hash.src/M000020.html +11 -8
- data/doc/classes/Hash.src/M000021.html +23 -0
- data/doc/classes/RMail/Message.html +8 -5
- data/doc/classes/RMail/Message.src/{M000033.html → M000004.html} +1 -1
- data/doc/classes/RMail/Message.src/M000028.html +25 -0
- data/doc/classes/TC_CVSImport.html +15 -15
- data/doc/classes/{TC_TarImporter.src/M000009.html → TC_CVSImport.src/M000025.html} +7 -6
- data/doc/classes/TC_CVSImport.src/M000026.html +6 -7
- data/doc/classes/TC_CVSImport.src/M000027.html +22 -7
- data/doc/classes/TC_Config.html +20 -20
- data/doc/classes/TC_Config.src/{M000001.html → M000006.html} +0 -0
- data/doc/classes/TC_Config.src/{M000002.html → M000007.html} +0 -0
- data/doc/classes/TC_Config.src/{M000003.html → M000008.html} +0 -0
- data/doc/classes/TC_Config.src/{M000004.html → M000009.html} +0 -0
- data/doc/classes/TC_ConfigInterpolation.html +20 -20
- data/doc/classes/TC_ConfigInterpolation.src/{M000015.html → M000002.html} +0 -0
- data/doc/classes/TC_ConfigInterpolation.src/{M000016.html → M000003.html} +0 -0
- data/doc/classes/TC_ConfigInterpolation.src/{M000017.html → M000004.html} +0 -0
- data/doc/classes/TC_ConfigInterpolation.src/{M000018.html → M000005.html} +0 -0
- data/doc/classes/TC_SVNImport.html +15 -15
- data/doc/classes/TC_SVNImport.src/{M000005.html → M000017.html} +0 -0
- data/doc/classes/TC_SVNImport.src/{M000006.html → M000018.html} +0 -0
- data/doc/classes/TC_SVNImport.src/{M000007.html → M000019.html} +0 -0
- data/doc/classes/TC_Subcommand.html +15 -15
- data/doc/classes/TC_Subcommand.src/M000022.html +17 -4
- data/doc/classes/TC_Subcommand.src/M000023.html +4 -16
- data/doc/classes/TC_Subcommand.src/M000024.html +30 -0
- data/doc/classes/TC_TarImporter.html +35 -35
- data/doc/classes/TC_TarImporter.src/M000010.html +14 -6
- data/doc/classes/TC_TarImporter.src/M000011.html +7 -6
- data/doc/classes/TC_TarImporter.src/M000012.html +6 -12
- data/doc/classes/TC_TarImporter.src/M000013.html +6 -17
- data/doc/classes/TC_TarImporter.src/M000014.html +11 -9
- data/doc/classes/TC_TarImporter.src/M000015.html +31 -0
- data/doc/classes/TC_TarImporter.src/M000016.html +24 -0
- data/doc/created.rid +1 -1
- data/doc/files/README.html +378 -0
- data/doc/files/{lib/autobuild/options_rb.html → demo_rb.html} +19 -5
- data/doc/files/lib/autobuild/config_rb.html +30 -7
- data/doc/files/lib/autobuild/config_rb.src/M000001.html +18 -0
- data/doc/files/lib/autobuild/environment_rb.html +1 -1
- data/doc/files/lib/autobuild/exceptions_rb.html +1 -1
- data/doc/files/lib/autobuild/import/cvs_rb.html +2 -1
- data/doc/files/{test/base_rb.html → lib/autobuild/import/darcs_rb.html} +8 -11
- data/doc/files/lib/autobuild/import/svn_rb.html +1 -1
- data/doc/files/lib/autobuild/import/tar_rb.html +1 -1
- data/doc/files/lib/autobuild/importer_rb.html +2 -1
- data/doc/files/lib/autobuild/{config-interpolator_rb.html → loaders/config-interpolator_rb.html} +3 -3
- data/doc/files/lib/autobuild/loaders/config_rb.html +113 -0
- data/doc/files/lib/autobuild/package_rb.html +1 -1
- data/doc/files/lib/autobuild/packages/autotools_rb.html +2 -1
- data/doc/files/lib/autobuild/packages/genom_rb.html +1 -1
- data/doc/files/lib/autobuild/packages/import_rb.html +1 -1
- data/doc/files/lib/autobuild/reporting_rb.html +2 -1
- data/doc/files/lib/autobuild/subcommand_rb.html +1 -1
- data/doc/files/lib/autobuild/timestamps_rb.html +2 -1
- data/doc/files/{test/test_attr_defval_rb.html → lib/autobuild_rb.html} +7 -6
- data/doc/files/test/test_config_interpolation_rb.html +2 -2
- data/doc/files/test/test_config_rb.html +2 -2
- data/doc/files/test/test_import_cvs_rb.html +1 -1
- data/doc/files/test/test_import_svn_rb.html +1 -1
- data/doc/files/test/test_import_tar_rb.html +1 -1
- data/doc/files/test/test_subcommand_rb.html +2 -2
- data/doc/files/test/tools_rb.html +1 -1
- data/doc/fr_class_index.html +0 -37
- data/doc/fr_file_index.html +1 -25
- data/doc/fr_method_index.html +0 -117
- data/doc/index.html +1 -1
- data/lib/autobuild.rb +3 -0
- data/lib/autobuild/config.rb +87 -153
- data/lib/autobuild/environment.rb +4 -1
- data/lib/autobuild/exceptions.rb +19 -5
- data/lib/autobuild/import/cvs.rb +11 -10
- data/lib/autobuild/import/darcs.rb +32 -0
- data/lib/autobuild/import/svn.rb +10 -13
- data/lib/autobuild/import/tar.rb +3 -3
- data/lib/autobuild/importer.rb +5 -4
- data/lib/autobuild/package.rb +109 -69
- data/lib/autobuild/packages/autotools.rb +112 -69
- data/lib/autobuild/packages/genom.rb +48 -32
- data/lib/autobuild/packages/import.rb +6 -4
- data/lib/autobuild/reporting.rb +48 -19
- data/lib/autobuild/subcommand.rb +7 -9
- data/lib/autobuild/timestamps.rb +6 -5
- data/test/test_import_cvs.rb +7 -14
- data/test/test_import_svn.rb +6 -20
- data/test/test_import_tar.rb +3 -8
- data/test/test_subcommand.rb +7 -14
- data/test/tools.rb +5 -0
- metadata +336 -226
- data/doc/classes/Autobuild/Autotools.src/M000066.html +0 -26
- data/doc/classes/Autobuild/Autotools.src/M000068.html +0 -53
- data/doc/classes/Autobuild/Autotools.src/M000069.html +0 -28
- data/doc/classes/Autobuild/Autotools.src/M000070.html +0 -23
- data/doc/classes/Autobuild/Autotools.src/M000071.html +0 -22
- data/doc/classes/Autobuild/CVSImporter.src/M000048.html +0 -24
- data/doc/classes/Autobuild/Config.html +0 -146
- data/doc/classes/Autobuild/GenomModule.src/M000113.html +0 -35
- data/doc/classes/Autobuild/Import.src/M000046.html +0 -18
- data/doc/classes/Autobuild/Options.src/M000058.html +0 -27
- data/doc/classes/Autobuild/Package.src/M000088.html +0 -41
- data/doc/classes/Autobuild/Package.src/M000089.html +0 -22
- data/doc/classes/Autobuild/Package.src/M000090.html +0 -23
- data/doc/classes/Autobuild/Package.src/M000092.html +0 -24
- data/doc/classes/Autobuild/Package.src/M000094.html +0 -23
- data/doc/classes/Autobuild/SVNImporter.src/M000050.html +0 -23
- data/doc/classes/TC_AttrDefval.html +0 -152
- data/doc/classes/TC_AttrDefval.src/M000024.html +0 -31
- data/doc/classes/TC_AttrDefval.src/M000025.html +0 -22
- data/doc/classes/TC_CVSImport.src/M000028.html +0 -36
- data/doc/classes/TC_Subcommand.src/M000021.html +0 -31
- data/doc/classes/TC_TarImporter.src/M000008.html +0 -28
- data/lib/autobuild/config-interpolator.rb +0 -107
- data/lib/autobuild/options.rb +0 -22
- data/test/base.rb +0 -8
- data/test/test_attr_defval.rb +0 -29
- data/test/test_config.rb +0 -40
- data/test/test_config_interpolation.rb +0 -57
File without changes
|
File without changes
|
File without changes
|
@@ -86,9 +86,9 @@
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
90
|
-
<a href="#
|
91
|
-
<a href="#
|
89
|
+
<a href="#M000022">setup</a>
|
90
|
+
<a href="#M000023">teardown</a>
|
91
|
+
<a href="#M000024">test_subcommand</a>
|
92
92
|
</div>
|
93
93
|
</div>
|
94
94
|
|
@@ -151,12 +151,12 @@
|
|
151
151
|
<div id="methods">
|
152
152
|
<h3 class="section-bar">Public Instance methods</h3>
|
153
153
|
|
154
|
-
<div id="method-
|
155
|
-
<a name="
|
154
|
+
<div id="method-M000022" class="method-detail">
|
155
|
+
<a name="M000022"></a>
|
156
156
|
|
157
157
|
<div class="method-heading">
|
158
|
-
<a href="TC_Subcommand.src/
|
159
|
-
onclick="popupCode('TC_Subcommand.src/
|
158
|
+
<a href="TC_Subcommand.src/M000022.html" target="Code" class="method-signature"
|
159
|
+
onclick="popupCode('TC_Subcommand.src/M000022.html');return false;">
|
160
160
|
<span class="method-name">setup</span><span class="method-args">()</span>
|
161
161
|
</a>
|
162
162
|
</div>
|
@@ -165,12 +165,12 @@
|
|
165
165
|
</div>
|
166
166
|
</div>
|
167
167
|
|
168
|
-
<div id="method-
|
169
|
-
<a name="
|
168
|
+
<div id="method-M000023" class="method-detail">
|
169
|
+
<a name="M000023"></a>
|
170
170
|
|
171
171
|
<div class="method-heading">
|
172
|
-
<a href="TC_Subcommand.src/
|
173
|
-
onclick="popupCode('TC_Subcommand.src/
|
172
|
+
<a href="TC_Subcommand.src/M000023.html" target="Code" class="method-signature"
|
173
|
+
onclick="popupCode('TC_Subcommand.src/M000023.html');return false;">
|
174
174
|
<span class="method-name">teardown</span><span class="method-args">()</span>
|
175
175
|
</a>
|
176
176
|
</div>
|
@@ -179,12 +179,12 @@
|
|
179
179
|
</div>
|
180
180
|
</div>
|
181
181
|
|
182
|
-
<div id="method-
|
183
|
-
<a name="
|
182
|
+
<div id="method-M000024" class="method-detail">
|
183
|
+
<a name="M000024"></a>
|
184
184
|
|
185
185
|
<div class="method-heading">
|
186
|
-
<a href="TC_Subcommand.src/
|
187
|
-
onclick="popupCode('TC_Subcommand.src/
|
186
|
+
<a href="TC_Subcommand.src/M000024.html" target="Code" class="method-signature"
|
187
|
+
onclick="popupCode('TC_Subcommand.src/M000024.html');return false;">
|
188
188
|
<span class="method-name">test_subcommand</span><span class="method-args">()</span>
|
189
189
|
</a>
|
190
190
|
</div>
|
@@ -5,14 +5,27 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>setup (TC_Subcommand)</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 test/test_subcommand.rb, line
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
15
|
-
<span class="ruby-constant">TestTools</span>.<span class="ruby-identifier">
|
13
|
+
<pre><span class="ruby-comment cmt"># File test/test_subcommand.rb, line 28</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span>
|
15
|
+
<span class="ruby-identifier">conffile</span> = <span class="ruby-constant">TestTools</span>.<span class="ruby-identifier">build_config</span>(<span class="ruby-identifier">binding</span>, <span class="ruby-value str">'dummy'</span>)
|
16
|
+
<span class="ruby-ivar">@tmpdir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-identifier">conffile</span>)
|
17
|
+
|
18
|
+
<span class="ruby-identifier">options</span> = <span class="ruby-constant">Options</span>.<span class="ruby-identifier">default</span>
|
19
|
+
<span class="ruby-identifier">options</span>.<span class="ruby-identifier">logdir</span> = <span class="ruby-identifier">tmpdir</span>
|
20
|
+
<span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">conffile</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">confstream</span><span class="ruby-operator">|</span>
|
21
|
+
<span class="ruby-constant">Autobuild</span><span class="ruby-operator">::</span><span class="ruby-constant">Config</span>.<span class="ruby-identifier">load</span> <span class="ruby-identifier">confstream</span>, <span class="ruby-identifier">options</span>
|
22
|
+
<span class="ruby-keyword kw">end</span>
|
23
|
+
|
24
|
+
<span class="ruby-comment cmt"># Write example files</span>
|
25
|
+
<span class="ruby-ivar">@source1</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">tmpdir</span>, <span class="ruby-value str">'source1'</span>)
|
26
|
+
<span class="ruby-ivar">@source2</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">tmpdir</span>, <span class="ruby-value str">'source2'</span>)
|
27
|
+
<span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">source1</span>, <span class="ruby-value str">'w+'</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">write</span>(<span class="ruby-constant">EXAMPLE_1</span>) }
|
28
|
+
<span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">source2</span>, <span class="ruby-value str">'w+'</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">write</span>(<span class="ruby-constant">EXAMPLE_2</span>) }
|
16
29
|
<span class="ruby-keyword kw">end</span></pre>
|
17
30
|
</body>
|
18
31
|
</html>
|
@@ -5,26 +5,14 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>teardown (TC_Subcommand)</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 test/test_subcommand.rb, line
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
15
|
-
<span class="ruby-
|
16
|
-
|
17
|
-
<span class="ruby-constant">Subprocess</span>.<span class="ruby-identifier">run</span>(<span class="ruby-value str">'test'</span>, <span class="ruby-value str">'simple'</span>, <span class="ruby-value str">'cat'</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-value str">''</span>, <span class="ruby-identifier">source1</span>)
|
18
|
-
<span class="ruby-identifier">assert</span>( <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">identical?</span>(<span class="ruby-identifier">source1</span>, <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">tmpdir</span>, <span class="ruby-value str">'test-simple.log'</span>)) )
|
19
|
-
|
20
|
-
<span class="ruby-constant">Subprocess</span>.<span class="ruby-identifier">run</span>(<span class="ruby-value str">'test'</span>, <span class="ruby-value str">'use-lt'</span>, <span class="ruby-value str">'cat'</span>, <span class="ruby-node">"<#{source1}"</span>)
|
21
|
-
<span class="ruby-identifier">assert</span>( <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">identical?</span>(<span class="ruby-identifier">source1</span>, <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">tmpdir</span>, <span class="ruby-value str">'test-use-lt.log'</span>)) )
|
22
|
-
|
23
|
-
<span class="ruby-constant">Subprocess</span>.<span class="ruby-identifier">run</span>(<span class="ruby-value str">'test'</span>, <span class="ruby-value str">'use-both'</span>, <span class="ruby-value str">'cat'</span>, <span class="ruby-identifier">source1</span>, <span class="ruby-value str">'-'</span>, <span class="ruby-node">"<#{source2}"</span>)
|
24
|
-
<span class="ruby-identifier">result</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>( <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">tmpdir</span>, <span class="ruby-value str">'test-use-both.log'</span>) ) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span>
|
25
|
-
<span class="ruby-identifier">f</span>.<span class="ruby-identifier">readlines</span>
|
26
|
-
<span class="ruby-keyword kw">end</span>
|
27
|
-
<span class="ruby-identifier">assert_equal</span>(<span class="ruby-constant">EXAMPLE_1</span> <span class="ruby-operator">+</span> <span class="ruby-constant">EXAMPLE_2</span>, <span class="ruby-identifier">result</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">""</span>))
|
13
|
+
<pre><span class="ruby-comment cmt"># File test/test_subcommand.rb, line 45</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">teardown</span>
|
15
|
+
<span class="ruby-constant">TestTools</span>.<span class="ruby-identifier">clean</span>
|
28
16
|
<span class="ruby-keyword kw">end</span></pre>
|
29
17
|
</body>
|
30
18
|
</html>
|
@@ -0,0 +1,30 @@
|
|
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>test_subcommand (TC_Subcommand)</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 test/test_subcommand.rb, line 49</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_subcommand</span>
|
15
|
+
<span class="ruby-identifier">assert_raise</span>(<span class="ruby-constant">SubcommandFailed</span>) { <span class="ruby-operator">||</span> <span class="ruby-constant">Subprocess</span>.<span class="ruby-identifier">run</span>(<span class="ruby-value str">'test'</span>, <span class="ruby-value str">'copy'</span>, <span class="ruby-value str">'cat'</span>, <span class="ruby-value str">'bla'</span>) }
|
16
|
+
|
17
|
+
<span class="ruby-constant">Subprocess</span>.<span class="ruby-identifier">run</span>(<span class="ruby-value str">'test'</span>, <span class="ruby-value str">'simple'</span>, <span class="ruby-value str">'cat'</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-value str">''</span>, <span class="ruby-identifier">source1</span>)
|
18
|
+
<span class="ruby-identifier">assert</span>( <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">identical?</span>(<span class="ruby-identifier">source1</span>, <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">tmpdir</span>, <span class="ruby-value str">'test-simple.log'</span>)) )
|
19
|
+
|
20
|
+
<span class="ruby-constant">Subprocess</span>.<span class="ruby-identifier">run</span>(<span class="ruby-value str">'test'</span>, <span class="ruby-value str">'use-lt'</span>, <span class="ruby-value str">'cat'</span>, <span class="ruby-node">"<#{source1}"</span>)
|
21
|
+
<span class="ruby-identifier">assert</span>( <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">identical?</span>(<span class="ruby-identifier">source1</span>, <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">tmpdir</span>, <span class="ruby-value str">'test-use-lt.log'</span>)) )
|
22
|
+
|
23
|
+
<span class="ruby-constant">Subprocess</span>.<span class="ruby-identifier">run</span>(<span class="ruby-value str">'test'</span>, <span class="ruby-value str">'use-both'</span>, <span class="ruby-value str">'cat'</span>, <span class="ruby-identifier">source1</span>, <span class="ruby-value str">'-'</span>, <span class="ruby-node">"<#{source2}"</span>)
|
24
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>( <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">tmpdir</span>, <span class="ruby-value str">'test-use-both.log'</span>) ) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span>
|
25
|
+
<span class="ruby-identifier">f</span>.<span class="ruby-identifier">readlines</span>
|
26
|
+
<span class="ruby-keyword kw">end</span>
|
27
|
+
<span class="ruby-identifier">assert_equal</span>(<span class="ruby-constant">EXAMPLE_1</span> <span class="ruby-operator">+</span> <span class="ruby-constant">EXAMPLE_2</span>, <span class="ruby-identifier">result</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">""</span>))
|
28
|
+
<span class="ruby-keyword kw">end</span></pre>
|
29
|
+
</body>
|
30
|
+
</html>
|
@@ -86,13 +86,13 @@
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
90
|
-
<a href="#
|
91
|
-
<a href="#
|
92
|
-
<a href="#
|
93
|
-
<a href="#
|
94
|
-
<a href="#
|
95
|
-
<a href="#
|
89
|
+
<a href="#M000010">setup</a>
|
90
|
+
<a href="#M000011">teardown</a>
|
91
|
+
<a href="#M000012">test_tar_mode</a>
|
92
|
+
<a href="#M000015">test_tar_remote</a>
|
93
|
+
<a href="#M000016">test_tar_remote_notfound</a>
|
94
|
+
<a href="#M000013">test_tar_valid_url</a>
|
95
|
+
<a href="#M000014">web_server</a>
|
96
96
|
</div>
|
97
97
|
</div>
|
98
98
|
|
@@ -134,12 +134,12 @@
|
|
134
134
|
<div id="methods">
|
135
135
|
<h3 class="section-bar">Public Instance methods</h3>
|
136
136
|
|
137
|
-
<div id="method-
|
138
|
-
<a name="
|
137
|
+
<div id="method-M000010" class="method-detail">
|
138
|
+
<a name="M000010"></a>
|
139
139
|
|
140
140
|
<div class="method-heading">
|
141
|
-
<a href="TC_TarImporter.src/
|
142
|
-
onclick="popupCode('TC_TarImporter.src/
|
141
|
+
<a href="TC_TarImporter.src/M000010.html" target="Code" class="method-signature"
|
142
|
+
onclick="popupCode('TC_TarImporter.src/M000010.html');return false;">
|
143
143
|
<span class="method-name">setup</span><span class="method-args">()</span>
|
144
144
|
</a>
|
145
145
|
</div>
|
@@ -148,12 +148,12 @@
|
|
148
148
|
</div>
|
149
149
|
</div>
|
150
150
|
|
151
|
-
<div id="method-
|
152
|
-
<a name="
|
151
|
+
<div id="method-M000011" class="method-detail">
|
152
|
+
<a name="M000011"></a>
|
153
153
|
|
154
154
|
<div class="method-heading">
|
155
|
-
<a href="TC_TarImporter.src/
|
156
|
-
onclick="popupCode('TC_TarImporter.src/
|
155
|
+
<a href="TC_TarImporter.src/M000011.html" target="Code" class="method-signature"
|
156
|
+
onclick="popupCode('TC_TarImporter.src/M000011.html');return false;">
|
157
157
|
<span class="method-name">teardown</span><span class="method-args">()</span>
|
158
158
|
</a>
|
159
159
|
</div>
|
@@ -162,12 +162,12 @@
|
|
162
162
|
</div>
|
163
163
|
</div>
|
164
164
|
|
165
|
-
<div id="method-
|
166
|
-
<a name="
|
165
|
+
<div id="method-M000012" class="method-detail">
|
166
|
+
<a name="M000012"></a>
|
167
167
|
|
168
168
|
<div class="method-heading">
|
169
|
-
<a href="TC_TarImporter.src/
|
170
|
-
onclick="popupCode('TC_TarImporter.src/
|
169
|
+
<a href="TC_TarImporter.src/M000012.html" target="Code" class="method-signature"
|
170
|
+
onclick="popupCode('TC_TarImporter.src/M000012.html');return false;">
|
171
171
|
<span class="method-name">test_tar_mode</span><span class="method-args">()</span>
|
172
172
|
</a>
|
173
173
|
</div>
|
@@ -176,12 +176,12 @@
|
|
176
176
|
</div>
|
177
177
|
</div>
|
178
178
|
|
179
|
-
<div id="method-
|
180
|
-
<a name="
|
179
|
+
<div id="method-M000015" class="method-detail">
|
180
|
+
<a name="M000015"></a>
|
181
181
|
|
182
182
|
<div class="method-heading">
|
183
|
-
<a href="TC_TarImporter.src/
|
184
|
-
onclick="popupCode('TC_TarImporter.src/
|
183
|
+
<a href="TC_TarImporter.src/M000015.html" target="Code" class="method-signature"
|
184
|
+
onclick="popupCode('TC_TarImporter.src/M000015.html');return false;">
|
185
185
|
<span class="method-name">test_tar_remote</span><span class="method-args">()</span>
|
186
186
|
</a>
|
187
187
|
</div>
|
@@ -190,12 +190,12 @@
|
|
190
190
|
</div>
|
191
191
|
</div>
|
192
192
|
|
193
|
-
<div id="method-
|
194
|
-
<a name="
|
193
|
+
<div id="method-M000016" class="method-detail">
|
194
|
+
<a name="M000016"></a>
|
195
195
|
|
196
196
|
<div class="method-heading">
|
197
|
-
<a href="TC_TarImporter.src/
|
198
|
-
onclick="popupCode('TC_TarImporter.src/
|
197
|
+
<a href="TC_TarImporter.src/M000016.html" target="Code" class="method-signature"
|
198
|
+
onclick="popupCode('TC_TarImporter.src/M000016.html');return false;">
|
199
199
|
<span class="method-name">test_tar_remote_notfound</span><span class="method-args">()</span>
|
200
200
|
</a>
|
201
201
|
</div>
|
@@ -204,12 +204,12 @@
|
|
204
204
|
</div>
|
205
205
|
</div>
|
206
206
|
|
207
|
-
<div id="method-
|
208
|
-
<a name="
|
207
|
+
<div id="method-M000013" class="method-detail">
|
208
|
+
<a name="M000013"></a>
|
209
209
|
|
210
210
|
<div class="method-heading">
|
211
|
-
<a href="TC_TarImporter.src/
|
212
|
-
onclick="popupCode('TC_TarImporter.src/
|
211
|
+
<a href="TC_TarImporter.src/M000013.html" target="Code" class="method-signature"
|
212
|
+
onclick="popupCode('TC_TarImporter.src/M000013.html');return false;">
|
213
213
|
<span class="method-name">test_tar_valid_url</span><span class="method-args">()</span>
|
214
214
|
</a>
|
215
215
|
</div>
|
@@ -218,12 +218,12 @@
|
|
218
218
|
</div>
|
219
219
|
</div>
|
220
220
|
|
221
|
-
<div id="method-
|
222
|
-
<a name="
|
221
|
+
<div id="method-M000014" class="method-detail">
|
222
|
+
<a name="M000014"></a>
|
223
223
|
|
224
224
|
<div class="method-heading">
|
225
|
-
<a href="TC_TarImporter.src/
|
226
|
-
onclick="popupCode('TC_TarImporter.src/
|
225
|
+
<a href="TC_TarImporter.src/M000014.html" target="Code" class="method-signature"
|
226
|
+
onclick="popupCode('TC_TarImporter.src/M000014.html');return false;">
|
227
227
|
<span class="method-name">web_server</span><span class="method-args">() {|| ...}</span>
|
228
228
|
</a>
|
229
229
|
</div>
|
@@ -5,16 +5,24 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>setup (TC_TarImporter)</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 test/test_import_tar.rb, line
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
15
|
-
<span class="ruby-identifier"
|
16
|
-
<span class="ruby-identifier"
|
17
|
-
<span class="ruby-identifier"
|
13
|
+
<pre><span class="ruby-comment cmt"># File test/test_import_tar.rb, line 16</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span>
|
15
|
+
<span class="ruby-identifier">$PROGRAMS</span> = {}
|
16
|
+
<span class="ruby-identifier">$UPDATE</span> = <span class="ruby-keyword kw">true</span>
|
17
|
+
<span class="ruby-identifier">$LOGDIR</span> = <span class="ruby-node">"#{TestTools.tempdir}/log"</span>
|
18
|
+
<span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">mkdir_p</span>(<span class="ruby-identifier">$LOGDIR</span>)
|
19
|
+
|
20
|
+
<span class="ruby-ivar">@datadir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">TestTools</span>.<span class="ruby-identifier">tempdir</span>, <span class="ruby-value str">'data'</span>)
|
21
|
+
<span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">mkdir_p</span>(<span class="ruby-ivar">@datadir</span>)
|
22
|
+
<span class="ruby-ivar">@tarfile</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-ivar">@datadir</span>, <span class="ruby-value str">'tarimport.tar.gz'</span>)
|
23
|
+
<span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">cp</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">TestTools</span><span class="ruby-operator">::</span><span class="ruby-constant">DATADIR</span>, <span class="ruby-value str">'tarimport.tar.gz'</span>), <span class="ruby-ivar">@tarfile</span>)
|
24
|
+
|
25
|
+
<span class="ruby-ivar">@cachedir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">TestTools</span>.<span class="ruby-identifier">tempdir</span>, <span class="ruby-value str">'cache'</span>)
|
18
26
|
<span class="ruby-keyword kw">end</span></pre>
|
19
27
|
</body>
|
20
28
|
</html>
|
@@ -5,16 +5,17 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>teardown (TC_TarImporter)</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 test/test_import_tar.rb, line
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
15
|
-
<span class="ruby-identifier"
|
16
|
-
|
17
|
-
|
13
|
+
<pre><span class="ruby-comment cmt"># File test/test_import_tar.rb, line 30</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">teardown</span>
|
15
|
+
<span class="ruby-identifier">$PROGRAMS</span> = <span class="ruby-keyword kw">nil</span>
|
16
|
+
<span class="ruby-identifier">$UPDATE</span> = <span class="ruby-keyword kw">true</span>
|
17
|
+
<span class="ruby-identifier">$LOGDIR</span> = <span class="ruby-keyword kw">nil</span>
|
18
|
+
<span class="ruby-constant">TestTools</span>.<span class="ruby-identifier">clean</span>
|
18
19
|
<span class="ruby-keyword kw">end</span></pre>
|
19
20
|
</body>
|
20
21
|
</html>
|
@@ -5,22 +5,16 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>test_tar_mode (TC_TarImporter)</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 test/test_import_tar.rb, line
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
15
|
-
<span class="ruby-identifier">
|
16
|
-
<span class="ruby-identifier">
|
17
|
-
<span class="ruby-identifier">
|
18
|
-
|
19
|
-
<span class="ruby-keyword kw">yield</span>
|
20
|
-
|
21
|
-
<span class="ruby-keyword kw">ensure</span>
|
22
|
-
<span class="ruby-identifier">s</span>.<span class="ruby-identifier">shutdown</span>
|
23
|
-
<span class="ruby-identifier">webrick</span>.<span class="ruby-identifier">join</span>
|
13
|
+
<pre><span class="ruby-comment cmt"># File test/test_import_tar.rb, line 37</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_tar_mode</span>
|
15
|
+
<span class="ruby-identifier">assert_equal</span>(<span class="ruby-constant">TarImporter</span><span class="ruby-operator">::</span><span class="ruby-constant">Plain</span>, <span class="ruby-constant">TarImporter</span>.<span class="ruby-identifier">url_to_mode</span>(<span class="ruby-value str">'tarfile.tar'</span>))
|
16
|
+
<span class="ruby-identifier">assert_equal</span>(<span class="ruby-constant">TarImporter</span><span class="ruby-operator">::</span><span class="ruby-constant">Gzip</span>, <span class="ruby-constant">TarImporter</span>.<span class="ruby-identifier">url_to_mode</span>(<span class="ruby-value str">'tarfile.tar.gz'</span>))
|
17
|
+
<span class="ruby-identifier">assert_equal</span>(<span class="ruby-constant">TarImporter</span><span class="ruby-operator">::</span><span class="ruby-constant">Bzip</span>, <span class="ruby-constant">TarImporter</span>.<span class="ruby-identifier">url_to_mode</span>(<span class="ruby-value str">'tarfile.tar.bz2'</span>))
|
24
18
|
<span class="ruby-keyword kw">end</span></pre>
|
25
19
|
</body>
|
26
20
|
</html>
|
@@ -5,27 +5,16 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>test_tar_valid_url (TC_TarImporter)</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 test/test_import_tar.rb, line
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
15
|
-
<span class="ruby-identifier">
|
16
|
-
<span class="ruby-
|
17
|
-
|
18
|
-
<span class="ruby-identifier">importer</span> = <span class="ruby-constant">TarImporter</span>.<span class="ruby-identifier">new</span> <span class="ruby-value str">'http://localhost:2000/files/data/tarimport.tar.gz'</span>, <span class="ruby-identifier">:cachedir</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@cachedir</span>
|
19
|
-
|
20
|
-
<span class="ruby-identifier">importer</span>.<span class="ruby-identifier">checkout</span>(<span class="ruby-identifier">pkg</span>)
|
21
|
-
<span class="ruby-identifier">assert</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">directory?</span>(<span class="ruby-identifier">pkg</span>.<span class="ruby-identifier">srcdir</span>))
|
22
|
-
<span class="ruby-identifier">assert</span>(<span class="ruby-operator">!</span><span class="ruby-identifier">importer</span>.<span class="ruby-identifier">update_cache</span>)
|
23
|
-
|
24
|
-
<span class="ruby-identifier">sleep</span> <span class="ruby-value">2</span> <span class="ruby-comment cmt"># The Time class have a 1-second resolution</span>
|
25
|
-
<span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">touch</span> <span class="ruby-ivar">@tarfile</span>
|
26
|
-
<span class="ruby-identifier">assert</span>(<span class="ruby-identifier">importer</span>.<span class="ruby-identifier">update_cache</span>)
|
27
|
-
<span class="ruby-identifier">assert</span>(<span class="ruby-operator">!</span><span class="ruby-identifier">importer</span>.<span class="ruby-identifier">update_cache</span>)
|
28
|
-
<span class="ruby-keyword kw">end</span>
|
13
|
+
<pre><span class="ruby-comment cmt"># File test/test_import_tar.rb, line 43</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_tar_valid_url</span>
|
15
|
+
<span class="ruby-identifier">assert_raise</span>(<span class="ruby-constant">ConfigException</span>) {
|
16
|
+
<span class="ruby-constant">TarImporter</span>.<span class="ruby-identifier">new</span> <span class="ruby-value str">'ccc://localhost/files/tarimport.tar.gz'</span>, <span class="ruby-identifier">:cachedir</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@cachedir</span>
|
17
|
+
}
|
29
18
|
<span class="ruby-keyword kw">end</span></pre>
|
30
19
|
</body>
|
31
20
|
</html>
|
@@ -5,20 +5,22 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>web_server (TC_TarImporter)</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 test/test_import_tar.rb, line
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
15
|
-
<span class="ruby-identifier">
|
16
|
-
|
17
|
-
|
18
|
-
<span class="ruby-identifier">importer</span> = <span class="ruby-constant">TarImporter</span>.<span class="ruby-identifier">new</span> <span class="ruby-value str">'http://localhost:2000/files/data/tarimport-nofile.tar.gz'</span>, <span class="ruby-identifier">:cachedir</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@cachedir</span>
|
13
|
+
<pre><span class="ruby-comment cmt"># File test/test_import_tar.rb, line 49</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">web_server</span>
|
15
|
+
<span class="ruby-identifier">s</span> = <span class="ruby-constant">HTTPServer</span>.<span class="ruby-identifier">new</span> <span class="ruby-identifier">:Port</span> =<span class="ruby-operator">></span> <span class="ruby-value">2000</span>, <span class="ruby-identifier">:DocumentRoot</span> =<span class="ruby-operator">></span> <span class="ruby-constant">TestTools</span>.<span class="ruby-identifier">tempdir</span>
|
16
|
+
<span class="ruby-identifier">s</span>.<span class="ruby-identifier">mount</span>(<span class="ruby-value str">"/files"</span>, <span class="ruby-constant">HTTPServlet</span><span class="ruby-operator">::</span><span class="ruby-constant">FileHandler</span>, <span class="ruby-constant">TestTools</span>.<span class="ruby-identifier">tempdir</span>)
|
17
|
+
<span class="ruby-identifier">webrick</span> = <span class="ruby-constant">Thread</span>.<span class="ruby-identifier">new</span> { <span class="ruby-identifier">s</span>.<span class="ruby-identifier">start</span> }
|
19
18
|
|
20
|
-
|
21
|
-
|
19
|
+
<span class="ruby-keyword kw">yield</span>
|
20
|
+
|
21
|
+
<span class="ruby-keyword kw">ensure</span>
|
22
|
+
<span class="ruby-identifier">s</span>.<span class="ruby-identifier">shutdown</span>
|
23
|
+
<span class="ruby-identifier">webrick</span>.<span class="ruby-identifier">join</span>
|
22
24
|
<span class="ruby-keyword kw">end</span></pre>
|
23
25
|
</body>
|
24
26
|
</html>
|