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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTkwODRhMTFmM2I3YzUxZjliNTFhMWUyZGQ3OGEwMWQyOTgzN2EzOQ==
4
+ YTA1Zjk5MTBhNmFjNWY2OTE5MTI1NTYwY2Y4YzlmMzFmZTdjZjFmZg==
5
5
  data.tar.gz: !binary |-
6
- YTY4MjIxY2NkZmRhNTliYjc5YWEyOTUwYjMwYjU0ZjY4MTdhYzE2MQ==
6
+ ODRjOTIwOGE5ZDcxNGIyNDJkMGNjYzc4MGFlMjA2MDQxMjIyN2RmYg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NGNjMzAzZjY1MzE2YWYyMzdkYjJiNmUwNGI5ODFiZDY3OWVkODJmNGM3Yjdj
10
- NjY4OGZlZjliZWJkNmRlYWM3NGE5M2M5OWMyNzdhMmQxNzJiOTU0NjQ3YjI2
11
- MjUwOWU5Y2Q1MzJjNmM1ZDlhNDQ3ZGY0NGZkMzdjOGM5ZDYxNDE=
9
+ MTIyYjY1YmRiZmMzNzk1NmI0ZmE3NmNjMGY3OWI2M2I4ZjkwMmFkMzM2OGIx
10
+ NTg5MmUyYTUyYmVhM2I0NDZkM2I1YjVmOWIxM2E5ZWQ0YTViODY3NTcxN2E5
11
+ MjY5MWQyNGZiZTJlZDAxNjJkNGRhYWRiZmI1Nzk1Nzg3ZDRlNDE=
12
12
  data.tar.gz: !binary |-
13
- NzVkOTQwYTEyYzUxM2VhMjMyM2IwZjk4NmZmOWVlYTU3ZWFkN2ViMzg5YmI4
14
- NmQ0ZjY4MTgxODcxNzk0MjZiOGIzYmY3N2VjNzMzZjE3OTBlNjU0YjlhMWFm
15
- ZjQ5OTAxZTcxM2RjYzU2OWVlMTYzZGI4MzU4OWRmZTYzYTg5NTI=
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
@@ -1,3 +1,3 @@
1
1
  class NuspecBuilder
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nuspec_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - mrstebo