rubu 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/doc/Rubu/Move.html CHANGED
@@ -124,6 +124,11 @@
124
124
  </dt>
125
125
  <dd><pre class="code"><span class='lbracket'>[</span><span class='rbracket'>]</span></pre></dd>
126
126
 
127
+ <dt id="show_shell_warning-classvariable" class="">@@show_shell_warning =
128
+
129
+ </dt>
130
+ <dd><pre class="code"><span class='kw'>true</span></pre></dd>
131
+
127
132
  </dl>
128
133
 
129
134
 
@@ -405,6 +410,28 @@
405
410
  <p>A new instance of Move.</p>
406
411
  </div></span>
407
412
 
413
+ </li>
414
+
415
+
416
+ <li class="public ">
417
+ <span class="summary_signature">
418
+
419
+ <a href="#set_show_shell_warning-instance_method" title="#set_show_shell_warning (instance method)">- (Object) <strong>set_show_shell_warning</strong>(value = true) </a>
420
+
421
+
422
+
423
+ </span>
424
+
425
+
426
+
427
+
428
+
429
+
430
+
431
+
432
+
433
+ <span class="summary_desc"><div class='inline'></div></span>
434
+
408
435
  </li>
409
436
 
410
437
 
@@ -429,6 +456,30 @@
429
456
  <p>Register Move to host (upper level).</p>
430
457
  </div></span>
431
458
 
459
+ </li>
460
+
461
+
462
+ <li class="public ">
463
+ <span class="summary_signature">
464
+
465
+ <a href="#warn-instance_method" title="#warn (instance method)">- (Object) <strong>warn</strong>(msg) </a>
466
+
467
+
468
+
469
+ </span>
470
+
471
+
472
+
473
+
474
+
475
+
476
+
477
+
478
+
479
+ <span class="summary_desc"><div class='inline'>
480
+ <p>Report warning.</p>
481
+ </div></span>
482
+
432
483
  </li>
433
484
 
434
485
 
@@ -697,13 +748,13 @@
697
748
  <pre class="lines">
698
749
 
699
750
 
700
- 111
701
- 112
702
- 113
703
- 114</pre>
751
+ 116
752
+ 117
753
+ 118
754
+ 119</pre>
704
755
  </td>
705
756
  <td>
706
- <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 111</span>
757
+ <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 116</span>
707
758
 
708
759
  <span class='kw'>def</span> <span class='id identifier rubyid_display'>display</span><span class='lparen'>(</span> <span class='id identifier rubyid_msg'>msg</span> <span class='rparen'>)</span>
709
760
  <span class='ivar'>@output</span> <span class='op'>=</span> <span class='id identifier rubyid_msg'>msg</span>
@@ -878,6 +929,36 @@
878
929
  </td>
879
930
  </tr>
880
931
  </table>
932
+ </div>
933
+
934
+ <div class="method_details ">
935
+ <h3 class="signature " id="set_show_shell_warning-instance_method">
936
+
937
+ - (<tt>Object</tt>) <strong>set_show_shell_warning</strong>(value = true)
938
+
939
+
940
+
941
+
942
+
943
+ </h3><table class="source_code">
944
+ <tr>
945
+ <td>
946
+ <pre class="lines">
947
+
948
+
949
+ 121
950
+ 122
951
+ 123</pre>
952
+ </td>
953
+ <td>
954
+ <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 121</span>
955
+
956
+ <span class='kw'>def</span> <span class='id identifier rubyid_set_show_shell_warning'>set_show_shell_warning</span><span class='lparen'>(</span> <span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='kw'>true</span> <span class='rparen'>)</span>
957
+ <span class='cvar'>@@show_shell_warning</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span>
958
+ <span class='kw'>end</span></pre>
959
+ </td>
960
+ </tr>
961
+ </table>
881
962
  </div>
882
963
 
883
964
  <div class="method_details ">
@@ -921,6 +1002,47 @@
921
1002
  </td>
922
1003
  </tr>
923
1004
  </table>
1005
+ </div>
1006
+
1007
+ <div class="method_details ">
1008
+ <h3 class="signature " id="warn-instance_method">
1009
+
1010
+ - (<tt>Object</tt>) <strong>warn</strong>(msg)
1011
+
1012
+
1013
+
1014
+
1015
+
1016
+ </h3><div class="docstring">
1017
+ <div class="discussion">
1018
+
1019
+ <p>Report warning.</p>
1020
+
1021
+
1022
+ </div>
1023
+ </div>
1024
+ <div class="tags">
1025
+
1026
+
1027
+ </div><table class="source_code">
1028
+ <tr>
1029
+ <td>
1030
+ <pre class="lines">
1031
+
1032
+
1033
+ 111
1034
+ 112
1035
+ 113</pre>
1036
+ </td>
1037
+ <td>
1038
+ <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 111</span>
1039
+
1040
+ <span class='kw'>def</span> <span class='id identifier rubyid_warn'>warn</span><span class='lparen'>(</span> <span class='id identifier rubyid_msg'>msg</span> <span class='rparen'>)</span>
1041
+ <span class='const'>STDERR</span><span class='period'>.</span><span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Rubu Warning: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_msg'>msg</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
1042
+ <span class='kw'>end</span></pre>
1043
+ </td>
1044
+ </tr>
1045
+ </table>
924
1046
  </div>
