bake-toolkit 2.26.1 → 2.27.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/bakeqac +58 -97
- data/documentation/_build/html/_sources/changelog.txt +6 -2
- data/documentation/_build/html/_sources/index.txt +1 -1
- data/documentation/_build/html/_sources/syntax/adapt_configs.txt +107 -17
- data/documentation/_build/html/_static/syntax.html +3 -5
- data/documentation/_build/html/changelog.html +8 -2
- data/documentation/_build/html/index.html +4 -4
- data/documentation/_build/html/objects.inv +0 -0
- data/documentation/_build/html/searchindex.js +1 -1
- data/documentation/_build/html/syntax/adapt_configs.html +97 -13
- data/documentation/_build/html/syntax/project_meta_syntax.html +3 -5
- data/documentation/_build/html/syntax/syntax.html +4 -1
- data/lib/adapt/config/loader.rb +9 -7
- data/lib/bake/config/checks.rb +2 -2
- data/lib/bake/config/loader.rb +31 -2
- data/lib/bake/model/metamodel.rb +8 -4
- data/lib/bake/subst.rb +314 -314
- data/lib/common/utils.rb +22 -1
- data/lib/common/version.rb +1 -1
- metadata +2 -2
data/lib/common/utils.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'rbconfig'
|
2
|
+
|
1
3
|
module Bake
|
2
4
|
|
3
5
|
module Utils
|
@@ -39,7 +41,26 @@ module Bake
|
|
39
41
|
|
40
42
|
# Is it windows
|
41
43
|
def OS.windows?
|
42
|
-
(RUBY_PLATFORM =~ /cygwin|mswin|mingw|bccwin|wince|emx/) != nil
|
44
|
+
(RUBY_PLATFORM =~ /cygwin|mswin|msys|mingw|bccwin|wince|emx|emc/) != nil
|
45
|
+
end
|
46
|
+
|
47
|
+
def OS.name
|
48
|
+
@os ||= (
|
49
|
+
host_os = RbConfig::CONFIG['host_os']
|
50
|
+
case host_os
|
51
|
+
when /mswin|msys|mingw|cygwin|bccwin|wince|emc/
|
52
|
+
"Windows"
|
53
|
+
when /darwin|mac os/
|
54
|
+
"Mac"
|
55
|
+
when /linux/
|
56
|
+
"Linux"
|
57
|
+
when /solaris|bsd/
|
58
|
+
"Unix"
|
59
|
+
else
|
60
|
+
Bake.formatter.printError("Unknown OS: #{host_os.inspect}")
|
61
|
+
ExitHelper.exit(1)
|
62
|
+
end
|
63
|
+
)
|
43
64
|
end
|
44
65
|
|
45
66
|
end
|
data/lib/common/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bake-toolkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.27.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Schaal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rtext
|