puppet-lint-legacy_facts-check 1.0.1 → 1.0.2

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
  SHA256:
3
- metadata.gz: 5dd36569f910c1f7a9907a666afb2d6cdd2e516881027e2d84d9ee260e670d10
4
- data.tar.gz: d67750794d8a7900a03423a9c745e54318e1e102a83cefe34033c2ed77ff821f
3
+ metadata.gz: 3414ffa92730c4f8459fc01f09fb622722b51307f56edf03b273fc2ced2012a7
4
+ data.tar.gz: fe4f6cbf92b4188500320a25044df4f0ee4b6e3249c49e508bfed28c2cc93409
5
5
  SHA512:
6
- metadata.gz: 74733b16e7a684abd387334abe0bed9a4ba7f93dda808d32ff3a1f52b86c20e015b67538b2ee5873fbbd550ea71feb2c8179d6079ba4ddf1d72a65c1c7e364b0
7
- data.tar.gz: df5f3ab48fafb0904ffaa033db415430abecc8aecb3e7027311a6389186930d19fabc05272458a91aa8e16a2f13e290540c73b0793b1e30ea5016180e9f2b715
6
+ metadata.gz: f9540c885f1373049188aa1a0d1d26a3082ec30f405b41e961e48e9c6ac1247d7ffafb3ebf4c4f0029fcf0bd3b7dab0af3a8bffe1bc747368781971a6a73360a
7
+ data.tar.gz: ae54bd5ba78586c210f3e0b07e6b9f575662d71b1b01162c6f7ddba36bf3a721f083ad1646f5399f5174ab5458a42905702d8f6ff0b11ce7c465243fdacee214
@@ -1,5 +1,5 @@
1
1
  PuppetLint.new_check(:legacy_facts) do
2
- VAR_TYPES = Set[:VARIABLE, :UNENC_VARIABLE]
2
+ LEGACY_FACTS_VAR_TYPES = Set[:VARIABLE, :UNENC_VARIABLE]
3
3
 
4
4
  # These facts that can't be converted to new facts for reasons documented at
5
5
  # https://github.com/mmckinst/puppet-lint-legacy_facts-check#limitations
@@ -97,7 +97,7 @@ PuppetLint.new_check(:legacy_facts) do
97
97
  'zonename' => "facts['solaris_zones']['current']",
98
98
  }
99
99
  def check
100
- tokens.select { |x| VAR_TYPES.include?(x.type) }.each do |token|
100
+ tokens.select { |x| LEGACY_FACTS_VAR_TYPES.include?(x.type) }.each do |token|
101
101
  fact_name = ''
102
102
 
103
103
  # Get rid of the top scope before we do our work. We don't need to
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet-lint-legacy_facts-check
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark McKinstry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-02 00:00:00.000000000 Z
11
+ date: 2019-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: puppet-lint