visual_studio 0.1.0.0 → 0.1.0.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 38c15ded9a23970f8ebd645bae32928356583bcb
4
- data.tar.gz: 015f9f7e2367f5623b8fa49aa86d8d3d6c047721
3
+ metadata.gz: c957a6d1c02f808242afecab8c3354124319099b
4
+ data.tar.gz: fb37acaf249a250e5f21927049e42594713f66be
5
5
  SHA512:
6
- metadata.gz: 08d288974cf0bf71856357445f97515c5004059970120161aa912d7c1b924812267850ca06ffb096289b0da3d097b7f49adbe30d3b9f27917e2a1d77e7b3237f
7
- data.tar.gz: 96e52c28e3201f69dfd979cc4bcc1794be2f0e95feaaa67d6d3e63597b9bb1c5ae40da4540ba14e52e39787feb7e3ce8e97f6622dd17fd72499caef5b93b7b6b
6
+ metadata.gz: b57a167ad532f99541175ba0037212415c8232cd7e910df012767b241fe4ce36620aa4d684799cf195d3e1802b1612aee71b8255134686e6c1b3c5895a5782f2
7
+ data.tar.gz: 5173d073542e36c83a46bdaaf5ea8714bb41d2081ffafcbc659198029c5b5fb4e7e443263909c8c59890731c23143643cdfe2d49ab89c6a993d75735a30d5b11
@@ -41,7 +41,7 @@ module VisualStudio
41
41
  end
42
42
 
43
43
  module VERSION #:nodoc:
44
- MAJOR, MINOR, PATCH, PRE = [0, 1, 0, 0]
44
+ MAJOR, MINOR, PATCH, PRE = [0, 1, 0, 1]
45
45
  STRING = [MAJOR, MINOR, PATCH, PRE].compact.join('.')
46
46
  end
47
47
 
@@ -40,13 +40,12 @@ module VisualStudio
40
40
  # TODO(mtwilliams): Check if the architecture is supported.
41
41
  # @supports.include?(target[:architecture])
42
42
 
43
- delim = "d33b66512b1a01e9e3ee46e5f96a8036"
44
43
  cmd = "call \"#{File.join(@root, 'vcvarsall.bat')}\" #{arch} & " +
45
- "echo puts '#{delim}'; require('json'); print JSON.generate(ENV.to_h); | ruby\n"
46
- out, _, status = Open3.capture3(opts[:base] || ENV.to_h, "cmd.exe /C \"#{cmd}\"")
44
+ "echo require('json'); print JSON.generate(ENV.to_h); | ruby\n"
45
+ out, _, status = Open3.capture3(ENV.to_h, "cmd.exe /C \"#{cmd}\"")
47
46
  return nil unless status == 0
48
47
 
49
- env = JSON.parse(out.split(delim)[1])
48
+ env = VisualStudio::Environment.merge(opts[:base] || {}, JSON.parse(out))
50
49
  env = VisualStudio::Environment.merge(env, opts[:overlay] || {})
51
50
 
52
51
  env
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: visual_studio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.0
4
+ version: 0.1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Williams