albacore 2.0.11 → 2.0.12

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: 1308f930ad75cb7e143505c49a53db15aaa988f7
4
- data.tar.gz: 74473ea92736a01c725e0bbfb5ed36d2421f2a46
3
+ metadata.gz: 2ac618a61dbd17425de0921b7280b23566d978f4
4
+ data.tar.gz: 7dee830a2e4d41157e336f360a0bb3893d88ff69
5
5
  SHA512:
6
- metadata.gz: 261d88d30963978abcb8595af5838b52f34c698bbc88fa61bcb207958208e8c4ee2ca494a8578ffab77e837864e81f519d65008128c0eedaa6cf8061177fac42
7
- data.tar.gz: 6e347fca7aab405e99592826958a9ff6e069a310b627222f373f57f1ac9612ba3b42fa25f08fcd7d80779cc44546c5962688ac367b5f89a012379214543a4aad
6
+ metadata.gz: d3ad4aac58a4efd75fc59481905988e7d178316edb2324c39df78b175bc3fe064ca6356c076b134bcd1e7f95dfb3a0901201cb6ac3446a2a101892ed1d5fadd2
7
+ data.tar.gz: 6e932cab351b7bb2c94ef21f9930b8efc5641148326d39cee80afdf43cfa78abe84fb41a3654b10269bb0fa639eda663f1b2dacbd082ee14aaf1621cd2b7ee7f
@@ -74,7 +74,7 @@ module Albacore
74
74
  trace "Got symbols return value: '#{out}', matched: '#{$1}'" if $1
75
75
  return $1 if $1
76
76
 
77
- out.match /Successfully created package '([:\s\w\\\/\d\.]+\.nupkg)'./i if out.respond_to? :match
77
+ out.match /Successfully created package '([:\s\w\\\/\d\.\-]+\.nupkg)'./i if out.respond_to? :match
78
78
  trace "Got NOT-symbols return value: '#{out}', matched: '#{$1}'"
79
79
 
80
80
  unless $1
@@ -1,3 +1,3 @@
1
1
  module Albacore
2
- VERSION = "2.0.11"
2
+ VERSION = "2.0.12"
3
3
  end
@@ -146,6 +146,13 @@ Successfully created package '/home/xyz/Shared/build/pkg/MyNuget.Package.1.0.0-a
146
146
  EXAMPLE_OUTPUT
147
147
  end
148
148
 
149
+ let :sample4 do
150
+ <<EXAMPLE_OUTPUT
151
+ Attempting to build package from 'MyNuget.Package.nuspec'.
152
+ Successfully created package '/home/xyz/Shared/build/pkg/MyNuget.Package.1.0.0-alpha.nupkg'.
153
+ EXAMPLE_OUTPUT
154
+ end
155
+
149
156
  it "should match sample1 with last nupkg mentioned" do
150
157
  match = subject.send(:get_nuget_path_of) { sample1 }
151
158
  match.should eq('Y:\\Shared\\build\\pkg\\MyNuget.Package.1.0.0.symbols.nupkg')
@@ -160,6 +167,11 @@ EXAMPLE_OUTPUT
160
167
  match = subject.send(:get_nuget_path_of) { sample3 }
161
168
  match.should eq('/home/xyz/Shared/build/pkg/MyNuget.Package.1.0.0-alpha3.symbols.nupkg')
162
169
  end
170
+
171
+ it 'should match sample4 with last nupkg mentioned' do
172
+ match = subject.send(:get_nuget_path_of) { sample4 }
173
+ match.should eq('/home/xyz/Shared/build/pkg/MyNuget.Package.1.0.0-alpha.nupkg')
174
+ end
163
175
  end
164
176
 
165
177
  # testing nuspec task
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.0.11
4
+ version: 2.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henrik Feldt