bovem 2.1.3 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/bovem.gemspec +1 -1
- data/doc/Bovem.html +1 -1
- data/doc/Bovem/Configuration.html +2 -2
- data/doc/Bovem/Console.html +28 -28
- data/doc/Bovem/ConsoleMethods.html +1 -1
- data/doc/Bovem/ConsoleMethods/Interactions.html +12 -12
- data/doc/Bovem/ConsoleMethods/Interactions/ClassMethods.html +5 -5
- data/doc/Bovem/ConsoleMethods/Logging.html +49 -49
- data/doc/Bovem/ConsoleMethods/Logging/ClassMethods.html +5 -5
- data/doc/Bovem/ConsoleMethods/Output.html +39 -41
- data/doc/Bovem/ConsoleMethods/StyleHandling.html +5 -5
- data/doc/Bovem/ConsoleMethods/StyleHandling/ClassMethods.html +14 -18
- data/doc/Bovem/Errors.html +1 -1
- data/doc/Bovem/Errors/InvalidConfiguration.html +1 -1
- data/doc/Bovem/Errors/InvalidLogger.html +1 -1
- data/doc/Bovem/Logger.html +6 -6
- data/doc/Bovem/Shell.html +13 -13
- data/doc/Bovem/ShellMethods.html +1 -1
- data/doc/Bovem/ShellMethods/Directories.html +9 -9
- data/doc/Bovem/ShellMethods/Execute.html +9 -9
- data/doc/Bovem/ShellMethods/General.html +1 -1
- data/doc/Bovem/ShellMethods/Read.html +1 -1
- data/doc/Bovem/ShellMethods/Write.html +7 -9
- data/doc/Bovem/Version.html +3 -3
- data/doc/_index.html +1 -1
- data/doc/file.README.html +1 -1
- data/doc/index.html +1 -1
- data/doc/top-level-namespace.html +1 -1
- data/lib/bovem/configuration.rb +2 -2
- data/lib/bovem/console.rb +10 -13
- data/lib/bovem/logger.rb +2 -2
- data/lib/bovem/shell.rb +14 -12
- data/lib/bovem/version.rb +2 -2
- data/spec/bovem/console_spec.rb +1 -1
- data/spec/bovem/shell_spec.rb +8 -8
- metadata +5 -5
@@ -183,12 +183,12 @@
|
|
183
183
|
<pre class="lines">
|
184
184
|
|
185
185
|
|
186
|
-
|
187
|
-
|
188
|
-
|
186
|
+
245
|
187
|
+
246
|
188
|
+
247</pre>
|
189
189
|
</td>
|
190
190
|
<td>
|
191
|
-
<pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line
|
191
|
+
<pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line 245</span>
|
192
192
|
|
193
193
|
<span class='kw'>def</span> <span class='id identifier rubyid_min_banner_length'>min_banner_length</span>
|
194
194
|
<span class='int'>1</span>
|
@@ -203,7 +203,7 @@
|
|
203
203
|
</div>
|
204
204
|
|
205
205
|
<div id="footer">
|
206
|
-
Generated on
|
206
|
+
Generated on Thu Feb 28 10:15:58 2013 by
|
207
207
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
208
208
|
0.8.5.2 (ruby-1.9.3).
|
209
209
|
</div>
|
@@ -421,6 +421,9 @@
|
|
421
421
|
<pre class="lines">
|
422
422
|
|
423
423
|
|
424
|
+
191
|
425
|
+
192
|
426
|
+
193
|
424
427
|
194
|
425
428
|
195
|
426
429
|
196
|
@@ -440,13 +443,10 @@
|
|
440
443
|
210
|
441
444
|
211
|
442
445
|
212
|
443
|
-
213
|
444
|
-
214
|
445
|
-
215
|
446
|
-
216</pre>
|
446
|
+
213</pre>
|
447
447
|
</td>
|
448
448
|
<td>
|
449
|
-
<pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line
|
449
|
+
<pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line 191</span>
|
450
450
|
|
451
451
|
<span class='kw'>def</span> <span class='id identifier rubyid_format'>format</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='comma'>,</span> <span class='id identifier rubyid_suffix'>suffix</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_indent'>indent</span> <span class='op'>=</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='id identifier rubyid_wrap'>wrap</span> <span class='op'>=</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='id identifier rubyid_plain'>plain</span> <span class='op'>=</span> <span class='kw'>false</span><span class='rparen'>)</span>
|
452
452
|
<span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='id identifier rubyid_message'>message</span>
|
@@ -454,10 +454,10 @@
|
|
454
454
|
<span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_replace_markers'>replace_markers</span><span class='lparen'>(</span><span class='id identifier rubyid_rv'>rv</span><span class='comma'>,</span> <span class='id identifier rubyid_plain'>plain</span><span class='rparen'>)</span> <span class='comment'># Replace markers
|
455
455
|
</span>
|
456
456
|
<span class='comment'># Compute the real width available for the screen, if we both indent and wrap
|
457
|
-
</span> <span class='kw'>if</span> <span class='id identifier rubyid_wrap'>wrap</span
|
457
|
+
</span> <span class='kw'>if</span> <span class='id identifier rubyid_wrap'>wrap</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>TrueClass</span><span class='rparen'>)</span> <span class='kw'>then</span>
|
458
458
|
<span class='id identifier rubyid_wrap'>wrap</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_line_width'>line_width</span>
|
459
459
|
|
460
|
-
<span class='kw'>if</span> <span class='id identifier rubyid_indent'>indent</span
|
460
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_indent'>indent</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>TrueClass</span><span class='rparen'>)</span> <span class='kw'>then</span>
|
461
461
|
<span class='id identifier rubyid_wrap'>wrap</span> <span class='op'>-=</span> <span class='ivar'>@indentation</span>
|
462
462
|
<span class='kw'>else</span>
|
463
463
|
<span class='id identifier rubyid_indent_i'>indent_i</span> <span class='op'>=</span> <span class='id identifier rubyid_indent'>indent</span><span class='period'>.</span><span class='id identifier rubyid_to_integer'>to_integer</span>
|
@@ -588,6 +588,9 @@
|
|
588
588
|
<pre class="lines">
|
589
589
|
|
590
590
|
|
591
|
+
222
|
592
|
+
223
|
593
|
+
224
|
591
594
|
225
|
592
595
|
226
|
593
596
|
227
|
@@ -597,13 +600,10 @@
|
|
597
600
|
231
|
598
601
|
232
|
599
602
|
233
|
600
|
-
234
|
601
|
-
235
|
602
|
-
236
|
603
|
-
237</pre>
|
603
|
+
234</pre>
|
604
604
|
</td>
|
605
605
|
<td>
|
606
|
-
<pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line
|
606
|
+
<pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line 222</span>
|
607
607
|
|
608
608
|
<span class='kw'>def</span> <span class='id identifier rubyid_format_right'>format_right</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='comma'>,</span> <span class='id identifier rubyid_width'>width</span> <span class='op'>=</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='id identifier rubyid_go_up'>go_up</span> <span class='op'>=</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='id identifier rubyid_plain'>plain</span> <span class='op'>=</span> <span class='kw'>false</span><span class='rparen'>)</span>
|
609
609
|
<span class='id identifier rubyid_message'>message</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_replace_markers'>replace_markers</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='comma'>,</span> <span class='id identifier rubyid_plain'>plain</span><span class='rparen'>)</span>
|
@@ -705,7 +705,7 @@
|
|
705
705
|
|
706
706
|
|
707
707
|
—
|
708
|
-
<div class='inline'><p>The
|
708
|
+
<div class='inline'><p>The indented message.</p>
|
709
709
|
</div>
|
710
710
|
|
711
711
|
</li>
|
@@ -718,6 +718,9 @@
|
|
718
718
|
<pre class="lines">
|
719
719
|
|
720
720
|
|
721
|
+
166
|
722
|
+
167
|
723
|
+
168
|
721
724
|
169
|
722
725
|
170
|
723
726
|
171
|
@@ -726,17 +729,14 @@
|
|
726
729
|
174
|
727
730
|
175
|
728
731
|
176
|
729
|
-
177
|
730
|
-
178
|
731
|
-
179
|
732
|
-
180</pre>
|
732
|
+
177</pre>
|
733
733
|
</td>
|
734
734
|
<td>
|
735
|
-
<pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line
|
735
|
+
<pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line 166</span>
|
736
736
|
|
737
737
|
<span class='kw'>def</span> <span class='id identifier rubyid_indent'>indent</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='comma'>,</span> <span class='id identifier rubyid_width'>width</span> <span class='op'>=</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='id identifier rubyid_newline_separator'>newline_separator</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
738
738
|
<span class='kw'>if</span> <span class='id identifier rubyid_width'>width</span><span class='period'>.</span><span class='id identifier rubyid_to_integer'>to_integer</span> <span class='op'>!=</span> <span class='int'>0</span> <span class='kw'>then</span>
|
739
|
-
<span class='id identifier rubyid_width'>width</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='id identifier rubyid_width'>width</span
|
739
|
+
<span class='id identifier rubyid_width'>width</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='id identifier rubyid_width'>width</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>TrueClass</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='int'>0</span> <span class='op'>:</span> <span class='id identifier rubyid_width'>width</span><span class='period'>.</span><span class='id identifier rubyid_to_integer'>to_integer</span><span class='rparen'>)</span>
|
740
740
|
<span class='id identifier rubyid_width'>width</span> <span class='op'>=</span> <span class='id identifier rubyid_width'>width</span> <span class='op'><</span> <span class='int'>0</span> <span class='op'>?</span> <span class='op'>-</span><span class='id identifier rubyid_width'>width</span> <span class='op'>:</span> <span class='ivar'>@indentation</span> <span class='op'>+</span> <span class='id identifier rubyid_width'>width</span>
|
741
741
|
|
742
742
|
<span class='id identifier rubyid_message'>message</span> <span class='op'>=</span> <span class='id identifier rubyid_message'>message</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='id identifier rubyid_newline_separator'>newline_separator</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_collect'>collect</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_line'>line</span><span class='op'>|</span>
|
@@ -793,12 +793,12 @@
|
|
793
793
|
<pre class="lines">
|
794
794
|
|
795
795
|
|
796
|
-
|
797
|
-
|
798
|
-
|
796
|
+
125
|
797
|
+
126
|
798
|
+
127</pre>
|
799
799
|
</td>
|
800
800
|
<td>
|
801
|
-
<pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line
|
801
|
+
<pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line 125</span>
|
802
802
|
|
803
803
|
<span class='kw'>def</span> <span class='id identifier rubyid_reset_indentation'>reset_indentation</span>
|
804
804
|
<span class='ivar'>@indentation</span> <span class='op'>=</span> <span class='int'>0</span>
|
@@ -886,17 +886,15 @@
|
|
886
886
|
<pre class="lines">
|
887
887
|
|
888
888
|
|
889
|
-
|
890
|
-
|
891
|
-
|
892
|
-
123</pre>
|
889
|
+
118
|
890
|
+
119
|
891
|
+
120</pre>
|
893
892
|
</td>
|
894
893
|
<td>
|
895
|
-
<pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line
|
894
|
+
<pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line 118</span>
|
896
895
|
|
897
896
|
<span class='kw'>def</span> <span class='id identifier rubyid_set_indentation'>set_indentation</span><span class='lparen'>(</span><span class='id identifier rubyid_width'>width</span><span class='comma'>,</span> <span class='id identifier rubyid_is_absolute'>is_absolute</span> <span class='op'>=</span> <span class='kw'>false</span><span class='rparen'>)</span>
|
898
897
|
<span class='ivar'>@indentation</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='lparen'>(</span><span class='op'>!</span><span class='id identifier rubyid_is_absolute'>is_absolute</span> <span class='op'>?</span> <span class='ivar'>@indentation</span> <span class='op'>:</span> <span class='int'>0</span><span class='rparen'>)</span> <span class='op'>+</span> <span class='id identifier rubyid_width'>width</span><span class='comma'>,</span> <span class='int'>0</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_max'>max</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span>
|
899
|
-
<span class='ivar'>@indentation</span>
|
900
898
|
<span class='kw'>end</span></pre>
|
901
899
|
</td>
|
902
900
|
</tr>
|
@@ -983,17 +981,17 @@
|
|
983
981
|
<pre class="lines">
|
984
982
|
|
985
983
|
|
984
|
+
134
|
985
|
+
135
|
986
|
+
136
|
986
987
|
137
|
987
988
|
138
|
988
989
|
139
|
989
990
|
140
|
990
|
-
141
|
991
|
-
142
|
992
|
-
143
|
993
|
-
144</pre>
|
991
|
+
141</pre>
|
994
992
|
</td>
|
995
993
|
<td>
|
996
|
-
<pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line
|
994
|
+
<pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line 134</span>
|
997
995
|
|
998
996
|
<span class='kw'>def</span> <span class='id identifier rubyid_with_indentation'>with_indentation</span><span class='lparen'>(</span><span class='id identifier rubyid_width'>width</span> <span class='op'>=</span> <span class='int'>3</span><span class='comma'>,</span> <span class='id identifier rubyid_is_absolute'>is_absolute</span> <span class='op'>=</span> <span class='kw'>false</span><span class='rparen'>)</span>
|
999
997
|
<span class='id identifier rubyid_old'>old</span> <span class='op'>=</span> <span class='ivar'>@indentation</span>
|
@@ -1086,6 +1084,9 @@
|
|
1086
1084
|
<pre class="lines">
|
1087
1085
|
|
1088
1086
|
|
1087
|
+
148
|
1088
|
+
149
|
1089
|
+
150
|
1089
1090
|
151
|
1090
1091
|
152
|
1091
1092
|
153
|
@@ -1093,19 +1094,16 @@
|
|
1093
1094
|
155
|
1094
1095
|
156
|
1095
1096
|
157
|
1096
|
-
158
|
1097
|
-
159
|
1098
|
-
160
|
1099
|
-
161</pre>
|
1097
|
+
158</pre>
|
1100
1098
|
</td>
|
1101
1099
|
<td>
|
1102
|
-
<pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line
|
1100
|
+
<pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line 148</span>
|
1103
1101
|
|
1104
1102
|
<span class='kw'>def</span> <span class='id identifier rubyid_wrap'>wrap</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='comma'>,</span> <span class='id identifier rubyid_width'>width</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
1105
1103
|
<span class='kw'>if</span> <span class='id identifier rubyid_width'>width</span><span class='period'>.</span><span class='id identifier rubyid_to_integer'>to_integer</span> <span class='op'><=</span> <span class='int'>0</span> <span class='kw'>then</span>
|
1106
1104
|
<span class='id identifier rubyid_message'>message</span>
|
1107
1105
|
<span class='kw'>else</span>
|
1108
|
-
<span class='id identifier rubyid_width'>width</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='id identifier rubyid_width'>width</span> <span class='op'>==</span> <span class='kw'>true</span> <span class='op'>||</span> <span class='id identifier rubyid_width'>width</span><span class='period'>.</span><span class='id identifier rubyid_to_integer'>to_integer</span> <span class='op'><</span> <span class='int'>0</span> <span class='op'>?</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier
|
1106
|
+
<span class='id identifier rubyid_width'>width</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='id identifier rubyid_width'>width</span> <span class='op'>==</span> <span class='kw'>true</span> <span class='op'>||</span> <span class='id identifier rubyid_width'>width</span><span class='period'>.</span><span class='id identifier rubyid_to_integer'>to_integer</span> <span class='op'><</span> <span class='int'>0</span> <span class='op'>?</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_line_width'>line_width</span> <span class='op'>:</span> <span class='id identifier rubyid_width'>width</span><span class='period'>.</span><span class='id identifier rubyid_to_integer'>to_integer</span><span class='rparen'>)</span>
|
1109
1107
|
|
1110
1108
|
<span class='id identifier rubyid_message'>message</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_collect'>collect</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_line'>line</span><span class='op'>|</span>
|
1111
1109
|
<span class='id identifier rubyid_line'>line</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span> <span class='op'>></span> <span class='id identifier rubyid_width'>width</span> <span class='op'>?</span> <span class='id identifier rubyid_line'>line</span><span class='period'>.</span><span class='id identifier rubyid_gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>(.{1,</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_width'>width</span><span class='rbrace'>}</span><span class='tstring_content'>})(\s+|$)</span><span class='regexp_end'>/</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\1\n</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_strip'>strip</span> <span class='op'>:</span> <span class='id identifier rubyid_line'>line</span>
|
@@ -1122,7 +1120,7 @@
|
|
1122
1120
|
</div>
|
1123
1121
|
|
1124
1122
|
<div id="footer">
|
1125
|
-
Generated on
|
1123
|
+
Generated on Thu Feb 28 10:15:58 2013 by
|
1126
1124
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1127
1125
|
0.8.5.2 (ruby-1.9.3).
|
1128
1126
|
</div>
|
@@ -245,12 +245,12 @@
|
|
245
245
|
<pre class="lines">
|
246
246
|
|
247
247
|
|
248
|
-
|
249
|
-
|
250
|
-
|
248
|
+
106
|
249
|
+
107
|
250
|
+
108</pre>
|
251
251
|
</td>
|
252
252
|
<td>
|
253
|
-
<pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line
|
253
|
+
<pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line 106</span>
|
254
254
|
|
255
255
|
<span class='kw'>def</span> <span class='id identifier rubyid_replace_markers'>replace_markers</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='comma'>,</span> <span class='id identifier rubyid_plain'>plain</span> <span class='op'>=</span> <span class='kw'>false</span><span class='rparen'>)</span>
|
256
256
|
<span class='op'>::</span><span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Console</span><span class='period'>.</span><span class='id identifier rubyid_replace_markers'>replace_markers</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='comma'>,</span> <span class='id identifier rubyid_plain'>plain</span><span class='rparen'>)</span>
|
@@ -265,7 +265,7 @@
|
|
265
265
|
</div>
|
266
266
|
|
267
267
|
<div id="footer">
|
268
|
-
Generated on
|
268
|
+
Generated on Thu Feb 28 10:15:57 2013 by
|
269
269
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
270
270
|
0.8.5.2 (ruby-1.9.3).
|
271
271
|
</div>
|
@@ -284,9 +284,7 @@
|
|
284
284
|
36
|
285
285
|
37
|
286
286
|
38
|
287
|
-
39
|
288
|
-
40
|
289
|
-
41</pre>
|
287
|
+
39</pre>
|
290
288
|
</td>
|
291
289
|
<td>
|
292
290
|
<pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line 28</span>
|
@@ -295,8 +293,6 @@
|
|
295
293
|
<span class='id identifier rubyid_style'>style</span> <span class='op'>=</span> <span class='id identifier rubyid_style'>style</span><span class='period'>.</span><span class='id identifier rubyid_ensure_string'>ensure_string</span><span class='period'>.</span><span class='id identifier rubyid_strip'>strip</span><span class='period'>.</span><span class='id identifier rubyid_parameterize'>parameterize</span>
|
296
294
|
|
297
295
|
<span class='kw'>if</span> <span class='id identifier rubyid_style'>style</span><span class='period'>.</span><span class='id identifier rubyid_present?'>present?</span> <span class='kw'>then</span>
|
298
|
-
<span class='id identifier rubyid_sym'>sym</span> <span class='op'>=</span> <span class='id identifier rubyid_style'>style</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span>
|
299
|
-
|
300
296
|
<span class='op'>::</span><span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Console</span><span class='period'>.</span><span class='id identifier rubyid_replace_term_code'>replace_term_code</span><span class='lparen'>(</span><span class='const'>Bovem</span><span class='op'>::</span><span class='const'>TERM_EFFECTS</span><span class='comma'>,</span> <span class='id identifier rubyid_style'>style</span><span class='comma'>,</span> <span class='int'>0</span><span class='rparen'>)</span> <span class='op'>||</span>
|
301
297
|
<span class='op'>::</span><span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Console</span><span class='period'>.</span><span class='id identifier rubyid_replace_term_code'>replace_term_code</span><span class='lparen'>(</span><span class='const'>Bovem</span><span class='op'>::</span><span class='const'>TERM_COLORS</span><span class='comma'>,</span> <span class='id identifier rubyid_style'>style</span><span class='comma'>,</span> <span class='int'>30</span><span class='rparen'>)</span> <span class='op'>||</span>
|
302
298
|
<span class='op'>::</span><span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Console</span><span class='period'>.</span><span class='id identifier rubyid_replace_term_code'>replace_term_code</span><span class='lparen'>(</span><span class='const'>Bovem</span><span class='op'>::</span><span class='const'>TERM_COLORS</span><span class='comma'>,</span> <span class='id identifier rubyid_style'>style</span><span class='period'>.</span><span class='id identifier rubyid_gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^bg_</span><span class='regexp_end'>/</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='comma'>,</span> <span class='int'>40</span><span class='rparen'>)</span> <span class='op'>||</span>
|
@@ -372,12 +368,12 @@ Supported styles and colors are those in <span class='object_link'><a href="../.
|
|
372
368
|
<pre class="lines">
|
373
369
|
|
374
370
|
|
375
|
-
|
376
|
-
|
377
|
-
|
371
|
+
46
|
372
|
+
47
|
373
|
+
48</pre>
|
378
374
|
</td>
|
379
375
|
<td>
|
380
|
-
<pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line
|
376
|
+
<pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line 46</span>
|
381
377
|
|
382
378
|
<span class='kw'>def</span> <span class='id identifier rubyid_parse_styles'>parse_styles</span><span class='lparen'>(</span><span class='id identifier rubyid_styles'>styles</span><span class='rparen'>)</span>
|
383
379
|
<span class='id identifier rubyid_styles'>styles</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>\s*[\s,-]\s*</span><span class='regexp_end'>/</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_collect'>collect</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_s'>s</span><span class='op'>|</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_parse_style'>parse_style</span><span class='lparen'>(</span><span class='id identifier rubyid_s'>s</span><span class='rparen'>)</span> <span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
@@ -481,6 +477,8 @@ Bovem::Console.new.replace_markers("{mark=bright bg_red}{mark=green}Hello world!
|
|
481
477
|
<pre class="lines">
|
482
478
|
|
483
479
|
|
480
|
+
77
|
481
|
+
78
|
484
482
|
79
|
485
483
|
80
|
486
484
|
81
|
@@ -498,12 +496,10 @@ Bovem::Console.new.replace_markers("{mark=bright bg_red}{mark=green}Hello world!
|
|
498
496
|
93
|
499
497
|
94
|
500
498
|
95
|
501
|
-
96
|
502
|
-
97
|
503
|
-
98</pre>
|
499
|
+
96</pre>
|
504
500
|
</td>
|
505
501
|
<td>
|
506
|
-
<pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line
|
502
|
+
<pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line 77</span>
|
507
503
|
|
508
504
|
<span class='kw'>def</span> <span class='id identifier rubyid_replace_markers'>replace_markers</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='comma'>,</span> <span class='id identifier rubyid_plain'>plain</span> <span class='op'>=</span> <span class='kw'>false</span><span class='rparen'>)</span>
|
509
505
|
<span class='id identifier rubyid_stack'>stack</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
@@ -623,13 +619,13 @@ Bovem::Console.new.replace_markers("{mark=bright bg_red}{mark=green}Hello world!
|
|
623
619
|
<pre class="lines">
|
624
620
|
|
625
621
|
|
622
|
+
57
|
623
|
+
58
|
626
624
|
59
|
627
|
-
60
|
628
|
-
61
|
629
|
-
62</pre>
|
625
|
+
60</pre>
|
630
626
|
</td>
|
631
627
|
<td>
|
632
|
-
<pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line
|
628
|
+
<pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line 57</span>
|
633
629
|
|
634
630
|
<span class='kw'>def</span> <span class='id identifier rubyid_replace_term_code'>replace_term_code</span><span class='lparen'>(</span><span class='id identifier rubyid_codes'>codes</span><span class='comma'>,</span> <span class='id identifier rubyid_code'>code</span><span class='comma'>,</span> <span class='id identifier rubyid_modifier'>modifier</span> <span class='op'>=</span> <span class='int'>0</span><span class='rparen'>)</span>
|
635
631
|
<span class='id identifier rubyid_sym'>sym</span> <span class='op'>=</span> <span class='id identifier rubyid_code'>code</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span>
|
@@ -645,7 +641,7 @@ Bovem::Console.new.replace_markers("{mark=bright bg_red}{mark=green}Hello world!
|
|
645
641
|
</div>
|
646
642
|
|
647
643
|
<div id="footer">
|
648
|
-
Generated on
|
644
|
+
Generated on Thu Feb 28 10:15:58 2013 by
|
649
645
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
650
646
|
0.8.5.2 (ruby-1.9.3).
|
651
647
|
</div>
|
data/doc/Bovem/Errors.html
CHANGED
@@ -116,7 +116,7 @@
|
|
116
116
|
</div>
|
117
117
|
|
118
118
|
<div id="footer">
|
119
|
-
Generated on
|
119
|
+
Generated on Thu Feb 28 10:15:57 2013 by
|
120
120
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
121
121
|
0.8.5.2 (ruby-1.9.3).
|
122
122
|
</div>
|
@@ -124,7 +124,7 @@
|
|
124
124
|
</div>
|
125
125
|
|
126
126
|
<div id="footer">
|
127
|
-
Generated on
|
127
|
+
Generated on Thu Feb 28 10:15:58 2013 by
|
128
128
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
129
129
|
0.8.5.2 (ruby-1.9.3).
|
130
130
|
</div>
|
@@ -124,7 +124,7 @@
|
|
124
124
|
</div>
|
125
125
|
|
126
126
|
<div id="footer">
|
127
|
-
Generated on
|
127
|
+
Generated on Thu Feb 28 10:15:58 2013 by
|
128
128
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
129
129
|
0.8.5.2 (ruby-1.9.3).
|
130
130
|
</div>
|
data/doc/Bovem/Logger.html
CHANGED
@@ -276,7 +276,7 @@
|
|
276
276
|
|
277
277
|
|
278
278
|
|
279
|
-
<span class="summary_desc"><div class='inline'><p>Translates a file to standard input or standard
|
279
|
+
<span class="summary_desc"><div class='inline'><p>Translates a file to standard input or standard output in some special cases.</p>
|
280
280
|
</div></span>
|
281
281
|
|
282
282
|
</li>
|
@@ -666,7 +666,7 @@
|
|
666
666
|
<span class='id identifier rubyid_rv'>rv</span>
|
667
667
|
<span class='kw'>end</span>
|
668
668
|
|
669
|
-
<span class='comment'># Translates a file to standard input or standard
|
669
|
+
<span class='comment'># Translates a file to standard input or standard output in some special cases.
|
670
670
|
</span> <span class='comment'>#
|
671
671
|
</span> <span class='comment'># @param file [String] The string to translate.
|
672
672
|
</span> <span class='comment'># @return [String|IO] The translated file name.
|
@@ -687,7 +687,7 @@
|
|
687
687
|
<span class='comment'># The default formatter for logging.
|
688
688
|
</span> <span class='comment'># @return [Proc] The default formatter for logging.
|
689
689
|
</span> <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_default_formatter'>default_formatter</span>
|
690
|
-
<span class='ivar'>@default_formatter</span> <span class='op'>||=</span> <span class='op'>::</span><span class='const'>Proc</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_severity'>severity</span><span class='comma'>,</span> <span class='id identifier rubyid_datetime'>datetime</span><span class='comma'>,</span> <span class='id identifier
|
690
|
+
<span class='ivar'>@default_formatter</span> <span class='op'>||=</span> <span class='op'>::</span><span class='const'>Proc</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_severity'>severity</span><span class='comma'>,</span> <span class='id identifier rubyid_datetime'>datetime</span><span class='comma'>,</span> <span class='id identifier rubyid__'>_</span><span class='comma'>,</span> <span class='id identifier rubyid_msg'>msg</span><span class='op'>|</span>
|
691
691
|
<span class='id identifier rubyid_color'>color</span> <span class='op'>=</span> <span class='kw'>case</span> <span class='id identifier rubyid_severity'>severity</span>
|
692
692
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>DEBUG</span><span class='tstring_end'>"</span></span> <span class='kw'>then</span> <span class='symbol'>:cyan</span>
|
693
693
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>INFO</span><span class='tstring_end'>"</span></span> <span class='kw'>then</span> <span class='symbol'>:green</span>
|
@@ -971,7 +971,7 @@
|
|
971
971
|
<pre class="code"><span class="info file"># File 'lib/bovem/logger.rb', line 73</span>
|
972
972
|
|
973
973
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_default_formatter'>default_formatter</span>
|
974
|
-
<span class='ivar'>@default_formatter</span> <span class='op'>||=</span> <span class='op'>::</span><span class='const'>Proc</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_severity'>severity</span><span class='comma'>,</span> <span class='id identifier rubyid_datetime'>datetime</span><span class='comma'>,</span> <span class='id identifier
|
974
|
+
<span class='ivar'>@default_formatter</span> <span class='op'>||=</span> <span class='op'>::</span><span class='const'>Proc</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_severity'>severity</span><span class='comma'>,</span> <span class='id identifier rubyid_datetime'>datetime</span><span class='comma'>,</span> <span class='id identifier rubyid__'>_</span><span class='comma'>,</span> <span class='id identifier rubyid_msg'>msg</span><span class='op'>|</span>
|
975
975
|
<span class='id identifier rubyid_color'>color</span> <span class='op'>=</span> <span class='kw'>case</span> <span class='id identifier rubyid_severity'>severity</span>
|
976
976
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>DEBUG</span><span class='tstring_end'>"</span></span> <span class='kw'>then</span> <span class='symbol'>:cyan</span>
|
977
977
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>INFO</span><span class='tstring_end'>"</span></span> <span class='kw'>then</span> <span class='symbol'>:green</span>
|
@@ -1001,7 +1001,7 @@
|
|
1001
1001
|
|
1002
1002
|
</h3><div class="docstring">
|
1003
1003
|
<div class="discussion">
|
1004
|
-
<p>Translates a file to standard input or standard
|
1004
|
+
<p>Translates a file to standard input or standard output in some special cases.</p>
|
1005
1005
|
|
1006
1006
|
|
1007
1007
|
</div>
|
@@ -1079,7 +1079,7 @@
|
|
1079
1079
|
</div>
|
1080
1080
|
|
1081
1081
|
<div id="footer">
|
1082
|
-
Generated on
|
1082
|
+
Generated on Thu Feb 28 10:15:58 2013 by
|
1083
1083
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1084
1084
|
0.8.5.2 (ruby-1.9.3).
|
1085
1085
|
</div>
|
data/doc/Bovem/Shell.html
CHANGED
@@ -303,13 +303,13 @@
|
|
303
303
|
<pre class="lines">
|
304
304
|
|
305
305
|
|
306
|
-
567
|
307
|
-
568
|
308
306
|
569
|
309
|
-
570
|
307
|
+
570
|
308
|
+
571
|
309
|
+
572</pre>
|
310
310
|
</td>
|
311
311
|
<td>
|
312
|
-
<pre class="code"><span class="info file"># File 'lib/bovem/shell.rb', line
|
312
|
+
<pre class="code"><span class="info file"># File 'lib/bovem/shell.rb', line 569</span>
|
313
313
|
|
314
314
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
|
315
315
|
<span class='ivar'>@console</span> <span class='op'>=</span> <span class='op'>::</span><span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Console</span><span class='period'>.</span><span class='id identifier rubyid_instance'>instance</span>
|
@@ -369,8 +369,6 @@
|
|
369
369
|
<pre class="lines">
|
370
370
|
|
371
371
|
|
372
|
-
549
|
373
|
-
550
|
374
372
|
551
|
375
373
|
552
|
376
374
|
553
|
@@ -391,10 +389,12 @@
|
|
391
389
|
568
|
392
390
|
569
|
393
391
|
570
|
394
|
-
571
|
392
|
+
571
|
393
|
+
572
|
394
|
+
573</pre>
|
395
395
|
</td>
|
396
396
|
<td>
|
397
|
-
<pre class="code"><span class="info file"># File 'lib/bovem/shell.rb', line
|
397
|
+
<pre class="code"><span class="info file"># File 'lib/bovem/shell.rb', line 551</span>
|
398
398
|
|
399
399
|
<span class='kw'>class</span> <span class='const'>Shell</span>
|
400
400
|
<span class='id identifier rubyid_include'>include</span> <span class='const'>Lazier</span><span class='op'>::</span><span class='const'>I18n</span>
|
@@ -473,12 +473,12 @@
|
|
473
473
|
<pre class="lines">
|
474
474
|
|
475
475
|
|
476
|
-
|
477
|
-
|
478
|
-
|
476
|
+
564
|
477
|
+
565
|
478
|
+
566</pre>
|
479
479
|
</td>
|
480
480
|
<td>
|
481
|
-
<pre class="code"><span class="info file"># File 'lib/bovem/shell.rb', line
|
481
|
+
<pre class="code"><span class="info file"># File 'lib/bovem/shell.rb', line 564</span>
|
482
482
|
|
483
483
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_instance'>instance</span>
|
484
484
|
<span class='ivar'>@instance</span> <span class='op'>||=</span> <span class='op'>::</span><span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Shell</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
@@ -493,7 +493,7 @@
|
|
493
493
|
</div>
|
494
494
|
|
495
495
|
<div id="footer">
|
496
|
-
Generated on
|
496
|
+
Generated on Thu Feb 28 10:15:58 2013 by
|
497
497
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
498
498
|
0.8.5.2 (ruby-1.9.3).
|
499
499
|
</div>
|