albacore 3.0.0.pre.alpha.2 → 3.0.0.pre.alpha.3

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: 0d8d6861b98e42667d38dd2c30470958387f481e
4
- data.tar.gz: 5b40c5f5645dc93216bcd7951829878a8e9bbd22
3
+ metadata.gz: c52d3c10d5169db857d9c41ac91cea72e9d5c9bb
4
+ data.tar.gz: 7bfd829c7a4609e5e08d4d2e3de484a0e5551623
5
5
  SHA512:
6
- metadata.gz: 67cad4c15fdbe1a8d3ff78284b8818756423e9fedb2f02383f25f3d0c1e1dbfeb810f0fcb863df200d5324e7e0e83a9fecb72a83d6165a3fc0e9d03469416595
7
- data.tar.gz: 973aa00d6ed341eccc5875cefb7819c625071bcf84233b0e5dc28b029fdb738d265819fef6093ee23dd382d779d029df1a895a80191d7570a5316ae4deb9aba0
6
+ metadata.gz: 95d5c3bfe665576aeccde8aa0435d935d25744f699ab34e746c81cb10525ca18e53f9b6928f285c116b275a3f4dc67b859a40a131f3417a6209d486dfd4a558f
7
+ data.tar.gz: c3c79b0eddccc075d9f25718c2cfb18060024f5147ae6af89a477e809934ed5c0130a999ca9775ec74bcfb5425700381b04f8a1b77c732968aef6963b8998776
@@ -151,9 +151,9 @@ end})
151
151
  # fields
152
152
  @set_fields.each do |f|
153
153
  key, value = Metadata.pascal_case(f), send(f)
154
- if value.include?("\n")
154
+ if value.is_a?(Array)
155
155
  lines << "#{key}"
156
- value.split(/\r\n|\n/).map{ |line| " #{line}"}.each do |line|
156
+ value.map{ |line| " #{line}" }.each do |line|
157
157
  lines << line
158
158
  end
159
159
  else
@@ -381,7 +381,7 @@ end})
381
381
  end
382
382
  end
383
383
 
384
- lines.join("\n")
384
+ lines
385
385
  end
386
386
 
387
387
  # gets the current package as a xml builder
@@ -119,7 +119,9 @@ module Albacore
119
119
  path = File.join(proj.proj_path_base, "paket.template")
120
120
 
121
121
  File.open(path, 'w') do |template|
122
- template.write package.to_template
122
+ contents = package.to_template.join("\n")
123
+ template.write contents
124
+ debug { "Wrote paket.template file:\n#{contents}" }
123
125
  end
124
126
 
125
127
  parameters = defaults config
@@ -1,3 +1,3 @@
1
1
  module Albacore
2
- VERSION = "3.0.0-alpha.2"
2
+ VERSION = "3.0.0-alpha.3"
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: 3.0.0.pre.alpha.2
4
+ version: 3.0.0.pre.alpha.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henrik Feldt