albacore 2.6.3 → 2.6.4

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: 66eb87201827d6f4d68a891f33f8d92176012954
4
- data.tar.gz: e9a46f390f4f2f9adc3cddcae4e65e217ee2b668
3
+ metadata.gz: 569f47e4cc889df5d9202cf8a7a25e49d8ab10fe
4
+ data.tar.gz: fb33c7409649a6a79a51a45cc04913d26430a6fe
5
5
  SHA512:
6
- metadata.gz: c19de60b56f2c059ea64893124dbfa6e249379a89ea3d20a8164465c5dcf7ef8ea90d8c4b677df88a350fcda34abcad5c7b853d7ecfef6fbee4c98487b04a5bd
7
- data.tar.gz: 5e061937da4fb68c6086d6a90c57eedda356e3a2bc59963bbe644ad944f944fde7e50ad84f59b1ab035ffec9bac67666a20962b624e6603cad7f1431c5ed7f6d
6
+ metadata.gz: 657d342f87d71efa8a73b7806cf22e6244f04c74a7cdca259daf1af0a1a858cc394dad2b5e10ef0fe2f23d5bb90d092255d6263b00f52217e808e26a5192e836
7
+ data.tar.gz: 78cc075bcdc8a0a081e0283f84f6a1970f30bff1660eb0f6fd4345c029b3cf5c24f06bbe7aefc5b86a24b3e83b829bfd8ce87451f4f5f7827c9c9efb374a6f90
@@ -144,6 +144,11 @@ end})
144
144
  x.dependency id: d.id, version: d.version
145
145
  }
146
146
  }
147
+ x.frameworkAssemblies {
148
+ @framework_assemblies.each { |k, d|
149
+ x.frameworkAssembly assemblyName: d.id, targetFramework: d.version
150
+ }
151
+ }
147
152
  }
148
153
  end
149
154
  end
@@ -192,9 +197,9 @@ end})
192
197
  n.children.reject { |n| n.text? }.each do |dep|
193
198
  m.add_dependency dep['id'], dep['version']
194
199
  end
195
- elsif n.name == 'frameworkDepdendencies'
200
+ elsif n.name == 'frameworkDependencies'
196
201
  n.children.reject { |n| n.text? }.each do |dep|
197
- m.add_framework_depdendency dep['id'], dep['version']
202
+ m.add_framework_dependency dep['id'], dep['version']
198
203
  end
199
204
  else
200
205
  # just set the property
@@ -348,7 +353,8 @@ end})
348
353
  configuration: 'Debug',
349
354
  project_dependencies: true,
350
355
  verify_files: false,
351
- nuget_dependencies: true })
356
+ nuget_dependencies: true,
357
+ framework_dependencies: true })
352
358
 
353
359
  trace { "#from_xxproj proj: '#{proj}' opts: #{opts} [nuget model: package]" }
354
360
 
@@ -380,6 +386,13 @@ end})
380
386
  end
381
387
  end
382
388
 
389
+ if opts.get :framework_dependencies
390
+ fd = opts.get :framework_dependencies
391
+ fd.each { |n, p|
392
+ package.metadata.add_framework_dependency p.id, p.version
393
+ }
394
+ end
395
+
383
396
  output = get_output_path proj, opts
384
397
  target_lib = %W[lib #{opts.get(:dotnet_version)}].join(Albacore::Paths.separator)
385
398
 
@@ -320,6 +320,7 @@ and report a bug to albacore with the full output. Here's the nuget process outp
320
320
 
321
321
  def create_nuspec proj, knowns
322
322
  version = @opts.get(:package).metadata.version
323
+ framework_dependencies = @opts.get(:package).metadata.framework_assemblies
323
324
  project_dependencies = @opts.get(:project_dependencies, true)
324
325
  nuget_dependencies = @opts.get(:nuget_dependencies, true)
325
326
  target = @opts.get :target
@@ -333,7 +334,8 @@ and report a bug to albacore with the full output. Here's the nuget process outp
333
334
  version: version,
334
335
  configuration: (@opts.get(:configuration)),
335
336
  project_dependencies: project_dependencies,
336
- nuget_dependencies: nuget_dependencies
337
+ nuget_dependencies: nuget_dependencies,
338
+ framework_dependencies: framework_dependencies
337
339
 
338
340
  # take data from package as configured in Rakefile, choosing what is in
339
341
  # Rakefile over what is in projfile.
@@ -350,7 +352,8 @@ and report a bug to albacore with the full output. Here's the nuget process outp
350
352
  version: version,
351
353
  configuration: (@opts.get(:configuration)),
352
354
  project_dependencies: project_dependencies,
353
- nuget_dependencies: nuget_dependencies
355
+ nuget_dependencies: nuget_dependencies,
356
+ framework_dependencies: framework_dependencies
354
357
 
355
358
  nuspec_symbols = nuspec_symbols.merge_with @opts.get(:package)
356
359
  trace { "nuspec symbols: #{nuspec_symbols.to_s} [nugets pack: task]" }
@@ -50,7 +50,11 @@ module Albacore
50
50
  @opts = opts
51
51
 
52
52
  pars = opts.getopt(:parameters, :default => [])
53
- @parameters = [%W{install #{opts.getopt(:pkgcfg)} -OutputDirectory #{opts.getopt(:out)}}, pars.to_a].flatten
53
+
54
+ if (opts.getopt :source)
55
+ @parameters = [%W{install #{opts.getopt(:pkgcfg)} -OutputDirectory #{opts.getopt(:out)} -source #{@opts[:source][:uri]}}, pars.to_a].flatten
56
+ else
57
+ @parameters = [%W{install #{opts.getopt(:pkgcfg)} -OutputDirectory #{opts.getopt(:out)}}, pars.to_a].flatten
54
58
 
55
59
  mono_command
56
60
  end
@@ -117,6 +121,9 @@ module Albacore
117
121
  # defaults to true
118
122
  attr_accessor :include_official
119
123
 
124
+ # allows a source without credentials be added
125
+ attr_accessor :allow_insecure_source
126
+
120
127
  def exclude_version
121
128
  add_parameter "-ExcludeVersion"
122
129
  end
@@ -145,16 +152,18 @@ module Albacore
145
152
  pars = parameters.to_a
146
153
  debug "include_official nuget repo: #{include_official}"
147
154
  pars << %W[-source #{OFFICIAL_REPO}] if include_official
148
-
155
+
149
156
  map = Map.new({ :pkgcfg => Albacore::Paths.normalise_slashes(pkg),
150
157
  :out => @out,
151
158
  :parameters => pars })
152
159
 
153
- if has_credentials?
160
+ if allow_insecure_source
161
+ map.set :source, source
162
+ elsif has_credentials?
154
163
  map.set :username, username
155
164
  map.set :password, password
156
165
  map.set :source, source
157
- end
166
+ end
158
167
  map
159
168
  end
160
169
  end
@@ -191,7 +191,7 @@ module Albacore
191
191
  [Paths.normalise_slashes(Pathname.new(File.dirname(dll))), Pathname.new(exe)]
192
192
  end
193
193
 
194
- exe_rel = exe.relative_path_from dir
194
+ exe_rel = (Pathname.new exe.to_s).absolute? ? exe : exe.relative_path_from(dir)
195
195
  yield [File.dirname(dll), exe_rel.to_s]
196
196
  end
197
197
  end
@@ -1,3 +1,3 @@
1
1
  module Albacore
2
- VERSION = "2.6.3"
2
+ VERSION = "2.6.4"
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.6.3
4
+ version: 2.6.4
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: 2017-01-10 00:00:00.000000000 Z
12
+ date: 2017-03-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake