raykit 0.0.420 → 0.0.421
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/raykit/msbuild.rb +8 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '08950e670073b00324fc3b72e3ad590596f5a0d6464e9c08ae3443cb86c5fdbd'
|
4
|
+
data.tar.gz: f8e3cd51b4781af195e7b0da3ce956f058f1274c6c6e37c78ad68c4edd959fbd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b524750ccec43008b4a3a4871fcfbc5157295c3a0a82a496efdd36fcccada919e98cf7cd575151a5cd92befda1d354d63cbb0a63aae1c5f55db5675d20758614
|
7
|
+
data.tar.gz: 89fa69af1d61a7698e519b56fb241ef4e6e3fcf74c594a209bbfadddd825691879c40aff1b73ff9c3860133f9addca2ebaf72a9a06ecfd9ed870ab9d67d7f15d
|
data/lib/raykit/msbuild.rb
CHANGED
@@ -5,8 +5,14 @@ module Raykit
|
|
5
5
|
def self.fix_msbuild_path
|
6
6
|
# if msbuild in not in the current path,
|
7
7
|
# attempt to modify the path such that is it
|
8
|
-
|
9
|
-
|
8
|
+
has_msbuild = false
|
9
|
+
begin
|
10
|
+
cmd = Raykit::Command.new("msbuild --version").run
|
11
|
+
has_msbuild = true if (cmd.exitstatus != 0)
|
12
|
+
rescue
|
13
|
+
has_msbuild = false
|
14
|
+
end
|
15
|
+
if (!has_msbuild)
|
10
16
|
if (Dir.exists?(msbuild_path))
|
11
17
|
puts " added #{msbuild_path} to PATH for msbuild"
|
12
18
|
ENV["PATH"] = ENV["PATH"] + ";#{msbuild_path}"
|