albacore 2.3.3 → 2.3.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad7e2ccdd0029e01e2d2fce9d84659101fe21663
|
4
|
+
data.tar.gz: c6c019c230185fae7118a2c032f5e4a52f26d215
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5224e0bcd7619547d797834d84d4b10834f2221ce2efb6274add9a8cf8d7d1af6cab901e6cbf18ca0da1cd7489f0b687b75cf3c6032f478e7b82e3d476d90ff3
|
7
|
+
data.tar.gz: 18f7870efc0eaa72550db608b330152e4221c25680f98f27a78aea55a3445cbb4e3576cd666ee9adaa8636f98f4c0968c005f501eb74828f0aef7d7154f4debc
|
data/lib/albacore/nuget_model.rb
CHANGED
@@ -371,10 +371,10 @@ end})
|
|
371
371
|
# add declared projects as dependencies
|
372
372
|
proj.
|
373
373
|
declared_projects.
|
374
|
-
keep_if { |p| opts.get(:known_projects).include? p.
|
374
|
+
keep_if { |p| opts.get(:known_projects).include? p.id }.
|
375
375
|
each do |p|
|
376
|
-
debug "adding project dependency: #{proj.
|
377
|
-
package.metadata.add_dependency p.
|
376
|
+
debug "adding project dependency: #{proj.id} => #{p.id} at #{version} [nuget model: package]"
|
377
|
+
package.metadata.add_dependency p.id, version
|
378
378
|
end
|
379
379
|
end
|
380
380
|
|
data/lib/albacore/version.rb
CHANGED
data/spec/app_spec_spec.rb
CHANGED
@@ -12,7 +12,7 @@ project_path: spec/testdata/Project/Project.fsproj
|
|
12
12
|
|
13
13
|
%w|title description uri category version license dir_path to_s|.map { |w| :"#{w}" }.each do |s|
|
14
14
|
it "should respond to ##{s}" do
|
15
|
-
subject.
|
15
|
+
expect(subject).to respond_to s
|
16
16
|
end
|
17
17
|
|
18
18
|
it "should be possible to always call ##{s}" do
|
@@ -25,43 +25,43 @@ project_path: spec/testdata/Project/Project.fsproj
|
|
25
25
|
end
|
26
26
|
|
27
27
|
it 'should have correct title' do
|
28
|
-
subject.title.
|
28
|
+
expect(subject.title).to eq 'superapp.now'
|
29
29
|
end
|
30
30
|
|
31
31
|
it 'should have nil license' do
|
32
|
-
subject.license.
|
32
|
+
expect(subject.license).to be_nil
|
33
33
|
end
|
34
34
|
|
35
35
|
it 'should have nil description' do
|
36
|
-
subject.description.
|
36
|
+
expect(subject.description).to be_nil
|
37
37
|
end
|
38
38
|
|
39
39
|
it 'should never have nil uri, since we\'re in the albacore git repo and it defaults to the current repo' do
|
40
|
-
subject.uri.
|
40
|
+
expect(subject.uri).to include 'albacore.git' unless teamcity? # teamcity doesn't keep git folder
|
41
41
|
end
|
42
42
|
|
43
43
|
it 'should have "apps" category, since it\'s not specified anywhere' do
|
44
|
-
subject.category.
|
44
|
+
expect(subject.category).to eq 'apps'
|
45
45
|
end
|
46
46
|
|
47
47
|
it 'should have a nil version' do
|
48
|
-
subject.version.
|
48
|
+
expect(subject.version).to eq('1.0.0')
|
49
49
|
end
|
50
50
|
|
51
51
|
it 'should have non-nil #bin_folder' do
|
52
|
-
subject.bin_folder.
|
52
|
+
expect(subject.bin_folder).to_not be_nil
|
53
53
|
end
|
54
54
|
|
55
55
|
it 'should have non-nil #conf_folder' do
|
56
|
-
subject.conf_folder.
|
56
|
+
expect(subject.conf_folder).to_not be_nil
|
57
57
|
end
|
58
58
|
|
59
59
|
it 'should have non-nil #contents' do
|
60
|
-
subject.contents.
|
60
|
+
expect(subject.contents).to_not be_nil
|
61
61
|
end
|
62
62
|
|
63
63
|
it 'should have a #contents that responds to #each' do
|
64
|
-
subject.contents.
|
64
|
+
expect(subject.contents).to respond_to :each
|
65
65
|
end
|
66
66
|
end
|
67
67
|
|
@@ -73,8 +73,6 @@ title: superapp.now
|
|
73
73
|
project_path: spec/testdata/Project/Project.fsproj
|
74
74
|
}
|
75
75
|
end
|
76
|
-
|
77
|
-
# TODO: create a spike that actually works and document what is required here
|
78
76
|
end
|
79
77
|
|
80
78
|
describe ::Albacore::AppSpec, 'when getting version from semver' do
|
@@ -88,7 +86,7 @@ project_path: spec/testdata/Project/Project.fsproj
|
|
88
86
|
end
|
89
87
|
|
90
88
|
it 'should take version from the semver first' do
|
91
|
-
subject.version.
|
89
|
+
expect(subject.version).to eq '1.2.3'
|
92
90
|
end
|
93
91
|
end
|
94
92
|
|
@@ -103,7 +101,7 @@ project_path: spec/testdata/Project/Project.fsproj
|
|
103
101
|
end
|
104
102
|
|
105
103
|
it 'should take version from the semver first' do
|
106
|
-
subject.version.
|
104
|
+
expect(subject.version).to eq '4.5.6'
|
107
105
|
end
|
108
106
|
end
|
109
107
|
|
@@ -136,15 +134,15 @@ describe ::Albacore::AppSpec, 'when fetching ALL data from Project.fsproj' do
|
|
136
134
|
it 'should find the directory of the project' do
|
137
135
|
# this also means it found a project and successfully parsed its project
|
138
136
|
# definition
|
139
|
-
subject.proj.proj_path_base.
|
137
|
+
expect(subject.proj.proj_path_base).to include File.dirname(project_path)
|
140
138
|
end
|
141
139
|
|
142
140
|
it 'should have the title' do
|
143
|
-
subject.title.
|
144
|
-
subject.title_raw.
|
141
|
+
expect(subject.title).to eq 'project'
|
142
|
+
expect(subject.title_raw).to eq 'Project'
|
145
143
|
end
|
146
144
|
|
147
145
|
it 'should have no license' do
|
148
|
-
subject.license.
|
146
|
+
expect(subject.license).to be_nil
|
149
147
|
end
|
150
148
|
end
|
data/spec/nuget_model_spec.rb
CHANGED
@@ -133,7 +133,7 @@ XML
|
|
133
133
|
|
134
134
|
# on Windows this fails due to replacement of path separators (by design)
|
135
135
|
unless ::Albacore.windows?
|
136
|
-
it
|
136
|
+
it 'should generate the same (semantic) XML as above' do
|
137
137
|
Nokogiri::XML(subject.to_xml, &:noblanks).to_xml.should eq(Nokogiri::XML(StringIO.new(xml), &:noblanks).to_xml)
|
138
138
|
end
|
139
139
|
end
|
@@ -278,7 +278,7 @@ describe "creating nuget (not symbols) from dependent proj file" do
|
|
278
278
|
:version => '2.3.0',
|
279
279
|
:configuration => 'Debug'
|
280
280
|
end
|
281
|
-
|
281
|
+
|
282
282
|
include_context 'package_metadata_dsl'
|
283
283
|
|
284
284
|
# from fsproj
|
@@ -309,7 +309,8 @@ describe "creating nuget on dependent proj file" do
|
|
309
309
|
|
310
310
|
let :projfile do
|
311
311
|
curr = File.dirname(__FILE__)
|
312
|
-
File.join curr, "testdata", "TestingDependencies", "Sample.Commands",
|
312
|
+
File.join curr, "testdata", "TestingDependencies", "Sample.Commands",
|
313
|
+
"Sample.Commands.fsproj"
|
313
314
|
end
|
314
315
|
|
315
316
|
let :opts do
|
@@ -321,11 +322,11 @@ describe "creating nuget on dependent proj file" do
|
|
321
322
|
subject do
|
322
323
|
Albacore::NugetModel::Package.from_xxproj_file projfile, opts
|
323
324
|
end
|
324
|
-
|
325
|
+
|
325
326
|
include_context 'package_metadata_dsl'
|
326
327
|
|
327
328
|
describe 'without project_dependencies' do
|
328
|
-
# just as the opts in the main describe says
|
329
|
+
# just as the opts in the main describe says
|
329
330
|
has_not_dep 'Sample.Core'
|
330
331
|
has_dep 'Magnum', '2.1.0'
|
331
332
|
has_dep 'MassTransit', '2.8.0'
|
@@ -335,6 +336,25 @@ describe "creating nuget on dependent proj file" do
|
|
335
336
|
has_not_file 'Library.fs'
|
336
337
|
end
|
337
338
|
|
339
|
+
describe 'with project_dependencies' do
|
340
|
+
|
341
|
+
let :opts do
|
342
|
+
{ project_dependencies: true,
|
343
|
+
known_projects: %w[Sample.Core],
|
344
|
+
version: '2.3.0' }
|
345
|
+
end
|
346
|
+
|
347
|
+
# just as the opts in the main describe says
|
348
|
+
has_dep 'Sample.Core', '2.3.0'
|
349
|
+
has_dep 'Magnum', '2.1.0'
|
350
|
+
has_dep 'MassTransit', '2.8.0'
|
351
|
+
has_dep 'Newtonsoft.Json', '5.0.6'
|
352
|
+
has_file 'bin/Debug/Sample.Commands.dll', 'lib/net40'
|
353
|
+
has_file 'bin/Debug/Sample.Commands.xml', 'lib/net40'
|
354
|
+
has_not_file 'Library.fs'
|
355
|
+
|
356
|
+
end
|
357
|
+
|
338
358
|
describe 'without nuget_dependencies' do
|
339
359
|
let :opts do
|
340
360
|
{ nuget_dependencies: false,
|
@@ -10,7 +10,8 @@
|
|
10
10
|
<RootNamespace>Sample.Core</RootNamespace>
|
11
11
|
<AssemblyName>Sample.Core</AssemblyName>
|
12
12
|
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
13
|
-
<Name>Sample.Core</Name>
|
13
|
+
<Name>Sample.Core is the Greatest</Name>
|
14
|
+
<Id>Sample.Core</Id>
|
14
15
|
</PropertyGroup>
|
15
16
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
16
17
|
<DebugSymbols>true</DebugSymbols>
|