nuspec_builder 0.2.2 → 0.2.3
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 +8 -8
- data/lib/nuspec_builder/nuspec_template.rb +7 -4
- data/lib/nuspec_builder/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YTA1Zjk5MTBhNmFjNWY2OTE5MTI1NTYwY2Y4YzlmMzFmZTdjZjFmZg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ODRjOTIwOGE5ZDcxNGIyNDJkMGNjYzc4MGFlMjA2MDQxMjIyN2RmYg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MTIyYjY1YmRiZmMzNzk1NmI0ZmE3NmNjMGY3OWI2M2I4ZjkwMmFkMzM2OGIx
|
10
|
+
NTg5MmUyYTUyYmVhM2I0NDZkM2I1YjVmOWIxM2E5ZWQ0YTViODY3NTcxN2E5
|
11
|
+
MjY5MWQyNGZiZTJlZDAxNjJkNGRhYWRiZmI1Nzk1Nzg3ZDRlNDE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Y2Q1MzZmNmQyM2IyMmQyYzc1NmViNzRjNGQ2YThlZTVmZDE3M2JhODAxZjgx
|
14
|
+
MWRjOGJkNDM4NWRlN2I4YmIyNWIzMDIzMDcyMGJkZDk0ZDc0OTY5NTY0Mjk5
|
15
|
+
OTZjOTU4ZDU2ZTU4MDhjZGE1MjYzN2RhZWE2YTFkZjlkYTc0N2M=
|
@@ -19,6 +19,9 @@ class NuspecBuilder::NuspecTemplate
|
|
19
19
|
.gsub(/\$tags\$/, tags)
|
20
20
|
.gsub(/\$dependencies\$/, dependencies)
|
21
21
|
.gsub(/\$files\$/, files)
|
22
|
+
.gsub(/<licenseUrl>\s*<\/licenseUrl>/, '')
|
23
|
+
.gsub(/<projectUrl>\s*<\/projectUrl>/, '')
|
24
|
+
.gsub(/<iconUrl>\s*<\/iconUrl>/, '')
|
22
25
|
.each_line.reject {|line| line.strip == ''}
|
23
26
|
.join
|
24
27
|
.strip
|
@@ -30,6 +33,10 @@ class NuspecBuilder::NuspecTemplate
|
|
30
33
|
@template ||= File.open("#{current_dir}/templates/template.nuspec") {|f| f.read}
|
31
34
|
end
|
32
35
|
|
36
|
+
def current_dir
|
37
|
+
File.dirname(File.realpath(__FILE__))
|
38
|
+
end
|
39
|
+
|
33
40
|
def id
|
34
41
|
@tokens[:id]
|
35
42
|
end
|
@@ -85,8 +92,4 @@ class NuspecBuilder::NuspecTemplate
|
|
85
92
|
def files
|
86
93
|
@tokens.fetch(:files, []).map(&:to_s).join("\n ")
|
87
94
|
end
|
88
|
-
|
89
|
-
def current_dir
|
90
|
-
File.dirname(File.realpath(__FILE__))
|
91
|
-
end
|
92
95
|
end
|