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.
- checksums.yaml +4 -4
- data/CHANGELOG.rdoc +2 -0
- data/doc/Array.html +28 -28
- data/doc/Rubu.html +2 -2
- data/doc/Rubu/Fork.html +6 -6
- data/doc/Rubu/Info.html +9 -9
- data/doc/Rubu/Mark.html +89 -89
- data/doc/Rubu/Move.html +128 -6
- data/doc/Rubu/MoveStyles.html +28 -28
- data/doc/Rubu/Order.html +9 -9
- data/doc/Rubu/RubyCommand.html +22 -22
- data/doc/Rubu/ShellCommand.html +24 -18
- data/doc/Rubu/State.html +13 -13
- data/doc/Rubu/Step.html +197 -134
- data/doc/Rubu/StepAged.html +7 -7
- data/doc/Rubu/StepAlways.html +7 -7
- data/doc/Rubu/StepMark.html +7 -7
- data/doc/Rubu/Trail.html +90 -90
- data/doc/Rubu/Var.html +9 -9
- data/doc/Rubu/Walk.html +2 -2
- data/doc/_index.html +1 -1
- data/doc/file.CHANGELOG.html +5 -2
- data/doc/file.README.html +1 -1
- data/doc/index.html +1 -1
- data/doc/method_list.html +25 -7
- data/doc/top-level-namespace.html +1 -1
- data/example/bin/gen_world +6 -1
- data/example/bin/rubu_example +2 -1
- data/example/build/hello +0 -0
- data/example/build/hello_world.o +0 -0
- data/example/build/world.o +0 -0
- data/example/gen_cee/world.c +5 -1
- data/example/src/hello_world.c +2 -2
- data/example/src/world.h +1 -0
- data/lib/rubu.rb +18 -1
- data/lib/version.rb +1 -1
- metadata +3 -2
data/doc/Rubu/Walk.html
CHANGED
@@ -163,7 +163,7 @@
|
|
163
163
|
|
164
164
|
|
165
165
|
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Move.html" title="Rubu::Move (class)">Move</a></span></h3>
|
166
|
-
<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#initialize-instance_method" title="Rubu::Move#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="Move.html#use-instance_method" title="Rubu::Move#use (method)">#use</a></span></p>
|
166
|
+
<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#initialize-instance_method" title="Rubu::Move#initialize (method)">#initialize</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>
|
167
167
|
<div id="constructor_details" class="method_details_list">
|
168
168
|
<h2>Constructor Details</h2>
|
169
169
|
|
@@ -175,7 +175,7 @@
|
|
175
175
|
</div>
|
176
176
|
|
177
177
|
<div id="footer">
|
178
|
-
Generated on
|
178
|
+
Generated on Thu Aug 30 16:05:52 2018 by
|
179
179
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
180
180
|
0.8.7.6 (ruby-2.3.3).
|
181
181
|
</div>
|
data/doc/_index.html
CHANGED
@@ -296,7 +296,7 @@
|
|
296
296
|
</div>
|
297
297
|
|
298
298
|
<div id="footer">
|
299
|
-
Generated on
|
299
|
+
Generated on Thu Aug 30 16:05:51 2018 by
|
300
300
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
301
301
|
0.8.7.6 (ruby-2.3.3).
|
302
302
|
</div>
|
data/doc/file.CHANGELOG.html
CHANGED
@@ -63,7 +63,10 @@
|
|
63
63
|
|
64
64
|
<div id="content"><div id='filecontents'>
|
65
65
|
<h1 id="label-Version+history">Version history</h1>
|
66
|
-
<dl class="rdoc-list label-list"><dt>0.0.
|
66
|
+
<dl class="rdoc-list label-list"><dt>0.0.4
|
67
|
+
<dd>
|
68
|
+
<p>Enable compiler warning display control.</p>
|
69
|
+
</dd><dt>0.0.3
|
67
70
|
<dd>
|
68
71
|
<p>Force update option. Auto-update example.</p>
|
69
72
|
</dd><dt>0.0.2
|
@@ -76,7 +79,7 @@
|
|
76
79
|
</div></div>
|
77
80
|
|
78
81
|
<div id="footer">
|
79
|
-
Generated on
|
82
|
+
Generated on Thu Aug 30 16:05:51 2018 by
|
80
83
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
81
84
|
0.8.7.6 (ruby-2.3.3).
|
82
85
|
</div>
|
data/doc/file.README.html
CHANGED
@@ -396,7 +396,7 @@ refer to the source, i.e. the only existing source, you can use the
|
|
396
396
|
</div></div>
|
397
397
|
|
398
398
|
<div id="footer">
|
399
|
-
Generated on
|
399
|
+
Generated on Thu Aug 30 16:05:51 2018 by
|
400
400
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
401
401
|
0.8.7.6 (ruby-2.3.3).
|
402
402
|
</div>
|
data/doc/index.html
CHANGED
@@ -396,7 +396,7 @@ refer to the source, i.e. the only existing source, you can use the
|
|
396
396
|
</div></div>
|
397
397
|
|
398
398
|
<div id="footer">
|
399
|
-
Generated on
|
399
|
+
Generated on Thu Aug 30 16:05:51 2018 by
|
400
400
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
401
401
|
0.8.7.6 (ruby-2.3.3).
|
402
402
|
</div>
|
data/doc/method_list.html
CHANGED
@@ -406,53 +406,65 @@
|
|
406
406
|
|
407
407
|
|
408
408
|
<li class="r2 ">
|
409
|
+
<span class='object_link'><a href="Rubu/Move.html#set_show_shell_warning-instance_method" title="Rubu::Move#set_show_shell_warning (method)">#set_show_shell_warning</a></span>
|
410
|
+
<small>Rubu::Move</small>
|
411
|
+
</li>
|
412
|
+
|
413
|
+
|
414
|
+
<li class="r1 ">
|
409
415
|
<span class='object_link'><a href="Rubu/Step.html#setup-instance_method" title="Rubu::Step#setup (method)">#setup</a></span>
|
410
416
|
<small>Rubu::Step</small>
|
411
417
|
</li>
|
412
418
|
|
413
419
|
|
414
|
-
<li class="
|
420
|
+
<li class="r2 ">
|
415
421
|
<span class='object_link'><a href="Rubu/Trail.html#setup-class_method" title="Rubu::Trail.setup (method)">setup</a></span>
|
416
422
|
<small>Rubu::Trail</small>
|
417
423
|
</li>
|
418
424
|
|
419
425
|
|
420
|
-
<li class="
|
426
|
+
<li class="r1 ">
|
421
427
|
<span class='object_link'><a href="Rubu/Step.html#shrun-instance_method" title="Rubu::Step#shrun (method)">#shrun</a></span>
|
422
428
|
<small>Rubu::Step</small>
|
423
429
|
</li>
|
424
430
|
|
425
431
|
|
426
|
-
<li class="
|
432
|
+
<li class="r2 ">
|
427
433
|
<span class='object_link'><a href="Rubu/Step.html#shuse-instance_method" title="Rubu::Step#shuse (method)">#shuse</a></span>
|
428
434
|
<small>Rubu::Step</small>
|
429
435
|
</li>
|
430
436
|
|
431
437
|
|
432
|
-
<li class="
|
438
|
+
<li class="r1 ">
|
433
439
|
<span class='object_link'><a href="Rubu/Mark.html#skip-instance_method" title="Rubu::Mark#skip (method)">#skip</a></span>
|
434
440
|
<small>Rubu::Mark</small>
|
435
441
|
</li>
|
436
442
|
|
437
443
|
|
438
|
-
<li class="
|
444
|
+
<li class="r2 ">
|
439
445
|
<span class='object_link'><a href="Rubu/Step.html#source-instance_method" title="Rubu::Step#source (method)">#source</a></span>
|
440
446
|
<small>Rubu::Step</small>
|
441
447
|
</li>
|
442
448
|
|
443
449
|
|
444
|
-
<li class="
|
450
|
+
<li class="r1 ">
|
445
451
|
<span class='object_link'><a href="Rubu/Step.html#sources-instance_method" title="Rubu::Step#sources (method)">#sources</a></span>
|
446
452
|
<small>Rubu::Step</small>
|
447
453
|
</li>
|
448
454
|
|
449
455
|
|
450
|
-
<li class="
|
456
|
+
<li class="r2 ">
|
451
457
|
<span class='object_link'><a href="Rubu/Move.html#status-instance_method" title="Rubu::Move#status (method)">#status</a></span>
|
452
458
|
<small>Rubu::Move</small>
|
453
459
|
</li>
|
454
460
|
|
455
461
|
|
462
|
+
<li class="r1 ">
|
463
|
+
<span class='object_link'><a href="Rubu/Step.html#step-instance_method" title="Rubu::Step#step (method)">#step</a></span>
|
464
|
+
<small>Rubu::Step</small>
|
465
|
+
</li>
|
466
|
+
|
467
|
+
|
456
468
|
<li class="r2 ">
|
457
469
|
<span class='object_link'><a href="Rubu/Move.html#subs-instance_method" title="Rubu::Move#subs (method)">#subs</a></span>
|
458
470
|
<small>Rubu::Move</small>
|
@@ -538,6 +550,12 @@
|
|
538
550
|
|
539
551
|
|
540
552
|
<li class="r2 ">
|
553
|
+
<span class='object_link'><a href="Rubu/Move.html#warn-instance_method" title="Rubu::Move#warn (method)">#warn</a></span>
|
554
|
+
<small>Rubu::Move</small>
|
555
|
+
</li>
|
556
|
+
|
557
|
+
|
558
|
+
<li class="r1 ">
|
541
559
|
<span class='object_link'><a href="Rubu/Step.html#zip-class_method" title="Rubu::Step.zip (method)">zip</a></span>
|
542
560
|
<small>Rubu::Step</small>
|
543
561
|
</li>
|
@@ -105,7 +105,7 @@
|
|
105
105
|
</div>
|
106
106
|
|
107
107
|
<div id="footer">
|
108
|
-
Generated on
|
108
|
+
Generated on Thu Aug 30 16:05:51 2018 by
|
109
109
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
110
110
|
0.8.7.6 (ruby-2.3.3).
|
111
111
|
</div>
|
data/example/bin/gen_world
CHANGED
data/example/bin/rubu_example
CHANGED
data/example/build/hello
CHANGED
Binary file
|
data/example/build/hello_world.o
CHANGED
Binary file
|
data/example/build/world.o
CHANGED
Binary file
|
data/example/gen_cee/world.c
CHANGED
data/example/src/hello_world.c
CHANGED
data/example/src/world.h
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
void print_world( void );
|
data/lib/rubu.rb
CHANGED
@@ -2,7 +2,6 @@ require 'open3'
|
|
2
2
|
require 'yaml'
|
3
3
|
require 'digest/md5'
|
4
4
|
|
5
|
-
|
6
5
|
module Rubu
|
7
6
|
|
8
7
|
# Persistent state of Rubu.
|
@@ -59,6 +58,7 @@ module Rubu
|
|
59
58
|
class Move
|
60
59
|
|
61
60
|
@@host = []
|
61
|
+
@@show_shell_warning = true
|
62
62
|
|
63
63
|
# Status after execution.
|
64
64
|
attr_reader :status
|
@@ -107,12 +107,21 @@ module Rubu
|
|
107
107
|
STDERR.puts "Rubu Error: #{@errmsg}"
|
108
108
|
end
|
109
109
|
|
110
|
+
# Report warning.
|
111
|
+
def warn( msg )
|
112
|
+
STDERR.puts "Rubu Warning: #{msg}"
|
113
|
+
end
|
114
|
+
|
110
115
|
# Display command output.
|
111
116
|
def display( msg )
|
112
117
|
@output = msg
|
113
118
|
STDOUT.puts @output
|
114
119
|
end
|
115
120
|
|
121
|
+
def set_show_shell_warning( value = true )
|
122
|
+
@@show_shell_warning = value
|
123
|
+
end
|
124
|
+
|
116
125
|
end
|
117
126
|
|
118
127
|
|
@@ -134,6 +143,9 @@ module Rubu
|
|
134
143
|
end
|
135
144
|
|
136
145
|
if status.exitstatus == 0
|
146
|
+
if @@show_shell_warning && not( stderr.empty? )
|
147
|
+
warn( stderr )
|
148
|
+
end
|
137
149
|
@status = :success
|
138
150
|
else
|
139
151
|
@status = :error
|
@@ -528,6 +540,11 @@ module Rubu
|
|
528
540
|
end
|
529
541
|
|
530
542
|
|
543
|
+
# Default to no action. Typically this method is redefined.
|
544
|
+
def step
|
545
|
+
end
|
546
|
+
|
547
|
+
|
531
548
|
# Run Step and capture status.
|
532
549
|
def run
|
533
550
|
if update?
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tero Isannainen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |-
|
14
14
|
Rubu (Re-Usable Build Utility) is a library for building
|
@@ -78,6 +78,7 @@ files:
|
|
78
78
|
- example/gen_cee/world.c
|
79
79
|
- example/runme
|
80
80
|
- example/src/hello_world.c
|
81
|
+
- example/src/world.h
|
81
82
|
- example/up-to-date
|
82
83
|
- lib/rubu.rb
|
83
84
|
- lib/version.rb
|