puppet-lint 2.1.1 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/spec/spec_helper.rb CHANGED
@@ -3,7 +3,7 @@ require 'rspec/its'
3
3
  require 'rspec/collection_matchers'
4
4
  begin
5
5
  require 'rspec/json_expectations'
6
- rescue SyntaxError
6
+ rescue LoadError, SyntaxError
7
7
  puts 'rspec/json_expectations is not available'
8
8
  end
9
9
 
@@ -75,8 +75,9 @@ module RSpec
75
75
 
76
76
  messages << check_attr(:kind, 'would be of kind')
77
77
  messages << check_attr(:message, 'would have the message')
78
- messages << check_attr(:linenumber, 'would be on line')
78
+ messages << check_attr(:line, 'would be on line')
79
79
  messages << check_attr(:column, 'would start on column')
80
+ messages << check_attr(:reason, 'would have the reason')
80
81
 
81
82
  messages.compact.join("\n ")
82
83
  else
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet-lint
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Sharpe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-15 00:00:00.000000000 Z
11
+ date: 2017-03-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |-
14
14
  Checks your Puppet manifests against the Puppetlabs
@@ -27,6 +27,7 @@ files:
27
27
  - LICENSE
28
28
  - README.md
29
29
  - Rakefile
30
+ - appveyor.yml
30
31
  - bin/puppet-lint
31
32
  - lib/puppet-lint.rb
32
33
  - lib/puppet-lint/bin.rb
@@ -61,6 +62,7 @@ files:
61
62
  - spec/fixtures/test/manifests/init.pp
62
63
  - spec/fixtures/test/manifests/malformed.pp
63
64
  - spec/fixtures/test/manifests/mismatched_control_comment.pp
65
+ - spec/fixtures/test/manifests/unterminated_control_comment.pp
64
66
  - spec/fixtures/test/manifests/url_interpolation.pp
65
67
  - spec/fixtures/test/manifests/warning.pp
66
68
  - spec/puppet-lint/bin_spec.rb
@@ -68,6 +70,7 @@ files:
68
70
  - spec/puppet-lint/ignore_overrides_spec.rb
69
71
  - spec/puppet-lint/lexer/token_spec.rb
70
72
  - spec/puppet-lint/lexer_spec.rb
73
+ - spec/puppet-lint/plugins/check_classes/arrow_on_right_operand_line_spec.rb
71
74
  - spec/puppet-lint/plugins/check_classes/autoloader_layout_spec.rb
72
75
  - spec/puppet-lint/plugins/check_classes/class_inherits_from_params_class_spec.rb
73
76
  - spec/puppet-lint/plugins/check_classes/code_on_top_scope_spec.rb
@@ -125,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
128
  version: '0'
126
129
  requirements: []
127
130
  rubyforge_project:
128
- rubygems_version: 2.6.10
131
+ rubygems_version: 2.6.8
129
132
  signing_key:
130
133
  specification_version: 4
131
134
  summary: Ensure your Puppet manifests conform with the Puppetlabs style guide
@@ -138,6 +141,7 @@ test_files:
138
141
  - spec/fixtures/test/manifests/init.pp
139
142
  - spec/fixtures/test/manifests/malformed.pp
140
143
  - spec/fixtures/test/manifests/mismatched_control_comment.pp
144
+ - spec/fixtures/test/manifests/unterminated_control_comment.pp
141
145
  - spec/fixtures/test/manifests/url_interpolation.pp
142
146
  - spec/fixtures/test/manifests/warning.pp
143
147
  - spec/puppet-lint/bin_spec.rb
@@ -145,6 +149,7 @@ test_files:
145
149
  - spec/puppet-lint/ignore_overrides_spec.rb
146
150
  - spec/puppet-lint/lexer/token_spec.rb
147
151
  - spec/puppet-lint/lexer_spec.rb
152
+ - spec/puppet-lint/plugins/check_classes/arrow_on_right_operand_line_spec.rb
148
153
  - spec/puppet-lint/plugins/check_classes/autoloader_layout_spec.rb
149
154
  - spec/puppet-lint/plugins/check_classes/class_inherits_from_params_class_spec.rb
150
155
  - spec/puppet-lint/plugins/check_classes/code_on_top_scope_spec.rb