puppet-lint-unquoted_string-check 0.2.0 → 0.2.1

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: a0f287edbcd2db83abe8c1764f5982f402c91a09
4
- data.tar.gz: ad677f9fee5fb6ce5d0879f20e9b63a281f569ab
3
+ metadata.gz: 2dda199ae6b45a46e5fd35e35647187c67a92fae
4
+ data.tar.gz: 2ece158ac5344c421957184663ba9b318a6f08b6
5
5
  SHA512:
6
- metadata.gz: 3b5768b1bab4cbfc8a4ca9653996ccabe8e76313a4c7224e4763026d286896125cb12b00b5ae5b0193109b983868dc14eb3b9912b51cabbb445fd80b05427b44
7
- data.tar.gz: 6747989bffe6e7873e6084f2748d54c3c16a7c548a307648da9ce7aad91bc81363f68acca89dcd4b703b3f80eb7f55fd85e7d6ce060fb29a942ea875d2e0f91c
6
+ metadata.gz: de3ea469cde9b127d6402813d9ba3eb846713cd167eb37ea07de6e2d9699d28a1bea213944607df8470ee8f89a2e31db4283b7d310b4f627e7532fe8d721a452
7
+ data.tar.gz: b1d0012eca332164fbc3227d611779ffb7a79b99946f785ce18fff31304c2d3fd9398e3546e3b8b243f43a0a5ecf44578a5e183cd5f99740e2c90e3a281b7ec9
@@ -27,7 +27,7 @@ def tokens_to_fix(type_tokens, sep_type)
27
27
  type_tokens.index do |r|
28
28
  if r.type == sep_type
29
29
  s = r.prev_token
30
- while s.type != :NEWLINE
30
+ while s.type != :NEWLINE and s.type != :LBRACE
31
31
  if s.type == :NAME || s.type == :CLASSREF
32
32
  tokens_to_fix << s
33
33
  end
@@ -37,7 +37,7 @@ describe 'unquoted_string_in_case' do
37
37
  include ::foo
38
38
  }
39
39
  /(Darwin|FreeBSD)/: {
40
- include bar
40
+ foo { 'bar': }
41
41
  }
42
42
  default: {
43
43
  $rootgroup = 'root'
@@ -189,7 +189,7 @@ describe 'unquoted_string_in_case' do
189
189
  include ::foo
190
190
  }
191
191
  /(Darwin|FreeBSD)/: {
192
- include bar
192
+ foo { 'bar': }
193
193
  }
194
194
  default: {
195
195
  $rootgroup = 'root'
@@ -253,7 +253,7 @@ describe 'unquoted_string_in_case' do
253
253
  $rootgroup = wheel
254
254
  }
255
255
  redhat,'debian': {
256
- $rootgroup = 'wheel'
256
+ foo { 'bar': }
257
257
  }
258
258
  /(Darwin|FreeBSD)/: {
259
259
  $rootgroup = 'wheel'
@@ -296,7 +296,7 @@ describe 'unquoted_string_in_case' do
296
296
  $rootgroup = wheel
297
297
  }
298
298
  'redhat','debian': {
299
- $rootgroup = 'wheel'
299
+ foo { 'bar': }
300
300
  }
301
301
  /(Darwin|FreeBSD)/: {
302
302
  $rootgroup = 'wheel'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet-lint-unquoted_string-check
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mickaël Canévet