raykit 0.0.420 → 0.0.421

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/raykit/msbuild.rb +8 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4b72f7a7f55cd4b88f34c77275294fbc9307eae4ed42aaa80dbcde25baa583c3
4
- data.tar.gz: 1e797be59039805c9ebc38c85e0b453613ac1c564f6bf627f783bdd0d4b67ea0
3
+ metadata.gz: '08950e670073b00324fc3b72e3ad590596f5a0d6464e9c08ae3443cb86c5fdbd'
4
+ data.tar.gz: f8e3cd51b4781af195e7b0da3ce956f058f1274c6c6e37c78ad68c4edd959fbd
5
5
  SHA512:
6
- metadata.gz: a0922b78b70f1a3c4adb8860bcdd204a93e6474d27c7eb8d17240915627775d243a99d50692a16116bfd533914302ac50728bc5df4c4aaab5ca9e6e1134027da
7
- data.tar.gz: 1ed51bac46c19d95c6f0dbb267e56d9aa56b1c1c6fdcfa2d80de38e89a9102f1ed570350229fe85c19c123526ab73e27cfe5231a598f767b77456888a90490a6
6
+ metadata.gz: b524750ccec43008b4a3a4871fcfbc5157295c3a0a82a496efdd36fcccada919e98cf7cd575151a5cd92befda1d354d63cbb0a63aae1c5f55db5675d20758614
7
+ data.tar.gz: 89fa69af1d61a7698e519b56fb241ef4e6e3fcf74c594a209bbfadddd825691879c40aff1b73ff9c3860133f9addca2ebaf72a9a06ecfd9ed870ab9d67d7f15d
@@ -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
- cmd = Raykit::Command.new("msbuild --version").run
9
- if (cmd.exitstatus != 0)
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}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raykit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.420
4
+ version: 0.0.421
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow