bake-toolkit 1.0.12 → 1.0.13
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/bake/version.rb +1 -1
- data/lib/bakery/options.rb +1 -10
- metadata +2 -2
data/lib/bake/version.rb
CHANGED
data/lib/bakery/options.rb
CHANGED
@@ -21,8 +21,6 @@ module Cxxproject
|
|
21
21
|
@socket = 0
|
22
22
|
@def_root = nil
|
23
23
|
|
24
|
-
add_default(Proc.new{ |x| set_collection_name_default(x) })
|
25
|
-
|
26
24
|
add_option(Option.new("-b",true) { |x| set_collection_name(x) })
|
27
25
|
add_option(Option.new("-m",true) { |x| set_collection_dir(x) })
|
28
26
|
add_option(Option.new("-r",false) { set_error })
|
@@ -34,7 +32,7 @@ module Cxxproject
|
|
34
32
|
|
35
33
|
def usage
|
36
34
|
puts "\nUsage: bake <name> [options]"
|
37
|
-
puts "
|
35
|
+
puts " -b <name> Name of the collection to build."
|
38
36
|
puts " -m <dir> Directory containing the collection file (default is current directory)."
|
39
37
|
puts " -r Stop on first error."
|
40
38
|
puts " -a <scheme> Use ansi color sequences (console must support it). Possible values are 'white' and 'black'."
|
@@ -62,13 +60,6 @@ module Cxxproject
|
|
62
60
|
end
|
63
61
|
end
|
64
62
|
|
65
|
-
def set_collection_name_default(collection_name)
|
66
|
-
index = collection_name.index('-')
|
67
|
-
return false if (index != nil and index == 0)
|
68
|
-
set_collection_name(collection_name)
|
69
|
-
return true
|
70
|
-
end
|
71
|
-
|
72
63
|
def set_collection_name(collection_name)
|
73
64
|
if not @collection_name.empty?
|
74
65
|
Printer.printError "Error: Cannot set collection name '#{collection_name}', because collection name is already set to '#{@collection_name}'"
|
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.
|
5
|
+
version: 1.0.13
|
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-04-
|
13
|
+
date: 2013-04-19 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: cxxproject
|