cliutils 1.0.2 → 1.0.3

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.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -0
  3. data/.yardoc/checksums +11 -11
  4. data/.yardoc/object_types +0 -0
  5. data/.yardoc/objects/root.dat +0 -0
  6. data/Gemfile.lock +12 -33
  7. data/README.md +1 -1
  8. data/Rakefile +36 -31
  9. data/cliutils.gemspec +3 -2
  10. data/lib/cliutils/configuration.rb +13 -31
  11. data/lib/cliutils/configurator.rb +23 -62
  12. data/lib/cliutils/ext/Hash+Extensions.rb +39 -78
  13. data/lib/cliutils/ext/Logger+Extensions.rb +6 -11
  14. data/lib/cliutils/ext/String+Extensions.rb +25 -13
  15. data/lib/cliutils/logger-delegator.rb +15 -39
  16. data/lib/cliutils/messenging.rb +10 -28
  17. data/lib/cliutils/prefs.rb +18 -43
  18. data/lib/cliutils/pretty-io.rb +59 -127
  19. data/lib/cliutils/version.rb +2 -1
  20. data/lib/cliutils.rb +2 -0
  21. metadata +20 -32
  22. data/bin/cliutils +0 -38
  23. data/doc/CLIUtils/Configuration.html +0 -373
  24. data/doc/CLIUtils/Configurator.html +0 -873
  25. data/doc/CLIUtils/LoggerDelegator.html +0 -560
  26. data/doc/CLIUtils/Messenging.html +0 -396
  27. data/doc/CLIUtils/Prefs.html +0 -609
  28. data/doc/CLIUtils/PrettyIO.html +0 -1333
  29. data/doc/CLIUtils.html +0 -131
  30. data/doc/Hash.html +0 -672
  31. data/doc/Logger.html +0 -233
  32. data/doc/String.html +0 -562
  33. data/doc/_index.html +0 -207
  34. data/doc/class_list.html +0 -54
  35. data/doc/css/common.css +0 -1
  36. data/doc/css/full_list.css +0 -57
  37. data/doc/css/style.css +0 -339
  38. data/doc/file.README.html +0 -415
  39. data/doc/file_list.html +0 -56
  40. data/doc/frames.html +0 -26
  41. data/doc/index.html +0 -415
  42. data/doc/js/app.js +0 -219
  43. data/doc/js/full_list.js +0 -178
  44. data/doc/js/jquery.js +0 -4
  45. data/doc/method_list.html +0 -389
  46. data/doc/top-level-namespace.html +0 -114
