bovem 3.0.5 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +4 -3
  3. data/.rubocop.yml +82 -0
  4. data/.travis-gemfile +4 -5
  5. data/.travis.yml +8 -6
  6. data/CHANGELOG.md +12 -0
  7. data/Gemfile +9 -8
  8. data/README.md +1 -1
  9. data/Rakefile +22 -6
  10. data/bovem.gemspec +5 -5
  11. data/doc/Bovem.html +10 -10
  12. data/doc/Bovem/Application.html +670 -318
  13. data/doc/Bovem/Command.html +1447 -1125
  14. data/doc/Bovem/CommandMethods.html +4 -4
  15. data/doc/Bovem/CommandMethods/Children.html +173 -179
  16. data/doc/Bovem/CommandMethods/Help.html +9 -9
  17. data/doc/Bovem/Configuration.html +239 -24
  18. data/doc/Bovem/Console.html +267 -128
  19. data/doc/Bovem/ConsoleMethods.html +4 -4
  20. data/doc/Bovem/ConsoleMethods/Interactions.html +57 -70
  21. data/doc/Bovem/ConsoleMethods/Interactions/ClassMethods.html +9 -9
  22. data/doc/Bovem/ConsoleMethods/Logging.html +258 -298
  23. data/doc/Bovem/ConsoleMethods/Logging/ClassMethods.html +8 -8
  24. data/doc/Bovem/ConsoleMethods/Output.html +96 -118
  25. data/doc/Bovem/ConsoleMethods/StyleHandling.html +8 -8
  26. data/doc/Bovem/ConsoleMethods/StyleHandling/ClassMethods.html +26 -39
  27. data/doc/Bovem/Errors.html +4 -4
  28. data/doc/Bovem/Errors/Error.html +4 -4
  29. data/doc/Bovem/Errors/InvalidConfiguration.html +4 -4
  30. data/doc/Bovem/Errors/InvalidLogger.html +4 -4
  31. data/doc/Bovem/I18n.html +175 -0
  32. data/doc/Bovem/Logger.html +95 -83
  33. data/doc/Bovem/Option.html +669 -862
  34. data/doc/Bovem/Parser.html +10 -10
  35. data/doc/Bovem/ParserMethods.html +4 -4
  36. data/doc/Bovem/ParserMethods/General.html +4 -4
  37. data/doc/Bovem/ParserMethods/General/ClassMethods.html +26 -38
  38. data/doc/Bovem/Shell.html +169 -48
  39. data/doc/Bovem/ShellMethods.html +4 -4
  40. data/doc/Bovem/ShellMethods/Directories.html +46 -62
  41. data/doc/Bovem/ShellMethods/Execute.html +51 -99
  42. data/doc/Bovem/ShellMethods/General.html +4 -445
  43. data/doc/Bovem/ShellMethods/Read.html +56 -61
  44. data/doc/Bovem/ShellMethods/Write.html +22 -242
  45. data/doc/Bovem/Version.html +6 -6
  46. data/doc/_index.html +18 -18
  47. data/doc/class_list.html +6 -2
  48. data/doc/css/style.css +1 -0
  49. data/doc/file.README.html +5 -5
  50. data/doc/file_list.html +5 -1
  51. data/doc/frames.html +1 -1
  52. data/doc/index.html +5 -5
  53. data/doc/js/full_list.js +4 -1
  54. data/doc/method_list.html +161 -157
  55. data/doc/top-level-namespace.html +4 -4
  56. data/lib/bovem.rb +3 -4
  57. data/lib/bovem/application.rb +47 -39
  58. data/lib/bovem/command.rb +175 -193
  59. data/lib/bovem/configuration.rb +28 -29
  60. data/lib/bovem/console.rb +244 -171
  61. data/lib/bovem/errors.rb +1 -1
  62. data/lib/bovem/i18n.rb +18 -0
  63. data/lib/bovem/logger.rb +26 -26
  64. data/lib/bovem/option.rb +49 -58
  65. data/lib/bovem/parser.rb +174 -222
  66. data/lib/bovem/shell.rb +272 -320
  67. data/lib/bovem/version.rb +2 -2
  68. data/locales/en.yml +39 -38
  69. data/locales/it.yml +39 -38
  70. data/spec/bovem/application_spec.rb +6 -5
  71. data/spec/bovem/command_spec.rb +23 -23
  72. data/spec/bovem/console_spec.rb +101 -102
  73. data/spec/bovem/i18n_spec.rb +21 -0
  74. data/spec/bovem/logger_spec.rb +4 -4
  75. data/spec/bovem/option_spec.rb +43 -43
  76. data/spec/bovem/parser_spec.rb +13 -13
  77. data/spec/bovem/shell_spec.rb +106 -115
  78. data/spec/spec_helper.rb +19 -6
  79. metadata +14 -13
  80. data/doc/Bovem/Localizer.html +0 -376
  81. data/lib/bovem/localizer.rb +0 -27
  82. data/spec/coverage_helper.rb +0 -20
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Bovem::ConsoleMethods::Logging::ClassMethods
8
8
 
