bovem 2.3.7 → 2.4.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 +1 -1
- data/doc/Bovem/Console.html +1 -1
- data/doc/Bovem/ConsoleMethods.html +1 -1
- data/doc/Bovem/ConsoleMethods/Interactions.html +1 -1
- data/doc/Bovem/ConsoleMethods/Interactions/ClassMethods.html +1 -1
- data/doc/Bovem/ConsoleMethods/Logging.html +2 -2
- data/doc/Bovem/ConsoleMethods/Logging/ClassMethods.html +1 -1
- data/doc/Bovem/ConsoleMethods/Output.html +1 -1
- data/doc/Bovem/ConsoleMethods/StyleHandling.html +1 -1
- data/doc/Bovem/ConsoleMethods/StyleHandling/ClassMethods.html +1 -1
- 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 +1 -1
- data/doc/Bovem/Shell.html +1 -1
- data/doc/Bovem/ShellMethods.html +1 -1
- data/doc/Bovem/ShellMethods/Directories.html +2 -2
- data/doc/Bovem/ShellMethods/Execute.html +2 -2
- data/doc/Bovem/ShellMethods/General.html +1 -1
- data/doc/Bovem/ShellMethods/Read.html +2 -2
- data/doc/Bovem/ShellMethods/Write.html +1 -1
- 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/console.rb +2 -2
- data/lib/bovem/shell.rb +4 -4
- data/lib/bovem/version.rb +2 -2
- data/spec/bovem/logger_spec.rb +4 -4
- metadata +4 -4
data/bovem.gemspec
CHANGED
data/doc/Bovem.html
CHANGED
@@ -158,7 +158,7 @@ Licensed under the MIT license, which can be found at http://www.opensource.org/
|
|
158
158
|
</div>
|
159
159
|
|
160
160
|
<div id="footer">
|
161
|
-
Generated on Sat Jul 20
|
161
|
+
Generated on Sat Jul 20 13:39:34 2013 by
|
162
162
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
163
163
|
0.8.6.2 (ruby-1.9.3).
|
164
164
|
</div>
|
@@ -444,7 +444,7 @@ config.property = "VALUE"
|
|
444
444
|
</div>
|
445
445
|
|
446
446
|
<div id="footer">
|
447
|
-
Generated on Sat Jul 20
|
447
|
+
Generated on Sat Jul 20 13:39:36 2013 by
|
448
448
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
449
449
|
0.8.6.2 (ruby-1.9.3).
|
450
450
|
</div>
|
data/doc/Bovem/Console.html
CHANGED
@@ -760,7 +760,7 @@
|
|
760
760
|
</div>
|
761
761
|
|
762
762
|
<div id="footer">
|
763
|
-
Generated on Sat Jul 20
|
763
|
+
Generated on Sat Jul 20 13:39:36 2013 by
|
764
764
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
765
765
|
0.8.6.2 (ruby-1.9.3).
|
766
766
|
</div>
|
@@ -116,7 +116,7 @@
|
|
116
116
|
</div>
|
117
117
|
|
118
118
|
<div id="footer">
|
119
|
-
Generated on Sat Jul 20
|
119
|
+
Generated on Sat Jul 20 13:39:35 2013 by
|
120
120
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
121
121
|
0.8.6.2 (ruby-1.9.3).
|
122
122
|
</div>
|
@@ -558,7 +558,7 @@
|
|
558
558
|
</div>
|
559
559
|
|
560
560
|
<div id="footer">
|
561
|
-
Generated on Sat Jul 20
|
561
|
+
Generated on Sat Jul 20 13:39:36 2013 by
|
562
562
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
563
563
|
0.8.6.2 (ruby-1.9.3).
|
564
564
|
</div>
|
@@ -222,7 +222,7 @@
|
|
222
222
|
</div>
|
223
223
|
|
224
224
|
<div id="footer">
|
225
|
-
Generated on Sat Jul 20
|
225
|
+
Generated on Sat Jul 20 13:39:36 2013 by
|
226
226
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
227
227
|
0.8.6.2 (ruby-1.9.3).
|
228
228
|
</div>
|
@@ -1482,7 +1482,7 @@
|
|
1482
1482
|
<pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line 375</span>
|
1483
1483
|
|
1484
1484
|
<span class='kw'>def</span> <span class='id identifier rubyid_info'>info</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'>false</span><span class='comma'>,</span> <span class='id identifier rubyid_plain'>plain</span> <span class='op'>=</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='id identifier rubyid_indented_banner'>indented_banner</span> <span class='op'>=</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='id identifier rubyid_full_colored'>full_colored</span> <span class='op'>=</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='id identifier rubyid_print'>print</span> <span class='op'>=</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_banner'>banner</span><span class='rparen'>)</span>
|
1485
|
-
<span class='id identifier rubyid_banner'>banner</span> <span class='op'>=</span> <span class='id identifier rubyid_banner'>banner</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='
|
1485
|
+
<span class='id identifier rubyid_banner'>banner</span> <span class='op'>=</span> <span class='id identifier rubyid_banner'>banner</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='lparen'>(</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='kw'>true</span><span class='rparen'>)</span>
|
1486
1486
|
<span class='id identifier rubyid_banner'>banner</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>I</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>bright cyan</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='id identifier rubyid_banner'>banner</span><span class='period'>.</span><span class='id identifier rubyid_blank?'>blank?</span>
|
1487
1487
|
<span class='id identifier rubyid_banner'>banner</span> <span class='op'>=</span> <span class='id identifier rubyid_get_banner'>get_banner</span><span class='lparen'>(</span><span class='id identifier rubyid_banner'>banner</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_banner'>banner</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_full_colored'>full_colored</span><span class='rparen'>)</span>
|
1488
1488
|
<span class='id identifier rubyid_message'>message</span> <span class='op'>=</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_indented_banner'>indented_banner</span> <span class='op'>?</span> <span class='int'>0</span> <span class='op'>:</span> <span class='id identifier rubyid_indent'>indent</span><span class='rparen'>)</span>
|
@@ -2209,7 +2209,7 @@
|
|
2209
2209
|
</div>
|
2210
2210
|
|
2211
2211
|
<div id="footer">
|
2212
|
-
Generated on Sat Jul 20
|
2212
|
+
Generated on Sat Jul 20 13:39:35 2013 by
|
2213
2213
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
2214
2214
|
0.8.6.2 (ruby-1.9.3).
|
2215
2215
|
</div>
|
@@ -203,7 +203,7 @@
|
|
203
203
|
</div>
|
204
204
|
|
205
205
|
<div id="footer">
|
206
|
-
Generated on Sat Jul 20
|
206
|
+
Generated on Sat Jul 20 13:39:35 2013 by
|
207
207
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
208
208
|
0.8.6.2 (ruby-1.9.3).
|
209
209
|
</div>
|
@@ -1112,7 +1112,7 @@
|
|
1112
1112
|
</div>
|
1113
1113
|
|
1114
1114
|
<div id="footer">
|
1115
|
-
Generated on Sat Jul 20
|
1115
|
+
Generated on Sat Jul 20 13:39:35 2013 by
|
1116
1116
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1117
1117
|
0.8.6.2 (ruby-1.9.3).
|
1118
1118
|
</div>
|
@@ -265,7 +265,7 @@
|
|
265
265
|
</div>
|
266
266
|
|
267
267
|
<div id="footer">
|
268
|
-
Generated on Sat Jul 20
|
268
|
+
Generated on Sat Jul 20 13:39:35 2013 by
|
269
269
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
270
270
|
0.8.6.2 (ruby-1.9.3).
|
271
271
|
</div>
|
@@ -641,7 +641,7 @@ Bovem::Console.new.replace_markers("{mark=bright bg_red}{mark=green}Hello world!
|
|
641
641
|
</div>
|
642
642
|
|
643
643
|
<div id="footer">
|
644
|
-
Generated on Sat Jul 20
|
644
|
+
Generated on Sat Jul 20 13:39:35 2013 by
|
645
645
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
646
646
|
0.8.6.2 (ruby-1.9.3).
|
647
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 Sat Jul 20
|
119
|
+
Generated on Sat Jul 20 13:39:35 2013 by
|
120
120
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
121
121
|
0.8.6.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 Sat Jul 20
|
127
|
+
Generated on Sat Jul 20 13:39:36 2013 by
|
128
128
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
129
129
|
0.8.6.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 Sat Jul 20
|
127
|
+
Generated on Sat Jul 20 13:39:36 2013 by
|
128
128
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
129
129
|
0.8.6.2 (ruby-1.9.3).
|
130
130
|
</div>
|
data/doc/Bovem/Logger.html
CHANGED
@@ -1136,7 +1136,7 @@
|
|
1136
1136
|
</div>
|
1137
1137
|
|
1138
1138
|
<div id="footer">
|
1139
|
-
Generated on Sat Jul 20
|
1139
|
+
Generated on Sat Jul 20 13:39:36 2013 by
|
1140
1140
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1141
1141
|
0.8.6.2 (ruby-1.9.3).
|
1142
1142
|
</div>
|
data/doc/Bovem/Shell.html
CHANGED
@@ -493,7 +493,7 @@
|
|
493
493
|
</div>
|
494
494
|
|
495
495
|
<div id="footer">
|
496
|
-
Generated on Sat Jul 20
|
496
|
+
Generated on Sat Jul 20 13:39:36 2013 by
|
497
497
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
498
498
|
0.8.6.2 (ruby-1.9.3).
|
499
499
|
</div>
|
data/doc/Bovem/ShellMethods.html
CHANGED
@@ -116,7 +116,7 @@
|
|
116
116
|
</div>
|
117
117
|
|
118
118
|
<div id="footer">
|
119
|
-
Generated on Sat Jul 20
|
119
|
+
Generated on Sat Jul 20 13:39:34 2013 by
|
120
120
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
121
121
|
0.8.6.2 (ruby-1.9.3).
|
122
122
|
</div>
|
@@ -322,7 +322,7 @@
|
|
322
322
|
<span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='kw'>true</span>
|
323
323
|
|
324
324
|
<span class='comment'># Adjust directory
|
325
|
-
</span> <span class='id identifier rubyid_directories'>directories</span> <span class='op'>=</span> <span class='id identifier rubyid_directories'>directories</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='
|
325
|
+
</span> <span class='id identifier rubyid_directories'>directories</span> <span class='op'>=</span> <span class='id identifier rubyid_directories'>directories</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='lparen'>(</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='kw'>true</span><span class='rparen'>)</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_d'>d</span><span class='op'>|</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_expand_path'>expand_path</span><span class='lparen'>(</span><span class='id identifier rubyid_d'>d</span><span class='period'>.</span><span class='id identifier rubyid_ensure_string'>ensure_string</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
326
326
|
|
327
327
|
<span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_run'>run</span> <span class='kw'>then</span> <span class='comment'># Just print
|
328
328
|
</span> <span class='id identifier rubyid_dry_run_directory_creation'>dry_run_directory_creation</span><span class='lparen'>(</span><span class='id identifier rubyid_directories'>directories</span><span class='rparen'>)</span>
|
@@ -473,7 +473,7 @@
|
|
473
473
|
</div>
|
474
474
|
|
475
475
|
<div id="footer">
|
476
|
-
Generated on Sat Jul 20
|
476
|
+
Generated on Sat Jul 20 13:39:35 2013 by
|
477
477
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
478
478
|
0.8.6.2 (ruby-1.9.3).
|
479
479
|
</div>
|
@@ -312,7 +312,7 @@
|
|
312
312
|
<span class='kw'>def</span> <span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='id identifier rubyid_files'>files</span><span class='comma'>,</span> <span class='id identifier rubyid_run'>run</span> <span class='op'>=</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='id identifier rubyid_show_errors'>show_errors</span> <span class='op'>=</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='id identifier rubyid_fatal'>fatal</span> <span class='op'>=</span> <span class='kw'>true</span><span class='rparen'>)</span>
|
313
313
|
<span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='kw'>true</span>
|
314
314
|
<span class='id identifier rubyid_locale'>locale</span> <span class='op'>=</span> <span class='id identifier rubyid_i18n'>i18n</span><span class='period'>.</span><span class='id identifier rubyid_shell'>shell</span>
|
315
|
-
<span class='id identifier rubyid_files'>files</span> <span class='op'>=</span> <span class='id identifier rubyid_files'>files</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='
|
315
|
+
<span class='id identifier rubyid_files'>files</span> <span class='op'>=</span> <span class='id identifier rubyid_files'>files</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='lparen'>(</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='kw'>true</span><span class='rparen'>)</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_f'>f</span><span class='op'>|</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_expand_path'>expand_path</span><span class='lparen'>(</span><span class='id identifier rubyid_f'>f</span><span class='period'>.</span><span class='id identifier rubyid_ensure_string'>ensure_string</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
316
316
|
|
317
317
|
<span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_run'>run</span> <span class='kw'>then</span>
|
318
318
|
<span class='ivar'>@console</span><span class='period'>.</span><span class='id identifier rubyid_warn'>warn</span><span class='lparen'>(</span><span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_remove_dry'>remove_dry</span><span class='rparen'>)</span>
|
@@ -556,7 +556,7 @@
|
|
556
556
|
</div>
|
557
557
|
|
558
558
|
<div id="footer">
|
559
|
-
Generated on Sat Jul 20
|
559
|
+
Generated on Sat Jul 20 13:39:35 2013 by
|
560
560
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
561
561
|
0.8.6.2 (ruby-1.9.3).
|
562
562
|
</div>
|
@@ -551,7 +551,7 @@
|
|
551
551
|
</div>
|
552
552
|
|
553
553
|
<div id="footer">
|
554
|
-
Generated on Sat Jul 20
|
554
|
+
Generated on Sat Jul 20 13:39:34 2013 by
|
555
555
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
556
556
|
0.8.6.2 (ruby-1.9.3).
|
557
557
|
</div>
|
@@ -417,7 +417,7 @@
|
|
417
417
|
<span class='kw'>def</span> <span class='id identifier rubyid_find'>find</span><span class='lparen'>(</span><span class='id identifier rubyid_directories'>directories</span><span class='comma'>,</span> <span class='id identifier rubyid_patterns'>patterns</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_by_extension'>by_extension</span> <span class='op'>=</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='id identifier rubyid_case_sensitive'>case_sensitive</span> <span class='op'>=</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
418
418
|
<span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
419
419
|
|
420
|
-
<span class='id identifier rubyid_directories'>directories</span> <span class='op'>=</span> <span class='id identifier rubyid_directories'>directories</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='
|
420
|
+
<span class='id identifier rubyid_directories'>directories</span> <span class='op'>=</span> <span class='id identifier rubyid_directories'>directories</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='lparen'>(</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='kw'>true</span><span class='rparen'>)</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_d'>d</span><span class='op'>|</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_expand_path'>expand_path</span><span class='lparen'>(</span><span class='id identifier rubyid_d'>d</span><span class='period'>.</span><span class='id identifier rubyid_ensure_string'>ensure_string</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
421
421
|
<span class='id identifier rubyid_patterns'>patterns</span> <span class='op'>=</span> <span class='id identifier rubyid_normalize_patterns'>normalize_patterns</span><span class='lparen'>(</span><span class='id identifier rubyid_patterns'>patterns</span><span class='comma'>,</span> <span class='id identifier rubyid_by_extension'>by_extension</span><span class='comma'>,</span> <span class='id identifier rubyid_case_sensitive'>case_sensitive</span><span class='rparen'>)</span>
|
422
422
|
|
423
423
|
<span class='id identifier rubyid_directories'>directories</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_directory'>directory</span><span class='op'>|</span>
|
@@ -442,7 +442,7 @@
|
|
442
442
|
</div>
|
443
443
|
|
444
444
|
<div id="footer">
|
445
|
-
Generated on Sat Jul 20
|
445
|
+
Generated on Sat Jul 20 13:39:34 2013 by
|
446
446
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
447
447
|
0.8.6.2 (ruby-1.9.3).
|
448
448
|
</div>
|
@@ -665,7 +665,7 @@
|
|
665
665
|
</div>
|
666
666
|
|
667
667
|
<div id="footer">
|
668
|
-
Generated on Sat Jul 20
|
668
|
+
Generated on Sat Jul 20 13:39:35 2013 by
|
669
669
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
670
670
|
0.8.6.2 (ruby-1.9.3).
|
671
671
|
</div>
|
data/doc/Bovem/Version.html
CHANGED
@@ -134,7 +134,7 @@
|
|
134
134
|
|
135
135
|
</div>
|
136
136
|
</dt>
|
137
|
-
<dd><pre class="code"><span class='int'>
|
137
|
+
<dd><pre class="code"><span class='int'>4</span></pre></dd>
|
138
138
|
|
139
139
|
<dt id="PATCH-constant" class="">PATCH =
|
140
140
|
<div class="docstring">
|
@@ -149,7 +149,7 @@
|
|
149
149
|
|
150
150
|
</div>
|
151
151
|
</dt>
|
152
|
-
<dd><pre class="code"><span class='int'>
|
152
|
+
<dd><pre class="code"><span class='int'>0</span></pre></dd>
|
153
153
|
|
154
154
|
<dt id="STRING-constant" class="">STRING =
|
155
155
|
<div class="docstring">
|
@@ -180,7 +180,7 @@
|
|
180
180
|
</div>
|
181
181
|
|
182
182
|
<div id="footer">
|
183
|
-
Generated on Sat Jul 20
|
183
|
+
Generated on Sat Jul 20 13:39:36 2013 by
|
184
184
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
185
185
|
0.8.6.2 (ruby-1.9.3).
|
186
186
|
</div>
|
data/doc/_index.html
CHANGED
@@ -346,7 +346,7 @@
|
|
346
346
|
</div>
|
347
347
|
|
348
348
|
<div id="footer">
|
349
|
-
Generated on Sat Jul 20
|
349
|
+
Generated on Sat Jul 20 13:39:34 2013 by
|
350
350
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
351
351
|
0.8.6.2 (ruby-1.9.3).
|
352
352
|
</div>
|
data/doc/file.README.html
CHANGED
@@ -101,7 +101,7 @@
|
|
101
101
|
</div></div>
|
102
102
|
|
103
103
|
<div id="footer">
|
104
|
-
Generated on Sat Jul 20
|
104
|
+
Generated on Sat Jul 20 13:39:34 2013 by
|
105
105
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
106
106
|
0.8.6.2 (ruby-1.9.3).
|
107
107
|
</div>
|
data/doc/index.html
CHANGED
@@ -101,7 +101,7 @@
|
|
101
101
|
</div></div>
|
102
102
|
|
103
103
|
<div id="footer">
|
104
|
-
Generated on Sat Jul 20
|
104
|
+
Generated on Sat Jul 20 13:39:34 2013 by
|
105
105
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
106
106
|
0.8.6.2 (ruby-1.9.3).
|
107
107
|
</div>
|
@@ -103,7 +103,7 @@
|
|
103
103
|
</div>
|
104
104
|
|
105
105
|
<div id="footer">
|
106
|
-
Generated on Sat Jul 20
|
106
|
+
Generated on Sat Jul 20 13:39:34 2013 by
|
107
107
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
108
108
|
0.8.6.2 (ruby-1.9.3).
|
109
109
|
</div>
|
data/lib/bovem/console.rb
CHANGED
@@ -373,7 +373,7 @@ module Bovem
|
|
373
373
|
#
|
374
374
|
# @see #format
|
375
375
|
def info(message, suffix = "\n", indent = true, wrap = false, plain = false, indented_banner = false, full_colored = false, print = true, *banner)
|
376
|
-
banner = banner.ensure_array
|
376
|
+
banner = banner.ensure_array(nil, true, true, true)
|
377
377
|
banner = ["I", "bright cyan"] if banner.blank?
|
378
378
|
banner = get_banner(banner[0], banner[1], full_colored)
|
379
379
|
message = indent(message, indented_banner ? 0 : indent)
|
@@ -525,7 +525,7 @@ module Bovem
|
|
525
525
|
# @param validator [String|Regexp] The validator to sanitize.
|
526
526
|
# @return [Object] A list of strings, a Regexp or nil.
|
527
527
|
def sanitize_validator(validator)
|
528
|
-
validator.present? && !validator.is_a?(::Regexp) ? validator.ensure_array
|
528
|
+
validator.present? && !validator.is_a?(::Regexp) ? validator.ensure_array(nil, true, true, true, :ensure_string) : validator
|
529
529
|
end
|
530
530
|
|
531
531
|
# Read an input from the terminal.
|
data/lib/bovem/shell.rb
CHANGED
@@ -97,7 +97,7 @@ module Bovem
|
|
97
97
|
def find(directories, patterns = [], by_extension = false, case_sensitive = false, &block)
|
98
98
|
rv = []
|
99
99
|
|
100
|
-
directories = directories.ensure_array
|
100
|
+
directories = directories.ensure_array(nil, true, true) {|d| File.expand_path(d.ensure_string) }
|
101
101
|
patterns = normalize_patterns(patterns, by_extension, case_sensitive)
|
102
102
|
|
103
103
|
directories.each do |directory|
|
@@ -122,7 +122,7 @@ module Bovem
|
|
122
122
|
# @return [Array] The normalized patterns.
|
123
123
|
def normalize_patterns(patterns, by_extension, case_sensitive)
|
124
124
|
# Adjust patterns
|
125
|
-
patterns = patterns.ensure_array
|
125
|
+
patterns = patterns.ensure_array(nil, true, true) {|p| p.is_a?(::Regexp) ? p : Regexp.new(Regexp.quote(p.ensure_string)) }
|
126
126
|
patterns = patterns.collect {|p| /(#{p.source})$/ } if by_extension
|
127
127
|
patterns = patterns.collect {|p| /#{p.source}/i } if !case_sensitive
|
128
128
|
patterns
|
@@ -377,7 +377,7 @@ module Bovem
|
|
377
377
|
def delete(files, run = true, show_errors = false, fatal = true)
|
378
378
|
rv = true
|
379
379
|
locale = i18n.shell
|
380
|
-
files = files.ensure_array
|
380
|
+
files = files.ensure_array(nil, true, true) {|f| File.expand_path(f.ensure_string) }
|
381
381
|
|
382
382
|
if !run then
|
383
383
|
@console.warn(locale.remove_dry)
|
@@ -455,7 +455,7 @@ module Bovem
|
|
455
455
|
rv = true
|
456
456
|
|
457
457
|
# Adjust directory
|
458
|
-
directories = directories.ensure_array
|
458
|
+
directories = directories.ensure_array(nil, true, true) {|d| File.expand_path(d.ensure_string) }
|
459
459
|
|
460
460
|
if !run then # Just print
|
461
461
|
dry_run_directory_creation(directories)
|
data/lib/bovem/version.rb
CHANGED
data/spec/bovem/logger_spec.rb
CHANGED
@@ -8,21 +8,21 @@ require "spec_helper"
|
|
8
8
|
|
9
9
|
describe Bovem::Logger do
|
10
10
|
describe ".create" do
|
11
|
-
it
|
11
|
+
it "should create a new default logger" do
|
12
12
|
logger = ::Bovem::Logger.create
|
13
13
|
expect(logger.device).to eq(::Bovem::Logger.default_file)
|
14
14
|
expect(logger.level).to eq(::Logger::INFO)
|
15
15
|
expect(logger.formatter).to eq(::Bovem::Logger.default_formatter)
|
16
16
|
end
|
17
17
|
|
18
|
-
it
|
18
|
+
it "should create a logger with a custom file and level" do
|
19
19
|
logger = ::Bovem::Logger.create("/dev/null", ::Logger::WARN)
|
20
20
|
expect(logger.device).to eq("/dev/null")
|
21
21
|
expect(logger.level).to eq(::Logger::WARN)
|
22
22
|
expect(logger.formatter).to eq(::Bovem::Logger.default_formatter)
|
23
23
|
end
|
24
24
|
|
25
|
-
it
|
25
|
+
it "should create a logger with a custom formatter" do
|
26
26
|
formatter = Proc.new {|severity, datetime, progname, msg| msg }
|
27
27
|
logger = ::Bovem::Logger.create("/dev/null", ::Logger::WARN, formatter)
|
28
28
|
expect(logger.device).to eq("/dev/null")
|
@@ -30,7 +30,7 @@ describe Bovem::Logger do
|
|
30
30
|
expect(logger.formatter).to eq(formatter)
|
31
31
|
end
|
32
32
|
|
33
|
-
it
|
33
|
+
it "should raise exceptions for invalid files" do
|
34
34
|
expect { ::Bovem::Logger.create("/invalid/file") }.to raise_error(::Bovem::Errors::InvalidLogger)
|
35
35
|
end
|
36
36
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bovem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.4.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 3.
|
21
|
+
version: 3.3.1
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 3.
|
29
|
+
version: 3.3.1
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: open4
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
130
|
version: '0'
|
131
131
|
segments:
|
132
132
|
- 0
|
133
|
-
hash:
|
133
|
+
hash: 4602464353921548053
|
134
134
|
requirements: []
|
135
135
|
rubyforge_project: bovem
|
136
136
|
rubygems_version: 1.8.25
|