data/doc/String.html DELETED
@@ -1,562 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- <title>
7
- Class: String
8
-
9
- &mdash; Documentation by YARD 0.8.7.4
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- hasFrames = window.top.frames.main ? true : false;
19
- relpath = '';
20
- framesUrl = "frames.html#!String.html";
21
- </script>
22
-
23
-
24
- <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
25
-
26
- <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
27
-
28
-
29
- </head>
30
- <body>
31
- <div id="header">
32
- <div id="menu">
33
-
34
- <a href="_index.html">Index (S)</a> &raquo;
35
-
36
-
37
- <span class="title">String</span>
38
-
39
-
40
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
- </div>
42
-
43
- <div id="search">
44
-
45
- <a class="full_list_link" id="class_list_link"
46
- href="class_list.html">
47
- Class List
48
- </a>
49
-
50
- <a class="full_list_link" id="method_list_link"
51
- href="method_list.html">
52
- Method List
53
- </a>
54
-
55
- <a class="full_list_link" id="file_list_link"
56
- href="file_list.html">
57
- File List
58
- </a>
59
-
60
- </div>
61
- <div class="clear"></div>
62
- </div>
63
-
64
- <iframe id="search_frame"></iframe>
65
-
66
- <div id="content"><h1>Class: String
67
-
68
-
69
-
70
- </h1>
71
-
72
- <dl class="box">
73
-
74
- <dt class="r1">Inherits:</dt>
75
- <dd class="r1">
76
- <span class="inheritName">Object</span>
77
-
78
- <ul class="fullTree">
79
- <li>Object</li>
80
-
81
- <li class="next">String</li>
82
-
83
- </ul>
84
- <a href="#" class="inheritanceTree">show all</a>
85
-
86
- </dd>
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
- <dt class="r2 last">Defined in:</dt>
97
- <dd class="r2 last">lib/cliutils/ext/String+Extensions.rb</dd>
98
-
99
- </dl>
100
- <div class="clear"></div>
101
-
102
- <h2>Overview</h2><div class="docstring">
103
- <div class="discussion">
104
-
105
- <h6 id="label-"></h6>
106
-
107
- <pre class="code ruby"><code class="ruby">String Class
108
- ======================================================</code></pre>
109
-
110
-
111
- </div>
112
- </div>
113
- <div class="tags">
114
-
115
-
116
- </div>
117
-
118
-
119
-
120
-
121
-
122
-
123
-
124
- <h2>
125
- Instance Method Summary
126
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
127
- </h2>
128
-
129
- <ul class="summary">
130
-
131
- <li class="public ">
132
- <span class="summary_signature">
133
-
134
- <a href="#blue-instance_method" title="#blue (instance method)">- (Object) <strong>blue</strong> </a>
135
-
136
-
137
-
138
- </span>
139
-
140
-
141
-
142
-
143
-
144
-
145
-
146
-
147
-
148
- <span class="summary_desc"><div class='inline'></div></span>
149
-
150
- </li>
151
-
152
-
153
- <li class="public ">
154
- <span class="summary_signature">
155
-
156
- <a href="#colorize-instance_method" title="#colorize (instance method)">- (Object) <strong>colorize</strong>(color_code) </a>
157
-
158
-
159
-
160
- </span>
161
-
162
-
163
-
164
-
165
-
166
-
167
-
168
-
169
-
170
- <span class="summary_desc"><div class='inline'>
171
- <h6 id="label-Color+String+Methods++%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D++----------------------------------------------------++colorize+method.">Color String Methods ==================================================== —————————————————- colorize method.</h6>
172
- </div></span>
173
-
174
- </li>
175
-
176
-
177
- <li class="public ">
178
- <span class="summary_signature">
179
-
180
- <a href="#cyan-instance_method" title="#cyan (instance method)">- (Object) <strong>cyan</strong> </a>
181
-
182
-
183
-
184
- </span>
185
-
186
-
187
-
188
-
189
-
190
-
191
-
192
-
193
-
194
- <span class="summary_desc"><div class='inline'></div></span>
195
-
196
- </li>
197
-
198
-
199
- <li class="public ">
200
- <span class="summary_signature">
201
-
202
- <a href="#green-instance_method" title="#green (instance method)">- (Object) <strong>green</strong> </a>
203
-
204
-
205
-
206
- </span>
207
-
208
-
209
-
210
-
211
-
212
-
213
-
214
-
215
-
216
- <span class="summary_desc"><div class='inline'></div></span>
217
-
218
- </li>
219
-
220
-
221
- <li class="public ">
222
- <span class="summary_signature">
223
-
224
- <a href="#purple-instance_method" title="#purple (instance method)">- (Object) <strong>purple</strong> </a>
225
-
226
-
227
-
228
- </span>
229
-
230
-
231
-
232
-
233
-
234
-
235
-
236
-
237
-
238
- <span class="summary_desc"><div class='inline'></div></span>
239
-
240
- </li>
241
-
242
-
243
- <li class="public ">
244
- <span class="summary_signature">
245
-
246
- <a href="#red-instance_method" title="#red (instance method)">- (Object) <strong>red</strong> </a>
247
-
248
-
249
-
250
- </span>
251
-
252
-
253
-
254
-
255
-
256
-
257
-
258
-
259
-
260
- <span class="summary_desc"><div class='inline'></div></span>
261
-
262
- </li>
263
-
264
-
265
- <li class="public ">
266
- <span class="summary_signature">
267
-
268
- <a href="#white-instance_method" title="#white (instance method)">- (Object) <strong>white</strong> </a>
269
-
270
-
271
-
272
- </span>
273
-
274
-
275
-
276
-
277
-
278
-
279
-
280
-
281
-
282
- <span class="summary_desc"><div class='inline'></div></span>
283
-
284
- </li>
285
-
286
-
287
- <li class="public ">
288
- <span class="summary_signature">
289
-
290
- <a href="#yellow-instance_method" title="#yellow (instance method)">- (Object) <strong>yellow</strong> </a>
291
-
292
-
293
-
294
- </span>
295
-
296
-
297
-
298
-
299
-
300
-
301
-
302
-
303
-
304
- <span class="summary_desc"><div class='inline'></div></span>
305
-
306
- </li>
307
-
308
-
309
- </ul>
310
-
311
-
312
-
313
-
314
- <div id="instance_method_details" class="method_details_list">
315
- <h2>Instance Method Details</h2>
316
-
317
-
318
- <div class="method_details first">
319
- <h3 class="signature first" id="blue-instance_method">
320
-
321
- - (<tt>Object</tt>) <strong>blue</strong>
322
-
323
-
324
-
325
-
326
-
327
- </h3><table class="source_code">
328
- <tr>
329
- <td>
330
- <pre class="lines">
331
-
332
-
333
- 19</pre>
334
- </td>
335
- <td>
336
- <pre class="code"><span class="info file"># File 'lib/cliutils/ext/String+Extensions.rb', line 19</span>
337
-
338
- <span class='kw'>def</span> <span class='id identifier rubyid_blue'>blue</span><span class='semicolon'>;</span> <span class='id identifier rubyid_colorize'>colorize</span><span class='lparen'>(</span><span class='int'>34</span><span class='rparen'>)</span> <span class='kw'>end</span></pre>
339
- </td>
340
- </tr>
341
- </table>
342
- </div>
343
-
344
- <div class="method_details ">
345
- <h3 class="signature " id="colorize-instance_method">
346
-
347
- - (<tt>Object</tt>) <strong>colorize</strong>(color_code)
348
-
349
-
350
-
351
-
352
-
353
- </h3><div class="docstring">
354
- <div class="discussion">
355
-
356
- <h6 id="label-"></h6>
357
-
358
- <pre class="code ruby"><code class="ruby">Color String Methods
359
- ====================================================
360
- ----------------------------------------------------
361
- colorize method
362
-
363
- Outputs a string in a formatted color.
364
- @param color_code The code to use
365
- @return Void
366
- ----------------------------------------------------</code></pre>
367
-
368
-
369
- </div>
370
- </div>
371
- <div class="tags">
372
-
373
-
374
- </div><table class="source_code">
375
- <tr>
376
- <td>
377
- <pre class="lines">
378
-
379
-
380
- 15
381
- 16
382
- 17</pre>
383
- </td>
384
- <td>
385
- <pre class="code"><span class="info file"># File 'lib/cliutils/ext/String+Extensions.rb', line 15</span>
386
-
387
- <span class='kw'>def</span> <span class='id identifier rubyid_colorize'>colorize</span><span class='lparen'>(</span><span class='id identifier rubyid_color_code'>color_code</span><span class='rparen'>)</span>
388
- <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\033[</span><span class='embexpr_beg'>#{</span> <span class='id identifier rubyid_color_code'>color_code</span> <span class='embexpr_end'>}</span><span class='tstring_content'>m</span><span class='embexpr_beg'>#{</span> <span class='kw'>self</span> <span class='embexpr_end'>}</span><span class='tstring_content'>\033[0m</span><span class='tstring_end'>&quot;</span></span>
389
- <span class='kw'>end</span></pre>
390
- </td>
391
- </tr>
392
- </table>
393
- </div>
394
-
395
- <div class="method_details ">
396
- <h3 class="signature " id="cyan-instance_method">
397
-
398
- - (<tt>Object</tt>) <strong>cyan</strong>
399
-
400
-
401
-
402
-
403
-
404
- </h3><table class="source_code">
405
- <tr>
406
- <td>
407
- <pre class="lines">
408
-
409
-
410
- 20</pre>
411
- </td>
412
- <td>
413
- <pre class="code"><span class="info file"># File 'lib/cliutils/ext/String+Extensions.rb', line 20</span>
414
-
415
- <span class='kw'>def</span> <span class='id identifier rubyid_cyan'>cyan</span><span class='semicolon'>;</span> <span class='id identifier rubyid_colorize'>colorize</span><span class='lparen'>(</span><span class='int'>36</span><span class='rparen'>)</span> <span class='kw'>end</span></pre>
416
- </td>
417
- </tr>
418
- </table>
419
- </div>
420
-
421
- <div class="method_details ">
422
- <h3 class="signature " id="green-instance_method">
423
-
424
- - (<tt>Object</tt>) <strong>green</strong>
425
-
426
-
427
-
428
-
429
-
430
- </h3><table class="source_code">
431
- <tr>
432
- <td>
433
- <pre class="lines">
434
-
435
-
436
- 21</pre>
437
- </td>
438
- <td>
439
- <pre class="code"><span class="info file"># File 'lib/cliutils/ext/String+Extensions.rb', line 21</span>
440
-
441
- <span class='kw'>def</span> <span class='id identifier rubyid_green'>green</span><span class='semicolon'>;</span> <span class='id identifier rubyid_colorize'>colorize</span><span class='lparen'>(</span><span class='int'>32</span><span class='rparen'>)</span> <span class='kw'>end</span></pre>
442
- </td>
443
- </tr>
444
- </table>
445
- </div>
446
-
447
- <div class="method_details ">
448
- <h3 class="signature " id="purple-instance_method">
449
-
450
- - (<tt>Object</tt>) <strong>purple</strong>
451
-
452
-
453
-
454
-
455
-
456
- </h3><table class="source_code">
457
- <tr>
458
- <td>
459
- <pre class="lines">
460
-
461
-
462
- 22</pre>
463
- </td>
464
- <td>
465
- <pre class="code"><span class="info file"># File 'lib/cliutils/ext/String+Extensions.rb', line 22</span>
466
-
467
- <span class='kw'>def</span> <span class='id identifier rubyid_purple'>purple</span><span class='semicolon'>;</span> <span class='id identifier rubyid_colorize'>colorize</span><span class='lparen'>(</span><span class='int'>35</span><span class='rparen'>)</span> <span class='kw'>end</span></pre>
468
- </td>
469
- </tr>
470
- </table>
471
- </div>
472
-
473
- <div class="method_details ">
474
- <h3 class="signature " id="red-instance_method">
475
-
476
- - (<tt>Object</tt>) <strong>red</strong>
477
-
478
-
479
-
480
-
481
-
482
- </h3><table class="source_code">
483
- <tr>
484
- <td>
485
- <pre class="lines">
486
-
487
-
488
- 23</pre>
489
- </td>
490
- <td>
491
- <pre class="code"><span class="info file"># File 'lib/cliutils/ext/String+Extensions.rb', line 23</span>
492
-
493
- <span class='kw'>def</span> <span class='id identifier rubyid_red'>red</span><span class='semicolon'>;</span> <span class='id identifier rubyid_colorize'>colorize</span><span class='lparen'>(</span><span class='int'>31</span><span class='rparen'>)</span> <span class='kw'>end</span></pre>
494
- </td>
495
- </tr>
496
- </table>
497
- </div>
498
-
499
- <div class="method_details ">
500
- <h3 class="signature " id="white-instance_method">
501
-
502
- - (<tt>Object</tt>) <strong>white</strong>
503
-
504
-
505
-
506
-
507
-
508
- </h3><table class="source_code">
509
- <tr>
510
- <td>
511
- <pre class="lines">
512
-
513
-
514
- 24</pre>
515
- </td>
516
- <td>
517
- <pre class="code"><span class="info file"># File 'lib/cliutils/ext/String+Extensions.rb', line 24</span>
518
-
519
- <span class='kw'>def</span> <span class='id identifier rubyid_white'>white</span><span class='semicolon'>;</span> <span class='id identifier rubyid_colorize'>colorize</span><span class='lparen'>(</span><span class='int'>37</span><span class='rparen'>)</span> <span class='kw'>end</span></pre>
520
- </td>
521
- </tr>
522
- </table>
523
- </div>
524
-
525
- <div class="method_details ">
526
- <h3 class="signature " id="yellow-instance_method">
527
-
528
- - (<tt>Object</tt>) <strong>yellow</strong>
529
-
530
-
531
-
532
-
533
-
534
- </h3><table class="source_code">
535
- <tr>
536
- <td>
537
- <pre class="lines">
538
-
539
-
540
- 25</pre>
541
- </td>
542
- <td>
543
- <pre class="code"><span class="info file"># File 'lib/cliutils/ext/String+Extensions.rb', line 25</span>
544
-
545
- <span class='kw'>def</span> <span class='id identifier rubyid_yellow'>yellow</span><span class='semicolon'>;</span> <span class='id identifier rubyid_colorize'>colorize</span><span class='lparen'>(</span><span class='int'>33</span><span class='rparen'>)</span> <span class='kw'>end</span></pre>
546
- </td>
547
- </tr>
548
- </table>
549
- </div>
550
-
551
- </div>
552
-
553
- </div>
554
-
555
- <div id="footer">
556
- Generated on Sat Mar 29 17:22:04 2014 by
557
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
558
- 0.8.7.4 (ruby-2.1.0).
559
- </div>
560
-
561
- </body>
562
- </html>