puppet-lint-resource_reference_syntax 1.0.5 → 1.0.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a1588999aeae6a48e3b9a1d9ecff0d2078fc68c
|
4
|
+
data.tar.gz: 5328ef32b72821db7ce423b29eb5f0d1f2fb1717
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14feff85da89a1df849a813393f38f44c90497381adc4d1ac17d604467f14a7476ec16095557fecb5836fdf464fe33e267b859d89b174f79afabb10ccda56595
|
7
|
+
data.tar.gz: e60e57b9da69171a16167df1e4ae371787516f3c19457d31c2cea9f43d7fe081f188742ef293fec0df7a14cd9d4ed4ed648ed0146a642f41dbb78c37670a2ba6
|
@@ -5,7 +5,7 @@ PuppetLint.new_check(:resource_reference_without_title_capital) do
|
|
5
5
|
['require', 'subscribe', 'notify', 'before', 'consume', 'export'].include? param_token.value
|
6
6
|
}.each do |param_token|
|
7
7
|
value_token = param_token.next_code_token.next_code_token.next_code_token.next_token
|
8
|
-
unless value_token.type == :SSTRING or value_token.type == :VARIABLE or value_token.next_token.type == :SSTRING
|
8
|
+
unless value_token.type == :SSTRING or value_token.type == :VARIABLE or value_token.type == :DQPRE or value_token.next_token.type == :SSTRING
|
9
9
|
notify :error, {
|
10
10
|
:message => 'resource reference with title with capital letter',
|
11
11
|
:line => value_token.line,
|
@@ -43,6 +43,15 @@ describe 'resource_reference_without_title_capital' do
|
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
46
|
+
context 'a proper reference with a variable enclosed' do
|
47
|
+
let(:code) {
|
48
|
+
%(file {'foo': ensure => file, notify => Title["with ${param}"],} )
|
49
|
+
}
|
50
|
+
it 'should detect no problem' do
|
51
|
+
expect(problems).to have(0).problem
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
46
55
|
context 'resource reference with title as capital letter' do
|
47
56
|
let(:msg) { 'resource reference with title with capital letter' }
|
48
57
|
let(:code) { "file { 'foo': ensure => file, notify => Title[One],}" }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puppet-lint-resource_reference_syntax
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Alfke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: puppet-lint
|
@@ -115,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
115
|
version: '0'
|
116
116
|
requirements: []
|
117
117
|
rubyforge_project:
|
118
|
-
rubygems_version: 2.
|
118
|
+
rubygems_version: 2.4.8
|
119
119
|
signing_key:
|
120
120
|
specification_version: 4
|
121
121
|
summary: puppet-lint reference_syntax check
|