bovem 2.0.0 → 2.0.1

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/doc/Bovem/Shell.html CHANGED
@@ -140,7 +140,7 @@
140
140
 
141
141
 
142
142
 
143
- <span class="summary_desc"><div class='inline'><h1>A console instance.</h1>
143
+ <span class="summary_desc"><div class='inline'><p>A console instance.</p>
144
144
  </div></span>
145
145
 
146
146
  </li>
@@ -303,13 +303,13 @@
303
303
  <pre class="lines">
304
304
 
305
305
 
306
- 559
307
306
  560
308
307
  561
309
- 562</pre>
308
+ 562
309
+ 563</pre>
310
310
  </td>
311
311
  <td>
312
- <pre class="code"><span class="info file"># File 'lib/bovem/shell.rb', line 559</span>
312
+ <pre class="code"><span class="info file"># File 'lib/bovem/shell.rb', line 560</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>
@@ -338,7 +338,7 @@
338
338
 
339
339
  </h3><div class="docstring">
340
340
  <div class="discussion">
341
- <h1>A console instance.</h1>
341
+ <p>A console instance.</p>
342
342
 
343
343
 
344
344
  </div>
@@ -356,7 +356,7 @@
356
356
 
357
357
 
358
358
  &mdash;
359
- <div class='inline'><p>the current value of console</p>
359
+ <div class='inline'><p>A console instance.</p>
360
360
  </div>
361
361
 
362
362
  </li>
@@ -369,15 +369,55 @@
369
369
  <pre class="lines">
370
370
 
371
371
 
372
- 541
373
372
  542
374
- 543</pre>
373
+ 543
374
+ 544
375
+ 545
376
+ 546
377
+ 547
378
+ 548
379
+ 549
380
+ 550
381
+ 551
382
+ 552
383
+ 553
384
+ 554
385
+ 555
386
+ 556
387
+ 557
388
+ 558
389
+ 559
390
+ 560
391
+ 561
392
+ 562
393
+ 563
394
+ 564</pre>
375
395
  </td>
376
396
  <td>
377
- <pre class="code"><span class="info file"># File 'lib/bovem/shell.rb', line 541</span>
378
-
379
- <span class='kw'>def</span> <span class='id identifier rubyid_console'>console</span>
380
- <span class='ivar'>@console</span>
397
+ <pre class="code"><span class="info file"># File 'lib/bovem/shell.rb', line 542</span>
398
+
399
+ <span class='kw'>class</span> <span class='const'>Shell</span>
400
+ <span class='id identifier rubyid_include'>include</span> <span class='const'>Lazier</span><span class='op'>::</span><span class='const'>I18n</span>
401
+ <span class='id identifier rubyid_include'>include</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>ShellMethods</span><span class='op'>::</span><span class='const'>General</span>
402
+ <span class='id identifier rubyid_include'>include</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>ShellMethods</span><span class='op'>::</span><span class='const'>Read</span>
403
+ <span class='id identifier rubyid_include'>include</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>ShellMethods</span><span class='op'>::</span><span class='const'>Write</span>
404
+ <span class='id identifier rubyid_include'>include</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>ShellMethods</span><span class='op'>::</span><span class='const'>Execute</span>
405
+ <span class='id identifier rubyid_include'>include</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>ShellMethods</span><span class='op'>::</span><span class='const'>Directories</span>
406
+
407
+ <span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:console</span>
408
+
409
+ <span class='comment'># Returns a unique instance for Shell.
410
+ </span> <span class='comment'>#
411
+ </span> <span class='comment'># @return [Shell] A new instance.
412
+ </span> <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_instance'>instance</span>
413
+ <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>
414
+ <span class='kw'>end</span>
415
+
416
+ <span class='comment'># Initializes a new Shell.
417
+ </span> <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
418
+ <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>
419
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_i18n_setup'>i18n_setup</span><span class='lparen'>(</span><span class='symbol'>:bovem</span><span class='comma'>,</span> <span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_absolute_path'>absolute_path</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>Pathname</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='kw'>__FILE__</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/../../locales/</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='rparen'>)</span>
420
+ <span class='kw'>end</span>
381
421
  <span class='kw'>end</span></pre>
382
422
  </td>
383
423
  </tr>
@@ -433,12 +473,12 @@
433
473
  <pre class="lines">
434
474
 
435
475
 
436
- 554
437
476
  555
438
- 556</pre>
477
+ 556
478
+ 557</pre>
439
479
  </td>
440
480
  <td>
441
- <pre class="code"><span class="info file"># File 'lib/bovem/shell.rb', line 554</span>
481
+ <pre class="code"><span class="info file"># File 'lib/bovem/shell.rb', line 555</span>
442
482
 