925
1047
 
926
1048
  </div>
@@ -928,7 +1050,7 @@
928
1050
  </div>
929
1051
 
930
1052
  <div id="footer">
931
- Generated on Sun Jul 8 19:50:19 2018 by
1053
+ Generated on Thu Aug 30 16:05:51 2018 by
932
1054
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
933
1055
  0.8.7.6 (ruby-2.3.3).
934
1056
  </div>
@@ -197,18 +197,6 @@
197
197
  <pre class="lines">
198
198
 
199
199
 
200
- 200
201
- 201
202
- 202
203
- 203
204
- 204
205
- 205
206
- 206
207
- 207
208
- 208
209
- 209
210
- 210
211
- 211
212
200
  212
213
201
  213
214
202
  214
@@ -258,10 +246,22 @@
258
246
  258
259
247
  259
260
248
  260
261
- 261</pre>
249
+ 261
250
+ 262
251
+ 263
252
+ 264
253
+ 265
254
+ 266
255
+ 267
256
+ 268
257
+ 269
258
+ 270
259
+ 271
260
+ 272
261
+ 273</pre>
262
262
  </td>
263
263
  <td>
264
- <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 200</span>
264
+ <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 212</span>
265
265
 
266
266
  <span class='kw'>def</span> <span class='id identifier rubyid_parallel_run'>parallel_run</span>
267
267
 
@@ -356,21 +356,21 @@
356
356
  <pre class="lines">
357
357
 
358
358
 
359
- 186
360
- 187
361
- 188
362
- 189
363
- 190
364
- 191
365
- 192
366
- 193
367
- 194
368
- 195
369
- 196
370
- 197</pre>
359
+ 198
360
+ 199
361
+ 200
362
+ 201
363
+ 202
364
+ 203
365
+ 204
366
+ 205
367
+ 206
368
+ 207
369
+ 208
370
+ 209</pre>
371
371
  </td>
372
372
  <td>
373
- <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 186</span>
373
+ <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 198</span>
374
374
 
375
375
  <span class='kw'>def</span> <span class='id identifier rubyid_serial_run'>serial_run</span>
376
376
  <span class='ivar'>@subs</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_sub'>sub</span><span class='op'>|</span>
@@ -394,7 +394,7 @@
394
394
  </div>
395
395
 
396
396
  <div id="footer">
397
- Generated on Sun Jul 8 19:50:19 2018 by
397
+ Generated on Thu Aug 30 16:05:51 2018 by
398
398
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
399
399
  0.8.7.6 (ruby-2.3.3).
400
400
  </div>
data/doc/Rubu/Order.html CHANGED
@@ -231,12 +231,12 @@
231
231
  <pre class="lines">
232
232
 
233
233
 
234
- 408
235
- 409
236
- 410</pre>
234
+ 420
235
+ 421
236
+ 422</pre>
237
237
  </td>
238
238
  <td>
239
- <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 408</span>
239
+ <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 420</span>
240
240
 
241
241
  <span class='kw'>def</span> <span class='const'>Order</span><span class='period'>.</span><span class='op'>[]</span><span class='lparen'>(</span> <span class='id identifier rubyid_key'>key</span> <span class='rparen'>)</span>
242
242
  <span class='cvar'>@@order</span><span class='lbracket'>[</span> <span class='id identifier rubyid_key'>key</span> <span class='rbracket'>]</span>
@@ -272,12 +272,12 @@
272
272
  <pre class="lines">
273
273
 
274
274
 
275
- 403
276
- 404
277
- 405</pre>
275
+ 415
276
+ 416
277
+ 417</pre>
278
278
  </td>
279
279
  <td>
280
- <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 403</span>
280
+ <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 415</span>
281
281
 
