dsktool 0.4.2 → 0.5.1
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/bin/dskexplorer.rb +1 -1
- data/bin/dskexplorer.rb~ +365 -0
- data/bin/dsktool.rb +7 -3
- data/bin/dsktool.rb~ +173 -0
- data/doc/classes/AppleSoftFile.html +199 -0
- data/doc/classes/AppleSoftFile.src/M000005.html +18 -0
- data/doc/classes/AppleSoftFile.src/M000006.html +18 -0
- data/doc/classes/AppleSoftFile.src/M000008.html +18 -0
- data/doc/classes/AppleSoftFile.src/M000009.html +18 -0
- data/doc/classes/AppleSoftFile.src/M000010.html +18 -0
- data/doc/classes/AppleSoftFile.src/M000055.html +18 -0
- data/doc/classes/AppleSoftFile.src/M000056.html +18 -0
- data/doc/classes/AppleSoftFile.src/M000057.html +18 -0
- data/doc/classes/AppleSoftFile.src/M000058.html +18 -0
- data/doc/classes/BinaryFile.html +241 -0
- data/doc/classes/BinaryFile.src/M000015.html +18 -0
- data/doc/classes/BinaryFile.src/M000020.html +18 -0
- data/doc/classes/BinaryFile.src/M000021.html +18 -0
- data/doc/classes/BinaryFile.src/M000022.html +19 -0
- data/doc/classes/BinaryFile.src/M000107.html +18 -0
- data/doc/classes/BinaryFile.src/M000108.html +18 -0
- data/doc/classes/BinaryFile.src/M000109.html +18 -0
- data/doc/classes/BinaryFile.src/M000110.html +19 -0
- data/doc/classes/BinaryFile.src/M000111.html +19 -0
- data/doc/classes/BinaryFile.src/M000112.html +19 -0
- data/doc/classes/BinaryFile.src/M000113.html +18 -0
- data/doc/classes/CPMDisk.html +331 -0
- data/doc/classes/CPMDisk.src/M000024.html +21 -0
- data/doc/classes/CPMDisk.src/M000025.html +23 -0
- data/doc/classes/CPMDisk.src/M000026.html +23 -0
- data/doc/classes/CPMDisk.src/M000027.html +19 -0
- data/doc/classes/CPMDisk.src/M000028.html +18 -0
- data/doc/classes/CPMDisk.src/M000029.html +18 -0
- data/doc/classes/CPMDisk.src/M000030.html +31 -0
- data/doc/classes/CPMDisk.src/M000031.html +51 -0
- data/doc/classes/CPMDisk.src/M000032.html +53 -0
- data/doc/classes/CPMFile.html +252 -0
- data/doc/classes/CPMFile.src/M000064.html +22 -0
- data/doc/classes/CPMFile.src/M000065.html +20 -0
- data/doc/classes/CPMFile.src/M000066.html +22 -0
- data/doc/classes/CPMFile.src/M000067.html +18 -0
- data/doc/classes/CPMFile.src/M000068.html +18 -0
- data/doc/classes/CPMFile.src/M000069.html +18 -0
- data/doc/classes/CPMFile.src/M000070.html +18 -0
- data/doc/classes/CatalogServlet.html +148 -0
- data/doc/classes/CatalogServlet.src/M000035.html +20 -0
- data/doc/classes/CatalogServlet.src/M000036.html +20 -0
- data/doc/classes/D65.html +180 -0
- data/doc/classes/D65.src/M000002.html +18 -0
- data/doc/classes/D65.src/M000003.html +18 -0
- data/doc/classes/D65.src/M000004.html +64 -0
- data/doc/classes/D65.src/M000005.html +18 -0
- data/doc/classes/D65.src/M000006.html +18 -0
- data/doc/classes/D65.src/M000007.html +18 -0
- data/doc/classes/D65.src/M000008.html +18 -0
- data/doc/classes/D65.src/M000048.html +18 -0
- data/doc/classes/D65.src/M000049.html +64 -0
- data/doc/classes/DOSDisk.html +425 -0
- data/doc/classes/DOSDisk.src/M000007.html +20 -0
- data/doc/classes/DOSDisk.src/M000008.html +77 -0
- data/doc/classes/DOSDisk.src/M000010.html +20 -0
- data/doc/classes/DOSDisk.src/M000011.html +20 -0
- data/doc/classes/DOSDisk.src/M000012.html +19 -0
- data/doc/classes/DOSDisk.src/M000013.html +20 -0
- data/doc/classes/DOSDisk.src/M000053.html +23 -0
- data/doc/classes/DOSDisk.src/M000054.html +19 -0
- data/doc/classes/DOSDisk.src/M000055.html +21 -0
- data/doc/classes/DOSDisk.src/M000056.html +37 -0
- data/doc/classes/DOSDisk.src/M000057.html +85 -0
- data/doc/classes/DOSDisk.src/M000058.html +37 -0
- data/doc/classes/DOSDisk.src/M000059.html +34 -0
- data/doc/classes/DOSDisk.src/M000060.html +27 -0
- data/doc/classes/DOSDisk.src/M000061.html +43 -0
- data/doc/classes/DOSDisk.src/M000062.html +31 -0
- data/doc/classes/DOSDisk.src/M000063.html +95 -0
- data/doc/classes/DOSDisk.src/M000064.html +85 -0
- data/doc/classes/DOSDisk.src/M000065.html +37 -0
- data/doc/classes/DOSDisk.src/M000066.html +34 -0
- data/doc/classes/DOSDisk.src/M000067.html +27 -0
- data/doc/classes/DOSDisk.src/M000068.html +43 -0
- data/doc/classes/DOSDisk.src/M000069.html +31 -0
- data/doc/classes/DOSDisk.src/M000070.html +95 -0
- data/doc/classes/DOSFile.html +253 -0
- data/doc/classes/DOSFile.src/M000016.html +22 -0
- data/doc/classes/DOSFile.src/M000017.html +17 -0
- data/doc/classes/DOSFile.src/M000018.html +18 -0
- data/doc/classes/DOSFile.src/M000021.html +22 -0
- data/doc/classes/DOSFile.src/M000022.html +22 -0
- data/doc/classes/DOSFile.src/M000023.html +22 -0
- data/doc/classes/DOSFile.src/M000024.html +17 -0
- data/doc/classes/DOSFile.src/M000025.html +18 -0
- data/doc/classes/DOSFile.src/M000116.html +22 -0
- data/doc/classes/DOSFile.src/M000117.html +18 -0
- data/doc/classes/DOSFile.src/M000118.html +18 -0
- data/doc/classes/DOSFile.src/M000119.html +28 -0
- data/doc/classes/DOSFile.src/M000120.html +18 -0
- data/doc/classes/DSK.html +633 -0
- data/doc/classes/DSK.src/M000009.html +22 -0
- data/doc/classes/DSK.src/M000010.html +27 -0
- data/doc/classes/DSK.src/M000011.html +19 -0
- data/doc/classes/DSK.src/M000012.html +18 -0
- data/doc/classes/DSK.src/M000013.html +22 -0
- data/doc/classes/DSK.src/M000014.html +22 -0
- data/doc/classes/DSK.src/M000015.html +22 -0
- data/doc/classes/DSK.src/M000016.html +22 -0
- data/doc/classes/DSK.src/M000017.html +22 -0
- data/doc/classes/DSK.src/M000018.html +22 -0
- data/doc/classes/DSK.src/M000019.html +22 -0
- data/doc/classes/DSK.src/M000020.html +34 -0
- data/doc/classes/DSK.src/M000079.html +19 -0
- data/doc/classes/DSK.src/M000080.html +19 -0
- data/doc/classes/DSK.src/M000081.html +18 -0
- data/doc/classes/DSK.src/M000082.html +18 -0
- data/doc/classes/DSK.src/M000083.html +18 -0
- data/doc/classes/DSK.src/M000084.html +18 -0
- data/doc/classes/DSK.src/M000085.html +18 -0
- data/doc/classes/DSK.src/M000086.html +25 -0
- data/doc/classes/DSK.src/M000087.html +19 -0
- data/doc/classes/DSK.src/M000088.html +20 -0
- data/doc/classes/DSK.src/M000089.html +35 -0
- data/doc/classes/DSK.src/M000090.html +22 -0
- data/doc/classes/DSK.src/M000091.html +22 -0
- data/doc/classes/DSK.src/M000092.html +27 -0
- data/doc/classes/DSK.src/M000093.html +25 -0
- data/doc/classes/DSK.src/M000094.html +33 -0
- data/doc/classes/DSK.src/M000095.html +66 -0
- data/doc/classes/DSK.src/M000096.html +33 -0
- data/doc/classes/DSK.src/M000097.html +22 -0
- data/doc/classes/DSK.src/M000098.html +23 -0
- data/doc/classes/DSK.src/M000099.html +24 -0
- data/doc/classes/DSK.src/M000100.html +21 -0
- data/doc/classes/DSK.src/M000101.html +18 -0
- data/doc/classes/DSK.src/M000102.html +24 -0
- data/doc/classes/DSK.src/M000103.html +24 -0
- data/doc/classes/DSK.src/M000104.html +24 -0
- data/doc/classes/DSKFile.html +328 -0
- data/doc/classes/DSKFile.src/M000071.html +19 -0
- data/doc/classes/DSKFile.src/M000072.html +18 -0
- data/doc/classes/DSKFile.src/M000073.html +23 -0
- data/doc/classes/DSKFile.src/M000074.html +25 -0
- data/doc/classes/DSKFile.src/M000075.html +18 -0
- data/doc/classes/DSKFile.src/M000076.html +18 -0
- data/doc/classes/DSKFile.src/M000077.html +18 -0
- data/doc/classes/DSKFile.src/M000078.html +18 -0
- data/doc/classes/DSKFile.src/M000079.html +50 -0
- data/doc/classes/DSKTrackSector.html +199 -0
- data/doc/classes/DSKTrackSector.src/M000045.html +20 -0
- data/doc/classes/DSKTrackSector.src/M000046.html +18 -0
- data/doc/classes/DSKTrackSector.src/M000047.html +21 -0
- data/doc/classes/DSKTrackSector.src/M000049.html +20 -0
- data/doc/classes/DSKTrackSector.src/M000050.html +18 -0
- data/doc/classes/DSKTrackSector.src/M000051.html +21 -0
- data/doc/classes/DirectoryServlet.html +148 -0
- data/doc/classes/DirectoryServlet.src/M000041.html +20 -0
- data/doc/classes/DirectoryServlet.src/M000044.html +20 -0
- data/doc/classes/DumpUtilities.html +158 -0
- data/doc/classes/DumpUtilities.src/M000050.html +33 -0
- data/doc/classes/DumpUtilities.src/M000051.html +23 -0
- data/doc/classes/HGR.html +232 -0
- data/doc/classes/HGR.src/M000114.html +29 -0
- data/doc/classes/HGR.src/M000115.html +56 -0
- data/doc/classes/IntegerBasicFile.html +293 -0
- data/doc/classes/IntegerBasicFile.src/M000001.html +18 -0
- data/doc/classes/IntegerBasicFile.src/M000004.html +18 -0
- data/doc/classes/IntegerBasicFile.src/M000005.html +18 -0
- data/doc/classes/IntegerBasicFile.src/M000036.html +18 -0
- data/doc/classes/IntegerBasicFile.src/M000037.html +18 -0
- data/doc/classes/IntegerBasicFile.src/M000038.html +18 -0
- data/doc/classes/IntegerBasicFile.src/M000039.html +18 -0
- data/doc/classes/MBASICFile.html +202 -0
- data/doc/classes/MBASICFile.src/M000033.html +22 -0
- data/doc/classes/MBASICFile.src/M000034.html +30 -0
- data/doc/classes/MBASICFile.src/M000035.html +94 -0
- data/doc/classes/NADOLBinaryFile.html +184 -0
- data/doc/classes/NADOLBinaryFile.src/M000052.html +19 -0
- data/doc/classes/NADOLBinaryFile.src/M000053.html +18 -0
- data/doc/classes/NADOLBinaryFile.src/M000054.html +18 -0
- data/doc/classes/NADOLDisk.html +324 -0
- data/doc/classes/NADOLDisk.src/M000014.html +23 -0
- data/doc/classes/NADOLDisk.src/M000015.html +19 -0
- data/doc/classes/NADOLDisk.src/M000016.html +18 -0
- data/doc/classes/NADOLDisk.src/M000017.html +29 -0
- data/doc/classes/NADOLDisk.src/M000018.html +34 -0
- data/doc/classes/NADOLDisk.src/M000019.html +32 -0
- data/doc/classes/NADOLDisk.src/M000020.html +22 -0
- data/doc/classes/NADOLDisk.src/M000021.html +38 -0
- data/doc/classes/NADOLDisk.src/M000022.html +27 -0
- data/doc/classes/NADOLDisk.src/M000023.html +53 -0
- data/doc/classes/NADOLDisk.src/M000024.html +46 -0
- data/doc/classes/NADOLFile.html +189 -0
- data/doc/classes/NADOLFile.src/M000042.html +18 -0
- data/doc/classes/NADOLFile.src/M000043.html +18 -0
- data/doc/classes/NADOLFile.src/M000044.html +28 -0
- data/doc/classes/NADOLTokenisedFile.html +231 -0
- data/doc/classes/NADOLTokenisedFile.src/M000124.html +28 -0
- data/doc/classes/NADOLTokenisedFile.src/M000125.html +49 -0
- data/doc/classes/NADOLTokenisedFile.src/M000126.html +18 -0
- data/doc/classes/NADOLTokenisedFile.src/M000127.html +18 -0
- data/doc/classes/Nibbles.html +231 -0
- data/doc/classes/Nibbles.src/M000110.html +18 -0
- data/doc/classes/Nibbles.src/M000111.html +20 -0
- data/doc/classes/Nibbles.src/M000112.html +18 -0
- data/doc/classes/Nibbles.src/M000113.html +101 -0
- data/doc/classes/PNG.html +151 -0
- data/doc/classes/PNG.src/M000123.html +26 -0
- data/doc/classes/SCAsmFile.html +242 -0
- data/doc/classes/SCAsmFile.src/M000102.html +18 -0
- data/doc/classes/SCAsmFile.src/M000103.html +18 -0
- data/doc/classes/SCAsmFile.src/M000104.html +18 -0
- data/doc/classes/SCAsmFile.src/M000105.html +18 -0
- data/doc/classes/SCAsmFile.src/M000106.html +39 -0
- data/doc/classes/ShowFileServlet.html +148 -0
- data/doc/classes/ShowFileServlet.src/M000052.html +22 -0
- data/doc/classes/ShowFileServlet.src/M000059.html +22 -0
- data/doc/classes/ShowPNGServlet.html +148 -0
- data/doc/classes/ShowPNGServlet.src/M000101.html +26 -0
- data/doc/classes/ShowPNGServlet.src/M000105.html +26 -0
- data/doc/classes/ShowSectorServlet.html +148 -0
- data/doc/classes/ShowSectorServlet.src/M000040.html +22 -0
- data/doc/classes/ShowSectorServlet.src/M000043.html +22 -0
- data/doc/classes/TestCPMDisks.html +159 -0
- data/doc/classes/TestCPMDisks.src/M000037.html +19 -0
- data/doc/classes/TestCPMDisks.src/M000038.html +57 -0
- data/doc/classes/TestDOSDisks.html +279 -0
- data/doc/classes/TestDOSDisks.src/M000001.html +19 -0
- data/doc/classes/TestDOSDisks.src/M000002.html +19 -0
- data/doc/classes/TestDOSDisks.src/M000003.html +25 -0
- data/doc/classes/TestDOSDisks.src/M000014.html +26 -0
- data/doc/classes/TestDOSDisks.src/M000015.html +19 -0
- data/doc/classes/TestDOSDisks.src/M000016.html +62 -0
- data/doc/classes/TestDOSDisks.src/M000017.html +22 -0
- data/doc/classes/TestDOSDisks.src/M000018.html +20 -0
- data/doc/classes/TestDOSDisks.src/M000019.html +19 -0
- data/doc/classes/TestDOSDisks.src/M000020.html +25 -0
- data/doc/classes/TestDOSDisks.src/M000021.html +47 -0
- data/doc/classes/TestDOSDisks.src/M000022.html +28 -0
- data/doc/classes/TestDOSDisks.src/M000023.html +28 -0
- data/doc/classes/TestDOSDisks.src/M000025.html +26 -0
- data/doc/classes/TestDOSDisks.src/M000026.html +19 -0
- data/doc/classes/TestDOSDisks.src/M000027.html +62 -0
- data/doc/classes/TestDOSDisks.src/M000028.html +22 -0
- data/doc/classes/TestDOSDisks.src/M000029.html +20 -0
- data/doc/classes/TestDOSDisks.src/M000030.html +19 -0
- data/doc/classes/TestDOSDisks.src/M000031.html +25 -0
- data/doc/classes/TestDOSDisks.src/M000032.html +47 -0
- data/doc/classes/TestDOSDisks.src/M000033.html +28 -0
- data/doc/classes/TestDOSDisks.src/M000034.html +28 -0
- data/doc/classes/TestDisassembly.html +144 -0
- data/doc/classes/TestDisassembly.src/M000005.html +19 -0
- data/doc/classes/TestDisassembly.src/M000006.html +19 -0
- data/doc/classes/TestDisassembly.src/M000039.html +19 -0
- data/doc/classes/TestModifiedDOSDisks.html +193 -0
- data/doc/classes/TestModifiedDOSDisks.src/M000045.html +24 -0
- data/doc/classes/TestModifiedDOSDisks.src/M000046.html +27 -0
- data/doc/classes/TestModifiedDOSDisks.src/M000047.html +24 -0
- data/doc/classes/TestModifiedDOSDisks.src/M000048.html +27 -0
- data/doc/classes/TestNADOLDisks.html +193 -0
- data/doc/classes/TestNADOLDisks.src/M000106.html +22 -0
- data/doc/classes/TestNADOLDisks.src/M000107.html +72 -0
- data/doc/classes/TestNADOLDisks.src/M000108.html +22 -0
- data/doc/classes/TestNADOLDisks.src/M000109.html +72 -0
- data/doc/classes/TestNADOLDisks.src/M000121.html +22 -0
- data/doc/classes/TestNADOLDisks.src/M000122.html +73 -0
- data/doc/classes/TestPascalDisks.html +174 -0
- data/doc/classes/TestPascalDisks.src/M000040.html +28 -0
- data/doc/classes/TestPascalDisks.src/M000041.html +24 -0
- data/doc/classes/TestPascalDisks.src/M000042.html +27 -0
- data/doc/classes/TestProDOSDisks.html +253 -0
- data/doc/classes/TestProDOSDisks.src/M000114.html +28 -0
- data/doc/classes/TestProDOSDisks.src/M000115.html +28 -0
- data/doc/classes/TestProDOSDisks.src/M000116.html +41 -0
- data/doc/classes/TestProDOSDisks.src/M000117.html +28 -0
- data/doc/classes/TestProDOSDisks.src/M000118.html +28 -0
- data/doc/classes/TestProDOSDisks.src/M000119.html +28 -0
- data/doc/classes/TestProDOSDisks.src/M000120.html +41 -0
- data/doc/classes/TestProDOSDisks.src/M000121.html +28 -0
- data/doc/classes/TextFile.html +196 -0
- data/doc/classes/TextFile.src/M000019.html +18 -0
- data/doc/classes/TextFile.src/M000020.html +20 -0
- data/doc/classes/TextFile.src/M000024.html +18 -0
- data/doc/classes/TextFile.src/M000025.html +18 -0
- data/doc/classes/TextFile.src/M000026.html +18 -0
- data/doc/classes/TextFile.src/M000027.html +20 -0
- data/doc/classes/TextFile.src/M000128.html +18 -0
- data/doc/classes/TextFile.src/M000129.html +18 -0
- data/doc/classes/TextFile.src/M000130.html +18 -0
- data/doc/classes/TextFile.src/M000131.html +20 -0
- data/doc/created.rid +1 -0
- data/doc/dot/f_0.dot +14 -84
- data/doc/dot/f_0.png +0 -0
- data/doc/dot/f_1.dot +32 -0
- data/doc/dot/f_1.png +0 -0
- data/doc/dot/f_10.dot +32 -0
- data/doc/dot/f_10.png +0 -0
- data/doc/dot/f_11.dot +14 -0
- data/doc/dot/f_11.png +0 -0
- data/doc/dot/f_12.dot +84 -0
- data/doc/dot/f_12.png +0 -0
- data/doc/dot/f_15.dot +32 -0
- data/doc/dot/f_15.png +0 -0
- data/doc/dot/f_18.dot +32 -0
- data/doc/dot/f_18.png +0 -0
- data/doc/dot/f_2.dot +32 -0
- data/doc/dot/f_2.png +0 -0
- data/doc/dot/f_20.dot +32 -0
- data/doc/dot/f_20.png +0 -0
- data/doc/dot/f_3.dot +32 -0
- data/doc/dot/f_3.png +0 -0
- data/doc/dot/f_4.dot +32 -0
- data/doc/dot/f_4.png +0 -0
- data/doc/dot/f_5.dot +32 -0
- data/doc/dot/f_5.png +0 -0
- data/doc/dot/f_6.dot +32 -0
- data/doc/dot/f_6.png +0 -0
- data/doc/dot/f_7.dot +23 -0
- data/doc/dot/f_7.png +0 -0
- data/doc/dot/f_8.dot +23 -0
- data/doc/dot/f_8.png +0 -0
- data/doc/dot/f_9.dot +45 -0
- data/doc/dot/f_9.png +0 -0
- data/doc/files/bin/dskexplorer_rb.html +365 -0
- data/doc/files/bin/dskexplorer_rb.src/M000001.html +21 -0
- data/doc/files/bin/dskexplorer_rb.src/M000002.html +21 -0
- data/doc/files/bin/dskexplorer_rb.src/M000003.html +22 -0
- data/doc/files/bin/dskexplorer_rb.src/M000004.html +20 -0
- data/doc/files/bin/dskexplorer_rb.src/M000005.html +20 -0
- data/doc/files/bin/dskexplorer_rb.src/M000006.html +22 -0
- data/doc/files/bin/dskexplorer_rb.src/M000007.html +16 -0
- data/doc/files/bin/dskexplorer_rb.src/M000008.html +20 -0
- data/doc/files/bin/dskexplorer_rb.src/M000009.html +43 -0
- data/doc/files/bin/dskexplorer_rb.src/M000010.html +59 -0
- data/doc/files/bin/dskexplorer_rb.src/M000011.html +53 -0
- data/doc/files/bin/dskexplorer_rb.src/M000012.html +58 -0
- data/doc/files/bin/dskexplorer_rb.src/M000013.html +37 -0
- data/doc/files/bin/dsktool_rb.html +276 -0
- data/doc/files/bin/romdump_rb.html +189 -0
- data/doc/files/dsktool_web/dskexplorer_rb.html +112 -0
- data/doc/files/dsktool_web/dskexplorer_web_rb.html +112 -0
- data/doc/files/dsktool_web/index_rb.html +112 -0
- data/doc/files/lib/CPMDisk_rb.html +115 -0
- data/doc/files/lib/CPMFile_rb.html +117 -0
- data/doc/files/lib/D65_rb.html +114 -0
- data/doc/files/lib/DOSDisk_rb.html +115 -0
- data/doc/files/lib/DOSFile_rb.html +122 -0
- data/doc/files/lib/DSKFile_rb.html +114 -0
- data/doc/files/lib/DSK_rb.html +127 -0
- data/doc/files/lib/DumpUtilities_rb.html +107 -0
- data/doc/files/lib/HGR_rb.html +122 -0
- data/doc/files/lib/NADOLDisk_rb.html +115 -0
- data/doc/files/lib/NADOLFile_rb.html +120 -0
- data/doc/files/lib/Nibbles_rb.html +114 -0
- data/doc/files/test/tc_cpm_disks_rb.html +122 -0
- data/doc/files/test/tc_disassembly_rb.html +116 -0
- data/doc/files/test/tc_dos_disks_rb.html +122 -0
- data/doc/files/test/tc_modified_dos_disks_rb.html +122 -0
- data/doc/files/test/tc_nadol_disks_rb.html +122 -0
- data/doc/files/test/tc_prodos_disks_rb.html +122 -0
- data/doc/files/test/test_dos_disks_rb.html +109 -0
- data/doc/files/test/ts_test_all_rb.html +119 -0
- data/doc/files/test_bak/hgr_scanlines_rb.html +106 -0
- data/doc/files/test_bak/tc_disassembly_rb.html +123 -0
- data/doc/files/test_bak/tc_dos_disks_rb.html +122 -0
- data/doc/files/test_bak/tc_modified_dos_disks_rb.html +122 -0
- data/doc/files/test_bak/tc_nadol_disks_rb.html +122 -0
- data/doc/files/test_bak/tc_pascal_disks_rb.html +122 -0
- data/doc/files/test_bak/tc_prodos_disks_rb.html +122 -0
- data/doc/files/test_bak/ts_test_all_rb.html +118 -0
- data/doc/fr_class_index.html +46 -0
- data/doc/fr_file_index.html +47 -0
- data/doc/fr_method_index.html +147 -0
- data/doc/index.html +24 -0
- data/doc/rdoc-style.css +208 -0
- data/lib/CPMDisk.rb +194 -0
- data/lib/CPMFile.rb +344 -0
- data/lib/DOSDisk.rb +16 -12
- data/lib/DOSDisk.rb~ +201 -0
- data/lib/DOSFile.rb~ +402 -0
- data/lib/DSK.rb +99 -49
- data/lib/DSK.rb~ +226 -0
- data/lib/DSKFile.rb +9 -0
- data/lib/DSKFile.rb~ +137 -0
- data/lib/HGR.rb~ +157 -0
- data/lib/NADOLDisk.rb~ +104 -0
- data/lib/NADOLFile.rb~ +225 -0
- data/lib/Nibbles.rb +210 -0
- data/lib/PascalDisk.rb~ +120 -0
- data/lib/PascalFile.rb~ +62 -0
- data/lib/ProDOSDisk.rb~ +197 -0
- data/lib/ProDOSFile.rb~ +160 -0
- data/test/1.txt +267 -0
- data/test/CPM1.DSK +0 -0
- data/test/CPM1.PO +0 -0
- data/test/PIC.ZO +0 -0
- data/test/STARCPM.DSK +0 -0
- data/test/SWRDTH1.NIB +1 -0
- data/test/blah.png +0 -0
- data/test/blah2.png +0 -0
- data/test/blank.nib +1 -0
- data/test/build_hgr_table.rb +28 -0
- data/test/build_hgr_table.rb~ +28 -0
- data/test/cpm_write_test.dsk +0 -0
- data/test/ed.txt +0 -0
- data/test/p.html +15030 -0
- data/test/pic.rb +19 -0
- data/test/pic.rb~ +18 -0
- data/test/sword.dsk +0 -0
- data/test/tc_cpm_disks.rb +59 -0
- data/test/tc_dos_disks.rb~ +107 -0
- data/test/tc_modified_dos_disks.rb +33 -0
- data/test/tc_nadol_disks.rb +0 -1
- data/test/tc_nadol_disks.rb~ +42 -0
- data/test/tc_pascal_disks.rb~ +48 -0
- data/test/tc_prodos_disks.rb~ +78 -0
- data/test/ts_test_all.rb +6 -4
- data/test/ts_test_all.rb~ +7 -0
- data/test/x.txt +16 -0
- metadata +485 -35
@@ -0,0 +1,21 @@
|
|
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>get_uri_from_cache (bin/dskexplorer.rb)</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 bin/dskexplorer.rb, line 47</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_uri_from_cache</span>(<span class="ruby-identifier">uri</span>)
|
15
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@@uri_cache</span>[<span class="ruby-identifier">uri</span>].<span class="ruby-identifier">nil?</span> <span class="ruby-keyword kw">then</span>
|
16
|
+
<span class="ruby-ivar">@@uri_cache</span>[<span class="ruby-identifier">uri</span>]=<span class="ruby-identifier">open</span>(<span class="ruby-identifier">uri</span>).<span class="ruby-identifier">read</span>
|
17
|
+
<span class="ruby-keyword kw">end</span>
|
18
|
+
<span class="ruby-ivar">@@uri_cache</span>[<span class="ruby-identifier">uri</span>]
|
19
|
+
<span class="ruby-keyword kw">end</span></pre>
|
20
|
+
</body>
|
21
|
+
</html>
|
@@ -0,0 +1,21 @@
|
|
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>get_dsk_from_cache (bin/dskexplorer.rb)</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 bin/dskexplorer.rb, line 54</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_dsk_from_cache</span>(<span class="ruby-identifier">uri</span>)
|
15
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@@dsk_cache</span>[<span class="ruby-identifier">uri</span>].<span class="ruby-identifier">nil?</span> <span class="ruby-keyword kw">then</span>
|
16
|
+
<span class="ruby-ivar">@@dsk_cache</span>[<span class="ruby-identifier">uri</span>]=<span class="ruby-constant">DSK</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">uri</span>)
|
17
|
+
<span class="ruby-keyword kw">end</span>
|
18
|
+
<span class="ruby-ivar">@@dsk_cache</span>[<span class="ruby-identifier">uri</span>]
|
19
|
+
<span class="ruby-keyword kw">end</span></pre>
|
20
|
+
</body>
|
21
|
+
</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>common_header (bin/dskexplorer.rb)</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 bin/dskexplorer.rb, line 61</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">common_header</span>
|
15
|
+
<span class="ruby-value str">"
|
16
|
+
<html>
|
17
|
+
<body>
|
18
|
+
<B>DSK Explorer</b><br>
|
19
|
+
"</span>
|
20
|
+
<span class="ruby-keyword kw">end</span></pre>
|
21
|
+
</body>
|
22
|
+
</html>
|
@@ -0,0 +1,20 @@
|
|
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>common_footer (bin/dskexplorer.rb)</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 bin/dskexplorer.rb, line 68</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">common_footer</span>
|
15
|
+
<span class="ruby-value str">"
|
16
|
+
<p><i>this is alpha software - please send feedback using the <a href=http://rubyforge.org/tracker/?group_id=3844> dsktool.rb forum</a><p>
|
17
|
+
"</span>
|
18
|
+
<span class="ruby-keyword kw">end</span></pre>
|
19
|
+
</body>
|
20
|
+
</html>
|
@@ -0,0 +1,20 @@
|
|
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>root_dir_is_website? (bin/dskexplorer.rb)</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 bin/dskexplorer.rb, line 74</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">root_dir_is_website?</span>
|
15
|
+
<span class="ruby-identifier">require</span> <span class="ruby-value str">'hpricot'</span>
|
16
|
+
<span class="ruby-identifier">require</span> <span class="ruby-value str">'open-uri'</span>
|
17
|
+
<span class="ruby-ivar">@@root_directory</span><span class="ruby-operator">=~</span><span class="ruby-regexp re">/^http[s]?:/</span><span class="ruby-operator">?</span><span class="ruby-keyword kw">true</span> <span class="ruby-operator">:</span> <span class="ruby-keyword kw">false</span>
|
18
|
+
<span class="ruby-keyword kw">end</span></pre>
|
19
|
+
</body>
|
20
|
+
</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>make_absolute_path (bin/dskexplorer.rb)</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 bin/dskexplorer.rb, line 79</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">make_absolute_path</span>(<span class="ruby-identifier">relative_path</span>)
|
15
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">root_dir_is_website?</span> <span class="ruby-keyword kw">then</span>
|
16
|
+
<span class="ruby-ivar">@@root_directory</span><span class="ruby-operator">+</span><span class="ruby-identifier">uri_encode</span>(<span class="ruby-identifier">relative_path</span>)
|
17
|
+
<span class="ruby-keyword kw">else</span>
|
18
|
+
<span class="ruby-ivar">@@root_directory</span><span class="ruby-operator">+</span><span class="ruby-identifier">relative_path</span>
|
19
|
+
<span class="ruby-keyword kw">end</span>
|
20
|
+
<span class="ruby-keyword kw">end</span></pre>
|
21
|
+
</body>
|
22
|
+
</html>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>html_escape (bin/dskexplorer.rb)</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 bin/dskexplorer.rb, line 86</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">html_escape</span>(<span class="ruby-identifier">s</span>) <span class="ruby-identifier">s</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-value str">"&"</span>,<span class="ruby-value str">"&amp;"</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-value str">"<"</span>,<span class="ruby-value str">"&lt;"</span>)<span class="ruby-keyword kw">end</span></pre>
|
15
|
+
</body>
|
16
|
+
</html>
|
@@ -0,0 +1,20 @@
|
|
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>uri_encode (bin/dskexplorer.rb)</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 bin/dskexplorer.rb, line 87</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">uri_encode</span>(<span class="ruby-identifier">s</span>)
|
15
|
+
<span class="ruby-comment cmt">#standard URI.escape appears to miss some important characters</span>
|
16
|
+
<span class="ruby-identifier">require</span> <span class="ruby-value str">'uri'</span>
|
17
|
+
<span class="ruby-constant">URI</span>.<span class="ruby-identifier">escape</span>(<span class="ruby-identifier">s</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-value str">"["</span>,<span class="ruby-value str">"%5b"</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-value str">"]"</span>,<span class="ruby-value str">"%5d"</span>)
|
18
|
+
<span class="ruby-keyword kw">end</span></pre>
|
19
|
+
</body>
|
20
|
+
</html>
|
@@ -0,0 +1,43 @@
|
|
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>get_directories_and_files (bin/dskexplorer.rb)</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 bin/dskexplorer.rb, line 92</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_directories_and_files</span>(<span class="ruby-identifier">relative_path</span>)
|
15
|
+
<span class="ruby-identifier">directories</span>=[]
|
16
|
+
<span class="ruby-identifier">dsk_files</span>=[]
|
17
|
+
<span class="ruby-identifier">absolute_path</span>=<span class="ruby-identifier">make_absolute_path</span>(<span class="ruby-identifier">relative_path</span>)
|
18
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">root_dir_is_website?</span> <span class="ruby-keyword kw">then</span>
|
19
|
+
<span class="ruby-identifier">html</span>=<span class="ruby-identifier">get_uri_from_cache</span>(<span class="ruby-identifier">absolute_path</span>)
|
20
|
+
<span class="ruby-identifier">doc</span>=<span class="ruby-constant">Hpricot</span>(<span class="ruby-identifier">html</span>)
|
21
|
+
<span class="ruby-identifier">doc</span>.<span class="ruby-identifier">search</span>(<span class="ruby-value str">"a[@href]"</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span>
|
22
|
+
<span class="ruby-identifier">href</span>=<span class="ruby-constant">URI</span>.<span class="ruby-identifier">unescape</span>(<span class="ruby-identifier">a</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">"href"</span>])
|
23
|
+
<span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">href</span><span class="ruby-operator">=~</span><span class="ruby-regexp re">/\w\/$/</span>)
|
24
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span>(<span class="ruby-identifier">href</span><span class="ruby-operator">=~</span><span class="ruby-regexp re">/^\//</span>) <span class="ruby-keyword kw">then</span> <span class="ruby-comment cmt">#directories end with a /, but skip absolute paths</span>
|
25
|
+
<span class="ruby-identifier">directories</span><span class="ruby-operator"><<</span>(<span class="ruby-identifier">href</span>)
|
26
|
+
<span class="ruby-keyword kw">end</span>
|
27
|
+
<span class="ruby-keyword kw">elsif</span> <span class="ruby-constant">DSK</span>.<span class="ruby-identifier">is_dsk_file?</span>(<span class="ruby-identifier">href</span>) <span class="ruby-keyword kw">then</span>
|
28
|
+
<span class="ruby-identifier">dsk_files</span><span class="ruby-operator"><<</span>(<span class="ruby-identifier">href</span>)
|
29
|
+
<span class="ruby-keyword kw">end</span>
|
30
|
+
<span class="ruby-keyword kw">end</span>
|
31
|
+
<span class="ruby-keyword kw">else</span>
|
32
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-identifier">absolute_path</span>) <span class="ruby-operator">&&</span> (<span class="ruby-constant">File</span>.<span class="ruby-identifier">stat</span>(<span class="ruby-identifier">absolute_path</span>).<span class="ruby-identifier">directory?</span>) <span class="ruby-keyword kw">then</span>
|
33
|
+
<span class="ruby-identifier">dir</span>=<span class="ruby-constant">Dir</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">absolute_path</span>)
|
34
|
+
<span class="ruby-identifier">dir</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span>
|
35
|
+
<span class="ruby-identifier">directories</span><span class="ruby-operator"><<</span><span class="ruby-identifier">f</span> <span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">f</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">chr!</span>=<span class="ruby-value str">"."</span>) <span class="ruby-operator">&&</span> (<span class="ruby-constant">File</span>.<span class="ruby-identifier">stat</span>(<span class="ruby-identifier">absolute_path</span><span class="ruby-operator">+</span><span class="ruby-value str">"/"</span><span class="ruby-operator">+</span><span class="ruby-identifier">f</span>).<span class="ruby-identifier">directory?</span>)
|
36
|
+
<span class="ruby-identifier">dsk_files</span><span class="ruby-operator"><<</span><span class="ruby-identifier">f</span> <span class="ruby-keyword kw">if</span> (<span class="ruby-constant">DSK</span>.<span class="ruby-identifier">is_dsk_file?</span>(<span class="ruby-identifier">f</span>))
|
37
|
+
<span class="ruby-keyword kw">end</span>
|
38
|
+
<span class="ruby-keyword kw">end</span>
|
39
|
+
<span class="ruby-keyword kw">end</span>
|
40
|
+
[<span class="ruby-identifier">directories</span>,<span class="ruby-identifier">dsk_files</span>]
|
41
|
+
<span class="ruby-keyword kw">end</span></pre>
|
42
|
+
</body>
|
43
|
+
</html>
|
@@ -0,0 +1,59 @@
|
|
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>make_navigation_path (bin/dskexplorer.rb)</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 bin/dskexplorer.rb, line 121</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">make_navigation_path</span>(<span class="ruby-identifier">relative_path</span>,<span class="ruby-identifier">filename</span>=<span class="ruby-keyword kw">nil</span>,<span class="ruby-identifier">display_mode</span>=<span class="ruby-keyword kw">nil</span>)
|
15
|
+
<span class="ruby-identifier">path_parts</span>=<span class="ruby-identifier">relative_path</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">"/"</span>)
|
16
|
+
<span class="ruby-comment cmt">#make the cookie-crumb-trail </span>
|
17
|
+
<span class="ruby-identifier">partial_path</span>=<span class="ruby-value str">""</span>
|
18
|
+
<span class="ruby-identifier">s</span>=<span class="ruby-node">"<a href=/dir/>#{@@root_directory}</a>"</span>
|
19
|
+
<span class="ruby-identifier">path_parts</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">p</span><span class="ruby-operator">|</span>
|
20
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">p</span>.<span class="ruby-identifier">length</span><span class="ruby-operator">></span><span class="ruby-value">0</span> <span class="ruby-keyword kw">then</span>
|
21
|
+
<span class="ruby-identifier">partial_path</span><span class="ruby-operator">+=</span><span class="ruby-node">"/#{p}"</span>
|
22
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-constant">DSK</span>.<span class="ruby-identifier">is_dsk_file?</span>(<span class="ruby-identifier">partial_path</span>) <span class="ruby-keyword kw">then</span>
|
23
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-node">"/<a href=/catalog#{uri_encode(partial_path)}>#{p}</a>"</span>
|
24
|
+
<span class="ruby-keyword kw">else</span>
|
25
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-node">"/<a href=/dir#{uri_encode(partial_path)}>#{p}</a>"</span>
|
26
|
+
<span class="ruby-keyword kw">end</span>
|
27
|
+
<span class="ruby-keyword kw">end</span>
|
28
|
+
<span class="ruby-keyword kw">end</span>
|
29
|
+
|
30
|
+
<span class="ruby-identifier">mode_param</span>=<span class="ruby-value str">""</span>
|
31
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">display_mode</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-keyword kw">then</span>
|
32
|
+
<span class="ruby-identifier">mode_param</span>=<span class="ruby-node">"&mode=#{display_mode}"</span>
|
33
|
+
<span class="ruby-keyword kw">end</span>
|
34
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">filename</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-keyword kw">then</span>
|
35
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-node">"/<a href=/showfile/#{uri_encode(relative_path)+'?filename='+uri_encode(filename)}#{mode_param}>#{filename}</a>"</span>
|
36
|
+
<span class="ruby-keyword kw">end</span>
|
37
|
+
|
38
|
+
|
39
|
+
<span class="ruby-comment cmt">#show the contents of the current directory</span>
|
40
|
+
<span class="ruby-identifier">directories</span>,<span class="ruby-identifier">dsk_files</span>=<span class="ruby-identifier">get_directories_and_files</span>(<span class="ruby-identifier">relative_path</span>)
|
41
|
+
|
42
|
+
<span class="ruby-comment cmt">#list out the directories</span>
|
43
|
+
|
44
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-value str">"<ul>"</span>
|
45
|
+
<span class="ruby-comment cmt">#s<<"<li>[dir] <a href=/#{uri_encode('/dir/'+File.dirname(relative_path))}>..</a>\n"</span>
|
46
|
+
<span class="ruby-identifier">directories</span>.<span class="ruby-identifier">sort</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">d</span><span class="ruby-operator">|</span>
|
47
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-node">"<li>[dir] <a href=/dir/#{uri_encode(relative_path)}/#{uri_encode(d)}>#{d}</a>\n"</span>
|
48
|
+
<span class="ruby-keyword kw">end</span>
|
49
|
+
|
50
|
+
<span class="ruby-comment cmt">#list out the DSK files </span>
|
51
|
+
<span class="ruby-identifier">dsk_files</span>.<span class="ruby-identifier">sort</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span>
|
52
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-node">"<li>[dsk] <a href=/catalog/#{uri_encode(relative_path)}/#{uri_encode(f)}>#{f}</a> [ <a href=#{uri_encode(@@root_directory+relative_path+'/'+f)}>download</a> ]\n"</span>
|
53
|
+
<span class="ruby-keyword kw">end</span>
|
54
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-value str">"</ul>"</span>
|
55
|
+
|
56
|
+
<span class="ruby-identifier">s</span>
|
57
|
+
<span class="ruby-keyword kw">end</span></pre>
|
58
|
+
</body>
|
59
|
+
</html>
|
@@ -0,0 +1,53 @@
|
|
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>make_catalog (bin/dskexplorer.rb)</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 bin/dskexplorer.rb, line 165</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">make_catalog</span>(<span class="ruby-identifier">relative_path</span>)
|
15
|
+
<span class="ruby-identifier">s</span>=<span class="ruby-value str">"<p>"</span>
|
16
|
+
<span class="ruby-keyword kw">begin</span>
|
17
|
+
<span class="ruby-identifier">absolute_path</span>=<span class="ruby-identifier">make_absolute_path</span>(<span class="ruby-identifier">relative_path</span>)
|
18
|
+
<span class="ruby-identifier">dsk</span>=<span class="ruby-identifier">get_dsk_from_cache</span>(<span class="ruby-identifier">absolute_path</span>)
|
19
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-node">"<br>file system: #{dsk.file_system}<br>sector order: #{dsk.sector_order}<br>tracks: #{dsk.track_count}<br>"</span>
|
20
|
+
<span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">dsk</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:files</span>)) <span class="ruby-keyword kw">then</span>
|
21
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-value str">"<table>\n<th>TYPE</th><th>SIZE (BYTES)</th><th>NAME</th></tr>\n"</span>
|
22
|
+
<span class="ruby-identifier">dsk</span>.<span class="ruby-identifier">files</span>.<span class="ruby-identifier">keys</span>.<span class="ruby-identifier">sort</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">full_path</span><span class="ruby-operator">|</span>
|
23
|
+
<span class="ruby-identifier">f</span>=<span class="ruby-identifier">dsk</span>.<span class="ruby-identifier">files</span>[<span class="ruby-identifier">full_path</span>]
|
24
|
+
<span class="ruby-identifier">display_url</span>=<span class="ruby-node">"/showfile/#{uri_encode(relative_path)+'?filename='+uri_encode(full_path)}"</span>
|
25
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:file_type</span>) <span class="ruby-keyword kw">then</span>
|
26
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-node">"<td>#{f.file_type}</td>"</span>
|
27
|
+
<span class="ruby-keyword kw">else</span>
|
28
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-value str">"<td></td>"</span>
|
29
|
+
<span class="ruby-keyword kw">end</span>
|
30
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-node">"<td>#{sprintf('%03d',f.contents.length)}</td>"</span>
|
31
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-node">"<td>#{full_path}</td>"</span>
|
32
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-node">"<td><a href=#{display_url}&mode=hex>hex dump</a></td>"</span>
|
33
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">can_be_picture?</span> <span class="ruby-keyword kw">then</span>
|
34
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-node">"<td><a href=#{display_url}&mode=png>picture</a></td>"</span>
|
35
|
+
<span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:disassembly</span>)
|
36
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-node">"<td><a href=#{display_url}&mode=list>disassembly</a></td>"</span>
|
37
|
+
<span class="ruby-keyword kw">else</span>
|
38
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-node">"<td><a href=#{display_url}&mode=text>text</a></td>"</span>
|
39
|
+
<span class="ruby-keyword kw">end</span>
|
40
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-value str">"</tr>\n"</span>
|
41
|
+
<span class="ruby-keyword kw">end</span>
|
42
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-value str">"</table>"</span>
|
43
|
+
<span class="ruby-keyword kw">else</span>
|
44
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-value str">"<i>not a recognised format</i>"</span>
|
45
|
+
<span class="ruby-keyword kw">end</span>
|
46
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-node">"<p><a href=/showsector/#{uri_encode(relative_path)}>View Sectors</a>"</span>
|
47
|
+
<span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Exception</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">exception</span>
|
48
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-node">"<i>ERROR:#{exception}</i>"</span>
|
49
|
+
<span class="ruby-keyword kw">end</span>
|
50
|
+
<span class="ruby-identifier">s</span>
|
51
|
+
<span class="ruby-keyword kw">end</span></pre>
|
52
|
+
</body>
|
53
|
+
</html>
|
@@ -0,0 +1,58 @@
|
|
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>show_sector (bin/dskexplorer.rb)</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 bin/dskexplorer.rb, line 203</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">show_sector</span>(<span class="ruby-identifier">relative_path</span>,<span class="ruby-identifier">track</span>,<span class="ruby-identifier">sector</span>)
|
15
|
+
<span class="ruby-identifier">track</span>=<span class="ruby-value str">"0"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">track</span>.<span class="ruby-identifier">nil?</span>
|
16
|
+
<span class="ruby-identifier">sector</span>=<span class="ruby-value str">"0"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">sector</span>.<span class="ruby-identifier">nil?</span>
|
17
|
+
<span class="ruby-identifier">track</span>=(<span class="ruby-value str">"0"</span><span class="ruby-operator">+</span><span class="ruby-identifier">track</span>).<span class="ruby-identifier">to_i</span>
|
18
|
+
<span class="ruby-identifier">sector</span>=(<span class="ruby-value str">"0"</span><span class="ruby-operator">+</span><span class="ruby-identifier">sector</span>).<span class="ruby-identifier">to_i</span>
|
19
|
+
<span class="ruby-identifier">absolute_path</span>=<span class="ruby-identifier">make_absolute_path</span>(<span class="ruby-identifier">relative_path</span>)
|
20
|
+
<span class="ruby-identifier">dsk</span>=<span class="ruby-identifier">get_dsk_from_cache</span>(<span class="ruby-identifier">absolute_path</span>)
|
21
|
+
<span class="ruby-identifier">uri</span>=<span class="ruby-node">"/showsector/#{uri_encode(relative_path)}"</span>
|
22
|
+
<span class="ruby-identifier">s</span>=<span class="ruby-value str">""</span>
|
23
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-value str">"<table><tr><th colspan=16>TRACK</th></tr>"</span>
|
24
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-value str">"<tr>"</span>
|
25
|
+
<span class="ruby-value">0</span>.<span class="ruby-identifier">upto</span>(<span class="ruby-identifier">dsk</span>.<span class="ruby-identifier">track_count</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">track_no</span><span class="ruby-operator">|</span>
|
26
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">track_no</span><span class="ruby-operator">==</span><span class="ruby-identifier">track</span> <span class="ruby-keyword kw">then</span>
|
27
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-node">"<td><b>$#{sprintf('%02X',track)}</b></td>"</span>
|
28
|
+
<span class="ruby-keyword kw">else</span>
|
29
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-node">"<td><a href=#{uri}?track=#{track_no}&sector=0>$#{sprintf('%02X',track_no)}</a></td>"</span>
|
30
|
+
<span class="ruby-keyword kw">end</span>
|
31
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">track_no</span><span class="ruby-operator">></span><span class="ruby-value">0</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">track_no</span><span class="ruby-operator">%</span><span class="ruby-value">0x10</span><span class="ruby-operator">==</span><span class="ruby-value">0</span> <span class="ruby-keyword kw">then</span>
|
32
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-value str">"</tr></tr>"</span>
|
33
|
+
<span class="ruby-keyword kw">end</span>
|
34
|
+
<span class="ruby-keyword kw">end</span>
|
35
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-value str">"</tr>"</span>
|
36
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-value str">"</table>"</span>
|
37
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-value str">"<table><tr><th colspan=16>SECTOR</th></tr>"</span>
|
38
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-value str">"<tr>"</span>
|
39
|
+
<span class="ruby-value">0</span>.<span class="ruby-identifier">upto</span>(<span class="ruby-value">0x0</span><span class="ruby-constant">F</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">sector_no</span><span class="ruby-operator">|</span>
|
40
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">sector_no</span><span class="ruby-operator">==</span><span class="ruby-identifier">sector</span> <span class="ruby-keyword kw">then</span>
|
41
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-node">"<td><b>$#{sprintf('%02X',sector)}</b></td>"</span>
|
42
|
+
<span class="ruby-keyword kw">else</span>
|
43
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-node">"<td><a href=#{uri}?track=#{track}&sector=#{sector_no}>$#{sprintf('%02X',sector_no)}</a></td>"</span>
|
44
|
+
|
45
|
+
<span class="ruby-keyword kw">end</span>
|
46
|
+
<span class="ruby-keyword kw">end</span>
|
47
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-value str">"</tr>"</span>
|
48
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-value str">"</table>"</span>
|
49
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-value str">"<pre>\n"</span>
|
50
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-identifier">html_escape</span>(<span class="ruby-identifier">dsk</span>.<span class="ruby-identifier">dump_sector</span>(<span class="ruby-identifier">track</span>,<span class="ruby-identifier">sector</span>))
|
51
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-value str">"</pre>\n"</span>
|
52
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-value str">"<p>"</span>
|
53
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-value str">"<pre>\n"</span>
|
54
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-identifier">html_escape</span>(<span class="ruby-identifier">dsk</span>.<span class="ruby-identifier">disassemble_sector</span>(<span class="ruby-identifier">track</span>,<span class="ruby-identifier">sector</span>))
|
55
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-value str">"</pre>\n"</span>
|
56
|
+
<span class="ruby-keyword kw">end</span></pre>
|
57
|
+
</body>
|
58
|
+
</html>
|
@@ -0,0 +1,37 @@
|
|
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>show_file (bin/dskexplorer.rb)</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 bin/dskexplorer.rb, line 247</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">show_file</span>(<span class="ruby-identifier">relative_path</span>,<span class="ruby-identifier">filename</span>,<span class="ruby-identifier">display_mode</span>)
|
15
|
+
<span class="ruby-identifier">absolute_path</span>=<span class="ruby-identifier">make_absolute_path</span>(<span class="ruby-identifier">relative_path</span>)
|
16
|
+
<span class="ruby-identifier">dsk</span>=<span class="ruby-identifier">get_dsk_from_cache</span>(<span class="ruby-identifier">absolute_path</span>)
|
17
|
+
<span class="ruby-identifier">file</span>=<span class="ruby-identifier">dsk</span>.<span class="ruby-identifier">files</span>[<span class="ruby-identifier">filename</span>]
|
18
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">file</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-keyword kw">then</span>
|
19
|
+
<span class="ruby-identifier">s</span>=<span class="ruby-node">"<i>#{filename} not found</i>"</span>
|
20
|
+
<span class="ruby-keyword kw">else</span>
|
21
|
+
<span class="ruby-identifier">s</span>=<span class="ruby-value str">"<hl><pre>"</span>
|
22
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">display_mode</span><span class="ruby-operator">==</span><span class="ruby-value str">"hex"</span> <span class="ruby-keyword kw">then</span>
|
23
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-identifier">html_escape</span>(<span class="ruby-identifier">file</span>.<span class="ruby-identifier">hex_dump</span>)
|
24
|
+
<span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">display_mode</span><span class="ruby-operator">==</span><span class="ruby-value str">"list"</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">file</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:disassembly</span>) <span class="ruby-keyword kw">then</span>
|
25
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-identifier">html_escape</span>(<span class="ruby-identifier">file</span>.<span class="ruby-identifier">disassembly</span>)
|
26
|
+
<span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">display_mode</span><span class="ruby-operator">==</span><span class="ruby-value str">"png"</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">file</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:to_png</span>) <span class="ruby-keyword kw">then</span>
|
27
|
+
<span class="ruby-identifier">png_url</span>=<span class="ruby-node">"/png/#{uri_encode(relative_path)}?filename=#{uri_encode(filename)}"</span>
|
28
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-node">"<IMG SRC=#{png_url} HEIGHT=384 WIDTH=560>"</span>
|
29
|
+
<span class="ruby-keyword kw">else</span>
|
30
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-identifier">html_escape</span>(<span class="ruby-identifier">file</span>.<span class="ruby-identifier">to_s</span>)
|
31
|
+
<span class="ruby-keyword kw">end</span>
|
32
|
+
<span class="ruby-identifier">s</span><span class="ruby-operator"><<</span><span class="ruby-value str">"\n</pre><hl>"</span>
|
33
|
+
<span class="ruby-keyword kw">end</span>
|
34
|
+
<span class="ruby-identifier">s</span>
|
35
|
+
<span class="ruby-keyword kw">end</span></pre>
|
36
|
+
</body>
|
37
|
+
</html>
|
@@ -0,0 +1,276 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>File: dsktool.rb</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="fileHeader">
|
50
|
+
<h1>dsktool.rb</h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>Path:</strong></td>
|
54
|
+
<td>bin/dsktool.rb
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr class="top-aligned-row">
|
58
|
+
<td><strong>Last Update:</strong></td>
|
59
|
+
<td>Sun Jul 20 13:13:31 +1000 2008</td>
|
60
|
+
</tr>
|
61
|
+
</table>
|
62
|
+
</div>
|
63
|
+
<!-- banner header -->
|
64
|
+
|
65
|
+
<div id="bodyContent">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
<div id="contextContent">
|
70
|
+
<div id="diagram">
|
71
|
+
<map id="map" name="map">
|
72
|
+
</map>
|
73
|
+
<img src="../../dot/f_0.png" usemap="#map" border="0" alt="dot/f_0.png">
|
74
|
+
</div>
|
75
|
+
|
76
|
+
<div id="description">
|
77
|
+
<p>
|
78
|
+
dsktool.rb
|
79
|
+
</p>
|
80
|
+
<h2>Synopsis</h2>
|
81
|
+
<p>
|
82
|
+
Manipulate <a href="../../classes/DSK.html">DSK</a> format files (as used
|
83
|
+
by Apple 2 emulators)
|
84
|
+
</p>
|
85
|
+
<h2>Usage</h2>
|
86
|
+
<p>
|
87
|
+
dsktool.rb [switches] <filename.dsk>
|
88
|
+
</p>
|
89
|
+
<pre>
|
90
|
+
-a | --add FILENAME (*) add file
|
91
|
+
-A | --ascii force output to be ASCII (even if binary)
|
92
|
+
-b | --base BASE use BASE as address to load Binary File
|
93
|
+
this will add 2 bytes to the start of file
|
94
|
+
BASE should be a hex number
|
95
|
+
(can be prefixed with $, 0x, or nothing)
|
96
|
+
-B | --bootcode FILENAME FILENAME gets written to track 0, sector 0
|
97
|
+
FILENAME should be compiled to run at $0801
|
98
|
+
FILENAME can be up to 4Kb in size.
|
99
|
+
-c | --catalog display catalog
|
100
|
+
-d | --dump FILENAME hex dump
|
101
|
+
-D | --diskdump hex dump of entire disk
|
102
|
+
-L | --delete FILENAME (*) delete named file
|
103
|
+
-e | --extract FILENAME extract file by name (either to stdout,
|
104
|
+
or file specified by --output)
|
105
|
+
-h | --help display this message
|
106
|
+
-I | --init FILESYSTEM initialise the disk with the specified filesytem
|
107
|
+
DSK will be created if it doesn't exist.
|
108
|
+
FILESYSTEM can be : cpm,dos33,nadol,pascal,none
|
109
|
+
-l | --list FILENAME monitor style listing (disassembles 65C02 opcodes)
|
110
|
+
-o | --output FILENAME specify name to save extracted file as
|
111
|
+
-r | --raw don't convert files to ASCII
|
112
|
+
-S | --showtrace show full stack trace on any error
|
113
|
+
-t | --filetype FILETYPE file type for file being added.
|
114
|
+
Can be a single letter (A/I/B/T) or number.
|
115
|
+
Default for DOS 3.3 is 0x00 (Text)
|
116
|
+
-T | --tokenise (*) tokenise input file before adding
|
117
|
+
-v | --version show version number
|
118
|
+
-x | --explode extract all files
|
119
|
+
|
120
|
+
(*) options marked with an asterisk are only available for
|
121
|
+
file systems that have READ/WRITE support.
|
122
|
+
|
123
|
+
Currently supported filesystems:
|
124
|
+
Apple Pascal (read only)
|
125
|
+
CP/M (READ/WRITE)
|
126
|
+
DOS 3.3 (READ/WRITE)
|
127
|
+
NADOL (READ/WRITE)
|
128
|
+
ProDOS 8 (read only)
|
129
|
+
|
130
|
+
Supports 16 sector DSK images
|
131
|
+
files with extension .gz will be read & written using gzip
|
132
|
+
input files can be URLs
|
133
|
+
</pre>
|
134
|
+
<p>
|
135
|
+
examples:
|
136
|
+
</p>
|
137
|
+
<pre>
|
138
|
+
dsktool.rb -c http://jamtronix.com/dsks/apshai.dsk.gz
|
139
|
+
dsktool.rb --list fid -o fid.lst DOS3MASTR.dsk
|
140
|
+
dsktool.rb --extract "COLOR DEMOSOFT" DOS3MASTR.dsk
|
141
|
+
dsktool.rb -e HELLO -o HELLO.bas DOS3MASTR.dsk
|
142
|
+
dsktool.rb -x DOS3MASTR.dsk.gz -o /tmp/DOS3MASTR/
|
143
|
+
dsktool.rb --add STARTUP -T nadol.po
|
144
|
+
dsktool.rb --add c:\src\dosdemo\a.out -t B -b $2000 dosdemo.dsk
|
145
|
+
dsktool.rb --init dos33 new_dos_disk.dsk.gz
|
146
|
+
dsktool.rb -I none -B /tmp/a.out demo1.dsk
|
147
|
+
</pre>
|
148
|
+
|
149
|
+
</div>
|
150
|
+
|
151
|
+
<div id="requires-list">
|
152
|
+
<h3 class="section-bar">Required files</h3>
|
153
|
+
|
154
|
+
<div class="name-list">
|
155
|
+
rubygems
|
156
|
+
optparse
|
157
|
+
rdoc_patch
|
158
|
+
<a href="../../classes/DSK.html">DSK</a>
|
159
|
+
</div>
|
160
|
+
</div>
|
161
|
+
|
162
|
+
</div>
|
163
|
+
|
164
|
+
|
165
|
+
</div>
|
166
|
+
|
167
|
+
|
168
|
+
<!-- if includes -->
|
169
|
+
|
170
|
+
<div id="section">
|
171
|
+
|
172
|
+
|
173
|
+
<div id="constants-list">
|
174
|
+
<h3 class="section-bar">Constants</h3>
|
175
|
+
|
176
|
+
<div class="name-list">
|
177
|
+
<table summary="Constants">
|
178
|
+
<tr class="top-aligned-row context-row">
|
179
|
+
<td class="context-item-name">DSKTOOL_VERSION</td>
|
180
|
+
<td>=</td>
|
181
|
+
<td class="context-item-value">"0.5.1"</td>
|
182
|
+
<td width="3em"> </td>
|
183
|
+
<td class="context-item-desc">
|
184
|
+
dsktool.rb
|
185
|
+
|
186
|
+
<h2>Synopsis</h2>
|
187
|
+
<p>
|
188
|
+
Manipulate <a href="../../classes/DSK.html">DSK</a> format files (as used
|
189
|
+
by Apple 2 emulators)
|
190
|
+
</p>
|
191
|
+
<h2>Usage</h2>
|
192
|
+
<p>
|
193
|
+
dsktool.rb [switches] <filename.dsk>
|
194
|
+
</p>
|
195
|
+
<pre>
|
196
|
+
-a | --add FILENAME (*) add file
|
197
|
+
-A | --ascii force output to be ASCII (even if binary)
|
198
|
+
-b | --base BASE use BASE as address to load Binary File
|
199
|
+
this will add 2 bytes to the start of file
|
200
|
+
BASE should be a hex number
|
201
|
+
(can be prefixed with $, 0x, or nothing)
|
202
|
+
-B | --bootcode FILENAME FILENAME gets written to track 0, sector 0
|
203
|
+
FILENAME should be compiled to run at $0801
|
204
|
+
FILENAME can be up to 4Kb in size.
|
205
|
+
-c | --catalog display catalog
|
206
|
+
-d | --dump FILENAME hex dump
|
207
|
+
-D | --diskdump hex dump of entire disk
|
208
|
+
-L | --delete FILENAME (*) delete named file
|
209
|
+
-e | --extract FILENAME extract file by name (either to stdout,
|
210
|
+
or file specified by --output)
|
211
|
+
-h | --help display this message
|
212
|
+
-I | --init FILESYSTEM initialise the disk with the specified filesytem
|
213
|
+
DSK will be created if it doesn't exist.
|
214
|
+
FILESYSTEM can be : cpm,dos33,nadol,pascal,none
|
215
|
+
-l | --list FILENAME monitor style listing (disassembles 65C02 opcodes)
|
216
|
+
-o | --output FILENAME specify name to save extracted file as
|
217
|
+
-r | --raw don't convert files to ASCII
|
218
|
+
-S | --showtrace show full stack trace on any error
|
219
|
+
-t | --filetype FILETYPE file type for file being added.
|
220
|
+
Can be a single letter (A/I/B/T) or number.
|
221
|
+
Default for DOS 3.3 is 0x00 (Text)
|
222
|
+
-T | --tokenise (*) tokenise input file before adding
|
223
|
+
-v | --version show version number
|
224
|
+
-x | --explode extract all files
|
225
|
+
|
226
|
+
(*) options marked with an asterisk are only available for
|
227
|
+
file systems that have READ/WRITE support.
|
228
|
+
|
229
|
+
Currently supported filesystems:
|
230
|
+
Apple Pascal (read only)
|
231
|
+
CP/M (READ/WRITE)
|
232
|
+
DOS 3.3 (READ/WRITE)
|
233
|
+
NADOL (READ/WRITE)
|
234
|
+
ProDOS 8 (read only)
|
235
|
+
|
236
|
+
Supports 16 sector DSK images
|
237
|
+
files with extension .gz will be read & written using gzip
|
238
|
+
input files can be URLs
|
239
|
+
</pre>
|
240
|
+
<p>
|
241
|
+
examples:
|
242
|
+
</p>
|
243
|
+
<pre>
|
244
|
+
dsktool.rb -c http://jamtronix.com/dsks/apshai.dsk.gz
|
245
|
+
dsktool.rb --list fid -o fid.lst DOS3MASTR.dsk
|
246
|
+
dsktool.rb --extract "COLOR DEMOSOFT" DOS3MASTR.dsk
|
247
|
+
dsktool.rb -e HELLO -o HELLO.bas DOS3MASTR.dsk
|
248
|
+
dsktool.rb -x DOS3MASTR.dsk.gz -o /tmp/DOS3MASTR/
|
249
|
+
dsktool.rb --add STARTUP -T nadol.po
|
250
|
+
dsktool.rb --add c:\src\dosdemo\a.out -t B -b $2000 dosdemo.dsk
|
251
|
+
dsktool.rb --init dos33 new_dos_disk.dsk.gz
|
252
|
+
dsktool.rb -I none -B /tmp/a.out demo1.dsk
|
253
|
+
</pre>
|
254
|
+
</td>
|
255
|
+
</tr>
|
256
|
+
</table>
|
257
|
+
</div>
|
258
|
+
</div>
|
259
|
+
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
<!-- if method_list -->
|
266
|
+
|
267
|
+
|
268
|
+
</div>
|
269
|
+
|
270
|
+
|
271
|
+
<div id="validator-badges">
|
272
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
273
|
+
</div>
|
274
|
+
|
275
|
+
</body>
|
276
|
+
</html>
|