bovem 2.4.1 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -1
  3. data/Gemfile +1 -1
  4. data/README.md +98 -2
  5. data/bovem.gemspec +3 -3
  6. data/doc/Bovem.html +25 -6
  7. data/doc/Bovem/Application.html +3057 -0
  8. data/doc/Bovem/Command.html +7031 -0
  9. data/doc/Bovem/CommandMethods.html +125 -0
  10. data/doc/Bovem/CommandMethods/Children.html +1285 -0
  11. data/doc/Bovem/CommandMethods/Help.html +209 -0
  12. data/doc/Bovem/Configuration.html +3 -3
  13. data/doc/Bovem/Console.html +8 -8
  14. data/doc/Bovem/ConsoleMethods.html +3 -3
  15. data/doc/Bovem/ConsoleMethods/Interactions.html +3 -3
  16. data/doc/Bovem/ConsoleMethods/Interactions/ClassMethods.html +3 -3
  17. data/doc/Bovem/ConsoleMethods/Logging.html +4 -4
  18. data/doc/Bovem/ConsoleMethods/Logging/ClassMethods.html +3 -3
  19. data/doc/Bovem/ConsoleMethods/Output.html +3 -3
  20. data/doc/Bovem/ConsoleMethods/StyleHandling.html +4 -4
  21. data/doc/Bovem/ConsoleMethods/StyleHandling/ClassMethods.html +8 -8
  22. data/doc/Bovem/Errors.html +4 -4
  23. data/doc/Bovem/Errors/Error.html +631 -0
  24. data/doc/Bovem/Errors/InvalidConfiguration.html +3 -3
  25. data/doc/Bovem/Errors/InvalidLogger.html +3 -3
  26. data/doc/Bovem/Localizer.html +376 -0
  27. data/doc/Bovem/Logger.html +64 -160
  28. data/doc/Bovem/Option.html +7009 -0
  29. data/doc/Bovem/Parser.html +276 -0
  30. data/doc/Bovem/ParserMethods.html +125 -0
  31. data/doc/Bovem/ParserMethods/General.html +134 -0
  32. data/doc/Bovem/ParserMethods/General/ClassMethods.html +574 -0
  33. data/doc/Bovem/Shell.html +8 -8
  34. data/doc/Bovem/ShellMethods.html +3 -3
  35. data/doc/Bovem/ShellMethods/Directories.html +3 -3
  36. data/doc/Bovem/ShellMethods/Execute.html +3 -3
  37. data/doc/Bovem/ShellMethods/General.html +3 -3
  38. data/doc/Bovem/ShellMethods/Read.html +3 -3
  39. data/doc/Bovem/ShellMethods/Write.html +3 -3
  40. data/doc/Bovem/Version.html +6 -6
  41. data/doc/_index.html +119 -11
  42. data/doc/class_list.html +1 -1
  43. data/doc/file.README.html +98 -5
  44. data/doc/frames.html +1 -1
  45. data/doc/index.html +98 -5
  46. data/doc/method_list.html +476 -26
  47. data/doc/top-level-namespace.html +3 -3
  48. data/lib/bovem.rb +8 -1
  49. data/lib/bovem/application.rb +158 -0
  50. data/lib/bovem/command.rb +529 -0
  51. data/lib/bovem/console.rb +8 -8
  52. data/lib/bovem/errors.rb +27 -0
  53. data/lib/bovem/localizer.rb +27 -0
  54. data/lib/bovem/logger.rb +2 -8
  55. data/lib/bovem/option.rb +250 -0
  56. data/lib/bovem/parser.rb +317 -0
  57. data/lib/bovem/shell.rb +2 -2
  58. data/lib/bovem/version.rb +3 -3
  59. data/locales/en.yml +33 -0
  60. data/locales/it.yml +33 -0
  61. data/spec/bovem/application_spec.rb +170 -0
  62. data/spec/bovem/command_spec.rb +526 -0
  63. data/spec/bovem/configuration_spec.rb +4 -4
  64. data/spec/bovem/console_spec.rb +22 -22
  65. data/spec/bovem/errors_spec.rb +18 -0
  66. data/spec/bovem/logger_spec.rb +22 -12
  67. data/spec/bovem/option_spec.rb +307 -0
  68. data/spec/bovem/parser_spec.rb +126 -0
  69. data/spec/bovem/shell_spec.rb +4 -4
  70. metadata +32 -5
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Exception: Bovem::Errors::InvalidConfiguration
8
8
 
9
- &mdash; Documentation by YARD 0.8.6.2
9
+ &mdash; Documentation by YARD 0.8.7
10
10
 
11
11
  </title>
12
12
 
@@ -124,9 +124,9 @@
124
124
  </div>
125
125
 
126
126
  <div id="footer">
127
- Generated on Sat Aug 3 12:38:42 2013 by
127
+ Generated on Sat Aug 3 13:50:15 2013 by
128
128
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
129
- 0.8.6.2 (ruby-2.0.0).
129
+ 0.8.7 (ruby-2.0.0).
130
130
  </div>
131
131
 
132
132
  </body>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Exception: Bovem::Errors::InvalidLogger
8
8
 
9
- &mdash; Documentation by YARD 0.8.6.2
9
+ &mdash; Documentation by YARD 0.8.7
10
10
 
11
11
  </title>
12
12
 
@@ -124,9 +124,9 @@
124
124
  </div>
125
125
 
126
126
  <div id="footer">
127
- Generated on Sat Aug 3 12:38:42 2013 by
127
+ Generated on Sat Aug 3 13:50:15 2013 by
128
128
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
129
- 0.8.6.2 (ruby-2.0.0).
129
+ 0.8.7 (ruby-2.0.0).
130
130
  </div>
131
131
 
132
132
  </body>
@@ -0,0 +1,376 @@
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: Bovem::Localizer
8
+
9
+ &mdash; Documentation by YARD 0.8.7
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#!" + escape(window.location.href);
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 (L)</a> &raquo;
35
+ <span class='title'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span>
36
+ &raquo;
37
+ <span class="title">Localizer</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: Bovem::Localizer
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">Lazier::Localizer</span>
77
+
78
+ <ul class="fullTree">
79
+ <li>Object</li>
80
+
81
+ <li class="next">Lazier::Localizer</li>
82
+
83
+ <li class="next">Bovem::Localizer</li>
84
+
85
+ </ul>
86
+ <a href="#" class="inheritanceTree">show all</a>
87
+
88
+ </dd>
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+ <dt class="r2 last">Defined in:</dt>
99
+ <dd class="r2 last">lib/bovem/localizer.rb</dd>
100
+
101
+ </dl>
102
+ <div class="clear"></div>
103
+
104
+ <h2>Overview</h2><div class="docstring">
105
+ <div class="discussion">
106
+ <p>This class is used to localize strings inside classes methods.</p>
107
+
108
+
109
+ </div>
110
+ </div>
111
+ <div class="tags">
112
+
113
+
114
+ </div>
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+ <h2>
123
+ Class Method Summary
124
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
125
+ </h2>
126
+
127
+ <ul class="summary">
128
+
129
+ <li class="public ">
130
+ <span class="summary_signature">
131
+
132
+ <a href="#localize_on_locale-class_method" title="localize_on_locale (class method)">+ (String|R18n::Untranslated) <strong>localize_on_locale</strong>(locale, message, *args) </a>
133
+
134
+
135
+
136
+ </span>
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+ <span class="summary_desc"><div class='inline'><p>Localize a message in a specified locale.</p>
147
+ </div></span>
148
+
149
+ </li>
150
+
151
+
152
+ </ul>
153
+
154
+ <h2>
155
+ Instance Method Summary
156
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
157
+ </h2>
158
+
159
+ <ul class="summary">
160
+
161
+ <li class="public ">
162
+ <span class="summary_signature">
163
+
164
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (Localizer) <strong>initialize</strong>(locale) </a>
165
+
166
+
167
+
168
+ </span>
169
+
170
+
171
+ <span class="note title constructor">constructor</span>
172
+
173
+
174
+
175
+
176
+
177
+
178
+
179
+
180
+ <span class="summary_desc"><div class='inline'><p>Initialize a new localizer.</p>
181
+ </div></span>
182
+
183
+ </li>
184
+
185
+
186
+ </ul>
187
+
188
+
189
+
190
+ <div id="constructor_details" class="method_details_list">
191
+ <h2>Constructor Details</h2>
192
+
193
+ <div class="method_details first">
194
+ <h3 class="signature first" id="initialize-instance_method">
195
+
196
+ - (<tt><span class='object_link'><a href="" title="Bovem::Localizer (class)">Localizer</a></span></tt>) <strong>initialize</strong>(locale)
197
+
198
+
199
+
200
+
201
+
202
+ </h3><div class="docstring">
203
+ <div class="discussion">
204
+ <p>Initialize a new localizer.</p>
205
+
206
+
207
+ </div>
208
+ </div>
209
+ <div class="tags">
210
+ <p class="tag_title">Parameters:</p>
211
+ <ul class="param">
212
+
213
+ <li>
214
+
215
+ <span class='name'>locale</span>
216
+
217
+
218
+ <span class='type'>(<tt>String|Symbol</tt>)</span>
219
+
220
+
221
+
222
+ &mdash;
223
+ <div class='inline'><p>The locale to use for localization.</p>
224
+ </div>
225
+
226
+ </li>
227
+
228
+ </ul>
229
+
230
+
231
+ </div><table class="source_code">
232
+ <tr>
233
+ <td>
234
+ <pre class="lines">
235
+
236
+
237
+ 13
238
+ 14
239
+ 15</pre>
240
+ </td>
241
+ <td>
242
+ <pre class="code"><span class="info file"># File 'lib/bovem/localizer.rb', line 13</span>
243
+
244
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_locale'>locale</span><span class='rparen'>)</span>
245
+ <span class='kw'>super</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>bovem.application</span><span class='tstring_end'>&quot;</span></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='comma'>,</span> <span class='id identifier rubyid_locale'>locale</span><span class='rparen'>)</span>
246
+ <span class='kw'>end</span></pre>
247
+ </td>
248
+ </tr>
249
+ </table>
250
+ </div>
251
+
252
+ </div>
253
+
254
+
255
+ <div id="class_method_details" class="method_details_list">
256
+ <h2>Class Method Details</h2>
257
+
258
+
259
+ <div class="method_details first">
260
+ <h3 class="signature first" id="localize_on_locale-class_method">
261
+
262
+ + (<tt>String|R18n::Untranslated</tt>) <strong>localize_on_locale</strong>(locale, message, *args)
263
+
264
+
265
+
266
+
267
+
268
+ </h3><div class="docstring">
269
+ <div class="discussion">
270
+ <p>Localize a message in a specified locale.</p>
271
+
272
+
273
+ </div>
274
+ </div>
275
+ <div class="tags">
276
+ <p class="tag_title">Parameters:</p>
277
+ <ul class="param">
278
+
279
+ <li>
280
+
281
+ <span class='name'>locale</span>
282
+
283
+
284
+ <span class='type'>(<tt>String|Symbol</tt>)</span>
285
+
286
+
287
+
288
+ &mdash;
289
+ <div class='inline'><p>The locale to use for localization.</p>
290
+ </div>
291
+
292
+ </li>
293
+
294
+ <li>
295
+
296
+ <span class='name'>message</span>
297
+
298
+
299
+ <span class='type'>(<tt>String|Symbol</tt>)</span>
300
+
301
+
302
+
303
+ &mdash;
304
+ <div class='inline'><p>The message to localize.</p>
305
+ </div>
306
+
307
+ </li>
308
+
309
+ <li>
310
+
311
+ <span class='name'>args</span>
312
+
313
+
314
+ <span class='type'>(<tt>Array</tt>)</span>
315
+
316
+
317
+
318
+ &mdash;
319
+ <div class='inline'><p>Optional arguments to localize the message.</p>
320
+ </div>
321
+
322
+ </li>
323
+
324
+ </ul>
325
+
326
+ <p class="tag_title">Returns:</p>
327
+ <ul class="return">
328
+
329
+ <li>
330
+
331
+
332
+ <span class='type'>(<tt>String|R18n::Untranslated</tt>)</span>
333
+
334
+
335
+
336
+ &mdash;
337
+ <div class='inline'><p>The localized message.</p>
338
+ </div>
339
+
340
+ </li>
341
+
342
+ </ul>
343
+
344
+ </div><table class="source_code">
345
+ <tr>
346
+ <td>
347
+ <pre class="lines">
348
+
349
+
350
+ 23
351
+ 24
352
+ 25</pre>
353
+ </td>
354
+ <td>
355
+ <pre class="code"><span class="info file"># File 'lib/bovem/localizer.rb', line 23</span>
356
+
357
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_localize_on_locale'>localize_on_locale</span><span class='lparen'>(</span><span class='id identifier rubyid_locale'>locale</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
358
+ <span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_locale'>locale</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_i18n'>i18n</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
359
+ <span class='kw'>end</span></pre>
360
+ </td>
361
+ </tr>
362
+ </table>
363
+ </div>
364
+
365
+ </div>
366
+
367
+ </div>
368
+
369
+ <div id="footer">
370
+ Generated on Sat Aug 3 13:50:16 2013 by
371
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
372
+ 0.8.7 (ruby-2.0.0).
373
+ </div>
374
+
375
+ </body>
376
+ </html>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Bovem::Logger
8
8
 
9
- &mdash; Documentation by YARD 0.8.6.2
9
+ &mdash; Documentation by YARD 0.8.7
10
10
 
11
11
  </title>
12
12
 
@@ -115,37 +115,6 @@
115
115
 
116
116
 
117
117
 
118
- <h2>Class Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
119
- <ul class="summary">
120
-
121
- <li class="public ">
122
- <span class="summary_signature">
123
-
124
- <a href="#start_time-class_method" title="start_time (class method)">+ (Object) <strong>start_time</strong> </a>
125
-
126
-
127
-
128
- </span>
129
-
130
-
131
-
132
-
133
-
134
-
135
-
136
-
137
-
138
-
139
-
140
-
141
- <span class="summary_desc"><div class='inline'><p>Returns the value of attribute start_time.</p>
142
- </div></span>
143
-
144
- </li>
145
-
146
-
147
- </ul>
148
-
149
118
  <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
150
119
  <ul class="summary">
151
120
 
@@ -282,27 +251,16 @@
282
251
  </li>
283
252
 
284
253
 
285
- </ul>
286
-
287
- <h2>
288
- Instance Method Summary
289
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
290
- </h2>
291
-
292
- <ul class="summary">
293
-
294
254
  <li class="public ">
295
255
  <span class="summary_signature">
296
256
 
297
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (Logger) <strong>initialize</strong>(logdev, shift_age = 0, shift_size = 1048576) </a>
257
+ <a href="#start_time-class_method" title="start_time (class method)">+ (Time) <strong>start_time</strong> </a>
298
258
 
299
259
 
300
260
 
301
261
  </span>
302
262
 
303
263
 
304
- <span class="note title constructor">constructor</span>
305
-
306
264
 
307
265
 
308
266
 
@@ -310,22 +268,33 @@
310
268
 
311
269
 
312
270
 
313
- <span class="summary_desc"><div class='inline'><p>Creates a new logger.</p>
271
+ <span class="summary_desc"><div class='inline'><p>The log time of the first logger.</p>
314
272
  </div></span>
315
273
 
316
274
  </li>
317
275
 
318
276
 
277
+ </ul>
278
+
279
+ <h2>
280
+ Instance Method Summary
281
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
282
+ </h2>
283
+
284
+ <ul class="summary">
285
+
319
286
  <li class="public ">
320
287
  <span class="summary_signature">
321
288
 
322
- <a href="#start_time-instance_method" title="#start_time (instance method)">- (Time) <strong>start_time</strong> </a>
289
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (Logger) <strong>initialize</strong>(logdev, shift_age = 0, shift_size = 1048576) </a>
323
290
 
324
291
 
325
292
 
326
293
  </span>
327
294
 
328
295
 
296
+ <span class="note title constructor">constructor</span>
297
+
329
298
 
330
299
 
331
300
 
@@ -333,7 +302,7 @@
333
302
 
334
303
 
335
304
 
336
- <span class="summary_desc"><div class='inline'><p>The log time of the first logger.</p>
305
+ <span class="summary_desc"><div class='inline'><p>Creates a new logger.</p>
337
306
  </div></span>
338
307
 
339
308
  </li>
@@ -431,13 +400,13 @@
431
400
  <pre class="lines">
432
401
 
433
402
 
434
- 28
435
- 29
436
- 30
437
- 31</pre>
403
+ 22
404
+ 23
405
+ 24
406
+ 25</pre>
438
407
  </td>
439
408
  <td>
440
- <pre class="code"><span class="info file"># File 'lib/bovem/logger.rb', line 28</span>
409
+ <pre class="code"><span class="info file"># File 'lib/bovem/logger.rb', line 22</span>
441
410
 
442
411
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_logdev'>logdev</span><span class='comma'>,</span> <span class='id identifier rubyid_shift_age'>shift_age</span> <span class='op'>=</span> <span class='int'>0</span><span class='comma'>,</span> <span class='id identifier rubyid_shift_size'>shift_size</span> <span class='op'>=</span> <span class='int'>1048576</span><span class='rparen'>)</span>
443
412
  <span class='ivar'>@device</span> <span class='op'>=</span> <span class='id identifier rubyid_logdev'>logdev</span>
@@ -450,53 +419,6 @@
450
419
 
451
420
  </div>
452
421
 
453
- <div id="class_attr_details" class="attr_details">
454
- <h2>Class Attribute Details</h2>
455
-
456
-
457
- <span id="start_time=-class_method"></span>
458
- <div class="method_details first">
459
- <h3 class="signature first" id="start_time-class_method">
460
-
461
- + (<tt>Object</tt>) <strong>start_time</strong>
462
-
463
-
464
-
465
-
466
-
467
- </h3><div class="docstring">
468
- <div class="discussion">
469
- <p>Returns the value of attribute start_time</p>
470
-
471
-
472
- </div>
473
- </div>
474
- <div class="tags">
475
-
476
-
477
- </div><table class="source_code">
478
- <tr>
479
- <td>
480
- <pre class="lines">
481
-
482
-
483
- 16
484
- 17
485
- 18</pre>
486
- </td>
487
- <td>
488
- <pre class="code"><span class="info file"># File 'lib/bovem/logger.rb', line 16</span>
489
-
490
- <span class='kw'>def</span> <span class='id identifier rubyid_start_time'>start_time</span>
491
- <span class='ivar'>@start_time</span>
492
- <span class='kw'>end</span></pre>
493
- </td>
494
- </tr>
495
- </table>
496
- </div>
497
-
498
- </div>
499
-
500
422
  <div id="instance_attr_details" class="attr_details">
501
423
  <h2>Instance Attribute Details</h2>
502
424
 
@@ -513,7 +435,7 @@
513
435
 
514
436
  </h3><div class="docstring">
515
437
  <div class="discussion">
516
- <p>The file or device to log messages to.</p>
438
+ <p>Returns The file or device to log messages to.</p>
517
439
 
518
440
 
519
441
  </div>
@@ -617,24 +539,12 @@
617
539
  82
618
540
  83
619
541
  84
620
- 85
621
- 86
622
- 87
623
- 88
624
- 89
625
- 90
626
- 91</pre>
542
+ 85</pre>
627
543
  </td>
628
544
  <td>
629
545
  <pre class="code"><span class="info file"># File 'lib/bovem/logger.rb', line 12</span>
630
546
 
631
547
  <span class='kw'>class</span> <span class='const'>Logger</span> <span class='op'>&lt;</span> <span class='op'>::</span><span class='const'>Logger</span>
632
- <span class='comment'># @attribute start_time
633
- </span> <span class='comment'># @return [Time] The start time of first line. This allows to show a `T+0.1234` information into the log.
634
- </span> <span class='kw'>class</span> <span class='op'>&lt;&lt;</span> <span class='kw'>self</span>
635
- <span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:start_time</span>
636
- <span class='kw'>end</span>
637
-
638
548
  <span class='id identifier rubyid_attr_reader'>attr_reader</span> <span class='symbol'>:device</span>
639
549
 
640
550
  <span class='comment'># Creates a new logger.
