THERuSH 0.9

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.
Files changed (49) hide show
  1. data/bin/therush.rb +112 -0
  2. data/doc/classes/Builtin.html +175 -0
  3. data/doc/classes/Builtin.src/M000005.html +44 -0
  4. data/doc/classes/Builtin.src/M000006.html +44 -0
  5. data/doc/classes/Builtin.src/M000007.html +44 -0
  6. data/doc/classes/History.html +223 -0
  7. data/doc/classes/History.src/M000006.html +28 -0
  8. data/doc/classes/History.src/M000007.html +28 -0
  9. data/doc/classes/History.src/M000008.html +37 -0
  10. data/doc/classes/Shellfuncs.html +261 -0
  11. data/doc/classes/Shellfuncs.src/M000002.html +18 -0
  12. data/doc/classes/Shellfuncs.src/M000003.html +23 -0
  13. data/doc/classes/Shellfuncs.src/M000004.html +27 -0
  14. data/doc/classes/Shellfuncs.src/M000005.html +23 -0
  15. data/doc/created.rid +1 -0
  16. data/doc/dot/f_0.dot +14 -0
  17. data/doc/dot/f_0.png +0 -0
  18. data/doc/dot/f_1.dot +30 -0
  19. data/doc/dot/f_1.png +0 -0
  20. data/doc/dot/f_2.dot +30 -0
  21. data/doc/dot/f_2.png +0 -0
  22. data/doc/dot/f_3.dot +30 -0
  23. data/doc/dot/f_3.png +0 -0
  24. data/doc/dot/m_1_0.dot +30 -0
  25. data/doc/dot/m_1_0.png +0 -0
  26. data/doc/dot/m_2_0.dot +30 -0
  27. data/doc/dot/m_2_0.png +0 -0
  28. data/doc/dot/m_3_0.dot +30 -0
  29. data/doc/dot/m_3_0.png +0 -0
  30. data/doc/files/builtins_rb.html +107 -0
  31. data/doc/files/builtins_rb.src/M000007.html +44 -0
  32. data/doc/files/history_rb.html +108 -0
  33. data/doc/files/rubyshell_rb.html +188 -0
  34. data/doc/files/rubyshell_rb.src/M000001.html +41 -0
  35. data/doc/files/rubyshell_rb.src/M000002.html +25 -0
  36. data/doc/files/rubyshell_rb.src/M000003.html +41 -0
  37. data/doc/files/rubyshell_rb.src/M000004.html +28 -0
  38. data/doc/files/rubyshell_rb.src/M000005.html +41 -0
  39. data/doc/files/rubyshell_rb.src/M000006.html +28 -0
  40. data/doc/files/rubyshell_rb.src/M000007.html +28 -0
  41. data/doc/files/shellfuncs_rb.html +121 -0
  42. data/doc/fr_class_index.html +29 -0
  43. data/doc/fr_file_index.html +30 -0
  44. data/doc/fr_method_index.html +34 -0
  45. data/doc/index.html +24 -0
  46. data/lib/builtins.rb +39 -0
  47. data/lib/history.rb +48 -0
  48. data/lib/shellfuncs.rb +57 -0
  49. metadata +101 -0
