bake-toolkit 1.0.8 → 1.0.9

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.
Files changed (3) hide show
  1. data/lib/bake/options.rb +25 -6
  2. data/lib/bake/version.rb +1 -1
  3. metadata +2 -2
@@ -44,12 +44,15 @@ module Cxxproject
44
44
  add_option(Option.new("-c",false) { set_clean })
45
45
  add_option(Option.new("-a",true) { |x| set_color(x) })
46
46
  add_option(Option.new("-w",true) { |x| set_root(x) })
47
- add_option(Option.new("-v",false) { set_verbose })
48
47
  add_option(Option.new("-r",false) { set_error })
49
48
  add_option(Option.new("--rebuild",false) { set_rebuild })
50
49
  add_option(Option.new("--prepro",false) { set_prepro })
51
50
  add_option(Option.new("--link_only",false) { set_linkOnly })
52
- add_option(Option.new("--print_less",false) { set_printLess })
51
+
52
+ add_option(Option.new("-v0",false) { set_v(0) })
53
+ add_option(Option.new("-v1",false) { set_v(1) })
54
+ add_option(Option.new("-v2",false) { set_v(2) })
55
+
53
56
  add_option(Option.new("--ignore_cache",false) { set_nocache })
54
57
  add_option(Option.new("--threads",true) { |x| set_threads(x) })
55
58
  add_option(Option.new("--socket",true) { |x| set_socket(x) })
@@ -77,7 +80,7 @@ module Cxxproject
77
80
  puts " -f <name> Build/Clean this file only."
78
81
  puts " -c Clean the file/project."
79
82
  puts " -a <scheme> Use ansi color sequences (console must support it). Possible values are 'white' and 'black'."
80
- puts " -v Verbose output."
83
+ puts " -v<level> Verbose level from 0 to 2, whereas -v0 is less, -v1 is normal (default) and -v2 is more verbose."
81
84
  puts " -r Stop on first error."
82
85
  puts " -w <root> Add a workspace root (can be used multiple times)."
83
86
  puts " If no root is specified, the parent directory of the main project is added automatically."
@@ -168,9 +171,6 @@ module Cxxproject
168
171
  @clean = true
169
172
  @rebuild = true
170
173
  end
171
- def set_verbose()
172
- @verbose = true
173
- end
174
174
  def set_nocache()
175
175
  @nocache = true
176
176
  end
@@ -184,9 +184,28 @@ module Cxxproject
184
184
  @linkOnly = true
185
185
  set_single()
186
186
  end
187
+
188
+ def set_v(num)
189
+ if num == 0
190
+ @printLess = true
191
+ @verbose = false
192
+ elsif num == 1
193
+ @printLess = false
194
+ @verbose = false
195
+ elsif num == 2
196
+ @printLess = false
197
+ @verbose = true
198
+ end
199
+ end
200
+
187
201
  def set_printLess()
188
202
  @printLess = true
189
203
  end
204
+ def set_verbose()
205
+ @verbose = true
206
+ end
207
+
208
+
190
209
  def set_color(x)
191
210
  if (x != "black" and x != "white")
192
211
  Printer.printError "Error: color scheme must be 'black' or 'white'"
@@ -1,7 +1,7 @@
1
1
  module Cxxproject
2
2
  class Version
3
3
  def self.bake
4
- "1.0.8"
4
+ "1.0.9"
5
5
  end
6
6
  end
7
7
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: bake-toolkit
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.8
5
+ version: 1.0.9
6
6
  platform: ruby
7
7
  authors:
8
8
  - Alexander Schaal
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2013-03-07 00:00:00 Z
13
+ date: 2013-03-22 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: cxxproject