puppet-lint 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -1
  3. data/.rspec +1 -0
  4. data/.travis.yml +11 -2
  5. data/CHANGELOG.md +657 -0
  6. data/Gemfile +19 -0
  7. data/README.md +6 -1
  8. data/lib/puppet-lint.rb +1 -1
  9. data/lib/puppet-lint/checks.rb +1 -5
  10. data/lib/puppet-lint/lexer.rb +4 -2
  11. data/lib/puppet-lint/optparser.rb +11 -2
  12. data/lib/puppet-lint/plugins/check_classes.rb +5 -1
  13. data/lib/puppet-lint/plugins/check_comments.rb +6 -8
  14. data/lib/puppet-lint/plugins/check_resources.rb +4 -3
  15. data/lib/puppet-lint/plugins/check_variables.rb +21 -3
  16. data/lib/puppet-lint/plugins/check_whitespace.rb +21 -1
  17. data/lib/puppet-lint/tasks/puppet-lint.rb +4 -0
  18. data/lib/puppet-lint/version.rb +1 -1
  19. data/puppet-lint.gemspec +1 -4
  20. data/spec/puppet-lint/bin_spec.rb +1 -1
  21. data/spec/puppet-lint/lexer_spec.rb +38 -0
  22. data/spec/puppet-lint/plugins/check_classes/parameter_order_spec.rb +51 -47
  23. data/spec/puppet-lint/plugins/check_comments/star_comments_spec.rb +22 -0
  24. data/spec/puppet-lint/plugins/check_resources/ensure_first_param_spec.rb +19 -0
  25. data/spec/puppet-lint/plugins/check_resources/file_mode_spec.rb +96 -0
  26. data/spec/puppet-lint/plugins/check_resources/unquoted_file_mode_spec.rb +28 -0
  27. data/spec/puppet-lint/plugins/check_strings/variables_not_enclosed_spec.rb +3 -3
  28. data/spec/puppet-lint/plugins/check_variables/variable_is_lowercase_spec.rb +25 -0
  29. data/spec/puppet-lint/plugins/check_whitespace/80chars_spec.rb +71 -0
  30. data/spec/puppet-lint/plugins/check_whitespace/arrow_alignment_spec.rb +37 -37
  31. data/spec/puppet-lint_spec.rb +6 -0
  32. metadata +13 -50
@@ -17,4 +17,10 @@ describe PuppetLint do
17
17
  string = 'replace %s %s' % ['get','replaced']
18
18
  expect(string).to match('replace get replaced')
19
19
  end
20
+
21
+ it 'should return empty manifest when empty one given as the input' do
22
+ subject.code = ''
23
+ subject.run
24
+ expect(subject.manifest).to eq ''
25
+ end
20
26
  end
metadata CHANGED
@@ -1,71 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet-lint
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Sharpe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-22 00:00:00.000000000 Z
11
+ date: 2016-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rake
14
+ name: github_changelog_generator
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
- version: '10.0'
19
+ version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
- version: '10.0'
27
- - !ruby/object:Gem::Dependency
28
- name: rspec
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ~>
32
- - !ruby/object:Gem::Version
33
- version: '3.0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ~>
39
- - !ruby/object:Gem::Version
40
- version: '3.0'
41
- - !ruby/object:Gem::Dependency
42
- name: rspec-its
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ~>
46
- - !ruby/object:Gem::Version
47
- version: '1.0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ~>
53
- - !ruby/object:Gem::Version
54
- version: '1.0'
55
- - !ruby/object:Gem::Dependency
56
- name: rspec-collection_matchers
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ~>
60
- - !ruby/object:Gem::Version
61
- version: '1.0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ~>
67
- - !ruby/object:Gem::Version
68
- version: '1.0'
26
+ version: '0'
69
27
  description: |-
70
28
  Checks your Puppet manifests against the Puppetlabs
71
29
  style guide and alerts you to any discrepancies.
@@ -76,7 +34,9 @@ extensions: []
76
34
  extra_rdoc_files: []
77
35
  files:
78
36
  - .gitignore
37
+ - .rspec
79
38
  - .travis.yml
39
+ - CHANGELOG.md
80
40
  - Gemfile
81
41
  - LICENSE
82
42
  - README.md
@@ -148,8 +108,10 @@ files:
148
108
  - spec/puppet-lint/plugins/check_strings/single_quote_string_with_variables_spec.rb
149
109
  - spec/puppet-lint/plugins/check_strings/variables_not_enclosed_spec.rb
150
110
  - spec/puppet-lint/plugins/check_variables/variable_contains_dash_spec.rb
111
+ - spec/puppet-lint/plugins/check_variables/variable_is_lowercase_spec.rb
151
112
  - spec/puppet-lint/plugins/check_whitespace/140chars_spec.rb
152
113
  - spec/puppet-lint/plugins/check_whitespace/2sp_soft_tabs_spec.rb
114
+ - spec/puppet-lint/plugins/check_whitespace/80chars_spec.rb
153
115
  - spec/puppet-lint/plugins/check_whitespace/arrow_alignment_spec.rb
154
116
  - spec/puppet-lint/plugins/check_whitespace/hard_tabs_spec.rb
155
117
  - spec/puppet-lint/plugins/check_whitespace/trailing_whitespace_spec.rb
@@ -220,11 +182,12 @@ test_files:
220
182
  - spec/puppet-lint/plugins/check_strings/single_quote_string_with_variables_spec.rb
221
183
  - spec/puppet-lint/plugins/check_strings/variables_not_enclosed_spec.rb
222
184
  - spec/puppet-lint/plugins/check_variables/variable_contains_dash_spec.rb
185
+ - spec/puppet-lint/plugins/check_variables/variable_is_lowercase_spec.rb
223
186
  - spec/puppet-lint/plugins/check_whitespace/140chars_spec.rb
224
187
  - spec/puppet-lint/plugins/check_whitespace/2sp_soft_tabs_spec.rb
188
+ - spec/puppet-lint/plugins/check_whitespace/80chars_spec.rb
225
189
  - spec/puppet-lint/plugins/check_whitespace/arrow_alignment_spec.rb
226
190
  - spec/puppet-lint/plugins/check_whitespace/hard_tabs_spec.rb
227
191
  - spec/puppet-lint/plugins/check_whitespace/trailing_whitespace_spec.rb
228
192
  - spec/puppet-lint_spec.rb
229
193
  - spec/spec_helper.rb
230
- has_rdoc: