bovem 2.4.0 → 2.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/doc/Bovem.html +2 -2
- data/doc/Bovem/Configuration.html +6 -6
- data/doc/Bovem/Console.html +44 -44
- data/doc/Bovem/ConsoleMethods.html +2 -2
- data/doc/Bovem/ConsoleMethods/Interactions.html +24 -24
- data/doc/Bovem/ConsoleMethods/Interactions/ClassMethods.html +7 -7
- data/doc/Bovem/ConsoleMethods/Logging.html +62 -62
- data/doc/Bovem/ConsoleMethods/Logging/ClassMethods.html +6 -6
- data/doc/Bovem/ConsoleMethods/Output.html +122 -6
- data/doc/Bovem/ConsoleMethods/StyleHandling.html +2 -2
- data/doc/Bovem/ConsoleMethods/StyleHandling/ClassMethods.html +3 -3
- data/doc/Bovem/Errors.html +2 -2
- data/doc/Bovem/Errors/InvalidConfiguration.html +2 -2
- data/doc/Bovem/Errors/InvalidLogger.html +2 -2
- data/doc/Bovem/Logger.html +4 -4
- data/doc/Bovem/Shell.html +2 -2
- data/doc/Bovem/ShellMethods.html +2 -2
- data/doc/Bovem/ShellMethods/Directories.html +2 -2
- data/doc/Bovem/ShellMethods/Execute.html +2 -2
- data/doc/Bovem/ShellMethods/General.html +2 -2
- data/doc/Bovem/ShellMethods/Read.html +2 -2
- data/doc/Bovem/ShellMethods/Write.html +2 -2
- data/doc/Bovem/Version.html +3 -3
- data/doc/_index.html +2 -2
- data/doc/file.README.html +6 -6
- data/doc/index.html +6 -6
- data/doc/method_list.html +49 -43
- data/doc/top-level-namespace.html +2 -2
- data/lib/bovem/console.rb +10 -1
- data/lib/bovem/version.rb +1 -1
- data/spec/bovem/console_spec.rb +7 -0
- data/spec/coverage_helper.rb +2 -2
- metadata +7 -16
data/doc/index.html
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
3
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
4
|
<head>
|
5
|
-
<meta http-equiv="Content-Type" content="text/html; charset=
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
6
6
|
<title>
|
7
7
|
File: README
|
8
8
|
|
@@ -84,12 +84,12 @@
|
|
84
84
|
<h2 id="contributing-to-bovem">Contributing to bovem</h2>
|
85
85
|
|
86
86
|
<ul>
|
87
|
-
<li>Check out the latest master to make sure the feature hasn
|
88
|
-
<li>Check out the issue tracker to make sure someone already hasn
|
87
|
+
<li>Check out the latest master to make sure the feature hasn’t been implemented or the bug hasn’t been fixed yet.</li>
|
88
|
+
<li>Check out the issue tracker to make sure someone already hasn’t requested it and/or contributed it.</li>
|
89
89
|
<li>Fork the project.</li>
|
90
90
|
<li>Start a feature/bugfix branch.</li>
|
91
91
|
<li>Commit and push until you are happy with your contribution.</li>
|
92
|
-
<li>Make sure to add tests for it. This is important so I don
|
92
|
+
<li>Make sure to add tests for it. This is important so I don’t break it in a future version unintentionally.</li>
|
93
93
|
<li>Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.</li>
|
94
94
|
</ul>
|
95
95
|
|
@@ -101,9 +101,9 @@
|
|
101
101
|
</div></div>
|
102
102
|
|
103
103
|
<div id="footer">
|
104
|
-
Generated on Sat
|
104
|
+
Generated on Sat Aug 3 12:38:42 2013 by
|
105
105
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
106
|
-
0.8.6.2 (ruby-
|
106
|
+
0.8.6.2 (ruby-2.0.0).
|
107
107
|
</div>
|
108
108
|
|
109
109
|
</body>
|
data/doc/method_list.html
CHANGED
@@ -120,264 +120,270 @@
|
|
120
120
|
|
121
121
|
|
122
122
|
<li class="r1 ">
|
123
|
+
<span class='object_link'><a href="Bovem/ConsoleMethods/Output.html#emphasize-instance_method" title="Bovem::ConsoleMethods::Output#emphasize (method)">#emphasize</a></span>
|
124
|
+
<small>Bovem::ConsoleMethods::Output</small>
|
125
|
+
</li>
|
126
|
+
|
127
|
+
|
128
|
+
<li class="r2 ">
|
123
129
|
<span class='object_link'><a href="Bovem/ConsoleMethods/Logging.html#error-instance_method" title="Bovem::ConsoleMethods::Logging#error (method)">#error</a></span>
|
124
130
|
<small>Bovem::ConsoleMethods::Logging</small>
|
125
131
|
</li>
|
126
132
|
|
127
133
|
|
128
|
-
<li class="
|
134
|
+
<li class="r1 ">
|
129
135
|
<span class='object_link'><a href="Bovem/ConsoleMethods/Interactions/ClassMethods.html#execute-instance_method" title="Bovem::ConsoleMethods::Interactions::ClassMethods#execute (method)">#execute</a></span>
|
130
136
|
<small>Bovem::ConsoleMethods::Interactions::ClassMethods</small>
|
131
137
|
</li>
|
132
138
|
|
133
139
|
|
134
|
-
<li class="
|
140
|
+
<li class="r2 ">
|
135
141
|
<span class='object_link'><a href="Bovem/ConsoleMethods/Logging.html#fatal-instance_method" title="Bovem::ConsoleMethods::Logging#fatal (method)">#fatal</a></span>
|
136
142
|
<small>Bovem::ConsoleMethods::Logging</small>
|
137
143
|
</li>
|
138
144
|
|
139
145
|
|
140
|
-
<li class="
|
146
|
+
<li class="r1 ">
|
141
147
|
<span class='object_link'><a href="Bovem/ShellMethods/Read.html#find-instance_method" title="Bovem::ShellMethods::Read#find (method)">#find</a></span>
|
142
148
|
<small>Bovem::ShellMethods::Read</small>
|
143
149
|
</li>
|
144
150
|
|
145
151
|
|
146
|
-
<li class="
|
152
|
+
<li class="r2 ">
|
147
153
|
<span class='object_link'><a href="Bovem/ConsoleMethods/Output.html#format-instance_method" title="Bovem::ConsoleMethods::Output#format (method)">#format</a></span>
|
148
154
|
<small>Bovem::ConsoleMethods::Output</small>
|
149
155
|
</li>
|
150
156
|
|
151
157
|
|
152
|
-
<li class="
|
158
|
+
<li class="r1 ">
|
153
159
|
<span class='object_link'><a href="Bovem/ConsoleMethods/Output.html#format_right-instance_method" title="Bovem::ConsoleMethods::Output#format_right (method)">#format_right</a></span>
|
154
160
|
<small>Bovem::ConsoleMethods::Output</small>
|
155
161
|
</li>
|
156
162
|
|
157
163
|
|
158
|
-
<li class="
|
164
|
+
<li class="r2 ">
|
159
165
|
<span class='object_link'><a href="Bovem/ConsoleMethods/Logging.html#get_banner-instance_method" title="Bovem::ConsoleMethods::Logging#get_banner (method)">#get_banner</a></span>
|
160
166
|
<small>Bovem::ConsoleMethods::Logging</small>
|
161
167
|
</li>
|
162
168
|
|
163
169
|
|
164
|
-
<li class="
|
170
|
+
<li class="r1 ">
|
165
171
|
<span class='object_link'><a href="Bovem/Logger.html#get_real_file-class_method" title="Bovem::Logger.get_real_file (method)">get_real_file</a></span>
|
166
172
|
<small>Bovem::Logger</small>
|
167
173
|
</li>
|
168
174
|
|
169
175
|
|
170
|
-
<li class="
|
176
|
+
<li class="r2 ">
|
171
177
|
<span class='object_link'><a href="Bovem/ShellMethods/General.html#handle_failure-instance_method" title="Bovem::ShellMethods::General#handle_failure (method)">#handle_failure</a></span>
|
172
178
|
<small>Bovem::ShellMethods::General</small>
|
173
179
|
</li>
|
174
180
|
|
175
181
|
|
176
|
-
<li class="
|
182
|
+
<li class="r1 ">
|
177
183
|
<span class='object_link'><a href="Bovem/ConsoleMethods/Output.html#indent-instance_method" title="Bovem::ConsoleMethods::Output#indent (method)">#indent</a></span>
|
178
184
|
<small>Bovem::ConsoleMethods::Output</small>
|
179
185
|
</li>
|
180
186
|
|
181
187
|
|
182
|
-
<li class="
|
188
|
+
<li class="r2 ">
|
183
189
|
<span class='object_link'><a href="Bovem/Console.html#indentation-instance_method" title="Bovem::Console#indentation (method)">#indentation</a></span>
|
184
190
|
<small>Bovem::Console</small>
|
185
191
|
</li>
|
186
192
|
|
187
193
|
|
188
|
-
<li class="
|
194
|
+
<li class="r1 ">
|
189
195
|
<span class='object_link'><a href="Bovem/Console.html#indentation_string-instance_method" title="Bovem::Console#indentation_string (method)">#indentation_string</a></span>
|
190
196
|
<small>Bovem::Console</small>
|
191
197
|
</li>
|
192
198
|
|
193
199
|
|
194
|
-
<li class="
|
200
|
+
<li class="r2 ">
|
195
201
|
<span class='object_link'><a href="Bovem/ConsoleMethods/Logging.html#info-instance_method" title="Bovem::ConsoleMethods::Logging#info (method)">#info</a></span>
|
196
202
|
<small>Bovem::ConsoleMethods::Logging</small>
|
197
203
|
</li>
|
198
204
|
|
199
205
|
|
200
|
-
<li class="
|
206
|
+
<li class="r1 ">
|
201
207
|
<span class='object_link'><a href="Bovem/Console.html#initialize-instance_method" title="Bovem::Console#initialize (method)">#initialize</a></span>
|
202
208
|
<small>Bovem::Console</small>
|
203
209
|
</li>
|
204
210
|
|
205
211
|
|
206
|
-
<li class="
|
212
|
+
<li class="r2 ">
|
207
213
|
<span class='object_link'><a href="Bovem/Logger.html#initialize-instance_method" title="Bovem::Logger#initialize (method)">#initialize</a></span>
|
208
214
|
<small>Bovem::Logger</small>
|
209
215
|
</li>
|
210
216
|
|
211
217
|
|
212
|
-
<li class="
|
218
|
+
<li class="r1 ">
|
213
219
|
<span class='object_link'><a href="Bovem/Shell.html#initialize-instance_method" title="Bovem::Shell#initialize (method)">#initialize</a></span>
|
214
220
|
<small>Bovem::Shell</small>
|
215
221
|
</li>
|
216
222
|
|
217
223
|
|
218
|
-
<li class="
|
224
|
+
<li class="r2 ">
|
219
225
|
<span class='object_link'><a href="Bovem/Configuration.html#initialize-instance_method" title="Bovem::Configuration#initialize (method)">#initialize</a></span>
|
220
226
|
<small>Bovem::Configuration</small>
|
221
227
|
</li>
|
222
228
|
|
223
229
|
|
224
|
-
<li class="
|
230
|
+
<li class="r1 ">
|
225
231
|
<span class='object_link'><a href="Bovem/Shell.html#instance-class_method" title="Bovem::Shell.instance (method)">instance</a></span>
|
226
232
|
<small>Bovem::Shell</small>
|
227
233
|
</li>
|
228
234
|
|
229
235
|
|
230
|
-
<li class="
|
236
|
+
<li class="r2 ">
|
231
237
|
<span class='object_link'><a href="Bovem/Console.html#instance-class_method" title="Bovem::Console.instance (method)">instance</a></span>
|
232
238
|
<small>Bovem::Console</small>
|
233
239
|
</li>
|
234
240
|
|
235
241
|
|
236
|
-
<li class="
|
242
|
+
<li class="r1 ">
|
237
243
|
<span class='object_link'><a href="Bovem/Console.html#line_width-instance_method" title="Bovem::Console#line_width (method)">#line_width</a></span>
|
238
244
|
<small>Bovem::Console</small>
|
239
245
|
</li>
|
240
246
|
|
241
247
|
|
242
|
-
<li class="
|
248
|
+
<li class="r2 ">
|
243
249
|
<span class='object_link'><a href="Bovem/ConsoleMethods/Logging/ClassMethods.html#min_banner_length-instance_method" title="Bovem::ConsoleMethods::Logging::ClassMethods#min_banner_length (method)">#min_banner_length</a></span>
|
244
250
|
<small>Bovem::ConsoleMethods::Logging::ClassMethods</small>
|
245
251
|
</li>
|
246
252
|
|
247
253
|
|
248
|
-
<li class="
|
254
|
+
<li class="r1 ">
|
249
255
|
<span class='object_link'><a href="Bovem/ShellMethods/Write.html#move-instance_method" title="Bovem::ShellMethods::Write#move (method)">#move</a></span>
|
250
256
|
<small>Bovem::ShellMethods::Write</small>
|
251
257
|
</li>
|
252
258
|
|
253
259
|
|
254
|
-
<li class="
|
260
|
+
<li class="r2 ">
|
255
261
|
<span class='object_link'><a href="Bovem/Configuration.html#parse-instance_method" title="Bovem::Configuration#parse (method)">#parse</a></span>
|
256
262
|
<small>Bovem::Configuration</small>
|
257
263
|
</li>
|
258
264
|
|
259
265
|
|
260
|
-
<li class="
|
266
|
+
<li class="r1 ">
|
261
267
|
<span class='object_link'><a href="Bovem/ConsoleMethods/StyleHandling/ClassMethods.html#parse_style-instance_method" title="Bovem::ConsoleMethods::StyleHandling::ClassMethods#parse_style (method)">#parse_style</a></span>
|
262
268
|
<small>Bovem::ConsoleMethods::StyleHandling::ClassMethods</small>
|
263
269
|
</li>
|
264
270
|
|
265
271
|
|
266
|
-
<li class="
|
272
|
+
<li class="r2 ">
|
267
273
|
<span class='object_link'><a href="Bovem/ConsoleMethods/StyleHandling/ClassMethods.html#parse_styles-instance_method" title="Bovem::ConsoleMethods::StyleHandling::ClassMethods#parse_styles (method)">#parse_styles</a></span>
|
268
274
|
<small>Bovem::ConsoleMethods::StyleHandling::ClassMethods</small>
|
269
275
|
</li>
|
270
276
|
|
271
277
|
|
272
|
-
<li class="
|
278
|
+
<li class="r1 ">
|
273
279
|
<span class='object_link'><a href="Bovem/ConsoleMethods/Interactions.html#read-instance_method" title="Bovem::ConsoleMethods::Interactions#read (method)">#read</a></span>
|
274
280
|
<small>Bovem::ConsoleMethods::Interactions</small>
|
275
281
|
</li>
|
276
282
|
|
277
283
|
|
278
|
-
<li class="
|
284
|
+
<li class="r2 ">
|
279
285
|
<span class='object_link'><a href="Bovem/ConsoleMethods/StyleHandling.html#replace_markers-instance_method" title="Bovem::ConsoleMethods::StyleHandling#replace_markers (method)">#replace_markers</a></span>
|
280
286
|
<small>Bovem::ConsoleMethods::StyleHandling</small>
|
281
287
|
</li>
|
282
288
|
|
283
289
|
|
284
|
-
<li class="
|
290
|
+
<li class="r1 ">
|
285
291
|
<span class='object_link'><a href="Bovem/ConsoleMethods/StyleHandling/ClassMethods.html#replace_markers-instance_method" title="Bovem::ConsoleMethods::StyleHandling::ClassMethods#replace_markers (method)">#replace_markers</a></span>
|
286
292
|
<small>Bovem::ConsoleMethods::StyleHandling::ClassMethods</small>
|
287
293
|
</li>
|
288
294
|
|
289
295
|
|
290
|
-
<li class="
|
296
|
+
<li class="r2 ">
|
291
297
|
<span class='object_link'><a href="Bovem/ConsoleMethods/StyleHandling/ClassMethods.html#replace_term_code-instance_method" title="Bovem::ConsoleMethods::StyleHandling::ClassMethods#replace_term_code (method)">#replace_term_code</a></span>
|
292
298
|
<small>Bovem::ConsoleMethods::StyleHandling::ClassMethods</small>
|
293
299
|
</li>
|
294
300
|
|
295
301
|
|
296
|
-
<li class="
|
302
|
+
<li class="r1 ">
|
297
303
|
<span class='object_link'><a href="Bovem/ConsoleMethods/Output.html#reset_indentation-instance_method" title="Bovem::ConsoleMethods::Output#reset_indentation (method)">#reset_indentation</a></span>
|
298
304
|
<small>Bovem::ConsoleMethods::Output</small>
|
299
305
|
</li>
|
300
306
|
|
301
307
|
|
302
|
-
<li class="
|
308
|
+
<li class="r2 ">
|
303
309
|
<span class='object_link'><a href="Bovem/ShellMethods/Execute.html#run-instance_method" title="Bovem::ShellMethods::Execute#run (method)">#run</a></span>
|
304
310
|
<small>Bovem::ShellMethods::Execute</small>
|
305
311
|
</li>
|
306
312
|
|
307
313
|
|
308
|
-
<li class="
|
314
|
+
<li class="r1 ">
|
309
315
|
<span class='object_link'><a href="Bovem/ConsoleMethods/Output.html#set_indentation-instance_method" title="Bovem::ConsoleMethods::Output#set_indentation (method)">#set_indentation</a></span>
|
310
316
|
<small>Bovem::ConsoleMethods::Output</small>
|
311
317
|
</li>
|
312
318
|
|
313
319
|
|
314
|
-
<li class="
|
320
|
+
<li class="r2 ">
|
315
321
|
<span class='object_link'><a href="Bovem/ShellMethods/General.html#setup_error_handling-instance_method" title="Bovem::ShellMethods::General#setup_error_handling (method)">#setup_error_handling</a></span>
|
316
322
|
<small>Bovem::ShellMethods::General</small>
|
317
323
|
</li>
|
318
324
|
|
319
325
|
|
320
|
-
<li class="
|
326
|
+
<li class="r1 ">
|
321
327
|
<span class='object_link'><a href="Bovem/ShellMethods/General.html#show_general_failure-instance_method" title="Bovem::ShellMethods::General#show_general_failure (method)">#show_general_failure</a></span>
|
322
328
|
<small>Bovem::ShellMethods::General</small>
|
323
329
|
</li>
|
324
330
|
|
325
331
|
|
326
|
-
<li class="
|
332
|
+
<li class="r2 ">
|
327
333
|
<span class='object_link'><a href="Bovem/Logger.html#start_time-class_method" title="Bovem::Logger.start_time (method)">start_time</a></span>
|
328
334
|
<small>Bovem::Logger</small>
|
329
335
|
</li>
|
330
336
|
|
331
337
|
|
332
|
-
<li class="
|
338
|
+
<li class="r1 ">
|
333
339
|
<span class='object_link'><a href="Bovem/Logger.html#start_time-instance_method" title="Bovem::Logger#start_time (method)">#start_time</a></span>
|
334
340
|
<small>Bovem::Logger</small>
|
335
341
|
</li>
|
336
342
|
|
337
343
|
|
338
|
-
<li class="
|
344
|
+
<li class="r2 ">
|
339
345
|
<span class='object_link'><a href="Bovem/ConsoleMethods/Logging.html#status-instance_method" title="Bovem::ConsoleMethods::Logging#status (method)">#status</a></span>
|
340
346
|
<small>Bovem::ConsoleMethods::Logging</small>
|
341
347
|
</li>
|
342
348
|
|
343
349
|
|
344
|
-
<li class="
|
350
|
+
<li class="r1 ">
|
345
351
|
<span class='object_link'><a href="Bovem/ConsoleMethods/Interactions.html#task-instance_method" title="Bovem::ConsoleMethods::Interactions#task (method)">#task</a></span>
|
346
352
|
<small>Bovem::ConsoleMethods::Interactions</small>
|
347
353
|
</li>
|
348
354
|
|
349
355
|
|
350
|
-
<li class="
|
356
|
+
<li class="r2 ">
|
351
357
|
<span class='object_link'><a href="Bovem/ConsoleMethods/Logging.html#warn-instance_method" title="Bovem::ConsoleMethods::Logging#warn (method)">#warn</a></span>
|
352
358
|
<small>Bovem::ConsoleMethods::Logging</small>
|
353
359
|
</li>
|
354
360
|
|
355
361
|
|
356
|
-
<li class="
|
362
|
+
<li class="r1 ">
|
357
363
|
<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>
|
358
364
|
<small>Bovem::ConsoleMethods::Output</small>
|
359
365
|
</li>
|
360
366
|
|
361
367
|
|
362
|
-
<li class="
|
368
|
+
<li class="r2 ">
|
363
369
|
<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>
|
364
370
|
<small>Bovem::ShellMethods::Directories</small>
|
365
371
|
</li>
|
366
372
|
|
367
373
|
|
368
|
-
<li class="
|
374
|
+
<li class="r1 ">
|
369
375
|
<span class='object_link'><a href="Bovem/ConsoleMethods/Output.html#wrap-instance_method" title="Bovem::ConsoleMethods::Output#wrap (method)">#wrap</a></span>
|
370
376
|
<small>Bovem::ConsoleMethods::Output</small>
|
371
377
|
</li>
|
372
378
|
|
373
379
|
|
374
|
-
<li class="
|
380
|
+
<li class="r2 ">
|
375
381
|
<span class='object_link'><a href="Bovem/ConsoleMethods/Logging.html#write-instance_method" title="Bovem::ConsoleMethods::Logging#write (method)">#write</a></span>
|
376
382
|
<small>Bovem::ConsoleMethods::Logging</small>
|
377
383
|
</li>
|
378
384
|
|
379
385
|
|
380
|
-
<li class="
|
386
|
+
<li class="r1 ">
|
381
387
|
<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>
|
382
388
|
<small>Bovem::ConsoleMethods::Logging</small>
|
383
389
|
</li>
|
@@ -103,9 +103,9 @@
|
|
103
103
|
</div>
|
104
104
|
|
105
105
|
<div id="footer">
|
106
|
-
Generated on Sat
|
106
|
+
Generated on Sat Aug 3 12:38:42 2013 by
|
107
107
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
108
|
-
0.8.6.2 (ruby-
|
108
|
+
0.8.6.2 (ruby-2.0.0).
|
109
109
|
</div>
|
110
110
|
|
111
111
|
</body>
|
data/lib/bovem/console.rb
CHANGED
@@ -206,7 +206,7 @@ module Bovem
|
|
206
206
|
end
|
207
207
|
|
208
208
|
rv = indent(wrap(rv, wrap), indent) # Wrap & Indent
|
209
|
-
rv += suffix.ensure_string if suffix # Add the suffix
|
209
|
+
rv += (suffix.is_a?(TrueClass) ? "\n" : suffix.ensure_string) if suffix # Add the suffix
|
210
210
|
rv
|
211
211
|
end
|
212
212
|
|
@@ -228,6 +228,15 @@ module Bovem
|
|
228
228
|
# Return
|
229
229
|
"#{go_up ? "\e[A" : ""}\e[0G\e[#{padding}C#{message}"
|
230
230
|
end
|
231
|
+
|
232
|
+
# Embeds a message in a style.
|
233
|
+
#
|
234
|
+
# @param message [String] The message to emphasize.
|
235
|
+
# @param style [String] The style to use.
|
236
|
+
# @return [String] The emphasized message.
|
237
|
+
def emphasize(message, style = "bright")
|
238
|
+
"{mark=#{style}}#{message}{/mark}"
|
239
|
+
end
|
231
240
|
end
|
232
241
|
|
233
242
|
# Methods for logging activities to the user.
|
data/lib/bovem/version.rb
CHANGED
data/spec/bovem/console_spec.rb
CHANGED
@@ -192,6 +192,13 @@ describe Bovem::Console do
|
|
192
192
|
end
|
193
193
|
end
|
194
194
|
|
195
|
+
describe "#emphasize" do
|
196
|
+
it "should correctly emphasize messages" do
|
197
|
+
expect(console.emphasize("MSG")).to eq("{mark=bright}MSG{/mark}")
|
198
|
+
expect(console.emphasize("MSG", "bright red")).to eq("{mark=bright red}MSG{/mark}")
|
199
|
+
end
|
200
|
+
end
|
201
|
+
|
195
202
|
describe "#write" do
|
196
203
|
it "should call #format" do
|
197
204
|
expect(console).to receive(:format).with("A", "B", "C", "D", "E")
|
data/spec/coverage_helper.rb
CHANGED
@@ -8,7 +8,7 @@ require "pathname"
|
|
8
8
|
require "simplecov"
|
9
9
|
require "coveralls"
|
10
10
|
|
11
|
-
Coveralls.wear!
|
11
|
+
Coveralls.wear! if ENV["CI"] || ENV["JENKINS_URL"]
|
12
12
|
|
13
13
|
SimpleCov.start do
|
14
14
|
root = Pathname.new(File.dirname(__FILE__)) + ".."
|
@@ -17,4 +17,4 @@ SimpleCov.start do
|
|
17
17
|
path = Pathname.new(src_file.filename).relative_path_from(root).to_s
|
18
18
|
path !~ /^(bin|lib)/
|
19
19
|
end
|
20
|
-
end
|
20
|
+
end
|
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bovem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
5
|
-
prerelease:
|
4
|
+
version: 2.4.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Shogun
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-08-03 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: lazier
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ~>
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -30,7 +27,6 @@ dependencies:
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: open4
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - ~>
|
36
32
|
- !ruby/object:Gem::Version
|
@@ -38,7 +34,6 @@ dependencies:
|
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - ~>
|
44
39
|
- !ruby/object:Gem::Version
|
@@ -112,30 +107,26 @@ files:
|
|
112
107
|
- spec/spec_helper.rb
|
113
108
|
homepage: http://sw.cow.tc/bovem
|
114
109
|
licenses: []
|
110
|
+
metadata: {}
|
115
111
|
post_install_message:
|
116
112
|
rdoc_options: []
|
117
113
|
require_paths:
|
118
114
|
- lib
|
119
115
|
required_ruby_version: !ruby/object:Gem::Requirement
|
120
|
-
none: false
|
121
116
|
requirements:
|
122
|
-
- -
|
117
|
+
- - '>='
|
123
118
|
- !ruby/object:Gem::Version
|
124
119
|
version: 1.9.3
|
125
120
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
126
|
-
none: false
|
127
121
|
requirements:
|
128
|
-
- -
|
122
|
+
- - '>='
|
129
123
|
- !ruby/object:Gem::Version
|
130
124
|
version: '0'
|
131
|
-
segments:
|
132
|
-
- 0
|
133
|
-
hash: 4602464353921548053
|
134
125
|
requirements: []
|
135
126
|
rubyforge_project: bovem
|
136
|
-
rubygems_version:
|
127
|
+
rubygems_version: 2.0.6
|
137
128
|
signing_key:
|
138
|
-
specification_version:
|
129
|
+
specification_version: 4
|
139
130
|
summary: A collection of utilities for developers.
|
140
131
|
test_files:
|
141
132
|
- spec/bovem/configuration_spec.rb
|