dev 2.0.154 → 2.0.155

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/apps/msbuild.rb +10 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8ecc064d2bb3a91b7b9a140e571e6dd34f6c1876
4
- data.tar.gz: 7beb03b814be2065af6dba08c2e56d6c0814380d
3
+ metadata.gz: 8efbafd59f2abbe6d37cf11e5f0a6890bea045d8
4
+ data.tar.gz: 2de49b000b870a402380afe9873d4576a6c6ce02
5
5
  SHA512:
6
- metadata.gz: c572c34f1b8a233f47a514084a02d9a0cedf4c00792a429d3f0712843541ccac69cceaefda91b9157cc7c4d7be600a4942bbd25688b3c0785ca8daa3a784fbbf
7
- data.tar.gz: dcef716be0fbbbda3ddcc844c770574648e322d21ad6b168893550cb6ff218c3770dfd14dc27cbfa2d3f9e30173ba12f4df83325dda351a47043ad9d1636b06f
6
+ metadata.gz: 35380fa3043ff0636dfbec09894aa64c8542f9941f4c3e4fa93122e41bc2d2516002d514addeb53d81620f7379073153fbc4009772ea5965bae01f20bec0eaf7
7
+ data.tar.gz: 704a09c6e707f144d3baea436ca5b4db87197f26ee6a83357638df3031d7f90c9a988eba75a2afb33b4a460ed3ba0c7c88cddbe60fd60c4e446735c7354ea21f
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.154
4
+ version: 2.0.155
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow