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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c9ff60be90fd9e1faa33cdb6093b5ac47e54356d
4
- data.tar.gz: 1199a00917e052a941aa5b107dfe214cd5afe6e2
3
+ metadata.gz: 8f0b0c03d8f5156d2b5492496d09ad42d88097e6
4
+ data.tar.gz: ca451c9559ec59721dd5ee7111868bae3fd8ed6e
5
5
  SHA512:
6
- metadata.gz: d50d3630157c1e9f30532cdd1af2eda19154638833ab4519a9c12f878d5b60ba89446d5d3dcec17bace8d142e66d3d320e0b0b06e25b67f38b95433e31387a76
7
- data.tar.gz: d75087d34b604a9d5dc24078b9a3cb7b02badd3da83c27cf3cb6627a984d0e90cdcb7c03edc12cda83d5f6ab2e65efa326b511ccf6b1740eba9901dc931ddcc4
6
+ metadata.gz: 35ef6e04bcb515467e8fd9fd7fb55c776dcc81924ad29ec7ad22b03c1fe098f7ebcf429c547685c12894f5ee5fb4706807bf704a06297d60718d74c94e40234d
7
+ data.tar.gz: ca8300748ac7e18a85ba0816118fb4a66a392c1d01f89e9bf8d27765d80bc945e4d167a0d295e5845c088c17e338a6f26ccdaf4740c85c7a0f7b8a1e5deb6433
data/.gitignore CHANGED
@@ -7,3 +7,4 @@ spec/testdata/TestingDependencies/Sample.Commands/Sample.Commands.nuspec
7
7
  spec/testdata/Project/Sample.Nuget.nuspec
8
8
  spec/testdata/TestingDependencies/Sample.Core/Sample.Core.nuspec
9
9
 
10
+ *.userprefs
@@ -208,7 +208,7 @@ end})
208
208
  str = str.split('_').inject([]){ |buffer,e| buffer.push(buffer.empty? ? e : e.capitalize) }.join
209
209
  :"#{str}"
210
210
  end
211
-
211
+
212
212
  def self.underscore str
213
213
  str.gsub(/::/, '/').
214
214
  gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2').
@@ -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 'Id' || name
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
- prop = read_property 'Name' || asmname
37
- prop || asmname
37
+ debug { "Name: #{read_property('Name')}" }
38
+ (read_property 'Name') || asmname
38
39
  end
39
40
 
40
41
  # The same as #name
@@ -1,3 +1,3 @@
1
1
  module Albacore
2
- VERSION = "2.3.2"
2
+ VERSION = "2.3.3"
3
3
  end
@@ -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.should eq 'Project'
171
+ expect(m.id).to eq 'Project'
172
172
  end
173
173
 
174
174
  it "should not find Version element" do
175
- m.version.should eq nil
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
- <Id>Project</Id>
13
+ <Name>Project</Name>
14
14
  <Authors>Henrik Feldt</Authors>
15
15
  </PropertyGroup>
16
16
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
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.3.2
4
+ version: 2.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henrik Feldt