albacore 2.3.2 → 2.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/albacore/nuget_model.rb +1 -1
- data/lib/albacore/project.rb +4 -3
- data/lib/albacore/version.rb +1 -1
- data/spec/nuget_model_spec.rb +2 -2
- data/spec/testdata/Project/Project.fsproj +1 -1
- 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: 8f0b0c03d8f5156d2b5492496d09ad42d88097e6
|
4
|
+
data.tar.gz: ca451c9559ec59721dd5ee7111868bae3fd8ed6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35ef6e04bcb515467e8fd9fd7fb55c776dcc81924ad29ec7ad22b03c1fe098f7ebcf429c547685c12894f5ee5fb4706807bf704a06297d60718d74c94e40234d
|
7
|
+
data.tar.gz: ca8300748ac7e18a85ba0816118fb4a66a392c1d01f89e9bf8d27765d80bc945e4d167a0d295e5845c088c17e338a6f26ccdaf4740c85c7a0f7b8a1e5deb6433
|
data/.gitignore
CHANGED
data/lib/albacore/nuget_model.rb
CHANGED
data/lib/albacore/project.rb
CHANGED
@@ -26,15 +26,16 @@ module Albacore
|
|
26
26
|
|
27
27
|
# Get the project id specified in the project file. Defaults to #name.
|
28
28
|
def id
|
29
|
-
read_property
|
29
|
+
debug { "Id: #{read_property('Id')}" }
|
30
|
+
(read_property 'Id') || name
|
30
31
|
end
|
31
32
|
|
32
33
|
# Get the project name specified in the project file. This is the same as
|
33
34
|
# the title of the nuspec and, if Id is not specified, also the id of the
|
34
35
|
# nuspec.
|
35
36
|
def name
|
36
|
-
|
37
|
-
|
37
|
+
debug { "Name: #{read_property('Name')}" }
|
38
|
+
(read_property 'Name') || asmname
|
38
39
|
end
|
39
40
|
|
40
41
|
# The same as #name
|
data/lib/albacore/version.rb
CHANGED
data/spec/nuget_model_spec.rb
CHANGED
@@ -168,11 +168,11 @@ describe "when reading xml from a fsproj file into Project/Metadata" do
|
|
168
168
|
include_context 'package_metadata_dsl'
|
169
169
|
|
170
170
|
it "should find Name element" do
|
171
|
-
m.id.
|
171
|
+
expect(m.id).to eq 'Project'
|
172
172
|
end
|
173
173
|
|
174
174
|
it "should not find Version element" do
|
175
|
-
m.version.
|
175
|
+
expect(m.version).to eq nil
|
176
176
|
end
|
177
177
|
|
178
178
|
it "should find Authors element" do
|
@@ -10,7 +10,7 @@
|
|
10
10
|
<RootNamespace>Project</RootNamespace>
|
11
11
|
<AssemblyName>Project</AssemblyName>
|
12
12
|
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
13
|
-
<
|
13
|
+
<Name>Project</Name>
|
14
14
|
<Authors>Henrik Feldt</Authors>
|
15
15
|
</PropertyGroup>
|
16
16
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|