albacore 2.5.0 → 2.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ed4e5ebd8a606482ca886f5c025967a793553061
4
- data.tar.gz: b5713f0ccf76962f2871166a64d9afff26a1796e
3
+ metadata.gz: 4fd3ff9ec3194fa9be37b1c6d14c587f2259387e
4
+ data.tar.gz: 9897cd7a1685e39db5a9f625e505f789f7cb9bb7
5
5
  SHA512:
6
- metadata.gz: 4c46556532c61b5957b31eea8b9858ac39b7f682e1c90822d13d5499cf16927396947c27def6b2e4c11ce0a67fe4fcbaec24595e9d9a1e55f9a0c185a10bbf3d
7
- data.tar.gz: f0d6b2f76c60044fe3cb3b82d12bcb5caa1f3da6b390c98c2d965fb947d0bf5f9b3c573802b0d8c20ed9c9b97e19a187171572d5fd702fd73676c39bbabd8a1d
6
+ metadata.gz: 3229d518b1dc001258d4bed570d56d928868742660dbbebe98e20aa4244fc9314551de55f5539915cef7a590888a155a94d06f02fd8f16233dfd5e2af7e3d8e5
7
+ data.tar.gz: d158465aebea3b14ee53fe2ae5dc6f55358543f3d1e18a497e66cb4ef5d345fb540ca632acb515e7c00cb68972dc21c0864664c878f80d64d9b341ccdb0387cf
@@ -91,10 +91,10 @@ module Albacore
91
91
  @parameters.add "/property:#{make_props}"
92
92
  end
93
93
 
94
- # Specifies the amount of information to display in the build log.
94
+ # Specifies the amount of information to display in the build log.
95
95
  # Each logger displays events based on the verbosity level that you set for that logger.
96
- # You can specify the following verbosity levels: q[uiet], m[inimal],
97
- # n[ormal], d[etailed], and diag[nostic].
96
+ # You can specify the following verbosity levels: q[uiet], m[inimal],
97
+ # n[ormal], d[etailed], and diag[nostic].
98
98
  attr_path_accessor :logging do |mode|
99
99
  set_logging mode
100
100
  end
@@ -156,7 +156,7 @@ module Albacore
156
156
  # @targets ||= []
157
157
  instance_variable_set field, [] unless instance_variable_defined? field
158
158
  # parameters.delete "/target:#{make_target}" if @targets.any?
159
- @parameters.delete "/#{prop_name}:#{callable_prop_val.call}" if
159
+ @parameters.delete "/#{prop_name}:#{callable_prop_val.call}" if
160
160
  instance_variable_get(field).any?
161
161
  if value.respond_to? 'each'
162
162
  value.each { |v| instance_variable_get(field) << v }
@@ -183,24 +183,32 @@ module Albacore
183
183
  end
184
184
 
185
185
  def heuristic_executable
186
- if ::Rake::Win32.windows?
187
- require 'win32/registry'
188
- trace 'build tasktype finding msbuild.exe'
189
- %w{12.0 4.0 3.5 2.0}.collect { |msbuild_ver|
190
- msb = "msbuild_not_found"
191
- key = "SOFTWARE\\Microsoft\\MSBuild\\ToolsVersions\\#{msbuild_ver}"
192
- begin
193
- Win32::Registry::HKEY_LOCAL_MACHINE.open(key) do |reg|
194
- msb = "#{reg['MSBuildToolsPath']}\\msbuild.exe"
195
- end
196
- rescue
197
- error "failed to open HKLM\\#{key}\\MSBuildToolsPath"
198
- end
199
- CrossPlatformCmd.which(msb) ? msb : nil
200
- }.compact.first
201
- else
202
- nil
203
- end
186
+ return nil unless ::Rake::Win32.windows?
187
+ require 'win32/registry'
188
+ trace 'build tasktype finding msbuild.exe'
189
+
190
+ msb = "msbuild_not_found"
191
+ maxVersion = -1
192
+ begin
193
+ Win32::Registry::HKEY_LOCAL_MACHINE.open('SOFTWARE\Microsoft\MSBuild\ToolsVersions') do |toolsVersion|
194
+ toolsVersion.each_key do |key|
195
+ begin
196
+ versionKey = toolsVersion.open(key)
197
+ version = key.to_i
198
+ if maxVersion < version
199
+ maxVersion = version
200
+ msb = "#{versionKey['MSBuildToolsPath']}\\msbuild.exe"
201
+ end
202
+ rescue
203
+ error "failed to open #{key}"
204
+ end
205
+ end
206
+ end
207
+ rescue
208
+ error "failed to open HKLM\\SOFTWARE\\Microsoft\\MSBuild\\ToolsVersions"
209
+ end
210
+
211
+ CrossPlatformCmd.which(msb) ? msb : nil
204
212
  end
205
213
 
206
214
  end
@@ -1,3 +1,3 @@
1
1
  module Albacore
2
- VERSION = "2.5.0"
2
+ VERSION = "2.5.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: albacore
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0
4
+ version: 2.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henrik Feldt
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-07-29 00:00:00.000000000 Z
12
+ date: 2015-07-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake