albacore 2.5.0 → 2.5.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 +4 -4
- data/lib/albacore/task_types/build.rb +30 -22
- data/lib/albacore/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4fd3ff9ec3194fa9be37b1c6d14c587f2259387e
|
4
|
+
data.tar.gz: 9897cd7a1685e39db5a9f625e505f789f7cb9bb7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
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
|
data/lib/albacore/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2015-07-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|