nuspec_builder 0.2.1 → 0.2.2

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
- YzViZmJiZTRiMWNmYTk4MzcwYmQ1ZDFhODRiM2FiM2FmZWQ0YWZkZg==
4
+ ZTkwODRhMTFmM2I3YzUxZjliNTFhMWUyZGQ3OGEwMWQyOTgzN2EzOQ==
5
5
  data.tar.gz: !binary |-
6
- ODk5MmI0OGRlZTZiYzAwZjdlNDkxZTU0MWUxMmE2Y2M4NDc5MmI2YQ==
6
+ YTY4MjIxY2NkZmRhNTliYjc5YWEyOTUwYjMwYjU0ZjY4MTdhYzE2MQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZTc0YTFiMWI1YmMyNTQwMDg5ZWIzOWU0YzJkYjE5YWE2ODdjNWQ1NTNiYzAw
10
- MDBkMGU0ZTc0OTZhMzY2ZmI3N2E0MGU4ZjUyOGU4NzBkNmJmMTcxMGRjMzAw
11
- ZGZjYzMxM2QzNzUzN2RhM2RmMTU0MWU0NGNiN2RmODI2ODhkM2I=
9
+ NGNjMzAzZjY1MzE2YWYyMzdkYjJiNmUwNGI5ODFiZDY3OWVkODJmNGM3Yjdj
10
+ NjY4OGZlZjliZWJkNmRlYWM3NGE5M2M5OWMyNzdhMmQxNzJiOTU0NjQ3YjI2
11
+ MjUwOWU5Y2Q1MzJjNmM1ZDlhNDQ3ZGY0NGZkMzdjOGM5ZDYxNDE=
12
12
  data.tar.gz: !binary |-
13
- OTg2NzVjMzhjMmM0ZmI4MzlkMTIyN2RkNTA5NGEzMTg1YTBjNDAwMzA3MDBj
14
- MjEzMmQ5YjI1N2MyOWNlY2Q3OTBhMjMyNjE2YWU2YmVkZGEzMTg0NjRiNGI3
15
- MzJkNzljZmIzOWFhNWU2ZjA3ZDVmOTNiM2M0OWRiNjczNzcxMDQ=
13
+ NzVkOTQwYTEyYzUxM2VhMjMyM2IwZjk4NmZmOWVlYTU3ZWFkN2ViMzg5YmI4
14
+ NmQ0ZjY4MTgxODcxNzk0MjZiOGIzYmY3N2VjNzMzZjE3OTBlNjU0YjlhMWFm
15
+ ZjQ5OTAxZTcxM2RjYzU2OWVlMTYzZGI4MzU4OWRmZTYzYTg5NTI=
@@ -27,7 +27,7 @@ class NuspecBuilder::NuspecTemplate
27
27
  private
28
28
 
29
29
  def template
30
- @template ||= File.open("#{__dir__}/templates/template.nuspec") {|f| f.read}
30
+ @template ||= File.open("#{current_dir}/templates/template.nuspec") {|f| f.read}
31
31
  end
32
32
 
33
33
  def id
@@ -85,4 +85,8 @@ class NuspecBuilder::NuspecTemplate
85
85
  def files
86
86
  @tokens.fetch(:files, []).map(&:to_s).join("\n ")
87
87
  end
88
+
89
+ def current_dir
90
+ File.dirname(File.realpath(__FILE__))
91
+ end
88
92
  end
@@ -1,3 +1,3 @@
1
1
  class NuspecBuilder
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
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.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - mrstebo