@@ -0,0 +1 @@
1
+ Mon Sep 18 12:42:22 EDT 2006
@@ -0,0 +1,14 @@
1
+ digraph TopLevel {
2
+ compound = true
3
+ bgcolor = lightcyan1
4
+ fontname = Arial
5
+ fontsize = 8
6
+ label = "rubyshell.rb"
7
+ node [
8
+ fontname = Arial,
9
+ fontsize = 8,
10
+ color = black
11
+ ]
12
+
13
+ }
14
+
Binary file
@@ -0,0 +1,30 @@
1
+ digraph TopLevel {
2
+ compound = true
3
+ bgcolor = lightcyan1
4
+ fontname = Arial
5
+ fontsize = 8
6
+ label = "builtins.rb"
7
+ node [
8
+ fontname = Arial,
9
+ fontsize = 8,
10
+ color = black
11
+ ]
12
+
13
+ subgraph cluster_Builtin {
14
+ fillcolor = palegreen1
15
+ URL = "classes/Builtin.html"
16
+ fontname = Arial
17
+ color = blue
18
+ label = "Builtin"
19
+ style = filled
20
+ Builtin [
21
+ shape = plaintext,
22
+ height = 0.01,
23
+ width = 0.75,
24
+ label = ""
25
+ ]
26
+
27
+ }
28
+
29
+ }
30
+
Binary file
@@ -0,0 +1,30 @@
1
+ digraph TopLevel {
2
+ compound = true
3
+ bgcolor = lightcyan1
4
+ fontname = Arial
5
+ fontsize = 8
6
+ label = "shellfuncs.rb"
7
+ node [
8
+ fontname = Arial,
9
+ fontsize = 8,
10
+ color = black
11
+ ]
12
+
13
+ subgraph cluster_Shellfuncs {
14
+ fillcolor = palegreen1
15
+ URL = "classes/Shellfuncs.html"
16
+ fontname = Arial
17
+ color = blue
18
+ label = "Shellfuncs"
19
+ style = filled
20
+ Shellfuncs [
21
+ shape = plaintext,
22
+ height = 0.01,
23
+ width = 0.75,
24
+ label = ""
25
+ ]
26
+
27
+ }
28
+
29
+ }
30
+
Binary file
@@ -0,0 +1,30 @@
1
+ digraph TopLevel {
2
+ compound = true
3
+ bgcolor = lightcyan1
4
+ fontname = Arial
5
+ fontsize = 8
6
+ label = "history.rb"
7
+ node [
8
+ fontname = Arial,
9
+ fontsize = 8,
10
+ color = black
11
+ ]
12
+
13
+ subgraph cluster_History {
14
+ fillcolor = palegreen1
15
+ URL = "classes/History.html"
16
+ fontname = Arial
17
+ color = blue
18
+ label = "History"
19
+ style = filled
20
+ History [
21
+ shape = plaintext,
22
+ height = 0.01,
23
+ width = 0.75,
24
+ label = ""
25
+ ]
26
+
27
+ }
28
+
29
+ }
30
+
Binary file
@@ -0,0 +1,30 @@
1
+ digraph TopLevel {
2
+ compound = true
3
+ bgcolor = lightcyan1
4
+ fontname = Arial
5
+ fontsize = 8
6
+ label = "TopLevel"
7
+ node [
8
+ fontname = Arial,
9
+ fontsize = 8,
10
+ color = black
11
+ ]
12
+
13
+ subgraph cluster_Builtin {
14
+ fillcolor = palegreen1
15
+ URL = "classes/Builtin.html"
16
+ fontname = Arial
17
+ color = blue
18
+ label = "Builtin"
19
+ style = filled
20
+ Builtin [
21
+ shape = plaintext,
22
+ height = 0.01,
23
+ width = 0.75,
24
+ label = ""
25
+ ]
26
+
27
+ }
28
+
29
+ }
30
+
Binary file
@@ -0,0 +1,30 @@
1
+ digraph TopLevel {
2
+ compound = true
3
+ bgcolor = lightcyan1
4
+ fontname = Arial
5
+ fontsize = 8
6
+ label = "TopLevel"
7
+ node [
8
+ fontname = Arial,
9
+ fontsize = 8,
10
+ color = black
11
+ ]
12
+
13
+ subgraph cluster_Shellfuncs {
14
+ fillcolor = palegreen1
15
+ URL = "classes/Shellfuncs.html"
16
+ fontname = Arial
17
+ color = blue
18
+ label = "Shellfuncs"
19
+ style = filled
20
+ Shellfuncs [
21
+ shape = plaintext,
22
+ height = 0.01,
23
+ width = 0.75,
24
+ label = ""
25
+ ]
26
+
27
+ }
28
+
29
+ }
30
+
Binary file
@@ -0,0 +1,30 @@
1
+ digraph TopLevel {
2
+ compound = true
3
+ bgcolor = lightcyan1
4
+ fontname = Arial
5
+ fontsize = 8
6
+ label = "TopLevel"
7
+ node [
8
+ fontname = Arial,
9
+ fontsize = 8,
10
+ color = black
11
+ ]
12
+
13
+ subgraph cluster_History {
14
+ fillcolor = palegreen1
15
+ URL = "classes/History.html"
16
+ fontname = Arial
17
+ color = blue
18
+ label = "History"
19
+ style = filled
20
+ History [
21
+ shape = plaintext,
22
+ height = 0.01,
23
+ width = 0.75,
24
+ label = ""
25
+ ]
26
+
27
+ }
28
+
29
+ }
30
+
Binary file
@@ -0,0 +1,107 @@
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: builtins.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>builtins.rb</h1>
51
+ <table class="header-table">
52
+ <tr class="top-aligned-row">
53
+ <td><strong>Path:</strong></td>
54
+ <td>builtins.rb
55
+ </td>
56
+ </tr>
57
+ <tr class="top-aligned-row">
58
+ <td><strong>Last Update:</strong></td>
59
+ <td>Mon Sep 18 12:40:18 EDT 2006</td>
60
+ </tr>
61
+ </table>
62
+ </div>
63
+ <!-- banner header -->
64
+
65
+ <div id="bodyContent">
66
+
67
+
68
+
69
+ <div id="contextContent">
70
+
71
+ <div id="description">
72
+ <p>
73
+ The library of builtin functions for THERuSH
74
+ </p>
75
+
76
+ </div>
77
+
78
+
79
+ </div>
80
+
81
+
82
+ </div>
83
+
84
+
85
+ <!-- if includes -->
86
+
87
+ <div id="section">
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+ <!-- if method_list -->
97
+
98
+
99
+ </div>
100
+
101
+
102
+ <div id="validator-badges">
103
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
104
+ </div>
105
+
106
+ </body>
107
+ </html>
@@ -0,0 +1,44 @@
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>chDir (builtins.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 builtins.rb, line 8</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chDir</span>( <span class="ruby-identifier">dir</span> )
15
+
16
+ <span class="ruby-comment cmt">## Only enabled if invoked with -d</span>
17
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">$DEBUG</span>
18
+ <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">dir</span>.<span class="ruby-identifier">nil?</span>
19
+ <span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;DEBUGGING VALUES: dir: &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">dir</span>
20
+ <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">dir</span>.<span class="ruby-identifier">nil?</span>
21
+ <span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;DEBUGGING VALUES: dir: nil&quot;</span>
22
+ <span class="ruby-keyword kw">end</span>
23
+ <span class="ruby-keyword kw">end</span>
24
+
25
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">dir</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">dir</span> <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;~&quot;</span>
26
+ <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">chdir</span>( <span class="ruby-constant">ENV</span>[<span class="ruby-value str">&quot;HOME&quot;</span>] )
27
+ <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">dir</span>.<span class="ruby-identifier">index</span>(<span class="ruby-value str">&quot;/&quot;</span>) <span class="ruby-operator">==</span> <span class="ruby-value">0</span> <span class="ruby-comment cmt">## Means we were passed an absolute pathname</span>
28
+ <span class="ruby-keyword kw">if</span> <span class="ruby-constant">FileTest</span>.<span class="ruby-identifier">directory?</span>( <span class="ruby-identifier">dir</span> )
29
+ <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">chdir</span>( <span class="ruby-identifier">dir</span> )
30
+ <span class="ruby-keyword kw">else</span>
31
+ <span class="ruby-identifier">puts</span> <span class="ruby-identifier">dir</span> <span class="ruby-operator">+</span> <span class="ruby-value str">&quot; does not exist&quot;</span>
32
+ <span class="ruby-keyword kw">end</span>
33
+ <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">dir</span> <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;.&quot;</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">dir</span> <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;..&quot;</span> <span class="ruby-comment cmt">## Special Case that doesn't need checking</span>
34
+ <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">chdir</span>( <span class="ruby-identifier">dir</span> )
35
+ <span class="ruby-keyword kw">else</span> <span class="ruby-comment cmt">## Relative pathname</span>
36
+ <span class="ruby-keyword kw">if</span> <span class="ruby-constant">FileTest</span>.<span class="ruby-identifier">directory?</span>( <span class="ruby-identifier">dir</span> )
37
+ <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">chdir</span>( <span class="ruby-identifier">dir</span> )
38
+ <span class="ruby-keyword kw">else</span>
39
+ <span class="ruby-identifier">puts</span> <span class="ruby-identifier">dir</span> <span class="ruby-operator">+</span> <span class="ruby-value str">&quot; does not exist&quot;</span>
40
+ <span class="ruby-keyword kw">end</span>
41
+ <span class="ruby-keyword kw">end</span>
42
+ <span class="ruby-keyword kw">end</span></pre>
43
+ </body>
44
+ </html>
@@ -0,0 +1,108 @@
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: history.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>history.rb</h1>
51
+ <table class="header-table">
52
+ <tr class="top-aligned-row">
53
+ <td><strong>Path:</strong></td>
54
+ <td>history.rb
55
+ </td>
56
+ </tr>
57
+ <tr class="top-aligned-row">
58
+ <td><strong>Last Update:</strong></td>
59
+ <td>Mon Sep 18 12:41:06 EDT 2006</td>
60
+ </tr>
61
+ </table>
62
+ </div>
63
+ <!-- banner header -->
64
+
65
+ <div id="bodyContent">
66
+
67
+
68
+
69
+ <div id="contextContent">
70
+
71
+ <div id="description">
72
+ <p>
73
+ Handles the <a href="../classes/History.html">History</a> functions for
74
+ THERuSH
75
+ </p>
76
+
77
+ </div>
78
+
79
+
80
+ </div>
81
+
82
+
83
+ </div>
84
+
85
+
86
+ <!-- if includes -->
87
+
88
+ <div id="section">
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+ <!-- if method_list -->
98
+
99
+
100
+ </div>
101
+
102
+
103
+ <div id="validator-badges">
104
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
105
+ </div>
106
+
107
+ </body>
108
+ </html>