albacore 2.0.11 → 2.0.12
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/nugets_pack.rb +1 -1
- data/lib/albacore/version.rb +1 -1
- data/spec/nugets_pack_spec.rb +12 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ac618a61dbd17425de0921b7280b23566d978f4
|
4
|
+
data.tar.gz: 7dee830a2e4d41157e336f360a0bb3893d88ff69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
data/lib/albacore/version.rb
CHANGED
data/spec/nugets_pack_spec.rb
CHANGED
@@ -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
|