@@ -697,14 +607,14 @@
697
607
  <span class='kw'>else</span> <span class='symbol'>:white</span>
698
608
  <span class='kw'>end</span>
699
609
 
700
- <span class='id identifier rubyid_header'>header</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_replace_markers'>replace_markers</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>{mark=bright-</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_color'>color</span><span class='embexpr_end'>}</span><span class='tstring_content'>}[%s T+%0.5f] %s:{/mark}</span><span class='tstring_end'>&quot;</span></span> <span class='op'>%</span><span class='lbracket'>[</span><span class='id identifier rubyid_datetime'>datetime</span><span class='period'>.</span><span class='id identifier rubyid_strftime'>strftime</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>%Y/%b/%d %H:%M:%S</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='id identifier rubyid_datetime'>datetime</span><span class='period'>.</span><span class='id identifier rubyid_to_f'>to_f</span> <span class='op'>-</span> <span class='id identifier rubyid_start_time'>start_time</span><span class='period'>.</span><span class='id identifier rubyid_to_f'>to_f</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='comma'>,</span> <span class='id identifier rubyid_severity'>severity</span><span class='period'>.</span><span class='id identifier rubyid_rjust'>rjust</span><span class='lparen'>(</span><span class='int'>5</span><span class='rparen'>)</span><span class='rbracket'>]</span><span class='rparen'>)</span>
610
+ <span class='id identifier rubyid_header'>header</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_replace_markers'>replace_markers</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>{mark=bright-</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_color'>color</span><span class='embexpr_end'>}</span><span class='tstring_content'>}[%s T+%0.5f] %s:{/mark}</span><span class='tstring_end'>&quot;</span></span> <span class='op'>%</span><span class='lbracket'>[</span><span class='id identifier rubyid_datetime'>datetime</span><span class='period'>.</span><span class='id identifier rubyid_strftime'>strftime</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>%Y/%b/%d %H:%M:%S</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='id identifier rubyid_datetime'>datetime</span><span class='period'>.</span><span class='id identifier rubyid_to_f'>to_f</span> <span class='op'>-</span> <span class='id identifier rubyid_start_time'>start_time</span><span class='period'>.</span><span class='id identifier rubyid_to_f'>to_f</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='comma'>,</span> <span class='id identifier rubyid_severity'>severity</span><span class='period'>.</span><span class='id identifier rubyid_rjust'>rjust</span><span class='lparen'>(</span><span class='int'>5</span><span class='rparen'>)</span><span class='rbracket'>]</span><span class='rparen'>)</span>
701
611
  <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>%s %s\n</span><span class='tstring_end'>&quot;</span></span> <span class='op'>%</span> <span class='lbracket'>[</span><span class='id identifier rubyid_header'>header</span><span class='comma'>,</span> <span class='id identifier rubyid_msg'>msg</span><span class='rbracket'>]</span>
702
612
  <span class='rbrace'>}</span>
703
613
  <span class='kw'>end</span>
704
614
 
705
615
  <span class='comment'># The log time of the first logger. This allows to show a `T+0.1234` information into the log.
706
616
  </span> <span class='comment'># @return [Time] The log time of the first logger.
707
- </span> <span class='kw'>def</span> <span class='id identifier rubyid_start_time'>start_time</span>
617
+ </span> <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_start_time'>start_time</span>
708
618
  <span class='ivar'>@start_time</span> <span class='op'>||=</span> <span class='op'>::</span><span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span>
709
619
  <span class='kw'>end</span>
710
620
  <span class='kw'>end</span></pre>
@@ -817,19 +727,19 @@
817
727
  <pre class="lines">
818
728
 
819
729
 
730
+ 33
731
+ 34
732
+ 35
733
+ 36
734
+ 37
735
+ 38
820
736
  39
821
737
  40
822
738
  41
823
- 42
824
- 43
825
- 44
826
- 45
827
- 46
828
- 47
829
- 48</pre>
739
+ 42</pre>
830
740
  </td>
831
741
  <td>
832
- <pre class="code"><span class="info file"># File 'lib/bovem/logger.rb', line 39</span>
742
+ <pre class="code"><span class="info file"># File 'lib/bovem/logger.rb', line 33</span>
833
743
 
