dev 2.0.154 → 2.0.155
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/apps/msbuild.rb +10 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8efbafd59f2abbe6d37cf11e5f0a6890bea045d8
|
4
|
+
data.tar.gz: 2de49b000b870a402380afe9873d4576a6c6ce02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35380fa3043ff0636dfbec09894aa64c8542f9941f4c3e4fa93122e41bc2d2516002d514addeb53d81620f7379073153fbc4009772ea5965bae01f20bec0eaf7
|
7
|
+
data.tar.gz: 704a09c6e707f144d3baea436ca5b4db87197f26ee6a83357638df3031d7f90c9a988eba75a2afb33b4a460ed3ba0c7c88cddbe60fd60c4e446735c7354ea21f
|
data/lib/apps/msbuild.rb
CHANGED
@@ -27,7 +27,17 @@ class MSBuild < Hash
|
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
|
+
def self.in_path?
|
31
|
+
command=Command.new('msbuild /version')
|
32
|
+
command[:quiet]=true
|
33
|
+
command[:ignore_failure]=true
|
34
|
+
command.execute
|
35
|
+
return true if(command[:exit_code] == 0)
|
36
|
+
false
|
37
|
+
end
|
38
|
+
|
30
39
|
def self.get_version version
|
40
|
+
return "msbuild" if MSBuild.in_path?
|
31
41
|
if(defined?(MSBUILD))
|
32
42
|
MSBUILD[version]
|
33
43
|
else
|