443
483
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_instance'>instance</span>
444
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>
@@ -453,7 +493,7 @@
453
493
  </div>
454
494
 
455
495
  <div id="footer">
456
- Generated on Fri Feb 1 23:40:18 2013 by
496
+ Generated on Sat Feb 2 09:25:37 2013 by
457
497
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
458
498
  0.8.3 (ruby-1.9.3).
459
499
  </div>
@@ -116,7 +116,7 @@
116
116
  </div>
117
117
 
118
118
  <div id="footer">
119
- Generated on Fri Feb 1 23:40:17 2013 by
119
+ Generated on Sat Feb 2 09:25:37 2013 by
120
120
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
121
121
  0.8.3 (ruby-1.9.3).
122
122
  </div>
@@ -475,7 +475,7 @@
475
475
  </div>
476
476
 
477
477
  <div id="footer">
478
- Generated on Fri Feb 1 23:40:17 2013 by
478
+ Generated on Sat Feb 2 09:25:37 2013 by
479
479
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
480
480
  0.8.3 (ruby-1.9.3).
481
481
  </div>
@@ -556,7 +556,7 @@
556
556
  </div>
557
557
 
558
558
  <div id="footer">
559
- Generated on Fri Feb 1 23:40:17 2013 by
559
+ Generated on Sat Feb 2 09:25:37 2013 by
560
560
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
561
561
  0.8.3 (ruby-1.9.3).
562
562
  </div>
@@ -441,7 +441,7 @@
441
441
  </div>
442
442
 
443
443
  <div id="footer">
444
- Generated on Fri Feb 1 23:40:17 2013 by
444
+ Generated on Sat Feb 2 09:25:37 2013 by
445
445
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
446
446
  0.8.3 (ruby-1.9.3).
447
447
  </div>
@@ -442,7 +442,7 @@
442
442
  </div>
443
443
 
444
444
  <div id="footer">
445
- Generated on Fri Feb 1 23:40:17 2013 by
445
+ Generated on Sat Feb 2 09:25:37 2013 by
446
446
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
447
447
  0.8.3 (ruby-1.9.3).
448
448
  </div>
@@ -667,7 +667,7 @@
667
667
  </div>
668
668
 
669
669
  <div id="footer">
670
- Generated on Fri Feb 1 23:40:17 2013 by
670
+ Generated on Sat Feb 2 09:25:37 2013 by
671
671
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
672
672
  0.8.3 (ruby-1.9.3).
673
673
  </div>
@@ -180,7 +180,7 @@
180
180
  </div>
181
181
 
182
182
  <div id="footer">
