puppet-ghostbuster 0.4.1 → 0.4.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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fe3d424e7d8e045262acebbde7420fe8da3e00a6
4
- data.tar.gz: c7cced00812e60526b634819c5adb054ea8bb444
3
+ metadata.gz: 26896fb8ebecc8062f77819d2bae90f72b858ff3
4
+ data.tar.gz: 19fe3eb6c7eaa34a3868746426e4159e87d695cb
5
5
  SHA512:
6
- metadata.gz: 03b601bcf25c8fc053370f4a91f23c94e2422c94406045879617899ec75dc562d6051bb0b6e6e4f7a8dbe90f5579bc2be6e447f99195f3acd472d17c30b824c6
7
- data.tar.gz: 11bb6306ee9dccc67810af7b8d12c71a2a8584d3830fa4d051fb9ec01d31416191907a9cbe2adcb341a5995d393384714962c5d83afb3c2e2a4488ef5246a8de
6
+ metadata.gz: 0e706f1a1ba18168415218189450b201c5dcb71fad948a13645b305e4e5abfe1fb90e2907e35f98fb31303dbbc1c1cf0d093bd2bb377b70212ce938df7d5da82
7
+ data.tar.gz: 91103c80cb34bb4a2b8a852157860e258f5be4699f7b19f76ce15c3a045e1f5fdb1ba336f67b974479e83f8d707f2e92040364d5f239a09396dbb032850b42d5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Change Log
2
2
 
3
+ ## [0.4.2](https://rubygems.org/gems/puppet-ghostbuster/versions/0.4.2) (2016-05-02)
4
+ [Full Changelog](https://github.com/camptocamp/puppet-ghostbuster/compare/0.4.1...0.4.2)
5
+
6
+ **Fixed bugs:**
7
+
8
+ - Fix variable name
9
+
3
10
  ## [0.4.1](https://rubygems.org/gems/puppet-ghostbuster/versions/0.4.1) (2016-05-02)
4
11
  [Full Changelog](https://github.com/camptocamp/puppet-ghostbuster/compare/0.4.0...0.4.1)
5
12
 
@@ -152,13 +152,13 @@ class PuppetGhostbuster
152
152
  @@logger.warn " Skipping symlink #{manifest}"
153
153
  next
154
154
  end
155
- if match = caller_file.match(/.*\/([^\/]+)\/manifests\/.+$/)
155
+ if match = manifest.match(/.*\/([^\/]+)\/manifests\/.+$/)
156
156
  manifest_module_name = match.captures[0]
157
157
  if manifest_module_name == module_name
158
- count += File.readlines(caller_file).grep(/["']\$\{module_name\}\/#{file_name}["']/).size
158
+ count += File.readlines(manifest).grep(/["']\$\{module_name\}\/#{file_name}["']/).size
159
159
  end
160
160
  end
161
- count += File.readlines(caller_file).grep(/#{module_name}\/#{file_name}/).size
161
+ count += File.readlines(manifest).grep(/#{module_name}\/#{file_name}/).size
162
162
  end
163
163
  @@issues << { :title => "[GhostBuster] File #{module_name}/#{file_name} seems unused", :body => file } if count == 0
164
164
  end
@@ -1,3 +1,3 @@
1
1
  class PuppetGhostbuster
2
- VERSION = '0.4.1'
2
+ VERSION = '0.4.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet-ghostbuster
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Camptocamp