9
- &mdash; Documentation by YARD 0.8.7.3
9
+ &mdash; Documentation by YARD 0.8.7.6
10
10
 
11
11
  </title>
12
12
 
@@ -17,7 +17,7 @@
17
17
  <script type="text/javascript" charset="utf-8">
18
18
  hasFrames = window.top.frames.main ? true : false;
19
19
  relpath = '../../../';
20
- framesUrl = "../../../frames.html#!" + escape(window.location.href);
20
+ framesUrl = "../../../frames.html#!Bovem/ConsoleMethods/Logging/ClassMethods.html";
21
21
  </script>
22
22
 
23
23
 
@@ -183,12 +183,12 @@
183
183
  <pre class="lines">
184
184
 
185
185
 
186
- 250
187
- 251
188
- 252</pre>
186
+ 285
187
+ 286
188
+ 287</pre>
189
189
  </td>
190
190
  <td>
191
- <pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line 250</span>
191
+ <pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line 285</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,9 +203,9 @@
203
203
  </div>
204
204
 
205
205
  <div id="footer">
206
- Generated on Sat Mar 8 10:27:42 2014 by
206
+ Generated on Tue Mar 29 20:43:16 2016 by
207
207
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
208
- 0.8.7.3 (ruby-2.1.0).
208
+ 0.8.7.6 (ruby-2.3.0).
209
209
  </div>
210
210
 
211
211
  </body>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Bovem::ConsoleMethods::Output
8
8
 
9
- &mdash; Documentation by YARD 0.8.7.3
9
+ &mdash; Documentation by YARD 0.8.7.6
10
10
 
11
11
  </title>
12
12
 
@@ -17,7 +17,7 @@
17
17
  <script type="text/javascript" charset="utf-8">
18
18
  hasFrames = window.top.frames.main ? true : false;
19
19
  relpath = '../../';
20
- framesUrl = "../../frames.html#!" + escape(window.location.href);
20
+ framesUrl = "../../frames.html#!Bovem/ConsoleMethods/Output.html";
21
21
  </script>
22
22
 
23
23
 
@@ -139,7 +139,7 @@
139
139
  <li class="public ">
140
140
  <span class="summary_signature">
141
141
 
142
- <a href="#format-instance_method" title="#format (instance method)">- (String) <strong>format</strong>(message, suffix = &quot;\n&quot;, indent = true, wrap = true, plain = false) </a>
142
+ <a href="#format-instance_method" title="#format (instance method)">- (String) <strong>format</strong>(message, suffix: &quot;\n&quot;, indented: true, wrap: true, plain: false) </a>
143
143
 
144
144
 
145
145
 
@@ -162,7 +162,7 @@
162
162
  <li class="public ">
163
163
  <span class="summary_signature">
164
164
 
165
- <a href="#format_right-instance_method" title="#format_right (instance method)">- (String) <strong>format_right</strong>(message, width = true, go_up = true, plain = false) </a>
165
+ <a href="#format_right-instance_method" title="#format_right (instance method)">- (String) <strong>format_right</strong>(message, width: true, go_up: true, plain: false) </a>
166
166
 
167
167
 
168
168
 
@@ -384,12 +384,12 @@
384
384
  <pre class="lines">
385
385
 
386
386
 
387
- 237
388
- 238
389
- 239</pre>
387
+ 244
388
+ 245
389
+ 246</pre>
390
390
  </td>
391
391
  <td>