834
744
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span><span class='id identifier rubyid_file'>file</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_level'>level</span> <span class='op'>=</span> <span class='const'>Logger</span><span class='op'>::</span><span class='const'>INFO</span><span class='comma'>,</span> <span class='id identifier rubyid_formatter'>formatter</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
835
745
  <span class='kw'>begin</span>
@@ -888,12 +798,12 @@
888
798
  <pre class="lines">
889
799
 
890
800
 
891
- 64
892
- 65
893
- 66</pre>
801
+ 58
802
+ 59
803
+ 60</pre>
894
804
  </td>
895
805
  <td>
896
- <pre class="code"><span class="info file"># File 'lib/bovem/logger.rb', line 64</span>
806
+ <pre class="code"><span class="info file"># File 'lib/bovem/logger.rb', line 58</span>
897
807
 
898
808
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_default_file'>default_file</span>
899
809
  <span class='ivar'>@default_file</span> <span class='op'>||=</span> <span class='gvar'>$stdout</span>
@@ -945,6 +855,12 @@
945
855
  <pre class="lines">
946
856
 
947
857
 
858
+ 64
859
+ 65
860
+ 66
861
+ 67
862
+ 68
863
+ 69
948
864
  70
949
865
  71
950
866
  72
@@ -953,16 +869,10 @@
953
869
  75
954
870
  76
955
871
  77
956
- 78
957
- 79
958
- 80
959
- 81
960
- 82
961
- 83
962
- 84</pre>
872
+ 78</pre>
963
873
  </td>
964
874
  <td>
965
- <pre class="code"><span class="info file"># File 'lib/bovem/logger.rb', line 70</span>
875
+ <pre class="code"><span class="info file"># File 'lib/bovem/logger.rb', line 64</span>
966
876
 
967
877
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_default_formatter'>default_formatter</span>
968
878
  <span class='ivar'>@default_formatter</span> <span class='op'>||=</span> <span class='op'>::</span><span class='const'>Proc</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_severity'>severity</span><span class='comma'>,</span> <span class='id identifier rubyid_datetime'>datetime</span><span class='comma'>,</span> <span class='id identifier rubyid__'>_</span><span class='comma'>,</span> <span class='id identifier rubyid_msg'>msg</span><span class='op'>|</span>
@@ -975,7 +885,7 @@
975
885
  <span class='kw'>else</span> <span class='symbol'>:white</span>
976
886
  <span class='kw'>end</span>
977
887
 
978
- <span class='id identifier rubyid_header'>header</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_replace_markers'>replace_markers</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>{mark=bright-</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_color'>color</span><span class='embexpr_end'>}</span><span class='tstring_content'>}[%s T+%0.5f] %s:{/mark}</span><span class='tstring_end'>&quot;</span></span> <span class='op'>%</span><span class='lbracket'>[</span><span class='id identifier rubyid_datetime'>datetime</span><span class='period'>.</span><span class='id identifier rubyid_strftime'>strftime</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>%Y/%b/%d %H:%M:%S</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='id identifier rubyid_datetime'>datetime</span><span class='period'>.</span><span class='id identifier rubyid_to_f'>to_f</span> <span class='op'>-</span> <span class='id identifier rubyid_start_time'>start_time</span><span class='period'>.</span><span class='id identifier rubyid_to_f'>to_f</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='comma'>,</span> <span class='id identifier rubyid_severity'>severity</span><span class='period'>.</span><span class='id identifier rubyid_rjust'>rjust</span><span class='lparen'>(</span><span class='int'>5</span><span class='rparen'>)</span><span class='rbracket'>]</span><span class='rparen'>)</span>
888
+ <span class='id identifier rubyid_header'>header</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_replace_markers'>replace_markers</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>{mark=bright-</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_color'>color</span><span class='embexpr_end'>}</span><span class='tstring_content'>}[%s T+%0.5f] %s:{/mark}</span><span class='tstring_end'>&quot;</span></span> <span class='op'>%</span><span class='lbracket'>[</span><span class='id identifier rubyid_datetime'>datetime</span><span class='period'>.</span><span class='id identifier rubyid_strftime'>strftime</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>%Y/%b/%d %H:%M:%S</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='id identifier rubyid_datetime'>datetime</span><span class='period'>.</span><span class='id identifier rubyid_to_f'>to_f</span> <span class='op'>-</span> <span class='id identifier rubyid_start_time'>start_time</span><span class='period'>.</span><span class='id identifier rubyid_to_f'>to_f</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='comma'>,</span> <span class='id identifier rubyid_severity'>severity</span><span class='period'>.</span><span class='id identifier rubyid_rjust'>rjust</span><span class='lparen'>(</span><span class='int'>5</span><span class='rparen'>)</span><span class='rbracket'>]</span><span class='rparen'>)</span>
979
889
  <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>%s %s\n</span><span class='tstring_end'>&quot;</span></span> <span class='op'>%</span> <span class='lbracket'>[</span><span class='id identifier rubyid_header'>header</span><span class='comma'>,</span> <span class='id identifier rubyid_msg'>msg</span><span class='rbracket'>]</span>