282
282
  <span class='kw'>def</span> <span class='const'>Order</span><span class='period'>.</span><span class='op'>[]=</span><span class='lparen'>(</span> <span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_val'>val</span> <span class='rparen'>)</span>
283
283
  <span class='cvar'>@@order</span><span class='lbracket'>[</span> <span class='id identifier rubyid_key'>key</span> <span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_val'>val</span>
@@ -292,7 +292,7 @@
292
292
  </div>
293
293
 
294
294
  <div id="footer">
295
- Generated on Sun Jul 8 19:50:19 2018 by
295
+ Generated on Thu Aug 30 16:05:51 2018 by
296
296
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
297
297
  0.8.7.6 (ruby-2.3.3).
298
298
  </div>
@@ -195,7 +195,7 @@
195
195
 
196
196
 
197
197
  <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Move.html" title="Rubu::Move (class)">Move</a></span></h3>
198
- <p class="inherited"><span class='object_link'><a href="Move.html#display-instance_method" title="Rubu::Move#display (method)">#display</a></span>, <span class='object_link'><a href="Move.html#error-instance_method" title="Rubu::Move#error (method)">#error</a></span>, <span class='object_link'><a href="Move.html#host-instance_method" title="Rubu::Move#host (method)">#host</a></span>, <span class='object_link'><a href="Move.html#host_in-instance_method" title="Rubu::Move#host_in (method)">#host_in</a></span>, <span class='object_link'><a href="Move.html#host_out-instance_method" title="Rubu::Move#host_out (method)">#host_out</a></span>, <span class='object_link'><a href="Move.html#use-instance_method" title="Rubu::Move#use (method)">#use</a></span></p>
198
+ <p class="inherited"><span class='object_link'><a href="Move.html#display-instance_method" title="Rubu::Move#display (method)">#display</a></span>, <span class='object_link'><a href="Move.html#error-instance_method" title="Rubu::Move#error (method)">#error</a></span>, <span class='object_link'><a href="Move.html#host-instance_method" title="Rubu::Move#host (method)">#host</a></span>, <span class='object_link'><a href="Move.html#host_in-instance_method" title="Rubu::Move#host_in (method)">#host_in</a></span>, <span class='object_link'><a href="Move.html#host_out-instance_method" title="Rubu::Move#host_out (method)">#host_out</a></span>, <span class='object_link'><a href="Move.html#set_show_shell_warning-instance_method" title="Rubu::Move#set_show_shell_warning (method)">#set_show_shell_warning</a></span>, <span class='object_link'><a href="Move.html#use-instance_method" title="Rubu::Move#use (method)">#use</a></span>, <span class='object_link'><a href="Move.html#warn-instance_method" title="Rubu::Move#warn (method)">#warn</a></span></p>
199
199
  <div id="constructor_details" class="method_details_list">
200
200
  <h2>Constructor Details</h2>
201
201
 
@@ -225,14 +225,14 @@
225
225
  <pre class="lines">
226
226
 
227
227
 
228
- 158
229
- 159
230
- 160
231
- 161
232
- 162</pre>
228
+ 170
229
+ 171
230
+ 172
231
+ 173
232
+ 174</pre>
233
233
  </td>
234
234
  <td>
235
- <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 158</span>
235
+ <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 170</span>
236
236
 
237
237
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span> <span class='id identifier rubyid_desc'>desc</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_cmd'>cmd</span> <span class='rparen'>)</span>
238
238
  <span class='kw'>super</span><span class='lparen'>(</span><span class='rparen'>)</span>
@@ -277,23 +277,23 @@
277
277
  <pre class="lines">
278
278
 
279
279
 
280
- 165
281
- 166
282
- 167
283
- 168
284
- 169
285
- 170
286
- 171
287
- 172
288
- 173
289
- 174
290
- 175
291
- 176
292
280
  177
293
- 178</pre>
281
+ 178
282
+ 179
283
+ 180
284
+ 181
285
+ 182
286
+ 183
287
+ 184
288
+ 185
289
+ 186
290
+ 187
291
+ 188
292
+ 189
293
+ 190</pre>
294
294
  </td>
295
295
  <td>
296
- <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 165</span>
296
+ <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 177</span>
297
297
 
298
298
  <span class='kw'>def</span> <span class='id identifier rubyid_run'>run</span>
299
299
  <span class='kw'>begin</span>
@@ -319,7 +319,7 @@
319
319
  </div>
320
320
 
321
321
  <div id="footer">
322
- Generated on Sun Jul 8 19:50:19 2018 by
322
+ Generated on Thu Aug 30 16:05:51 2018 by
323
323
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
324
324
  0.8.7.6 (ruby-2.3.3).
325
325
  </div>
@@ -195,7 +195,7 @@
195
195
 
196
196
 
197
197
  <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Move.html" title="Rubu::Move (class)">Move</a></span></h3>
198
- <p class="inherited"><span class='object_link'><a href="Move.html#display-instance_method" title="Rubu::Move#display (method)">#display</a></span>, <span class='object_link'><a href="Move.html#error-instance_method" title="Rubu::Move#error (method)">#error</a></span>, <span class='object_link'><a href="Move.html#host-instance_method" title="Rubu::Move#host (method)">#host</a></span>, <span class='object_link'><a href="Move.html#host_in-instance_method" title="Rubu::Move#host_in (method)">#host_in</a></span>, <span class='object_link'><a href="Move.html#host_out-instance_method" title="Rubu::Move#host_out (method)">#host_out</a></span>, <span class='object_link'><a href="Move.html#use-instance_method" title="Rubu::Move#use (method)">#use</a></span></p>
198
+ <p class="inherited"><span class='object_link'><a href="Move.html#display-instance_method" title="Rubu::Move#display (method)">#display</a></span>, <span class='object_link'><a href="Move.html#error-instance_method" title="Rubu::Move#error (method)">#error</a></span>, <span class='object_link'><a href="Move.html#host-instance_method" title="Rubu::Move#host (method)">#host</a></span>, <span class='object_link'><a href="Move.html#host_in-instance_method" title="Rubu::Move#host_in (method)">#host_in</a></span>, <span class='object_link'><a href="Move.html#host_out-instance_method" title="Rubu::Move#host_out (method)">#host_out</a></span>, <span class='object_link'><a href="Move.html#set_show_shell_warning-instance_method" title="Rubu::Move#set_show_shell_warning (method)">#set_show_shell_warning</a></span>, <span class='object_link'><a href="Move.html#use-instance_method" title="Rubu::Move#use (method)">#use</a></span>, <span class='object_link'><a href="Move.html#warn-instance_method" title="Rubu::Move#warn (method)">#warn</a></span></p>
199
199
  <div id="constructor_details" class="method_details_list">
200
200
  <h2>Constructor Details</h2>
201
201
 
@@ -225,13 +225,13 @@
225
225
  <pre class="lines">
226
226
 
227
227
 
228
- 122
229
- 123
230
- 124
231
- 125</pre>
228
+ 131
229
+ 132
230
+ 133
231
+ 134</pre>
232
232
  </td>
233
233
  <td>
234
- <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 122</span>
234
+ <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 131</span>
235
235
 
236
236
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span> <span class='id identifier rubyid_cmd'>cmd</span> <span class='rparen'>)</span>
237
237
  <span class='kw'>super</span><span class='lparen'>(</span><span class='rparen'>)</span>
@@ -275,15 +275,6 @@
275
275
  <pre class="lines">
276
276
 
277
277
 
278
- 128
279
- 129
280
- 130
281
- 131
282
- 132
283
- 133
284
- 134
285
- 135
286
- 136
287
278
  137
288
279
  138
289
280
  139
@@ -298,10 +289,22 @@
298
289
  148
299
290
  149
300
291
  150
301
- 151</pre>
292
+ 151
293
+ 152
294
+ 153
295
+ 154
296
+ 155
297
+ 156
298
+ 157
299
+ 158
300
+ 159
301
+ 160
302
+ 161
303
+ 162
304
+ 163</pre>
302
305
  </td>
303
306
  <td>
304
- <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 128</span>
307
+ <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 137</span>
305
308
 
306
309
  <span class='kw'>def</span> <span class='id identifier rubyid_run'>run</span>
307
310
  <span class='kw'>begin</span>
@@ -312,6 +315,9 @@
312
315
  <span class='kw'>end</span>
313
316
 
314
317
  <span class='kw'>if</span> <span class='id identifier rubyid_status'>status</span><span class='period'>.</span><span class='id identifier rubyid_exitstatus'>exitstatus</span> <span class='op'>==</span> <span class='int'>0</span>
318
+ <span class='kw'>if</span> <span class='cvar'>@@show_shell_warning</span> <span class='op'>&amp;&amp;</span> <span class='kw'>not</span><span class='lparen'>(</span> <span class='id identifier rubyid_stderr'>stderr</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span> <span class='rparen'>)</span>
319
+ <span class='id identifier rubyid_warn'>warn</span><span class='lparen'>(</span> <span class='id identifier rubyid_stderr'>stderr</span> <span class='rparen'>)</span>
320
+ <span class='kw'>end</span>
315
321
  <span class='ivar'>@status</span> <span class='op'>=</span> <span class='symbol'>:success</span>
316
322
  <span class='kw'>else</span>
317
323
  <span class='ivar'>@status</span> <span class='op'>=</span> <span class='symbol'>:error</span>
@@ -337,7 +343,7 @@
337
343
  </div>
338
344
 
339
345
  <div id="footer">
340
- Generated on Sun Jul 8 19:50:19 2018 by
346
+ Generated on Thu Aug 30 16:05:51 2018 by
341
347
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
342
348
  0.8.7.6 (ruby-2.3.3).
343
349
  </div>