183
- Generated on Fri Feb 1 23:40:18 2013 by
183
+ Generated on Sat Feb 2 09:25:37 2013 by
184
184
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
185
185
  0.8.3 (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 Fri Feb 1 23:40:17 2013 by
349
+ Generated on Sat Feb 2 09:25:37 2013 by
350
350
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
351
351
  0.8.3 (ruby-1.9.3).
352
352
  </div>
data/doc/file.README.html CHANGED
@@ -99,7 +99,7 @@
99
99
  </div></div>
100
100
 
101
101
  <div id="footer">
102
- Generated on Fri Feb 1 23:40:17 2013 by
102
+ Generated on Sat Feb 2 09:25:37 2013 by
103
103
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
104
104
  0.8.3 (ruby-1.9.3).
105
105
  </div>
data/doc/index.html CHANGED
@@ -99,7 +99,7 @@
99
99
  </div></div>
100
100
 
101
101
  <div id="footer">
102
- Generated on Fri Feb 1 23:40:17 2013 by
102
+ Generated on Sat Feb 2 09:25:37 2013 by
103
103
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
104
104
  0.8.3 (ruby-1.9.3).
105
105
  </div>
data/doc/method_list.html CHANGED
@@ -255,17 +255,17 @@
255
255
 
256
256
 
257
257
  <li class="r1 ">
258
- <span class='object_link'><a href="Bovem/Configuration.html#initialize-instance_method" title="Bovem::Configuration#initialize (method)">#initialize</a></span>
258
+ <span class='object_link'><a href="Bovem/Console.html#initialize-instance_method" title="Bovem::Console#initialize (method)">#initialize</a></span>
259
259
 
260
- <small>Bovem::Configuration</small>
260
+ <small>Bovem::Console</small>
261
261
 
262
262
  </li>
263
263
 
264
264
 
265
265
  <li class="r2 ">
266
- <span class='object_link'><a href="Bovem/Shell.html#initialize-instance_method" title="Bovem::Shell#initialize (method)">#initialize</a></span>
266
+ <span class='object_link'><a href="Bovem/Configuration.html#initialize-instance_method" title="Bovem::Configuration#initialize (method)">#initialize</a></span>
267
267
 
268
- <small>Bovem::Shell</small>
268
+ <small>Bovem::Configuration</small>
269
269
 
270
270
  </li>
271
271
 
@@ -279,25 +279,25 @@
279
279
 
280
280
 
281
281
  <li class="r2 ">
282
- <span class='object_link'><a href="Bovem/Console.html#initialize-instance_method" title="Bovem::Console#initialize (method)">#initialize</a></span>
282
+ <span class='object_link'><a href="Bovem/Shell.html#initialize-instance_method" title="Bovem::Shell#initialize (method)">#initialize</a></span>
283
283
 
284
- <small>Bovem::Console</small>
284
+ <small>Bovem::Shell</small>
285
285
 
286
286
  </li>
287
287
 
288
288
 
289
289
  <li class="r1 ">
290
- <span class='object_link'><a href="Bovem/Console.html#instance-class_method" title="Bovem::Console.instance (method)">instance</a></span>
290
+ <span class='object_link'><a href="Bovem/Shell.html#instance-class_method" title="Bovem::Shell.instance (method)">instance</a></span>
291
291
 
292
- <small>Bovem::Console</small>
292
+ <small>Bovem::Shell</small>
293
293
 
294
294
  </li>
295
295
 
296
296
 
297
297
  <li class="r2 ">
298
- <span class='object_link'><a href="Bovem/Shell.html#instance-class_method" title="Bovem::Shell.instance (method)">instance</a></span>
298
+ <span class='object_link'><a href="Bovem/Console.html#instance-class_method" title="Bovem::Console.instance (method)">instance</a></span>
299
299
 
300
- <small>Bovem::Shell</small>
300
+ <small>Bovem::Console</small>
301
301
 
302
302
  </li>
303
303
 
@@ -431,14 +431,6 @@
431
431
 
432
432
 
433
433
  <li class="r1 ">
434
- <span class='object_link'><a href="Bovem/Logger.html#start_time-instance_method" title="Bovem::Logger#start_time (method)">#start_time</a></span>
435
-
436
- <small>Bovem::Logger</small>
437
-
438
- </li>
439
-
440
-
441
- <li class="r2 ">
442
434
  <span class='object_link'><a href="Bovem/Logger.html#start_time-class_method" title="Bovem::Logger.start_time (method)">start_time</a></span>
443
435
 
444
436
  <small>Bovem::Logger</small>
@@ -446,7 +438,7 @@
446
438
  </li>
447
439
 
448
440
 
449
- <li class="r1 ">
441
+ <li class="r2 ">
450
442
  <span class='object_link'><a href="Bovem/ConsoleMethods/Logging.html#status-instance_method" title="Bovem::ConsoleMethods::Logging#status (method)">#status</a></span>
451
443
 
452
444
  <small>Bovem::ConsoleMethods::Logging</small>
@@ -454,7 +446,7 @@
454
446
  </li>
455
447
 
456
448
 
457
- <li class="r2 ">
449
+ <li class="r1 ">
458
450
  <span class='object_link'><a href="Bovem/ConsoleMethods/Interactions.html#task-instance_method" title="Bovem::ConsoleMethods::Interactions#task (method)">#task</a></span>
459
451
 
460
452
  <small>Bovem::ConsoleMethods::Interactions</small>
@@ -462,7 +454,7 @@
462
454
  </li>
463
455
 
464
456
 
465
- <li class="r1 ">
457
+ <li class="r2 ">
466
458
  <span class='object_link'><a href="Bovem/ConsoleMethods/Logging.html#warn-instance_method" title="Bovem::ConsoleMethods::Logging#warn (method)">#warn</a></span>
467
459
 
468
460
  <small>Bovem::ConsoleMethods::Logging</small>
@@ -470,7 +462,7 @@
470
462
  </li>
471
463
 
472
464
 
473
- <li class="r2 ">
465
+ <li class="r1 ">
474
466
  <span class='object_link'><a href="Bovem/ConsoleMethods/Output.html#with_indentation-instance_method" title="Bovem::ConsoleMethods::Output#with_indentation (method)">#with_indentation</a></span>
475
467
 
476
468
  <small>Bovem::ConsoleMethods::Output</small>
@@ -478,7 +470,7 @@
478
470
  </li>
479
471
 
480
472
 
481
- <li class="r1 ">
473
+ <li class="r2 ">
482
474
  <span class='object_link'><a href="Bovem/ShellMethods/Directories.html#within_directory-instance_method" title="Bovem::ShellMethods::Directories#within_directory (method)">#within_directory</a></span>
483
475
 
484
476
  <small>Bovem::ShellMethods::Directories</small>
@@ -486,7 +478,7 @@
486
478
  </li>
487
479
 
488
480
 
489
- <li class="r2 ">
481
+ <li class="r1 ">
490
482
  <span class='object_link'><a href="Bovem/ConsoleMethods/Output.html#wrap-instance_method" title="Bovem::ConsoleMethods::Output#wrap (method)">#wrap</a></span>
491
483
 
492
484
  <small>Bovem::ConsoleMethods::Output</small>
@@ -494,7 +486,7 @@
494
486
  </li>
495
487
 
496
488
 
497
- <li class="r1 ">
489
+ <li class="r2 ">
498
490
  <span class='object_link'><a href="Bovem/ConsoleMethods/Logging.html#write-instance_method" title="Bovem::ConsoleMethods::Logging#write (method)">#write</a></span>
499
491
 
500
492
  <small>Bovem::ConsoleMethods::Logging</small>
@@ -502,7 +494,7 @@
502
494
  </li>
503
495
 
504
496
 
505
- <li class="r2 ">
497
+ <li class="r1 ">
506
498
  <span class='object_link'><a href="Bovem/ConsoleMethods/Logging.html#write_banner_aligned-instance_method" title="Bovem::ConsoleMethods::Logging#write_banner_aligned (method)">#write_banner_aligned</a></span>
507
499
 
508
500
  <small>Bovem::ConsoleMethods::Logging</small>
@@ -103,7 +103,7 @@
103
103
  </div>
104
104
 
105
105
  <div id="footer">
106
- Generated on Fri Feb 1 23:40:17 2013 by
106
+ Generated on Sat Feb 2 09:25:37 2013 by
107
107
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
108
108
  0.8.3 (ruby-1.9.3).
109
109
  </div>
data/lib/bovem/console.rb CHANGED
@@ -609,10 +609,14 @@ module Bovem
609
609
 
610
610
  # This is a text utility wrapper console I/O.
611
611
  #
612
- # @attr [Fixnum] line_width The line width. Default to `80`.
613
- # @attr [Fixnum] screen_width The current screen width.
614
- # @attr [Fixnum] indentation Current indentation width.
615
- # @attr [String] indentation_string The string used for indentation.
612
+ # @attribute line_width
613
+ # @return [Fixnum] The line width. Default to `80`.
614
+ # @attribute screen_width
615
+ # @return [Fixnum] The current screen width.
616
+ # @attribute indentation
617
+ # @return [Fixnum] Current indentation width.
618
+ # @attribute indentation_string
619
+ # @return [String] The string used for indentation.
616
620
  class Console
617
621
  attr_accessor :line_width
618
622
  attr_accessor :screen_width
data/lib/bovem/logger.rb CHANGED
@@ -7,10 +7,15 @@
7
7
  module Bovem
8
8
  # A custom logger.
9
9
  #
10
- # @attr [Time] start_time The start time of first line. This allows to show a `T+0.1234` information into the log.
11
- # @attr [IO|String] device The file or device to log messages to.
10
+ # @attribute [r] device
11
+ # @return [IO|String] The file or device to log messages to.
12
12
  class Logger < ::Logger
13
- mattr_accessor :start_time
13
+ # @attribute start_time
14
+ # @return [Time] The start time of first line. This allows to show a `T+0.1234` information into the log.
15
+ class << self
16
+ attr_accessor :start_time
17
+ end
18
+
14
19
  attr_reader :device
15
20
 
16
21
  # Creates a new logger.
data/lib/bovem/shell.rb CHANGED
@@ -537,7 +537,8 @@ module Bovem
537
537
 
538
538
  # A utility class for most common shell operation.
539
539
  #
540
- # @attr [Console] console # A console instance.
540
+ # @attribute console
541
+ # @return [Console] A console instance.
541
542
  class Shell
542
543
  include Lazier::I18n
543
544
  include Bovem::ShellMethods::General
data/lib/bovem/version.rb CHANGED
@@ -17,7 +17,7 @@ module Bovem
17
17
  MINOR = 0
18
18
 
19
19
  # The patch version.
20
- PATCH = 0
20
+ PATCH = 1
21
21
 
22
22
  # The current version number of Bovem.
23
23
  STRING = [MAJOR, MINOR, PATCH].compact.join(".")
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.0.0
4
+ version: 2.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: