dsktool 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/dskexplorer.rb +15 -4
- data/bin/dskexplorer.rb~ +275 -0
- data/bin/dsktool.rb +1 -1
- data/bin/dsktool.rb~ +150 -0
- data/lib/DSK.rb~ +134 -0
- data/test/tc_dos_disks.rb~ +79 -0
- metadata +65 -252
- data/doc/classes/AppleSoftFile.src/M000011.html +0 -18
- data/doc/classes/AppleSoftFile.src/M000012.html +0 -18
- data/doc/classes/AppleSoftFile.src/M000013.html +0 -18
- data/doc/classes/AppleSoftFile.src/M000014.html +0 -18
- data/doc/classes/AppleSoftFile.src/M000020.html +0 -18
- data/doc/classes/AppleSoftFile.src/M000021.html +0 -18
- data/doc/classes/AppleSoftFile.src/M000022.html +0 -18
- data/doc/classes/AppleSoftFile.src/M000026.html +0 -18
- data/doc/classes/AppleSoftFile.src/M000027.html +0 -18
- data/doc/classes/AppleSoftFile.src/M000028.html +0 -18
- data/doc/classes/BinaryFile.src/M000023.html +0 -18
- data/doc/classes/BinaryFile.src/M000024.html +0 -18
- data/doc/classes/BinaryFile.src/M000025.html +0 -18
- data/doc/classes/BinaryFile.src/M000026.html +0 -19
- data/doc/classes/BinaryFile.src/M000029.html +0 -18
- data/doc/classes/BinaryFile.src/M000030.html +0 -18
- data/doc/classes/BinaryFile.src/M000031.html +0 -19
- data/doc/classes/BinaryFile.src/M000039.html +0 -18
- data/doc/classes/BinaryFile.src/M000040.html +0 -18
- data/doc/classes/BinaryFile.src/M000041.html +0 -19
- data/doc/classes/BinaryFile.src/M000045.html +0 -18
- data/doc/classes/BinaryFile.src/M000046.html +0 -18
- data/doc/classes/BinaryFile.src/M000047.html +0 -19
- data/doc/classes/CatalogServlet.html +0 -146
- data/doc/classes/CatalogServlet.src/M000015.html +0 -20
- data/doc/classes/CatalogServlet.src/M000021.html +0 -20
- data/doc/classes/D65.src/M000009.html +0 -18
- data/doc/classes/D65.src/M000010.html +0 -18
- data/doc/classes/D65.src/M000011.html +0 -64
- data/doc/classes/D65.src/M000018.html +0 -18
- data/doc/classes/D65.src/M000019.html +0 -64
- data/doc/classes/D65.src/M000024.html +0 -18
- data/doc/classes/D65.src/M000025.html +0 -64
- data/doc/classes/DOSDisk.src/M000014.html +0 -20
- data/doc/classes/DOSDisk.src/M000015.html +0 -20
- data/doc/classes/DOSDisk.src/M000016.html +0 -19
- data/doc/classes/DOSDisk.src/M000017.html +0 -76
- data/doc/classes/DOSDisk.src/M000023.html +0 -20
- data/doc/classes/DOSDisk.src/M000024.html +0 -19
- data/doc/classes/DOSDisk.src/M000025.html +0 -76
- data/doc/classes/DOSDisk.src/M000029.html +0 -20
- data/doc/classes/DOSDisk.src/M000030.html +0 -19
- data/doc/classes/DOSDisk.src/M000031.html +0 -76
- data/doc/classes/DOSFile.src/M000026.html +0 -22
- data/doc/classes/DOSFile.src/M000027.html +0 -22
- data/doc/classes/DOSFile.src/M000028.html +0 -17
- data/doc/classes/DOSFile.src/M000029.html +0 -18
- data/doc/classes/DOSFile.src/M000032.html +0 -22
- data/doc/classes/DOSFile.src/M000033.html +0 -17
- data/doc/classes/DOSFile.src/M000034.html +0 -18
- data/doc/classes/DOSFile.src/M000042.html +0 -22
- data/doc/classes/DOSFile.src/M000043.html +0 -18
- data/doc/classes/DOSFile.src/M000044.html +0 -18
- data/doc/classes/DOSFile.src/M000048.html +0 -22
- data/doc/classes/DOSFile.src/M000049.html +0 -18
- data/doc/classes/DOSFile.src/M000050.html +0 -18
- data/doc/classes/DOSFile.src/M000051.html +0 -31
- data/doc/classes/DSK.src/M000021.html +0 -19
- data/doc/classes/DSK.src/M000022.html +0 -18
- data/doc/classes/DSK.src/M000023.html +0 -40
- data/doc/classes/DSK.src/M000024.html +0 -23
- data/doc/classes/DSK.src/M000027.html +0 -18
- data/doc/classes/DSK.src/M000028.html +0 -22
- data/doc/classes/DSK.src/M000029.html +0 -22
- data/doc/classes/DSK.src/M000030.html +0 -34
- data/doc/classes/DSK.src/M000031.html +0 -19
- data/doc/classes/DSK.src/M000032.html +0 -18
- data/doc/classes/DSK.src/M000033.html +0 -18
- data/doc/classes/DSK.src/M000034.html +0 -22
- data/doc/classes/DSK.src/M000035.html +0 -22
- data/doc/classes/DSK.src/M000036.html +0 -34
- data/doc/classes/DSK.src/M000037.html +0 -19
- data/doc/classes/DSK.src/M000038.html +0 -18
- data/doc/classes/DSK.src/M000039.html +0 -40
- data/doc/classes/DSK.src/M000040.html +0 -23
- data/doc/classes/DirectoryServlet.html +0 -146
- data/doc/classes/DirectoryServlet.src/M000017.html +0 -20
- data/doc/classes/DirectoryServlet.src/M000023.html +0 -20
- data/doc/classes/IntegerBasicFile.src/M000006.html +0 -18
- data/doc/classes/IntegerBasicFile.src/M000007.html +0 -18
- data/doc/classes/IntegerBasicFile.src/M000008.html +0 -18
- data/doc/classes/IntegerBasicFile.src/M000012.html +0 -18
- data/doc/classes/IntegerBasicFile.src/M000013.html +0 -18
- data/doc/classes/IntegerBasicFile.src/M000014.html +0 -18
- data/doc/classes/IntegerBasicFile.src/M000018.html +0 -18
- data/doc/classes/IntegerBasicFile.src/M000019.html +0 -18
- data/doc/classes/IntegerBasicFile.src/M000020.html +0 -18
- data/doc/classes/RDoc.html +0 -141
- data/doc/classes/RDoc.src/M000032.html +0 -40
- data/doc/classes/RDoc.src/M000033.html +0 -40
- data/doc/classes/RDoc.src/M000038.html +0 -40
- data/doc/classes/RDoc.src/M000048.html +0 -40
- data/doc/classes/RDoc.src/M000055.html +0 -40
- data/doc/classes/SCAsmFile.html +0 -226
- data/doc/classes/SCAsmFile.src/M000025.html +0 -18
- data/doc/classes/SCAsmFile.src/M000026.html +0 -18
- data/doc/classes/SCAsmFile.src/M000027.html +0 -18
- data/doc/classes/SCAsmFile.src/M000028.html +0 -36
- data/doc/classes/SCAsmFile.src/M000035.html +0 -18
- data/doc/classes/SCAsmFile.src/M000036.html +0 -18
- data/doc/classes/SCAsmFile.src/M000037.html +0 -18
- data/doc/classes/SCAsmFile.src/M000038.html +0 -36
- data/doc/classes/SCAsmFile.src/M000041.html +0 -18
- data/doc/classes/SCAsmFile.src/M000042.html +0 -18
- data/doc/classes/SCAsmFile.src/M000043.html +0 -18
- data/doc/classes/SCAsmFile.src/M000044.html +0 -36
- data/doc/classes/ShowFileServlet.html +0 -146
- data/doc/classes/ShowFileServlet.src/M000026.html +0 -21
- data/doc/classes/ShowFileServlet.src/M000032.html +0 -22
- data/doc/classes/TestDOSDisks.src/M000004.html +0 -41
- data/doc/classes/TestDOSDisks.src/M000005.html +0 -27
- data/doc/classes/TestDOSDisks.src/M000006.html +0 -24
- data/doc/classes/TestDOSDisks.src/M000007.html +0 -19
- data/doc/classes/TestDOSDisks.src/M000008.html +0 -19
- data/doc/classes/TestDOSDisks.src/M000009.html +0 -25
- data/doc/classes/TestDOSDisks.src/M000010.html +0 -41
- data/doc/classes/TestDOSDisks.src/M000011.html +0 -27
- data/doc/classes/TestDOSDisks.src/M000012.html +0 -24
- data/doc/classes/TestDOSDisks.src/M000013.html +0 -19
- data/doc/classes/TestDOSDisks.src/M000014.html +0 -19
- data/doc/classes/TestDOSDisks.src/M000015.html +0 -25
- data/doc/classes/TestDOSDisks.src/M000016.html +0 -41
- data/doc/classes/TestDOSDisks.src/M000017.html +0 -27
- data/doc/classes/TestDisassembly.src/M000007.html +0 -19
- data/doc/classes/TestDisassembly.src/M000008.html +0 -19
- data/doc/classes/TestDisassembly.src/M000009.html +0 -19
- data/doc/classes/TestDisassembly.src/M000016.html +0 -19
- data/doc/classes/TestDisassembly.src/M000022.html +0 -19
- data/doc/classes/TextFile.src/M000029.html +0 -18
- data/doc/classes/TextFile.src/M000030.html +0 -18
- data/doc/classes/TextFile.src/M000031.html +0 -18
- data/doc/classes/TextFile.src/M000032.html +0 -20
- data/doc/classes/TextFile.src/M000035.html +0 -18
- data/doc/classes/TextFile.src/M000036.html +0 -18
- data/doc/classes/TextFile.src/M000037.html +0 -20
- data/doc/classes/TextFile.src/M000045.html +0 -18
- data/doc/classes/TextFile.src/M000046.html +0 -18
- data/doc/classes/TextFile.src/M000047.html +0 -20
- data/doc/classes/TextFile.src/M000052.html +0 -18
- data/doc/classes/TextFile.src/M000053.html +0 -18
- data/doc/classes/TextFile.src/M000054.html +0 -20
- data/doc/dot/f_0.dot +0 -58
- data/doc/dot/f_0.png +0 -0
- data/doc/dot/f_1.dot +0 -14
- data/doc/dot/f_1.png +0 -0
- data/doc/dot/f_2.dot +0 -23
- data/doc/dot/f_2.png +0 -0
- data/doc/dot/f_3.dot +0 -32
- data/doc/dot/f_3.png +0 -0
- data/doc/dot/f_4.dot +0 -88
- data/doc/dot/f_4.png +0 -0
- data/doc/dot/f_5.dot +0 -23
- data/doc/dot/f_5.png +0 -0
- data/doc/dot/f_6.dot +0 -30
- data/doc/dot/f_6.png +0 -0
- data/doc/dot/f_7.dot +0 -32
- data/doc/dot/f_7.png +0 -0
- data/doc/dot/f_8.dot +0 -32
- data/doc/dot/f_8.png +0 -0
- data/doc/dot/f_9.dot +0 -14
- data/doc/dot/f_9.png +0 -0
- data/doc/dot/m_0_0.dot +0 -30
- data/doc/dot/m_0_0.png +0 -0
- data/doc/dot/m_6_0.dot +0 -30
- data/doc/dot/m_6_0.png +0 -0
- data/doc/files/bin/dskexplorer_rb.html +0 -339
- data/doc/files/bin/dskexplorer_rb.src/M000001.html +0 -21
- data/doc/files/bin/dskexplorer_rb.src/M000002.html +0 -21
- data/doc/files/bin/dskexplorer_rb.src/M000003.html +0 -22
- data/doc/files/bin/dskexplorer_rb.src/M000004.html +0 -19
- data/doc/files/bin/dskexplorer_rb.src/M000005.html +0 -20
- data/doc/files/bin/dskexplorer_rb.src/M000006.html +0 -22
- data/doc/files/bin/dskexplorer_rb.src/M000007.html +0 -20
- data/doc/files/bin/dskexplorer_rb.src/M000008.html +0 -43
- data/doc/files/bin/dskexplorer_rb.src/M000009.html +0 -55
- data/doc/files/bin/dskexplorer_rb.src/M000010.html +0 -43
- data/doc/files/bin/dskexplorer_rb.src/M000011.html +0 -34
- data/doc/files/bin/dskserver_rb.html +0 -247
- data/doc/files/bin/dskserver_rb.src/M000001.html +0 -22
- data/doc/files/bin/dskserver_rb.src/M000002.html +0 -19
- data/doc/files/bin/dskserver_rb.src/M000003.html +0 -62
- data/doc/files/bin/dskserver_rb.src/M000004.html +0 -39
- data/doc/files/bin/dskserver_rb.src/M000005.html +0 -26
- data/doc/files/lib/rdoc_patch_rb.html +0 -114
- data/test/white_11a.dsk +0 -0
@@ -1,21 +0,0 @@
|
|
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 42</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>
|
@@ -1,21 +0,0 @@
|
|
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 49</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>
|
@@ -1,22 +0,0 @@
|
|
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 56</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>
|
@@ -1,19 +0,0 @@
|
|
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 63</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">common_footer</span>
|
15
|
-
<span class="ruby-value str">"
|
16
|
-
"</span>
|
17
|
-
<span class="ruby-keyword kw">end</span></pre>
|
18
|
-
</body>
|
19
|
-
</html>
|
@@ -1,20 +0,0 @@
|
|
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 68</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>
|
@@ -1,22 +0,0 @@
|
|
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 73</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>
|
@@ -1,20 +0,0 @@
|
|
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 81</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">sub</span>(<span class="ruby-value str">"["</span>,<span class="ruby-value str">"%5b"</span>).<span class="ruby-identifier">sub</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>
|
@@ -1,43 +0,0 @@
|
|
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 86</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>
|
@@ -1,55 +0,0 @@
|
|
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 115</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>)
|
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-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>
|
31
|
-
<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)}>#{filename}</a>"</span>
|
32
|
-
<span class="ruby-keyword kw">end</span>
|
33
|
-
|
34
|
-
|
35
|
-
<span class="ruby-comment cmt">#show the contents of the current directory</span>
|
36
|
-
<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>)
|
37
|
-
|
38
|
-
<span class="ruby-comment cmt">#list out the directories</span>
|
39
|
-
|
40
|
-
<span class="ruby-identifier">s</span><span class="ruby-operator">+=</span><span class="ruby-value str">"<ul>"</span>
|
41
|
-
<span class="ruby-comment cmt">#s+="<li>[dir] <a href=/#{uri_encode('/dir/'+File.dirname(relative_path))}>..</a>\n"</span>
|
42
|
-
<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>
|
43
|
-
<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>
|
44
|
-
<span class="ruby-keyword kw">end</span>
|
45
|
-
|
46
|
-
<span class="ruby-comment cmt">#list out the DSK files </span>
|
47
|
-
<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>
|
48
|
-
<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>
|
49
|
-
<span class="ruby-keyword kw">end</span>
|
50
|
-
<span class="ruby-identifier">s</span><span class="ruby-operator">+=</span><span class="ruby-value str">"</ul>"</span>
|
51
|
-
|
52
|
-
<span class="ruby-identifier">s</span>
|
53
|
-
<span class="ruby-keyword kw">end</span></pre>
|
54
|
-
</body>
|
55
|
-
</html>
|
@@ -1,43 +0,0 @@
|
|
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 155</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-keyword kw">if</span> (<span class="ruby-identifier">dsk</span>.<span class="ruby-identifier">is_dos33?</span>) <span class="ruby-keyword kw">then</span>
|
20
|
-
<span class="ruby-identifier">s</span><span class="ruby-operator">+=</span><span class="ruby-value str">"<table>\n<th>TYPE</th><th>SECTORS</th><th>NAME</th></tr>\n"</span>
|
21
|
-
<span class="ruby-identifier">dsk</span>.<span class="ruby-identifier">files</span>.<span class="ruby-identifier">each_value</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span>
|
22
|
-
<span class="ruby-identifier">display_url</span>=<span class="ruby-node">"/showfile/#{uri_encode(relative_path)+'?filename='+uri_encode(f.filename)}"</span>
|
23
|
-
<span class="ruby-identifier">s</span><span class="ruby-operator">+=</span><span class="ruby-node">"<td>#{f.file_type}</td><td>#{sprintf('%03d',f.sector_count)}</td><td>#{f.filename}</td>"</span>
|
24
|
-
<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>
|
25
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">file_type</span><span class="ruby-operator">==</span><span class="ruby-value str">"T"</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><a href=#{display_url}&mode=text>text</a></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-node">"<td><a href=#{display_url}&mode=list>listing</a></td>"</span>
|
29
|
-
<span class="ruby-keyword kw">end</span>
|
30
|
-
|
31
|
-
<span class="ruby-identifier">s</span><span class="ruby-operator">+=</span><span class="ruby-value str">"</tr>\n"</span>
|
32
|
-
<span class="ruby-keyword kw">end</span>
|
33
|
-
<span class="ruby-identifier">s</span><span class="ruby-operator">+=</span><span class="ruby-value str">"</table>"</span>
|
34
|
-
<span class="ruby-keyword kw">else</span>
|
35
|
-
<span class="ruby-identifier">s</span><span class="ruby-operator">+=</span><span class="ruby-value str">"<i>not DOS 3.3 format</i>"</span>
|
36
|
-
<span class="ruby-keyword kw">end</span>
|
37
|
-
<span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Exception</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">exception</span>
|
38
|
-
<span class="ruby-identifier">s</span><span class="ruby-operator">+=</span><span class="ruby-node">"<i>ERROR:#{exception}</i>"</span>
|
39
|
-
<span class="ruby-keyword kw">end</span>
|
40
|
-
<span class="ruby-identifier">s</span>
|
41
|
-
<span class="ruby-keyword kw">end</span></pre>
|
42
|
-
</body>
|
43
|
-
</html>
|
@@ -1,34 +0,0 @@
|
|
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 183</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">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">file_type</span><span class="ruby-operator">==</span><span class="ruby-value str">'B'</span>
|
25
|
-
<span class="ruby-keyword kw">then</span> <span class="ruby-identifier">s</span><span class="ruby-operator">+=</span><span class="ruby-identifier">file</span>.<span class="ruby-identifier">disassembly</span>
|
26
|
-
<span class="ruby-keyword kw">else</span>
|
27
|
-
<span class="ruby-identifier">s</span><span class="ruby-operator">+=</span> <span class="ruby-identifier">file</span>.<span class="ruby-identifier">to_s</span>
|
28
|
-
<span class="ruby-keyword kw">end</span>
|
29
|
-
<span class="ruby-identifier">s</span><span class="ruby-operator">+=</span><span class="ruby-value str">"\n</pre><hl>"</span>
|
30
|
-
<span class="ruby-keyword kw">end</span>
|
31
|
-
<span class="ruby-identifier">s</span>
|
32
|
-
<span class="ruby-keyword kw">end</span></pre>
|
33
|
-
</body>
|
34
|
-
</html>
|
@@ -1,247 +0,0 @@
|
|
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: dskserver.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>dskserver.rb</h1>
|
51
|
-
<table class="header-table">
|
52
|
-
<tr class="top-aligned-row">
|
53
|
-
<td><strong>Path:</strong></td>
|
54
|
-
<td>bin/dskserver.rb
|
55
|
-
</td>
|
56
|
-
</tr>
|
57
|
-
<tr class="top-aligned-row">
|
58
|
-
<td><strong>Last Update:</strong></td>
|
59
|
-
<td>Sun Jun 17 22:09:17 AUS Eastern Standard Time 2007</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
|
-
<area shape="RECT" coords="5,101,101,149" href="../../classes/CatalogServlet.html" alt="CatalogServlet">
|
73
|
-
<area shape="RECT" coords="125,101,229,149" href="../../classes/DirectoryServlet.html" alt="DirectoryServlet">
|
74
|
-
<area shape="RECT" coords="253,101,357,149" href="../../classes/ShowFileServlet.html" alt="ShowFileServlet">
|
75
|
-
<area shape="RECT" coords="95,5,260,53" href="../../classes/HTTPServlet/AbstractServlet.html" alt="HTTPServlet::AbstractServlet">
|
76
|
-
</map>
|
77
|
-
<img src="../../dot/f_0.png" usemap="#map" border=0 alt="TopLevel">
|
78
|
-
</div>
|
79
|
-
|
80
|
-
<div id="description">
|
81
|
-
<p>
|
82
|
-
dskserver.rb
|
83
|
-
</p>
|
84
|
-
<h2>Synopsis</h2>
|
85
|
-
<p>
|
86
|
-
A web-based <a href="../../classes/DSK.html">DSK</a> file explorer
|
87
|
-
</p>
|
88
|
-
<h2>Usage</h2>
|
89
|
-
<p>
|
90
|
-
dskserver.rb [switches]
|
91
|
-
</p>
|
92
|
-
<pre>
|
93
|
-
-h | --help display this message
|
94
|
-
-d | --directory ROOT_DIR root directory to explore from (default is current directory)
|
95
|
-
-p | --port PORT_NUMBER port number to listen on (default is 6052)
|
96
|
-
-v | --version show version number
|
97
|
-
</pre>
|
98
|
-
|
99
|
-
</div>
|
100
|
-
|
101
|
-
<div id="requires-list">
|
102
|
-
<h3 class="section-bar">Required files</h3>
|
103
|
-
|
104
|
-
<div class="name-list">
|
105
|
-
optparse
|
106
|
-
rdoc_patch
|
107
|
-
webrick
|
108
|
-
cgi
|
109
|
-
<a href="../../classes/DSK.html">DSK</a>
|
110
|
-
</div>
|
111
|
-
</div>
|
112
|
-
|
113
|
-
</div>
|
114
|
-
|
115
|
-
<div id="method-list">
|
116
|
-
<h3 class="section-bar">Methods</h3>
|
117
|
-
|
118
|
-
<div class="name-list">
|
119
|
-
<a href="#M000002">common_footer</a>
|
120
|
-
<a href="#M000001">common_header</a>
|
121
|
-
<a href="#M000004">make_catalog</a>
|
122
|
-
<a href="#M000003">make_navigation_path</a>
|
123
|
-
<a href="#M000005">show_file</a>
|
124
|
-
</div>
|
125
|
-
</div>
|
126
|
-
|
127
|
-
</div>
|
128
|
-
|
129
|
-
|
130
|
-
<!-- if includes -->
|
131
|
-
<div id="includes">
|
132
|
-
<h3 class="section-bar">Included Modules</h3>
|
133
|
-
|
134
|
-
<div id="includes-list">
|
135
|
-
<span class="include-name">WEBrick</span>
|
136
|
-
</div>
|
137
|
-
</div>
|
138
|
-
|
139
|
-
<div id="section">
|
140
|
-
|
141
|
-
|
142
|
-
<div id="constants-list">
|
143
|
-
<h3 class="section-bar">Constants</h3>
|
144
|
-
|
145
|
-
<div class="name-list">
|
146
|
-
<table summary="Constants">
|
147
|
-
<tr class="top-aligned-row context-row">
|
148
|
-
<td class="context-item-name">DSKSERVER_VERSION</td>
|
149
|
-
<td>=</td>
|
150
|
-
<td class="context-item-value">"0.1.0"</td>
|
151
|
-
</tr>
|
152
|
-
</table>
|
153
|
-
</div>
|
154
|
-
</div>
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
<!-- if method_list -->
|
162
|
-
<div id="methods">
|
163
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
164
|
-
|
165
|
-
<div id="method-M000002" class="method-detail">
|
166
|
-
<a name="M000002"></a>
|
167
|
-
|
168
|
-
<div class="method-heading">
|
169
|
-
<a href="dskserver_rb.src/M000002.html" target="Code" class="method-signature"
|
170
|
-
onclick="popupCode('dskserver_rb.src/M000002.html');return false;">
|
171
|
-
<span class="method-name">common_footer</span><span class="method-args">()</span>
|
172
|
-
</a>
|
173
|
-
</div>
|
174
|
-
|
175
|
-
<div class="method-description">
|
176
|
-
</div>
|
177
|
-
</div>
|
178
|
-
|
179
|
-
<div id="method-M000001" class="method-detail">
|
180
|
-
<a name="M000001"></a>
|
181
|
-
|
182
|
-
<div class="method-heading">
|
183
|
-
<a href="dskserver_rb.src/M000001.html" target="Code" class="method-signature"
|
184
|
-
onclick="popupCode('dskserver_rb.src/M000001.html');return false;">
|
185
|
-
<span class="method-name">common_header</span><span class="method-args">()</span>
|
186
|
-
</a>
|
187
|
-
</div>
|
188
|
-
|
189
|
-
<div class="method-description">
|
190
|
-
</div>
|
191
|
-
</div>
|
192
|
-
|
193
|
-
<div id="method-M000004" class="method-detail">
|
194
|
-
<a name="M000004"></a>
|
195
|
-
|
196
|
-
<div class="method-heading">
|
197
|
-
<a href="dskserver_rb.src/M000004.html" target="Code" class="method-signature"
|
198
|
-
onclick="popupCode('dskserver_rb.src/M000004.html');return false;">
|
199
|
-
<span class="method-name">make_catalog</span><span class="method-args">(relative_path)</span>
|
200
|
-
</a>
|
201
|
-
</div>
|
202
|
-
|
203
|
-
<div class="method-description">
|
204
|
-
</div>
|
205
|
-
</div>
|
206
|
-
|
207
|
-
<div id="method-M000003" class="method-detail">
|
208
|
-
<a name="M000003"></a>
|
209
|
-
|
210
|
-
<div class="method-heading">
|
211
|
-
<a href="dskserver_rb.src/M000003.html" target="Code" class="method-signature"
|
212
|
-
onclick="popupCode('dskserver_rb.src/M000003.html');return false;">
|
213
|
-
<span class="method-name">make_navigation_path</span><span class="method-args">(relative_path,filename=nil)</span>
|
214
|
-
</a>
|
215
|
-
</div>
|
216
|
-
|
217
|
-
<div class="method-description">
|
218
|
-
</div>
|
219
|
-
</div>
|
220
|
-
|
221
|
-
<div id="method-M000005" class="method-detail">
|
222
|
-
<a name="M000005"></a>
|
223
|
-
|
224
|
-
<div class="method-heading">
|
225
|
-
<a href="dskserver_rb.src/M000005.html" target="Code" class="method-signature"
|
226
|
-
onclick="popupCode('dskserver_rb.src/M000005.html');return false;">
|
227
|
-
<span class="method-name">show_file</span><span class="method-args">(relative_path,filename)</span>
|
228
|
-
</a>
|
229
|
-
</div>
|
230
|
-
|
231
|
-
<div class="method-description">
|
232
|
-
</div>
|
233
|
-
</div>
|
234
|
-
|
235
|
-
|
236
|
-
</div>
|
237
|
-
|
238
|
-
|
239
|
-
</div>
|
240
|
-
|
241
|
-
|
242
|
-
<div id="validator-badges">
|
243
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
244
|
-
</div>
|
245
|
-
|
246
|
-
</body>
|
247
|
-
</html>
|