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/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 Sun Jul 8 19:50:20 2018 by
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 Sun Jul 8 19:50:19 2018 by
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>
@@ -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.3
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 Sun Jul 8 19:50:19 2018 by
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 Sun Jul 8 19:50:19 2018 by
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 Sun Jul 8 19:50:19 2018 by
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="r1 ">
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="r2 ">
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="r1 ">
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="r2 ">
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="r1 ">
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="r2 ">
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="r1 ">
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 Sun Jul 8 19:50:19 2018 by
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>
@@ -10,5 +10,10 @@ IO.write( 'gen_cee/world.c', "\
10
10
  void print_world( void )
11
11
  {
12
12
  printf( \"World\" );
13
- }"
13
+ }
14
+
15
+ void print_non_declared( void )
16
+ {
17
+ }
18
+ "
14
19
  )
@@ -2,7 +2,8 @@
2
2
 
3
3
  require 'como'
4
4
  include Como
5
- require 'rubu'
5
+ #require 'rubu'
6
+ require_relative '../../lib/rubu.rb'
6
7
  include Rubu
7
8
 
8
9
  require 'fileutils'
data/example/build/hello CHANGED
Binary file
Binary file
Binary file
@@ -3,4 +3,8 @@
3
3
  void print_world( void )
4
4
  {
5
5
  printf( "World" );
6
- }
6
+ }
7
+
8
+ void print_non_declared( void )
9
+ {
10
+ }
@@ -1,11 +1,11 @@
1
1
  #include <stdio.h>
2
-
3
- void print_world( void );
2
+ #include "world.h"
4
3
 
5
4
  int main( int argc, char** argv )
6
5
  {
7
6
  printf( "Hello " );
8
7
  print_world();
8
+ print_non_declared();
9
9
  printf( "!\n" );
10
10
  return 0;
11
11
  }
@@ -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
@@ -1,5 +1,5 @@
1
1
  class Rubu
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  def Rubu.version
4
4
  Rubu::VERSION
5
5
  end
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.3
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-07-08 00:00:00.000000000 Z
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