392
- <pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line 237</span>
392
+ <pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line 244</span>
393
393
 
394
394
  <span class='kw'>def</span> <span class='id identifier rubyid_emphasize'>emphasize</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='comma'>,</span> <span class='id identifier rubyid_style'>style</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>bright</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
395
395
  <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>{mark=</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_style'>style</span><span class='embexpr_end'>}</span><span class='tstring_content'>}</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_message'>message</span><span class='embexpr_end'>}</span><span class='tstring_content'>{/mark}</span><span class='tstring_end'>&quot;</span></span>
@@ -402,7 +402,7 @@
402
402
  <div class="method_details ">
403
403
  <h3 class="signature " id="format-instance_method">
404
404
 
405
- - (<tt>String</tt>) <strong>format</strong>(message, suffix = &quot;\n&quot;, indent = true, wrap = true, plain = false)
405
+ - (<tt>String</tt>) <strong>format</strong>(message, suffix: &quot;\n&quot;, indented: true, wrap: true, plain: false)
406
406
 
407
407
 
408
408
 
@@ -444,8 +444,6 @@
444
444
  <span class='type'>(<tt>Object</tt>)</span>
445
445
 
446
446
 
447
- <em class="default">(defaults to: <tt>&quot;\n&quot;</tt>)</em>
448
-
449
447
 
450
448
  &mdash;
451
449
  <div class='inline'><p>If not <code>nil</code> or <code>false</code>, a suffix to add to the message. <code>true</code> means to add <code>\n</code>.</p>
@@ -455,17 +453,16 @@
455
453
 
456
454
  <li>
457
455
 
458
- <span class='name'>indent</span>
456
+ <span class='name'>indented</span>
459
457
 
460
458
 
461
459
  <span class='type'>(<tt>Object</tt>)</span>
462
460
 
463
461
 
464
- <em class="default">(defaults to: <tt>true</tt>)</em>
465
-
466
462
 
467
463
  &mdash;
468
- <div class='inline'><p>If not <code>nil</code> or <code>false</code>, the width to use for indentation. <code>true</code> means to use the current indentation, a negative value of <code>-x</code> will indent of <code>x</code> absolute spaces.</p>
464
+ <div class='inline'><p>If not <code>nil</code> or <code>false</code>, the width to use for indentation. <code>true</code> means to use the current indentation,
465
+ a negative value of <code>-x</code> will indent of <code>x</code> absolute spaces.</p>
469
466
  </div>
470
467
 
471
468
  </li>
@@ -478,8 +475,6 @@
478
475
  <span class='type'>(<tt>Object</tt>)</span>
479
476
 
480
477
 
481
- <em class="default">(defaults to: <tt>true</tt>)</em>
482
-
483
478
 
484
479
  &mdash;
485
480
  <div class='inline'><p>If not <code>nil</code> or <code>false</code>, the maximum length of a line. <code>true</code> means the current line width.</p>
@@ -495,8 +490,6 @@
495
490
  <span class='type'>(<tt>Boolean</tt>)</span>
496
491
 
497
492
 
498
- <em class="default">(defaults to: <tt>false</tt>)</em>
499
-
500
493
 
501
494
  &mdash;
502
495
  <div class='inline'><p>If ignore color markers into the message.</p>
@@ -537,49 +530,31 @@
537
530
  <pre class="lines">
538
531
 
539
532
 
540
- 191
541
- 192
542
- 193
543
- 194
544
- 195
545
- 196
546
- 197
547
- 198
548
- 199
549
- 200
550
- 201
551
- 202
552
- 203
553
- 204
554
- 205
555
- 206
556
533
  207
557
534
  208
558
535
  209
559
536
  210
560
- 211</pre>
537
+ 211
538
+ 212
539
+ 213
540
+ 214
541
+ 215
542
+ 216
543
+ 217
544
+ 218</pre>
561
545
  </td>
562
546
  <td>
563
- <pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line 191</span>
547
+ <pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line 207</span>
564
548
 
565
- <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'>&quot;</span><span class='tstring_content'>\n</span><span class='tstring_end'>&quot;</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>
549
+ <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='label'>suffix:</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\n</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='label'>indented:</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='label'>wrap:</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='label'>plain:</span> <span class='kw'>false</span><span class='rparen'>)</span>
566
550
  <span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='id identifier rubyid_message'>message</span>
