puppet-ghostbuster 0.7.2 → 0.7.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: 8b2e06b759612d9b773d0d6eb3efaef0b91acc36
4
- data.tar.gz: c38603601072ff8cbb8a7dae4ffd44fd26965091
3
+ metadata.gz: d8addb8e57298df2fd22ee7fe11be2c60b365550
4
+ data.tar.gz: f9ccbedf75aef22ee07360ce0d9b50002c1ed3d0
5
5
  SHA512:
6
- metadata.gz: aa349856ba8787af3b7aea3bd2640cd73e571b7ea459d87108f48d0c85bf8a7562724dca6d47e6978fd735def66ee34e4c5c5efafed48986e24deb18474d4744
7
- data.tar.gz: d396dee2c8f039f3b6a41a4af415b642b0a5d8db916f502b591c27f3610cbb2f104ae186d77863f1d64460186385b3651c37f17274b9e9e9f1c2ffbe327fec16
6
+ metadata.gz: d6c8bcbf11f3a2ba9a13f9edc761bc6c7283f089123b321f2b5d5f814d82fb27f6d076cb489f969f2b6a51a8a1f6520e8f7b37ef57f7198d95c0c1cb3f0f1c22
7
+ data.tar.gz: f0bfeb29d73ccd663398d018349d56e34f13085f7461eb086c4273f47ce3d747f125d985259cd80908b0127f442139ba080b0bd4916b57eea2fb2c8aceda1b73
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Change Log
2
2
 
3
+ ## [0.7.3](https://rubygems.org/gems/puppet-ghostbuster/versions/0.7.3) (2016-06-08)
4
+ [Full Changelog](https://github.com/camptocamp/puppet-ghostbuster/compare/0.7.2...0.7.3)
5
+
6
+ **Fixed bugs:**
7
+
8
+ - False positive when fact is boolean
9
+
3
10
  ## [0.7.2](https://rubygems.org/gems/puppet-ghostbuster/versions/0.7.2) (2016-05-19)
4
11
  [Full Changelog](https://github.com/camptocamp/puppet-ghostbuster/compare/0.7.1...0.7.2)
5
12
 
@@ -1,3 +1,3 @@
1
1
  class PuppetGhostbuster
2
- VERSION = '0.7.2'
2
+ VERSION = '0.7.3'
3
3
  end
@@ -52,7 +52,14 @@ PuppetLint.new_check(:ghostbuster_hiera_files) do
52
52
  if v[0] == 'certname'
53
53
  query = [:'=', 'certname', m.captures[0]]
54
54
  else
55
- query = [:'=', ['fact', v[0]], m.captures[0]]
55
+ value = if m.captures[0] == 'true'
56
+ true
57
+ elsif m.captures[0] == 'false'
58
+ false
59
+ else
60
+ m.captures[0]
61
+ end
62
+ query = [:'=', ['fact', v[0]], value]
56
63
  end
57
64
  end
58
65
 
@@ -5,7 +5,7 @@
5
5
  {
6
6
  "certname": "virtual.example.com",
7
7
  "fact": {
8
- "is_virtual": "true"
8
+ "is_virtual": true
9
9
  }
10
10
  },
11
11
  {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet-ghostbuster
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Camptocamp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-19 00:00:00.000000000 Z
11
+ date: 2016-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coveralls