980
890
  <span class='rbrace'>}</span>
981
891
  <span class='kw'>end</span></pre>
@@ -1045,16 +955,16 @@
1045
955
  <pre class="lines">
1046
956
 
1047
957
 
1048
- 54
1049
- 55
1050
- 56
1051
- 57
1052
- 58
1053
- 59
1054
- 60</pre>
958
+ 48
959
+ 49
960
+ 50
961
+ 51
962
+ 52
963
+ 53
964
+ 54</pre>
1055
965
  </td>
1056
966
  <td>
1057
- <pre class="code"><span class="info file"># File 'lib/bovem/logger.rb', line 54</span>
967
+ <pre class="code"><span class="info file"># File 'lib/bovem/logger.rb', line 48</span>
1058
968
 
1059
969
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_get_real_file'>get_real_file</span><span class='lparen'>(</span><span class='id identifier rubyid_file'>file</span><span class='rparen'>)</span>
1060
970
  <span class='kw'>case</span> <span class='id identifier rubyid_file'>file</span>
@@ -1068,16 +978,10 @@
1068
978
  </table>
1069
979
  </div>
1070
980
 
1071
- </div>
1072
-
1073
- <div id="instance_method_details" class="method_details_list">
1074
- <h2>Instance Method Details</h2>
1075
-
1076
-
1077
- <div class="method_details first">
1078
- <h3 class="signature first" id="start_time-instance_method">
981
+ <div class="method_details ">
982
+ <h3 class="signature " id="start_time-class_method">
1079
983
 
1080
- - (<tt>Time</tt>) <strong>start_time</strong>
984
+ + (<tt>Time</tt>) <strong>start_time</strong>
1081
985
 
1082
986
 
1083
987
 
@@ -1116,14 +1020,14 @@
1116
1020
  <pre class="lines">
1117
1021
 
1118
1022
 
1119
- 88
1120
- 89
1121
- 90</pre>
1023
+ 82
1024
+ 83
1025
+ 84</pre>
1122
1026
  </td>
1123
1027
  <td>
1124
- <pre class="code"><span class="info file"># File 'lib/bovem/logger.rb', line 88</span>
1028
+ <pre class="code"><span class="info file"># File 'lib/bovem/logger.rb', line 82</span>
1125
1029
 
1126
- <span class='kw'>def</span> <span class='id identifier rubyid_start_time'>start_time</span>
1030
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_start_time'>start_time</span>
1127
1031
  <span class='ivar'>@start_time</span> <span class='op'>||=</span> <span class='op'>::</span><span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span>
1128
1032
  <span class='kw'>end</span></pre>
1129
1033
  </td>
@@ -1136,9 +1040,9 @@
1136
1040
  </div>
1137
1041
 
1138
1042
  <div id="footer">
1139
- Generated on Sat Aug 3 12:38:43 2013 by
1043
+ Generated on Sat Aug 3 13:50:16 2013 by
1140
1044
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1141
- 0.8.6.2 (ruby-2.0.0).
1045
+ 0.8.7 (ruby-2.0.0).
1142
1046
  </div>
1143
1047
 
1144
1048
  </body>