567
551
 
568
552
  <span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</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
569
553
  </span>
570
554
  <span class='comment'># Compute the real width available for the screen, if we both indent and wrap
571
- </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>
572
- <span class='id identifier rubyid_wrap'>wrap</span> <span class='op'>=</span> <span class='id identifier rubyid_line_width'>line_width</span>
573
-
574
- <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>
575
- <span class='id identifier rubyid_wrap'>wrap</span> <span class='op'>-=</span> <span class='ivar'>@indentation</span>
576
- <span class='kw'>else</span>
577
- <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>
578
- <span class='id identifier rubyid_wrap'>wrap</span> <span class='op'>-=</span> <span class='lparen'>(</span><span class='id identifier rubyid_indent_i'>indent_i</span> <span class='op'>&gt;</span> <span class='int'>0</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_indent_i'>indent_i</span>
579
- <span class='kw'>end</span>
580
- <span class='kw'>end</span>
555
+ </span> <span class='id identifier rubyid_wrap'>wrap</span> <span class='op'>=</span> <span class='id identifier rubyid_compute_wrap'>compute_wrap</span><span class='lparen'>(</span><span class='id identifier rubyid_indented'>indented</span><span class='rparen'>)</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>
581
556
 
582
- <span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='id identifier rubyid_indent'>indent</span><span class='lparen'>(</span><span class='id identifier rubyid_wrap'>wrap</span><span class='lparen'>(</span><span class='id identifier rubyid_rv'>rv</span><span class='comma'>,</span> <span class='id identifier rubyid_wrap'>wrap</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='id identifier rubyid_indent'>indent</span><span class='rparen'>)</span> <span class='comment'># Wrap &amp; Indent
557
+ <span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='id identifier rubyid_indent'>indent</span><span class='lparen'>(</span><span class='id identifier rubyid_wrap'>wrap</span><span class='lparen'>(</span><span class='id identifier rubyid_rv'>rv</span><span class='comma'>,</span> <span class='id identifier rubyid_wrap'>wrap</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='id identifier rubyid_indented'>indented</span><span class='rparen'>)</span> <span class='comment'># Wrap &amp; Indent
583
558
  </span> <span class='id identifier rubyid_rv'>rv</span> <span class='op'>+=</span> <span class='lparen'>(</span><span class='id identifier rubyid_suffix'>suffix</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='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\n</span><span class='tstring_end'>&quot;</span></span> <span class='op'>:</span> <span class='id identifier rubyid_suffix'>suffix</span><span class='period'>.</span><span class='id identifier rubyid_ensure_string'>ensure_string</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_suffix'>suffix</span> <span class='comment'># Add the suffix
584
559
  </span> <span class='id identifier rubyid_rv'>rv</span>
585
560
  <span class='kw'>end</span></pre>
@@ -591,7 +566,7 @@
591
566
  <div class="method_details ">
592
567
  <h3 class="signature " id="format_right-instance_method">
593
568
 
594
- - (<tt>String</tt>) <strong>format_right</strong>(message, width = true, go_up = true, plain = false)
569
+ - (<tt>String</tt>) <strong>format_right</strong>(message, width: true, go_up: true, plain: false)
595
570
 
596
571
 
597
572
 
@@ -631,8 +606,6 @@
631
606
  <span class='type'>(<tt>Fixnum</tt>)</span>
632
607
 
633
608
 
634
- <em class="default">(defaults to: <tt>true</tt>)</em>
635
-
636
609
 
637
610
  &mdash;
638
611
  <div class='inline'><p>The screen width. If <code>true</code>, it is automatically computed.</p>
@@ -648,8 +621,6 @@
648
621
  <span class='type'>(<tt>Boolean</tt>)</span>
649
622
 
650
623
 
651
- <em class="default">(defaults to: <tt>true</tt>)</em>
652
-
653
624
 
654
625
  &mdash;
655
626
  <div class='inline'><p>If go up one line before formatting.</p>
@@ -665,8 +636,6 @@
665
636
  <span class='type'>(<tt>Boolean</tt>)</span>
666
637
 
667
638
 
668
- <em class="default">(defaults to: <tt>false</tt>)</em>
669
-
670
639
 
671
640
  &mdash;
672
641
  <div class='inline'><p>If ignore color markers into the message.</p>
@@ -700,22 +669,22 @@
700
669
  <pre class="lines">
701
670
 
702
671
 
703
- 220
704
- 221
705
- 222
706
- 223
707
- 224
708
- 225
709
- 226
710
672
  227
711
673
  228
712
674
  229
713
- 230</pre>
675
+ 230
676
+ 231
677
+ 232
678
+ 233
679
+ 234
680
+ 235
681
+ 236
682
+ 237</pre>
714
683
  </td>
715
684
  <td>
716
- <pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line 220</span>
685
+ <pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line 227</span>
717
686
 
718
- <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>
687
+ <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='label'>width:</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='label'>go_up:</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='label'>plain:</span> <span class='kw'>false</span><span class='rparen'>)</span>
719
688
  <span class='id identifier rubyid_message'>message</span> <span class='op'>=</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>
720
689
 
721
690
  <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'>&lt;</span> <span class='int'>1</span> <span class='op'>?</span> <span class='id identifier rubyid_line_width'>line_width</span> <span class='op'>:</span> <span class='id identifier rubyid_to_integer'>to_integer</span><span class='rparen'>)</span>
@@ -778,7 +747,8 @@
778
747
 
779
748
 
780
749
  &mdash;
781
- <div class='inline'><p>The indentation width. <code>true</code> means to use the current indentation, a negative value of <code>-x</code> will indent of <code>x</code> absolute spaces. <code>nil</code> or <code>false</code> will skip indentation.</p>
750
+ <div class='inline'><p>The indentation width. <code>true</code> means to use the current indentation, a negative value of <code>-x</code>
751
+ will indent of <code>x</code> absolute spaces. <code>nil</code> or <code>false</code> will skip indentation.</p>
782
752
  </div>
783
753
 
784
754
  </li>
@@ -826,30 +796,34 @@
826
796
  <pre class="lines">
827
797
 
828
798
 
829
- 166
830
- 167
831
- 168
832
- 169
833
- 170
834
- 171
835
- 172
836
- 173
837
- 174
838
- 175
839
- 176
840
- 177</pre>
799
+ 179
800
+ 180
801
+ 181
802
+ 182
803
+ 183
804
+ 184
805
+ 185
806
+ 186
807
+ 187
808
+ 188
809
+ 189
810
+ 190
811
+ 191
812
+ 192</pre>
841
813
  </td>
842
814
  <td>
843
- <pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line 166</span>
815
+ <pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line 179</span>
844
816
 
845
817
  <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'>&quot;</span><span class='tstring_content'>\n</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
846
- <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>
818
+ <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>
847
819
  <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>
848
820
  <span class='id identifier rubyid_width'>width</span> <span class='op'>=</span> <span class='id identifier rubyid_width'>width</span> <span class='op'>&lt;</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>
849
821
 
850
- <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_map'>map</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_line'>line</span><span class='op'>|</span>
822
+ <span class='id identifier rubyid_rv'>rv</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_map'>map</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_line'>line</span><span class='op'>|</span>
851
823
  <span class='lparen'>(</span><span class='ivar'>@indentation_string</span> <span class='op'>*</span> <span class='id identifier rubyid_width'>width</span><span class='rparen'>)</span> <span class='op'>+</span> <span class='id identifier rubyid_line'>line</span>
852
- <span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='id identifier rubyid_newline_separator'>newline_separator</span><span class='rparen'>)</span>
824
+ <span class='kw'>end</span>
825
+
826
+ <span class='id identifier rubyid_message'>message</span> <span class='op'>=</span> <span class='id identifier rubyid_rv'>rv</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='id identifier rubyid_newline_separator'>newline_separator</span><span class='rparen'>)</span>
853
827
  <span class='kw'>end</span>
854
828
 
855
829
  <span class='id identifier rubyid_message'>message</span>
@@ -901,12 +875,12 @@
901
875
  <pre class="lines">
902
876
 
903
877
 
904
- 125
905
- 126
906
- 127</pre>
878
+ 135
879
+ 136
880
+ 137</pre>
907
881
  </td>
908
882
  <td>
909
- <pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line 125</span>
883
+ <pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line 135</span>
910
884
 
911
885
  <span class='kw'>def</span> <span class='id identifier rubyid_reset_indentation'>reset_indentation</span>
912
886
  <span class='ivar'>@indentation</span> <span class='op'>=</span> <span class='int'>0</span>
@@ -994,12 +968,12 @@
994
968
  <pre class="lines">
995
969
 
996
970
 
997
- 118
998
- 119
999
- 120</pre>
971
+ 128
972
+ 129
973
+ 130</pre>
1000
974
  </td>
1001
975
  <td>
1002
- <pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line 118</span>
976
+ <pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line 128</span>
1003
977
 
1004
978
  <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>
1005
979
  <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>
@@ -1089,17 +1063,17 @@
1089
1063
  <pre class="lines">
1090
1064
 
1091
1065
 
1092
- 134
1093
- 135
1094
- 136
1095
- 137
1096
- 138
1097
- 139
1098
- 140
1099
- 141</pre>
1066
+ 144
1067
+ 145
1068
+ 146
1069
+ 147
1070
+ 148
1071
+ 149
1072
+ 150
1073
+ 151</pre>
1100
1074
  </td>
1101
1075
  <td>
1102
- <pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line 134</span>
1076
+ <pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line 144</span>
1103
1077
 
1104
1078
  <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>
1105
1079
  <span class='id identifier rubyid_old'>old</span> <span class='op'>=</span> <span class='ivar'>@indentation</span>
@@ -1192,30 +1166,34 @@
1192
1166
  <pre class="lines">
1193
1167
 
1194
1168
 
1195
- 148
1196
- 149
1197
- 150
1198
- 151
1199
- 152
1200
- 153
1201
- 154
1202
- 155
1203
- 156
1204
- 157
1205
- 158</pre>
1169
+ 158
1170
+ 159
1171
+ 160
1172
+ 161
1173
+ 162
1174
+ 163
1175
+ 164
1176
+ 165
1177
+ 166
1178
+ 167
1179
+ 168
1180
+ 169
1181
+ 170</pre>
1206
1182
  </td>
1207
1183
  <td>
1208
- <pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line 148</span>
1184
+ <pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line 158</span>
1209
1185
 
1210
1186
  <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>
1211
- <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'>&lt;=</span> <span class='int'>0</span> <span class='kw'>then</span>
1187
+ <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'>&lt;=</span> <span class='int'>0</span>
1212
1188
  <span class='id identifier rubyid_message'>message</span>
1213
1189
  <span class='kw'>else</span>
1214
1190
  <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'>&lt;</span> <span class='int'>0</span> <span class='op'>?</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>
1215
1191
 
1216
- <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'>&quot;</span><span class='tstring_content'>\n</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_line'>line</span><span class='op'>|</span>
1217
- <span class='id identifier rubyid_line'>line</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span> <span class='op'>&gt;</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='embexpr_end'>}</span><span class='tstring_content'>})(\s+|$)</span><span class='regexp_end'>/</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\\1\n</span><span class='tstring_end'>&quot;</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>
1218
- <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'>&quot;</span><span class='tstring_content'>\n</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
1192
+ <span class='id identifier rubyid_rv'>rv</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='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\n</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_line'>line</span><span class='op'>|</span>
1193
+ <span class='id identifier rubyid_wrap_line'>wrap_line</span><span class='lparen'>(</span><span class='id identifier rubyid_line'>line</span><span class='comma'>,</span> <span class='id identifier rubyid_width'>width</span><span class='rparen'>)</span>
1194
+ <span class='kw'>end</span>
1195
+
1196
+ <span class='id identifier rubyid_rv'>rv</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\n</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
1219
1197
  <span class='kw'>end</span>
1220
1198
  <span class='kw'>end</span></pre>
1221
1199
  </td>
@@ -1228,9 +1206,9 @@
1228
1206
  </div>
1229
1207
 
1230
1208
  <div id="footer">
1231
- Generated on Sat Mar 8 10:27:42 2014 by
1209
+ Generated on Tue Mar 29 20:43:16 2016 by
1232
1210
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1233
- 0.8.7.3 (ruby-2.1.0).
1211
+ 0.8.7.6 (ruby-2.3.0).
1234
1212
  </div>
1235
1213
 
1236
1214
  </body>