rumai 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/LICENSE +2 -0
- data/doc/api/Rumai/Client.html +3 -3
- data/doc/api/Rumai/ExportInstMethods.html +3 -3
- data/doc/api/Rumai/Node.html +51 -51
- data/doc/api/Rumai/View.html +3 -3
- data/doc/api/Rumai/WidgetNode.html +3 -3
- data/doc/api/Rumai.html +1 -1
- data/doc/api/readme.html +3 -0
- data/doc/history.erb +11 -1
- data/doc/index.xhtml +63 -41
- data/doc/intro.erb +5 -1
- data/lib/rumai/fs.rb +2 -1
- data/lib/rumai.rb +2 -2
- metadata +2 -2
data/LICENSE
CHANGED
data/doc/api/Rumai/Client.html
CHANGED
@@ -105,7 +105,6 @@ Provides access to child nodes through method calls.
|
|
105
105
|
<pre class="lines">
|
106
106
|
|
107
107
|
|
108
|
-
129
|
109
108
|
130
|
110
109
|
131
|
111
110
|
132
|
@@ -116,10 +115,11 @@ Provides access to child nodes through method calls.
|
|
116
115
|
137
|
117
116
|
138
|
118
117
|
139
|
119
|
-
140
|
118
|
+
140
|
119
|
+
141</pre>
|
120
120
|
</td>
|
121
121
|
<td>
|
122
|
-
<pre class="code"><span class="info file"># File 'lib/rumai/fs.rb', line
|
122
|
+
<pre class="code"><span class="info file"># File 'lib/rumai/fs.rb', line 130</span>
|
123
123
|
|
124
124
|
<span class='def def kw'>def</span> <span class='method_missing identifier id'>method_missing</span> <span class='aMeth identifier id'>aMeth</span><span class='comma token'>,</span> <span class='mult op'>*</span><span class='aArgs identifier id'>aArgs</span>
|
125
125
|
<span class='child identifier id'>child</span> <span class='assign token'>=</span> <span class='self self kw'>self</span><span class='lbrack token'>[</span><span class='aMeth identifier id'>aMeth</span><span class='rbrack token'>]</span>
|
@@ -75,7 +75,6 @@ Both of the above expressions are equivalent.
|
|
75
75
|
<pre class="lines">
|
76
76
|
|
77
77
|
|
78
|
-
152
|
79
78
|
153
|
80
79
|
154
|
81
80
|
155
|
@@ -83,10 +82,11 @@ Both of the above expressions are equivalent.
|
|
83
82
|
157
|
84
83
|
158
|
85
84
|
159
|
86
|
-
160
|
85
|
+
160
|
86
|
+
161</pre>
|
87
87
|
</td>
|
88
88
|
<td>
|
89
|
-
<pre class="code"><span class="info file"># File 'lib/rumai/fs.rb', line
|
89
|
+
<pre class="code"><span class="info file"># File 'lib/rumai/fs.rb', line 153</span>
|
90
90
|
|
91
91
|
<span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='extended identifier id'>extended</span> <span class='aTarget identifier id'>aTarget</span>
|
92
92
|
<span class='aTarget identifier id'>aTarget</span><span class='dot token'>.</span><span class='instance_methods identifier id'>instance_methods</span><span class='lparen token'>(</span><span class='false false kw'>false</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='each identifier id'>each</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='meth identifier id'>meth</span><span class='bitor op'>|</span>
|
data/doc/api/Rumai/Node.html
CHANGED
@@ -78,12 +78,12 @@ Returns the value of attribute <tt>path</tt>.
|
|
78
78
|
<pre class="lines">
|
79
79
|
|
80
80
|
|
81
|
-
31
|
82
81
|
32
|
83
|
-
33
|
82
|
+
33
|
83
|
+
34</pre>
|
84
84
|
</td>
|
85
85
|
<td>
|
86
|
-
<pre class="code"><span class="info file"># File 'lib/rumai/fs.rb', line
|
86
|
+
<pre class="code"><span class="info file"># File 'lib/rumai/fs.rb', line 32</span>
|
87
87
|
|
88
88
|
<span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span> <span class='aPath identifier id'>aPath</span>
|
89
89
|
<span class='@path ivar id'>@path</span> <span class='assign token'>=</span> <span class='aPath identifier id'>aPath</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span><span class='dot token'>.</span><span class='squeeze identifier id'>squeeze</span><span class='lparen token'>(</span><span class='string val'>'/'</span><span class='rparen token'>)</span>
|
@@ -131,7 +131,6 @@ Provides access to child nodes through method calls.
|
|
131
131
|
<pre class="lines">
|
132
132
|
|
133
133
|
|
134
|
-
129
|
135
134
|
130
|
136
135
|
131
|
137
136
|
132
|
@@ -142,10 +141,11 @@ Provides access to child nodes through method calls.
|
|
142
141
|
137
|
143
142
|
138
|
144
143
|
139
|
145
|
-
140
|
144
|
+
140
|
145
|
+
141</pre>
|
146
146
|
</td>
|
147
147
|
<td>
|
148
|
-
<pre class="code"><span class="info file"># File 'lib/rumai/fs.rb', line
|
148
|
+
<pre class="code"><span class="info file"># File 'lib/rumai/fs.rb', line 130</span>
|
149
149
|
|
150
150
|
<span class='def def kw'>def</span> <span class='method_missing identifier id'>method_missing</span> <span class='aMeth identifier id'>aMeth</span><span class='comma token'>,</span> <span class='mult op'>*</span><span class='aArgs identifier id'>aArgs</span>
|
151
151
|
<span class='child identifier id'>child</span> <span class='assign token'>=</span> <span class='self self kw'>self</span><span class='lbrack token'>[</span><span class='aMeth identifier id'>aMeth</span><span class='rbrack token'>]</span>
|
@@ -430,12 +430,12 @@ Returns the given sub-path as a Node object.
|
|
430
430
|
<pre class="lines">
|
431
431
|
|
432
432
|
|
433
|
-
98
|
434
433
|
99
|
435
|
-
100
|
434
|
+
100
|
435
|
+
101</pre>
|
436
436
|
</td>
|
437
437
|
<td>
|
438
|
-
<pre class="code"><span class="info file"># File 'lib/rumai/fs.rb', line
|
438
|
+
<pre class="code"><span class="info file"># File 'lib/rumai/fs.rb', line 99</span>
|
439
439
|
|
440
440
|
<span class='def def kw'>def</span> <span class='aref op'>[]</span> <span class='aSubPath identifier id'>aSubPath</span>
|
441
441
|
<span class='@@cache ivar id'>@@cache</span><span class='lbrack token'>[</span> <span class='File constant id'>File</span><span class='dot token'>.</span><span class='join identifier id'>join</span><span class='lparen token'>(</span><span class='@path ivar id'>@path</span><span class='comma token'>,</span> <span class='aSubPath identifier id'>aSubPath</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span><span class='rparen token'>)</span> <span class='rbrack token'>]</span>
|
@@ -477,12 +477,12 @@ Returns all child nodes of this node.
|
|
477
477
|
<pre class="lines">
|
478
478
|
|
479
479
|
|
480
|
-
108
|
481
480
|
109
|
482
|
-
110
|
481
|
+
110
|
482
|
+
111</pre>
|
483
483
|
</td>
|
484
484
|
<td>
|
485
|
-
<pre class="code"><span class="info file"># File 'lib/rumai/fs.rb', line
|
485
|
+
<pre class="code"><span class="info file"># File 'lib/rumai/fs.rb', line 109</span>
|
486
486
|
|
487
487
|
<span class='def def kw'>def</span> <span class='children identifier id'>children</span>
|
488
488
|
<span class='entries identifier id'>entries</span><span class='dot token'>.</span><span class='map! fid id'>map!</span> <span class='lbrace token'>{</span><span class='bitor op'>|</span><span class='c identifier id'>c</span><span class='bitor op'>|</span> <span class='self self kw'>self</span><span class='lbrack token'>[</span><span class='c identifier id'>c</span><span class='rbrack token'>]</span> <span class='rbrace token'>}</span>
|
@@ -524,14 +524,14 @@ Deletes all child nodes.
|
|
524
524
|
<pre class="lines">
|
525
525
|
|
526
526
|
|
527
|
-
119
|
528
527
|
120
|
529
528
|
121
|
530
529
|
122
|
531
|
-
123
|
530
|
+
123
|
531
|
+
124</pre>
|
532
532
|
</td>
|
533
533
|
<td>
|
534
|
-
<pre class="code"><span class="info file"># File 'lib/rumai/fs.rb', line
|
534
|
+
<pre class="code"><span class="info file"># File 'lib/rumai/fs.rb', line 120</span>
|
535
535
|
|
536
536
|
<span class='def def kw'>def</span> <span class='clear identifier id'>clear</span>
|
537
537
|
<span class='children identifier id'>children</span><span class='dot token'>.</span><span class='each identifier id'>each</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='c identifier id'>c</span><span class='bitor op'>|</span>
|
@@ -576,12 +576,12 @@ Rumai::IXP::Client#create for details.
|
|
576
576
|
<pre class="lines">
|
577
577
|
|
578
578
|
|
579
|
-
88
|
580
579
|
89
|
581
|
-
90
|
580
|
+
90
|
581
|
+
91</pre>
|
582
582
|
</td>
|
583
583
|
<td>
|
584
|
-
<pre class="code"><span class="info file"># File 'lib/rumai/fs.rb', line
|
584
|
+
<pre class="code"><span class="info file"># File 'lib/rumai/fs.rb', line 89</span>
|
585
585
|
|
586
586
|
<span class='def def kw'>def</span> <span class='create identifier id'>create</span> <span class='mult op'>*</span><span class='aArgs identifier id'>aArgs</span>
|
587
587
|
<span class='IXP_AGENT constant id'>IXP_AGENT</span><span class='dot token'>.</span><span class='create identifier id'>create</span> <span class='@path ivar id'>@path</span><span class='comma token'>,</span> <span class='mult op'>*</span><span class='aArgs identifier id'>aArgs</span>
|
@@ -623,12 +623,12 @@ Tests if this node is a directory.
|
|
623
623
|
<pre class="lines">
|
624
624
|
|
625
625
|
|
626
|
-
51
|
627
626
|
52
|
628
|
-
53
|
627
|
+
53
|
628
|
+
54</pre>
|
629
629
|
</td>
|
630
630
|
<td>
|
631
|
-
<pre class="code"><span class="info file"># File 'lib/rumai/fs.rb', line
|
631
|
+
<pre class="code"><span class="info file"># File 'lib/rumai/fs.rb', line 52</span>
|
632
632
|
|
633
633
|
<span class='def def kw'>def</span> <span class='directory? fid id'>directory?</span>
|
634
634
|
<span class='exist? fid id'>exist?</span> <span class='and and kw'>and</span> <span class='stat identifier id'>stat</span><span class='dot token'>.</span><span class='directory? fid id'>directory?</span>
|
@@ -670,12 +670,12 @@ Iterates through each child of this directory.
|
|
670
670
|
<pre class="lines">
|
671
671
|
|
672
672
|
|
673
|
-
114
|
674
673
|
115
|
675
|
-
116
|
674
|
+
116
|
675
|
+
117</pre>
|
676
676
|
</td>
|
677
677
|
<td>
|
678
|
-
<pre class="code"><span class="info file"># File 'lib/rumai/fs.rb', line
|
678
|
+
<pre class="code"><span class="info file"># File 'lib/rumai/fs.rb', line 115</span>
|
679
679
|
|
680
680
|
<span class='def def kw'>def</span> <span class='each identifier id'>each</span> <span class='bitand op'>&</span><span class='aBlock identifier id'>aBlock</span>
|
681
681
|
<span class='children identifier id'>children</span><span class='dot token'>.</span><span class='each identifier id'>each</span><span class='lparen token'>(</span><span class='bitand op'>&</span><span class='aBlock identifier id'>aBlock</span><span class='rparen token'>)</span>
|
@@ -717,16 +717,16 @@ Invokes the given block for every line in the content of this node.
|
|
717
717
|
<pre class="lines">
|
718
718
|
|
719
719
|
|
720
|
-
73
|
721
720
|
74
|
722
721
|
75
|
723
722
|
76
|
724
723
|
77
|
725
724
|
78
|
726
|
-
79
|
725
|
+
79
|
726
|
+
80</pre>
|
727
727
|
</td>
|
728
728
|
<td>
|
729
|
-
<pre class="code"><span class="info file"># File 'lib/rumai/fs.rb', line
|
729
|
+
<pre class="code"><span class="info file"># File 'lib/rumai/fs.rb', line 74</span>
|
730
730
|
|
731
731
|
<span class='def def kw'>def</span> <span class='each_line identifier id'>each_line</span> <span class='bitand op'>&</span><span class='aBlock identifier id'>aBlock</span>
|
732
732
|
<span class='open identifier id'>open</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='file identifier id'>file</span><span class='bitor op'>|</span>
|
@@ -772,12 +772,12 @@ Returns the names of all files in this directory.
|
|
772
772
|
<pre class="lines">
|
773
773
|
|
774
774
|
|
775
|
-
56
|
776
775
|
57
|
777
|
-
58
|
776
|
+
58
|
777
|
+
59</pre>
|
778
778
|
</td>
|
779
779
|
<td>
|
780
|
-
<pre class="code"><span class="info file"># File 'lib/rumai/fs.rb', line
|
780
|
+
<pre class="code"><span class="info file"># File 'lib/rumai/fs.rb', line 57</span>
|
781
781
|
|
782
782
|
<span class='def def kw'>def</span> <span class='entries identifier id'>entries</span>
|
783
783
|
<span class='IXP_AGENT constant id'>IXP_AGENT</span><span class='dot token'>.</span><span class='entries identifier id'>entries</span> <span class='@path ivar id'>@path</span> <span class='rescue rescue kw'>rescue</span> <span class='lbrack token'>[</span><span class='rbrack token'>]</span>
|
@@ -819,16 +819,16 @@ Tests if this node exists on the IXP server.
|
|
819
819
|
<pre class="lines">
|
820
820
|
|
821
821
|
|
822
|
-
42
|
823
822
|
43
|
824
823
|
44
|
825
824
|
45
|
826
825
|
46
|
827
826
|
47
|
828
|
-
48
|
827
|
+
48
|
828
|
+
49</pre>
|
829
829
|
</td>
|
830
830
|
<td>
|
831
|
-
<pre class="code"><span class="info file"># File 'lib/rumai/fs.rb', line
|
831
|
+
<pre class="code"><span class="info file"># File 'lib/rumai/fs.rb', line 43</span>
|
832
832
|
|
833
833
|
<span class='def def kw'>def</span> <span class='exist? fid id'>exist?</span>
|
834
834
|
<span class='begin begin kw'>begin</span>
|
@@ -874,12 +874,12 @@ Opens this node for I/O access. See Rumai::IXP::Client#open for details.
|
|
874
874
|
<pre class="lines">
|
875
875
|
|
876
876
|
|
877
|
-
62
|
878
877
|
63
|
879
|
-
64
|
878
|
+
64
|
879
|
+
65</pre>
|
880
880
|
</td>
|
881
881
|
<td>
|
882
|
-
<pre class="code"><span class="info file"># File 'lib/rumai/fs.rb', line
|
882
|
+
<pre class="code"><span class="info file"># File 'lib/rumai/fs.rb', line 63</span>
|
883
883
|
|
884
884
|
<span class='def def kw'>def</span> <span class='open identifier id'>open</span> <span class='aMode identifier id'>aMode</span> <span class='assign token'>=</span> <span class='string val'>'r'</span><span class='comma token'>,</span> <span class='bitand op'>&</span><span class='aBlock identifier id'>aBlock</span>
|
885
885
|
<span class='IXP_AGENT constant id'>IXP_AGENT</span><span class='dot token'>.</span><span class='open identifier id'>open</span> <span class='@path ivar id'>@path</span><span class='comma token'>,</span> <span class='aMode identifier id'>aMode</span><span class='comma token'>,</span> <span class='bitand op'>&</span><span class='aBlock identifier id'>aBlock</span>
|
@@ -921,12 +921,12 @@ Returns the parent node of this node.
|
|
921
921
|
<pre class="lines">
|
922
922
|
|
923
923
|
|
924
|
-
103
|
925
924
|
104
|
926
|
-
105
|
925
|
+
105
|
926
|
+
106</pre>
|
927
927
|
</td>
|
928
928
|
<td>
|
929
|
-
<pre class="code"><span class="info file"># File 'lib/rumai/fs.rb', line
|
929
|
+
<pre class="code"><span class="info file"># File 'lib/rumai/fs.rb', line 104</span>
|
930
930
|
|
931
931
|
<span class='def def kw'>def</span> <span class='parent identifier id'>parent</span>
|
932
932
|
<span class='@@cache ivar id'>@@cache</span><span class='lbrack token'>[</span> <span class='File constant id'>File</span><span class='dot token'>.</span><span class='dirname identifier id'>dirname</span><span class='lparen token'>(</span><span class='@path ivar id'>@path</span><span class='rparen token'>)</span> <span class='rbrack token'>]</span>
|
@@ -969,12 +969,12 @@ details.
|
|
969
969
|
<pre class="lines">
|
970
970
|
|
971
971
|
|
972
|
-
68
|
973
972
|
69
|
974
|
-
70
|
973
|
+
70
|
974
|
+
71</pre>
|
975
975
|
</td>
|
976
976
|
<td>
|
977
|
-
<pre class="code"><span class="info file"># File 'lib/rumai/fs.rb', line
|
977
|
+
<pre class="code"><span class="info file"># File 'lib/rumai/fs.rb', line 69</span>
|
978
978
|
|
979
979
|
<span class='def def kw'>def</span> <span class='read identifier id'>read</span> <span class='mult op'>*</span><span class='aArgs identifier id'>aArgs</span>
|
980
980
|
<span class='IXP_AGENT constant id'>IXP_AGENT</span><span class='dot token'>.</span><span class='read identifier id'>read</span> <span class='@path ivar id'>@path</span><span class='comma token'>,</span> <span class='mult op'>*</span><span class='aArgs identifier id'>aArgs</span>
|
@@ -1016,12 +1016,12 @@ Deletes the file corresponding to this node on the IXP server.
|
|
1016
1016
|
<pre class="lines">
|
1017
1017
|
|
1018
1018
|
|
1019
|
-
93
|
1020
1019
|
94
|
1021
|
-
95
|
1020
|
+
95
|
1021
|
+
96</pre>
|
1022
1022
|
</td>
|
1023
1023
|
<td>
|
1024
|
-
<pre class="code"><span class="info file"># File 'lib/rumai/fs.rb', line
|
1024
|
+
<pre class="code"><span class="info file"># File 'lib/rumai/fs.rb', line 94</span>
|
1025
1025
|
|
1026
1026
|
<span class='def def kw'>def</span> <span class='remove identifier id'>remove</span>
|
1027
1027
|
<span class='IXP_AGENT constant id'>IXP_AGENT</span><span class='dot token'>.</span><span class='remove identifier id'>remove</span> <span class='@path ivar id'>@path</span>
|
@@ -1064,12 +1064,12 @@ details.
|
|
1064
1064
|
<pre class="lines">
|
1065
1065
|
|
1066
1066
|
|
1067
|
-
37
|
1068
1067
|
38
|
1069
|
-
39
|
1068
|
+
39
|
1069
|
+
40</pre>
|
1070
1070
|
</td>
|
1071
1071
|
<td>
|
1072
|
-
<pre class="code"><span class="info file"># File 'lib/rumai/fs.rb', line
|
1072
|
+
<pre class="code"><span class="info file"># File 'lib/rumai/fs.rb', line 38</span>
|
1073
1073
|
|
1074
1074
|
<span class='def def kw'>def</span> <span class='stat identifier id'>stat</span>
|
1075
1075
|
<span class='IXP_AGENT constant id'>IXP_AGENT</span><span class='dot token'>.</span><span class='stat identifier id'>stat</span> <span class='@path ivar id'>@path</span>
|
@@ -1111,12 +1111,12 @@ Writes the given content to this node.
|
|
1111
1111
|
<pre class="lines">
|
1112
1112
|
|
1113
1113
|
|
1114
|
-
82
|
1115
1114
|
83
|
1116
|
-
84
|
1115
|
+
84
|
1116
|
+
85</pre>
|
1117
1117
|
</td>
|
1118
1118
|
<td>
|
1119
|
-
<pre class="code"><span class="info file"># File 'lib/rumai/fs.rb', line
|
1119
|
+
<pre class="code"><span class="info file"># File 'lib/rumai/fs.rb', line 83</span>
|
1120
1120
|
|
1121
1121
|
<span class='def def kw'>def</span> <span class='write identifier id'>write</span> <span class='aContent identifier id'>aContent</span>
|
1122
1122
|
<span class='IXP_AGENT constant id'>IXP_AGENT</span><span class='dot token'>.</span><span class='write identifier id'>write</span> <span class='@path ivar id'>@path</span><span class='comma token'>,</span> <span class='aContent identifier id'>aContent</span>
|
data/doc/api/Rumai/View.html
CHANGED
@@ -105,7 +105,6 @@ Provides access to child nodes through method calls.
|
|
105
105
|
<pre class="lines">
|
106
106
|
|
107
107
|
|
108
|
-
129
|
109
108
|
130
|
110
109
|
131
|
111
110
|
132
|
@@ -116,10 +115,11 @@ Provides access to child nodes through method calls.
|
|
116
115
|
137
|
117
116
|
138
|
118
117
|
139
|
119
|
-
140
|
118
|
+
140
|
119
|
+
141</pre>
|
120
120
|
</td>
|
121
121
|
<td>
|
122
|
-
<pre class="code"><span class="info file"># File 'lib/rumai/fs.rb', line
|
122
|
+
<pre class="code"><span class="info file"># File 'lib/rumai/fs.rb', line 130</span>
|
123
123
|
|
124
124
|
<span class='def def kw'>def</span> <span class='method_missing identifier id'>method_missing</span> <span class='aMeth identifier id'>aMeth</span><span class='comma token'>,</span> <span class='mult op'>*</span><span class='aArgs identifier id'>aArgs</span>
|
125
125
|
<span class='child identifier id'>child</span> <span class='assign token'>=</span> <span class='self self kw'>self</span><span class='lbrack token'>[</span><span class='aMeth identifier id'>aMeth</span><span class='rbrack token'>]</span>
|
@@ -119,7 +119,6 @@ Provides access to child nodes through method calls.
|
|
119
119
|
<pre class="lines">
|
120
120
|
|
121
121
|
|
122
|
-
129
|
123
122
|
130
|
124
123
|
131
|
125
124
|
132
|
@@ -130,10 +129,11 @@ Provides access to child nodes through method calls.
|
|
130
129
|
137
|
131
130
|
138
|
132
131
|
139
|
133
|
-
140
|
132
|
+
140
|
133
|
+
141</pre>
|
134
134
|
</td>
|
135
135
|
<td>
|
136
|
-
<pre class="code"><span class="info file"># File 'lib/rumai/fs.rb', line
|
136
|
+
<pre class="code"><span class="info file"># File 'lib/rumai/fs.rb', line 130</span>
|
137
137
|
|
138
138
|
<span class='def def kw'>def</span> <span class='method_missing identifier id'>method_missing</span> <span class='aMeth identifier id'>aMeth</span><span class='comma token'>,</span> <span class='mult op'>*</span><span class='aArgs identifier id'>aArgs</span>
|
139
139
|
<span class='child identifier id'>child</span> <span class='assign token'>=</span> <span class='self self kw'>self</span><span class='lbrack token'>[</span><span class='aMeth identifier id'>aMeth</span><span class='rbrack token'>]</span>
|
data/doc/api/Rumai.html
CHANGED
@@ -32,7 +32,7 @@ http://swtch.com/plan9port/man/man9/
|
|
32
32
|
<dl>
|
33
33
|
|
34
34
|
<dt id="IXP_SOCK_ADDR-constant">IXP_SOCK_ADDR</dt>
|
35
|
-
<dd>ENV['WMII_ADDRESS'].sub(/.*!/, '') rescue "/tmp/ns.#{ENV['USER']}.#{
|
35
|
+
<dd>ENV['WMII_ADDRESS'].sub(/.*!/, '') rescue "/tmp/ns.#{ENV['USER']}.#{display[/:\d+/]}/wmii"</dd>
|
36
36
|
|
37
37
|
<dt id="ROOT-constant">ROOT</dt>
|
38
38
|
<dd>Node.new '/'</dd>
|
data/doc/api/readme.html
CHANGED
data/doc/history.erb
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
<% chapter "History" do %>
|
2
2
|
<% project_history do %>
|
3
|
-
<% section "Version 2.0.
|
3
|
+
<% section "Version 2.0.2 (2009-02-26)" do %>
|
4
|
+
This release fixes a connection bug.
|
5
|
+
|
6
|
+
<% paragraph "Bug fixes" do %>
|
7
|
+
* wmii omits the fractional portion of `$DISPLAY` in its socket file path. Rumai was trying to connect with the entire `$DISPLAY` value (including the fractional portion) and thus could not find wmii's socket file.
|
8
|
+
|
9
|
+
Thanks to Simon Hafner for helping me debug this.
|
10
|
+
<% end %>
|
11
|
+
<% end %>
|
12
|
+
|
13
|
+
<% section "Version 2.0.1 (2009-01-25)" do %>
|
4
14
|
This release simplifies project administrivia using [<%= Inochi::PROJECT %>](<%= Inochi::WEBSITE %>), improves the unit tests, and revises the user manual.
|
5
15
|
|
6
16
|
<% paragraph "Bug fixes" do %>
|
data/doc/index.xhtml
CHANGED
@@ -12,13 +12,13 @@
|
|
12
12
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
13
13
|
<head>
|
14
14
|
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
|
15
|
-
<meta name="generator" content="ERBook 6.0
|
15
|
+
<meta name="generator" content="ERBook 6.1.0"/>
|
16
16
|
|
17
|
-
<title>Rumai 2.0.
|
17
|
+
<title>Rumai 2.0.2</title>
|
18
18
|
|
19
19
|
<meta name="author" content="Suraj N. Kurapati"/>
|
20
20
|
|
21
|
-
<meta name="date" content="
|
21
|
+
<meta name="date" content="26 February 2009"/>
|
22
22
|
|
23
23
|
<link rel="alternate" type="application/rss+xml" href="http://snk.tuxfamily.org/lib/rumai/ann.xml"/>
|
24
24
|
|
@@ -49,7 +49,7 @@
|
|
49
49
|
{
|
50
50
|
height : 0;
|
51
51
|
border : 0;
|
52
|
-
border-top :
|
52
|
+
border-top : thin dashed #000000;
|
53
53
|
}
|
54
54
|
|
55
55
|
/* source code */
|
@@ -485,7 +485,7 @@
|
|
485
485
|
.nav a:link,
|
486
486
|
.nav a:visited
|
487
487
|
{
|
488
|
-
color : #
|
488
|
+
color : #C0C0C0;
|
489
489
|
}
|
490
490
|
|
491
491
|
.nav a:hover,
|
@@ -637,13 +637,13 @@
|
|
637
637
|
<div id="header">
|
638
638
|
|
639
639
|
|
640
|
-
<h1 class="title">Rumai 2.0.
|
640
|
+
<h1 class="title">Rumai 2.0.2</h1>
|
641
641
|
|
642
642
|
<h2 class="subtitle">Ruby interface to the wmii window manager</h2>
|
643
643
|
|
644
644
|
<h3 class="authors"><a href="mailto:sunaku@gmail.com">Suraj N. Kurapati</a></h3>
|
645
645
|
|
646
|
-
<h3 class="date">
|
646
|
+
<h3 class="date">26 February 2009</h3>
|
647
647
|
|
648
648
|
</div>
|
649
649
|
|
@@ -658,7 +658,7 @@
|
|
658
658
|
<a name="Contents"/><div class="nav" id="Contents"><a title="Reverse jump to listing" href="#rev:Contents">≡</a>△▽<a title="Jump to this segment" href="#Contents">◎</a></div>
|
659
659
|
<h1 class="title">Contents</h1>
|
660
660
|
<ul>
|
661
|
-
<li>1 <a id="rev:Introduction" href="#Introduction">Introduction</a><ul><li><a id="rev:Etymology" href="#Etymology">Etymology</a></li><li>1.1 <a id="rev:Logistics" href="#Logistics">Logistics</a><ul><li><a id="rev:Version-numbers" href="#Version-numbers">Version numbers</a></li></ul></li><li>1.2 <a id="rev:License" href="#License">License</a></li><li>1.3 <a id="rev:Credits" href="#Credits">Credits</a></li></ul></li><li>2 <a id="rev:Setup" href="#Setup">Setup</a><ul><li>2.1 <a id="rev:Requirements" href="#Requirements">Requirements</a></li><li>2.2 <a id="rev:Installation" href="#Installation">Installation</a></li><li>2.3 <a id="rev:Manifest" href="#Manifest">Manifest</a></li></ul></li><li>3 <a id="rev:Usage" href="#Usage">Usage</a><ul><li>3.1 <a id="rev:Concepts" href="#Concepts">Concepts</a></li><li>3.2 <a id="rev:Command-line-interface" href="#Command-line-interface">Command-line interface</a><ul><li><a id="rev:shell" href="#shell">Interactive shell</a></li></ul></li><li>3.3 <a id="rev:Tutorial" href="#Tutorial">Tutorial</a><ul><li>3.3.1 <a id="rev:Automated-client-arrangement" href="#Automated-client-arrangement">Automated client arrangement</a></li><li>3.3.2 <a id="rev:Multiple-client-grouping" href="#Multiple-client-grouping">Multiple client grouping</a></li><li>3.3.3 <a id="rev:Easy-column-manipulation" href="#Easy-column-manipulation">Easy column manipulation</a></li><li>3.3.4 <a id="rev:Easy-client-manipulation" href="#Easy-client-manipulation">Easy client manipulation</a></li><li>3.3.5 <a id="rev:Traversing-the-file-system" href="#Traversing-the-file-system">Traversing the file system</a></li><li>3.3.6 <a id="rev:Available-commands" href="#Available-commands">Available commands</a></li></ul></li><li>3.4 <a id="rev:wmiirc" href="#wmiirc">Scripting your wmiirc</a></li></ul></li><li>4 <a id="rev:History" href="#History">History</a><ul><li>4.1 <a id="rev:Version-2.0.1-2009-01-
|
661
|
+
<li>1 <a id="rev:Introduction" href="#Introduction">Introduction</a><ul><li><a id="rev:Etymology" href="#Etymology">Etymology</a></li><li>1.1 <a id="rev:Logistics" href="#Logistics">Logistics</a><ul><li><a id="rev:Version-numbers" href="#Version-numbers">Version numbers</a></li></ul></li><li>1.2 <a id="rev:License" href="#License">License</a></li><li>1.3 <a id="rev:Credits" href="#Credits">Credits</a></li></ul></li><li>2 <a id="rev:Setup" href="#Setup">Setup</a><ul><li>2.1 <a id="rev:Requirements" href="#Requirements">Requirements</a></li><li>2.2 <a id="rev:Installation" href="#Installation">Installation</a></li><li>2.3 <a id="rev:Manifest" href="#Manifest">Manifest</a></li></ul></li><li>3 <a id="rev:Usage" href="#Usage">Usage</a><ul><li>3.1 <a id="rev:Concepts" href="#Concepts">Concepts</a></li><li>3.2 <a id="rev:Command-line-interface" href="#Command-line-interface">Command-line interface</a><ul><li><a id="rev:shell" href="#shell">Interactive shell</a></li></ul></li><li>3.3 <a id="rev:Tutorial" href="#Tutorial">Tutorial</a><ul><li>3.3.1 <a id="rev:Automated-client-arrangement" href="#Automated-client-arrangement">Automated client arrangement</a></li><li>3.3.2 <a id="rev:Multiple-client-grouping" href="#Multiple-client-grouping">Multiple client grouping</a></li><li>3.3.3 <a id="rev:Easy-column-manipulation" href="#Easy-column-manipulation">Easy column manipulation</a></li><li>3.3.4 <a id="rev:Easy-client-manipulation" href="#Easy-client-manipulation">Easy client manipulation</a></li><li>3.3.5 <a id="rev:Traversing-the-file-system" href="#Traversing-the-file-system">Traversing the file system</a></li><li>3.3.6 <a id="rev:Available-commands" href="#Available-commands">Available commands</a></li></ul></li><li>3.4 <a id="rev:wmiirc" href="#wmiirc">Scripting your wmiirc</a></li></ul></li><li>4 <a id="rev:History" href="#History">History</a><ul><li>4.1 <a id="rev:Version-2.0.2-2009-02-26" href="#Version-2.0.2-2009-02-26">Version 2.0.2 (2009-02-26)</a><ul><li><a id="rev:Bug-fixes" href="#Bug-fixes">Bug fixes</a></li></ul></li><li>4.2 <a id="rev:Version-2.0.1-2009-01-25" href="#Version-2.0.1-2009-01-25">Version 2.0.1 (2009-01-25)</a><ul><li><a id="rev:Bug-fixes-613723658" href="#Bug-fixes-613723658">Bug fixes</a></li><li><a id="rev:Housekeeping" href="#Housekeeping">Housekeeping</a></li></ul></li></ul></li>
|
662
662
|
|
663
663
|
</ul>
|
664
664
|
</div>
|
@@ -681,7 +681,7 @@
|
|
681
681
|
<ul>
|
682
682
|
<li>It excels at <em>dynamic arrangement</em> of clients, columns, views, and tags.</li>
|
683
683
|
|
684
|
-
<li>It provides an <a class="xref" href="#shell" title="Paragraph. Interactive shell">interactive shell</a> for live entertainment.</li>
|
684
|
+
<li>It provides an <a class="xref" href="#shell" title="Paragraph. "Interactive shell"">interactive shell</a> for live entertainment.</li>
|
685
685
|
|
686
686
|
<li>It contains a <em>pure Ruby client</em> for the <a href='http://cm.bell-labs.com/magic/man2html/5/intro'>9P2000 protocol</a> on which wmii’s <a href='http://www.suckless.org/wiki/libs/libixp'>IXP file-system interface</a> is built.</li>
|
687
687
|
</ul>
|
@@ -715,14 +715,14 @@ roo-mai</pre>
|
|
715
715
|
1.1 Logistics
|
716
716
|
</h2>
|
717
717
|
<div class="content"><ul>
|
718
|
-
<li><a class="xref" href="#History" title="Chapter 4. History">Release notes</a> — history of project releases.</li>
|
718
|
+
<li><a class="xref" href="#History" title="Chapter 4. "History"">Release notes</a> — history of project releases.</li>
|
719
719
|
|
720
720
|
<li><a href='http://github.com/sunaku/rumai'>Source code</a> — obtain via <a href='http://git.or.cz'>Git</a> or browse online.</li>
|
721
721
|
|
722
722
|
<li><a href='api/index.html'>API reference</a> — documentation for source code.</li>
|
723
723
|
</ul>
|
724
724
|
|
725
|
-
<p>To get help or provide feedback, simply <a class="xref" href="#License" title="Section 1.2. License">contact the author(s)</a>.</p>
|
725
|
+
<p>To get help or provide feedback, simply <a class="xref" href="#License" title="Section 1.2. "License"">contact the author(s)</a>.</p>
|
726
726
|
|
727
727
|
<p><div class="paragraph">
|
728
728
|
<a name="Version-numbers"/><div class="nav" id="Version-numbers"><a title="Reverse jump to listing" href="#rev:Version-numbers">≡</a><a title="Jump to previous segment" href="#Logistics">△</a><a title="Jump to next segment" href="#License">▽</a><a title="Jump to this segment" href="#Version-numbers">◎</a></div>
|
@@ -767,7 +767,9 @@ roo-mai</pre>
|
|
767
767
|
<h2 class="title">
|
768
768
|
1.2 License
|
769
769
|
</h2>
|
770
|
-
<div class="content"><p>
|
770
|
+
<div class="content"><p>(the ISC license)</p>
|
771
|
+
|
772
|
+
<p>Copyright 2006 Suraj N. Kurapati <a href='mailto:sunaku@gmail.com'>sunaku@gmail.com</a></p>
|
771
773
|
|
772
774
|
<p>Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.</p>
|
773
775
|
|
@@ -777,9 +779,11 @@ roo-mai</pre>
|
|
777
779
|
<h2 class="title">
|
778
780
|
1.3 Credits
|
779
781
|
</h2>
|
780
|
-
<div class="content"><
|
781
|
-
|
782
|
-
|
782
|
+
<div class="content"><p><strong>Rumai</strong> is made possible by <a class="xref" href="#History" title="Chapter 4. "History"">contributions</a> from users like you:</p>
|
783
|
+
|
784
|
+
<ul>
|
785
|
+
<li><a href='http://github.com/Tass'>Simon Hafner</a></li>
|
786
|
+
</ul></div>
|
783
787
|
</div></p></div>
|
784
788
|
</div><div class="chapter">
|
785
789
|
<a name="Setup"/><div class="nav" id="Setup"><a title="Reverse jump to listing" href="#rev:Setup">≡</a><a title="Jump to previous segment" href="#Credits">△</a><a title="Jump to next segment" href="#Requirements">▽</a><a title="Jump to this segment" href="#Setup">◎</a></div>
|
@@ -814,12 +818,12 @@ roo-mai</pre>
|
|
814
818
|
<p>If the installation was successful, you will see output like this:</p>
|
815
819
|
|
816
820
|
<p><pre>project: Rumai
|
817
|
-
version: 2.0.
|
818
|
-
release: 2009-
|
821
|
+
version: 2.0.2
|
822
|
+
release: 2009-02-26
|
819
823
|
website: http://snk.tuxfamily.org/lib/rumai
|
820
824
|
install: /home/sun/src/rumai</pre></p>
|
821
825
|
|
822
|
-
<p>If you do not see such output, you may <a class="xref" href="#License" title="Section 1.2. License">ask the author(s)</a> for help.</p></div>
|
826
|
+
<p>If you do not see such output, you may <a class="xref" href="#License" title="Section 1.2. "License"">ask the author(s)</a> for help.</p></div>
|
823
827
|
</div> <div class="section">
|
824
828
|
<a name="Manifest"/><div class="nav" id="Manifest"><a title="Reverse jump to listing" href="#rev:Manifest">≡</a><a title="Jump to previous segment" href="#Installation">△</a><a title="Jump to next segment" href="#Usage">▽</a><a title="Jump to this segment" href="#Manifest">◎</a></div>
|
825
829
|
<h2 class="title">
|
@@ -941,9 +945,10 @@ Usage:
|
|
941
945
|
|
942
946
|
Options:
|
943
947
|
|
944
|
-
|
945
|
-
--
|
946
|
-
--
|
948
|
+
--manual, -m: Show the user manual
|
949
|
+
--locale, -l <s>: Set preferred language
|
950
|
+
--version, -v: Print version and exit
|
951
|
+
--help, -h: Show this message</pre></p>
|
947
952
|
|
948
953
|
<p><div class="paragraph">
|
949
954
|
<a name="shell"/><div class="nav" id="shell"><a title="Reverse jump to listing" href="#rev:shell">≡</a><a title="Jump to previous segment" href="#Command-line-interface">△</a><a title="Jump to next segment" href="#Tutorial">▽</a><a title="Jump to this segment" href="#shell">◎</a></div>
|
@@ -967,7 +972,7 @@ Options:
|
|
967
972
|
<h2 class="title">
|
968
973
|
3.3 Tutorial
|
969
974
|
</h2>
|
970
|
-
<div class="content"><p>Now that you know <a class="xref" href="#shell" title="Paragraph. Interactive shell">how to start the interactive shell</a>, let us walk through a quick demonstration that highlights the main features of <strong>Rumai</strong>. You can follow along by copying & pasting the presented commands into the interactive shell.</p>
|
975
|
+
<div class="content"><p>Now that you know <a class="xref" href="#shell" title="Paragraph. "Interactive shell"">how to start the interactive shell</a>, let us walk through a quick demonstration that highlights the main features of <strong>Rumai</strong>. You can follow along by copying & pasting the presented commands into the interactive shell.</p>
|
971
976
|
|
972
977
|
<p><div class="section">
|
973
978
|
<a name="Automated-client-arrangement"/><div class="nav" id="Automated-client-arrangement"><a title="Reverse jump to listing" href="#rev:Automated-client-arrangement">≡</a><a title="Jump to previous segment" href="#Tutorial">△</a><a title="Jump to next segment" href="#Multiple-client-grouping">▽</a><a title="Jump to this segment" href="#Automated-client-arrangement">◎</a></div>
|
@@ -975,7 +980,7 @@ Options:
|
|
975
980
|
3.3.1 Automated client arrangement
|
976
981
|
</h3>
|
977
982
|
<div class="content"><p>Launch a few terminals so that we have something to work with: <pre class="code">colors = <span style="background-color:#fff0f0;color:#D20"><span style="color:#710">%w[</span><span style=""> red green blue black orange brown gray navy gold </span><span style="color:#710">]</span></span>
|
978
|
-
colors.each {|c| system <span style="background-color:#fff0f0;color:#D20"><span style="color:#710">"</span><span style="">xterm -bg </span><span style="background:#eee"><span style="font-weight:bold;color:#
|
983
|
+
colors.each {|c| system <span style="background-color:#fff0f0;color:#D20"><span style="color:#710">"</span><span style="">xterm -bg </span><span style="background:#eee;color:black"><span style="font-weight:bold;color:#777">#{</span>c<span style="font-weight:bold;color:#777">}</span></span><span style=""> -title </span><span style="background:#eee;color:black"><span style="font-weight:bold;color:#777">#{</span>c<span style="font-weight:bold;color:#777">}</span></span><span style=""> -e read &</span><span style="color:#710">"</span></span> }
|
979
984
|
</pre></p>
|
980
985
|
|
981
986
|
<p>Arrange all clients in a grid: <pre class="code">curr_view.arrange_in_grid
|
@@ -996,7 +1001,7 @@ terms.each {|c| c.kill }
|
|
996
1001
|
3.3.2 Multiple client grouping
|
997
1002
|
</h3>
|
998
1003
|
<div class="content"><p>Launch a few terminals so that we have something to work with: <pre class="code">colors = <span style="background-color:#fff0f0;color:#D20"><span style="color:#710">%w[</span><span style=""> red green blue black orange brown gray navy gold </span><span style="color:#710">]</span></span>
|
999
|
-
colors.each {|c| system <span style="background-color:#fff0f0;color:#D20"><span style="color:#710">"</span><span style="">xterm -bg </span><span style="background:#eee"><span style="font-weight:bold;color:#
|
1004
|
+
colors.each {|c| system <span style="background-color:#fff0f0;color:#D20"><span style="color:#710">"</span><span style="">xterm -bg </span><span style="background:#eee;color:black"><span style="font-weight:bold;color:#777">#{</span>c<span style="font-weight:bold;color:#777">}</span></span><span style=""> -title </span><span style="background:#eee;color:black"><span style="font-weight:bold;color:#777">#{</span>c<span style="font-weight:bold;color:#777">}</span></span><span style=""> -e read &</span><span style="color:#710">"</span></span> }
|
1000
1005
|
</pre></p>
|
1001
1006
|
|
1002
1007
|
<p>Add the red, green, and blue terminals into the “grouping”: <pre class="code">terms = curr_view.clients.select {|c| <span style="background-color:#fff0f0;color:#D20"><span style="color:#710">%w[</span><span style="">red green blue</span><span style="color:#710">]</span></span>.include? c.label.read }
|
@@ -1028,7 +1033,7 @@ terms.each {|c| c.kill }
|
|
1028
1033
|
3.3.3 Easy column manipulation
|
1029
1034
|
</h3>
|
1030
1035
|
<div class="content"><p>Launch a few terminals so that we have something to work with: <pre class="code">colors = <span style="background-color:#fff0f0;color:#D20"><span style="color:#710">%w[</span><span style=""> red green blue black orange brown gray navy gold </span><span style="color:#710">]</span></span>
|
1031
|
-
colors.each {|c| system <span style="background-color:#fff0f0;color:#D20"><span style="color:#710">"</span><span style="">xterm -bg </span><span style="background:#eee"><span style="font-weight:bold;color:#
|
1036
|
+
colors.each {|c| system <span style="background-color:#fff0f0;color:#D20"><span style="color:#710">"</span><span style="">xterm -bg </span><span style="background:#eee;color:black"><span style="font-weight:bold;color:#777">#{</span>c<span style="font-weight:bold;color:#777">}</span></span><span style=""> -title </span><span style="background:#eee;color:black"><span style="font-weight:bold;color:#777">#{</span>c<span style="font-weight:bold;color:#777">}</span></span><span style=""> -e read &</span><span style="color:#710">"</span></span> }
|
1032
1037
|
</pre></p>
|
1033
1038
|
|
1034
1039
|
<p>You can insert a group of clients to the top, bottom, or after the currently focused client of <em>any</em> column using Array-like methods.</p>
|
@@ -1067,7 +1072,7 @@ terms.each {|c| c.kill }
|
|
1067
1072
|
3.3.4 Easy client manipulation
|
1068
1073
|
</h3>
|
1069
1074
|
<div class="content"><p>Launch a few terminals so that we have something to work with: <pre class="code">colors = <span style="background-color:#fff0f0;color:#D20"><span style="color:#710">%w[</span><span style=""> red green blue black orange brown gray navy gold </span><span style="color:#710">]</span></span>
|
1070
|
-
colors.each {|c| system <span style="background-color:#fff0f0;color:#D20"><span style="color:#710">"</span><span style="">xterm -bg </span><span style="background:#eee"><span style="font-weight:bold;color:#
|
1075
|
+
colors.each {|c| system <span style="background-color:#fff0f0;color:#D20"><span style="color:#710">"</span><span style="">xterm -bg </span><span style="background:#eee;color:black"><span style="font-weight:bold;color:#777">#{</span>c<span style="font-weight:bold;color:#777">}</span></span><span style=""> -title </span><span style="background:#eee;color:black"><span style="font-weight:bold;color:#777">#{</span>c<span style="font-weight:bold;color:#777">}</span></span><span style=""> -e read &</span><span style="color:#710">"</span></span> }
|
1071
1076
|
</pre></p>
|
1072
1077
|
|
1073
1078
|
<p>Obtain a reference to the red client: <pre class="code">red = curr_view.clients.find {|c| c.label.read == <span style="background-color:#fff0f0;color:#D20"><span style="color:#710">"</span><span style="">red</span><span style="color:#710">"</span></span> }
|
@@ -1085,7 +1090,7 @@ colors.each {|c| system <span style="background-color:#fff0f0;color:#D20"><span
|
|
1085
1090
|
<p>Do complex operations on the red client’s tags: <pre class="code">red.with_tags { concat <span style="background-color:#fff0f0;color:#D20"><span style="color:#710">%w[</span><span style="">a b c</span><span style="color:#710">]</span></span>; push <span style="background-color:#fff0f0;color:#D20"><span style="color:#710">'</span><span style="">z</span><span style="color:#710">'</span></span>; delete <span style="background-color:#fff0f0;color:#D20"><span style="color:#710">'</span><span style="">c</span><span style="color:#710">'</span></span> }
|
1086
1091
|
</pre></p>
|
1087
1092
|
|
1088
|
-
<p>Focus the next client after the red client: <pre class="code">red.next.focus ; curr_client == red.next <span style="color:#
|
1093
|
+
<p>Focus the next client after the red client: <pre class="code">red.next.focus ; curr_client == red.next <span style="color:#888">#=> true</span>
|
1089
1094
|
</pre></p>
|
1090
1095
|
|
1091
1096
|
<p>Notice that by focusing a client, we make it the current client.</p>
|
@@ -1123,27 +1128,27 @@ terms.each {|c| c.kill }
|
|
1123
1128
|
|
1124
1129
|
<p>Navigate into to the <tt>/lbar/</tt> directory: <pre class="code">n1 = fs.lbar
|
1125
1130
|
n2 = fs[<span style="background-color:#fff0f0;color:#D20"><span style="color:#710">'</span><span style="">lbar</span><span style="color:#710">'</span></span>]
|
1126
|
-
n1 == n2 <span style="color:#
|
1131
|
+
n1 == n2 <span style="color:#888">#=> true</span>
|
1127
1132
|
left_bar = n1
|
1128
1133
|
</pre></p>
|
1129
1134
|
|
1130
1135
|
<p>Notice that you can traverse the file system hierarchy by simply calling methods on node objects. Alternatively, you can traverse by specifying an arbitrary sub-path (relative path) using the <code class="code">[]</code> operator on a node.</p>
|
1131
1136
|
|
1132
|
-
<p>Create a new temporary button: <pre class="code">b = left_bar.rumai_example <span style="color:#
|
1133
|
-
b.exist? <span style="color:#
|
1137
|
+
<p>Create a new temporary button: <pre class="code">b = left_bar.rumai_example <span style="color:#888"># path of new button</span>
|
1138
|
+
b.exist? <span style="color:#888">#=> false</span>
|
1134
1139
|
b.create
|
1135
|
-
b.exist? <span style="color:#
|
1140
|
+
b.exist? <span style="color:#888">#=> true</span>
|
1136
1141
|
</pre></p>
|
1137
1142
|
|
1138
1143
|
<p>You should now see an empty button on the left-hand side of the wmii bar.</p>
|
1139
1144
|
|
1140
1145
|
<p>Color the button black-on-white and label it as “hello world”: <pre class="code">content = <span style="background-color:#fff0f0;color:#D20"><span style="color:#710">"</span><span style="">#000000 #ffffff #000000 hello world</span><span style="color:#710">"</span></span>
|
1141
1146
|
b.write content
|
1142
|
-
b.read == content <span style="color:#
|
1147
|
+
b.read == content <span style="color:#888">#=> true</span>
|
1143
1148
|
</pre></p>
|
1144
1149
|
|
1145
1150
|
<p>Remove the temporary button: <pre class="code">b.remove
|
1146
|
-
b.exist? <span style="color:#
|
1151
|
+
b.exist? <span style="color:#888">#=> false</span>
|
1147
1152
|
</pre></p></div>
|
1148
1153
|
</div> <div class="section">
|
1149
1154
|
<a name="Available-commands"/><div class="nav" id="Available-commands"><a title="Reverse jump to listing" href="#rev:Available-commands">≡</a><a title="Jump to previous segment" href="#Traversing-the-file-system">△</a><a title="Jump to next segment" href="#wmiirc">▽</a><a title="Jump to this segment" href="#Available-commands">◎</a></div>
|
@@ -1160,27 +1165,45 @@ b.exist? <span style="color:#666">#=> false</span>
|
|
1160
1165
|
<div class="content"><p>One important application of <strong>Rumai</strong> is the support of Ruby-based <tt>wmiirc</tt> configuration files. For a solid example of such application, take a look at <a href='http://github.com/sunaku/wmiirc/tree/master'>my personal <tt>wmiirc</tt></a>.</p></div>
|
1161
1166
|
</div></p></div>
|
1162
1167
|
</div><div class="chapter">
|
1163
|
-
<a name="History"/><div class="nav" id="History"><a title="Reverse jump to listing" href="#rev:History">≡</a><a title="Jump to previous segment" href="#wmiirc">△</a><a title="Jump to next segment" href="#Version-2.0.
|
1168
|
+
<a name="History"/><div class="nav" id="History"><a title="Reverse jump to listing" href="#rev:History">≡</a><a title="Jump to previous segment" href="#wmiirc">△</a><a title="Jump to next segment" href="#Version-2.0.2-2009-02-26">▽</a><a title="Jump to this segment" href="#History">◎</a></div>
|
1164
1169
|
<h1 class="title">
|
1165
1170
|
Chapter 4
|
1166
1171
|
<br/>
|
1167
1172
|
<big>History</big>
|
1168
1173
|
</h1>
|
1169
1174
|
<div class="content"><p><p><div class="section">
|
1170
|
-
<a name="Version-2.0.
|
1175
|
+
<a name="Version-2.0.2-2009-02-26"/><div class="nav" id="Version-2.0.2-2009-02-26"><a title="Reverse jump to listing" href="#rev:Version-2.0.2-2009-02-26">≡</a><a title="Jump to previous segment" href="#History">△</a><a title="Jump to next segment" href="#Bug-fixes">▽</a><a title="Jump to this segment" href="#Version-2.0.2-2009-02-26">◎</a></div>
|
1176
|
+
<h2 class="title">
|
1177
|
+
4.1 Version 2.0.2 (2009-02-26)
|
1178
|
+
</h2>
|
1179
|
+
<div class="content"><p>This release fixes a connection bug.</p>
|
1180
|
+
|
1181
|
+
<p><div class="paragraph">
|
1182
|
+
<a name="Bug-fixes"/><div class="nav" id="Bug-fixes"><a title="Reverse jump to listing" href="#rev:Bug-fixes">≡</a><a title="Jump to previous segment" href="#Version-2.0.2-2009-02-26">△</a><a title="Jump to next segment" href="#Version-2.0.1-2009-01-25">▽</a><a title="Jump to this segment" href="#Bug-fixes">◎</a></div>
|
1183
|
+
<p class="title">Bug fixes</p>
|
1184
|
+
<div class="content"><ul>
|
1185
|
+
<li>
|
1186
|
+
<p>wmii omits the fractional portion of <code class="code"><span style="color:#d70;font-weight:bold">$DISPLAY</span></code> in its socket file path. Rumai was trying to connect with the entire <code class="code"><span style="color:#d70;font-weight:bold">$DISPLAY</span></code> value (including the fractional portion) and thus could not find wmii’s socket file.</p>
|
1187
|
+
|
1188
|
+
<p>Thanks to Simon Hafner for helping me debug this.</p>
|
1189
|
+
</li>
|
1190
|
+
</ul></div>
|
1191
|
+
</div></p></div>
|
1192
|
+
</div> <div class="section">
|
1193
|
+
<a name="Version-2.0.1-2009-01-25"/><div class="nav" id="Version-2.0.1-2009-01-25"><a title="Reverse jump to listing" href="#rev:Version-2.0.1-2009-01-25">≡</a><a title="Jump to previous segment" href="#Bug-fixes">△</a><a title="Jump to next segment" href="#Bug-fixes-613723658">▽</a><a title="Jump to this segment" href="#Version-2.0.1-2009-01-25">◎</a></div>
|
1171
1194
|
<h2 class="title">
|
1172
|
-
4.
|
1195
|
+
4.2 Version 2.0.1 (2009-01-25)
|
1173
1196
|
</h2>
|
1174
1197
|
<div class="content"><p>This release simplifies project administrivia using <a href='http://snk.tuxfamily.org/lib/inochi'>Inochi</a>, improves the unit tests, and revises the user manual.</p>
|
1175
1198
|
|
1176
1199
|
<p><div class="paragraph">
|
1177
|
-
<a name="Bug-fixes"/><div class="nav" id="Bug-fixes"><a title="Reverse jump to listing" href="#rev:Bug-fixes">≡</a><a title="Jump to previous segment" href="#Version-2.0.1-2009-01-
|
1200
|
+
<a name="Bug-fixes-613723658"/><div class="nav" id="Bug-fixes-613723658"><a title="Reverse jump to listing" href="#rev:Bug-fixes-613723658">≡</a><a title="Jump to previous segment" href="#Version-2.0.1-2009-01-25">△</a><a title="Jump to next segment" href="#Housekeeping">▽</a><a title="Jump to this segment" href="#Bug-fixes-613723658">◎</a></div>
|
1178
1201
|
<p class="title">Bug fixes</p>
|
1179
1202
|
<div class="content"><ul>
|
1180
1203
|
<li>The <tt>lib/rumai/ixp/message.rb</tt> library’s unit test would fail if <tt>/rbar/status</tt> did not already exist in wmii.</li>
|
1181
1204
|
</ul></div>
|
1182
1205
|
</div> <div class="paragraph">
|
1183
|
-
<a name="Housekeeping"/><div class="nav" id="Housekeeping"><a title="Reverse jump to listing" href="#rev:Housekeeping">≡</a><a title="Jump to previous segment" href="#Bug-fixes">△</a>▽<a title="Jump to this segment" href="#Housekeeping">◎</a></div>
|
1206
|
+
<a name="Housekeeping"/><div class="nav" id="Housekeeping"><a title="Reverse jump to listing" href="#rev:Housekeeping">≡</a><a title="Jump to previous segment" href="#Bug-fixes-613723658">△</a>▽<a title="Jump to this segment" href="#Housekeeping">◎</a></div>
|
1184
1207
|
<p class="title">Housekeeping</p>
|
1185
1208
|
<div class="content"><ul>
|
1186
1209
|
<li>
|
@@ -1203,7 +1226,6 @@ b.exist? <span style="color:#666">#=> false</span>
|
|
1203
1226
|
|
1204
1227
|
<div id="footer">
|
1205
1228
|
|
1206
|
-
Generated by <a href="http://snk.tuxfamily.org/lib/erbook/">ERBook 6.0.1</a> on Sun Jan 25 11:09:42 -0800 2009.
|
1207
1229
|
|
1208
1230
|
<div id="footer-credits">
|
1209
1231
|
<p>
|
@@ -1216,7 +1238,7 @@ b.exist? <span style="color:#666">#=> false</span>
|
|
1216
1238
|
|
1217
1239
|
<br/>
|
1218
1240
|
|
1219
|
-
The icons shown above are
|
1241
|
+
The icons shown above are part of <a href="http://tango.freedesktop.org/Tango_Icon_Library">Tango Icon Theme</a>, which is copyright © 2005 <a href="http://tango.freedesktop.org">Tango Desktop Project</a> and is distributed under <a href="http://creativecommons.org/licenses/by-sa/2.5/">Creative Commons Attribution-ShareAlike 2.5 License Agreement</a>.
|
1220
1242
|
</p>
|
1221
1243
|
|
1222
1244
|
<p>
|
@@ -1224,7 +1246,7 @@ b.exist? <span style="color:#666">#=> false</span>
|
|
1224
1246
|
|
1225
1247
|
<br/>
|
1226
1248
|
|
1227
|
-
The icons shown above are
|
1249
|
+
The icons shown above are part of <a href="http://www.mediawiki.org/wiki/MediaWiki">MediaWiki</a>, which is copyright © 2007 <a href="https://www.ohloh.net/projects/mediawiki/contributors">MediaWiki contributors</a> and is distributed under <a href="http://www.gnu.org/licenses/old-licenses/gpl-2.0.html">GNU General Public License, version 2</a>.
|
1228
1250
|
</p>
|
1229
1251
|
</div>
|
1230
1252
|
|
data/doc/intro.erb
CHANGED
@@ -81,6 +81,10 @@
|
|
81
81
|
<% end %>
|
82
82
|
|
83
83
|
<% section "Credits" do %>
|
84
|
-
|
84
|
+
**<%= $project %>** is made possible by
|
85
|
+
<%= xref "History", "contributions" %>
|
86
|
+
from users like you:
|
87
|
+
|
88
|
+
* [Simon Hafner](http://github.com/Tass)
|
85
89
|
<% end %>
|
86
90
|
<% end %>
|
data/lib/rumai/fs.rb
CHANGED
@@ -5,8 +5,9 @@ require 'socket'
|
|
5
5
|
|
6
6
|
module Rumai
|
7
7
|
# address of the IXP server socket on this machine
|
8
|
+
display = ENV['DISPLAY'] || ':0.0'
|
8
9
|
IXP_SOCK_ADDR = ENV['WMII_ADDRESS'].sub(/.*!/, '') rescue
|
9
|
-
"/tmp/ns.#{ENV['USER']}.#{
|
10
|
+
"/tmp/ns.#{ENV['USER']}.#{display[/:\d+/]}/wmii"
|
10
11
|
|
11
12
|
begin
|
12
13
|
# We use a single, global connection to wmii's IXP server.
|
data/lib/rumai.rb
CHANGED
@@ -3,8 +3,8 @@ gem 'inochi', '~> 0'
|
|
3
3
|
require 'inochi'
|
4
4
|
|
5
5
|
Inochi.init :Rumai,
|
6
|
-
:version => '2.0.
|
7
|
-
:release => '2009-
|
6
|
+
:version => '2.0.2',
|
7
|
+
:release => '2009-02-26',
|
8
8
|
:website => 'http://snk.tuxfamily.org/lib/rumai',
|
9
9
|
:tagline => 'Ruby interface to the wmii window manager'
|
10
10
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rumai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Suraj N. Kurapati
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-02-26 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|