puppet-check 2.1.0 → 2.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,93 +3,102 @@ require_relative '../../lib/puppet-check/ruby_parser'
3
3
 
4
4
  describe RubyParser do
5
5
  before(:each) do
6
- PuppetCheck.settings[:error_files] = []
7
- PuppetCheck.settings[:warning_files] = []
8
- PuppetCheck.settings[:clean_files] = []
6
+ PuppetCheck.files = {
7
+ errors: {},
8
+ warnings: {},
9
+ clean: [],
10
+ ignored: []
11
+ }
9
12
  end
10
13
 
11
14
  context '.ruby' do
12
- it 'puts a bad syntax ruby file in the error files array' do
15
+ it 'puts a bad syntax ruby file in the error files hash' do
13
16
  RubyParser.ruby(["#{fixtures_dir}lib/syntax.rb"], false, [])
14
- expect(PuppetCheck.settings[:error_files][0]).to match(%r{^#{fixtures_dir}lib/syntax.rb:\n.*syntax error})
15
- expect(PuppetCheck.settings[:warning_files]).to eql([])
16
- expect(PuppetCheck.settings[:clean_files]).to eql([])
17
+ expect(PuppetCheck.files[:errors].keys).to eql(["#{fixtures_dir}lib/syntax.rb"])
18
+ expect(PuppetCheck.files[:errors]["#{fixtures_dir}lib/syntax.rb"].join("\n")).to match(%r{^.*syntax error})
19
+ expect(PuppetCheck.files[:warnings]).to eql({})
20
+ expect(PuppetCheck.files[:clean]).to eql([])
17
21
  end
18
22
  it 'puts a bad style ruby file in the warning files array' do
19
23
  RubyParser.ruby(["#{fixtures_dir}lib/style.rb"], true, [])
20
- expect(PuppetCheck.settings[:error_files]).to eql([])
21
- expect(PuppetCheck.settings[:warning_files][0]).to match(%r{^#{fixtures_dir}lib/style.rb:\n.*Useless assignment.*\n.*Use the new.*\n.*Do not introduce.*\n.*Prefer single.*\n.*Source code comment is empty.*\n.*is a writable attribute.*\n.*Issue has no descriptive comment})
22
- expect(PuppetCheck.settings[:clean_files]).to eql([])
24
+ expect(PuppetCheck.files[:errors]).to eql({})
25
+ expect(PuppetCheck.files[:warnings].keys).to eql(["#{fixtures_dir}lib/style.rb"])
26
+ expect(PuppetCheck.files[:warnings]["#{fixtures_dir}lib/style.rb"].join("\n")).to match(%r{Useless assignment.*\n.*Use the new.*\n.*Do not introduce.*\n.*Prefer single.*\n.*Remove unnecessary empty.*\n.*Source code comment is empty.*\n.*is a writable attribute.*\n.*Issue has no descriptive comment})
27
+ expect(PuppetCheck.files[:clean]).to eql([])
23
28
  end
24
29
  it 'puts a bad style ruby file in the clean files array when rubocop_args ignores its warnings' do
25
30
  RubyParser.ruby(["#{fixtures_dir}lib/rubocop_style.rb"], true, ['--except', 'Lint/UselessAssignment,Style/HashSyntax,Style/GlobalVars,Style/StringLiterals'])
26
- expect(PuppetCheck.settings[:error_files]).to eql([])
27
- expect(PuppetCheck.settings[:warning_files]).to eql([])
28
- expect(PuppetCheck.settings[:clean_files]).to eql(["#{fixtures_dir}lib/rubocop_style.rb"])
31
+ expect(PuppetCheck.files[:errors]).to eql({})
32
+ expect(PuppetCheck.files[:warnings]).to eql({})
33
+ expect(PuppetCheck.files[:clean]).to eql(["#{fixtures_dir}lib/rubocop_style.rb"])
29
34
  end
30
35
  it 'puts a good ruby file in the clean files array' do
31
36
  RubyParser.ruby(["#{fixtures_dir}lib/good.rb"], true, [])
32
- expect(PuppetCheck.settings[:error_files]).to eql([])
33
- expect(PuppetCheck.settings[:warning_files]).to eql([])
34
- expect(PuppetCheck.settings[:clean_files]).to eql(["#{fixtures_dir}lib/good.rb"])
37
+ expect(PuppetCheck.files[:errors]).to eql({})
38
+ expect(PuppetCheck.files[:warnings]).to eql({})
39
+ expect(PuppetCheck.files[:clean]).to eql(["#{fixtures_dir}lib/good.rb"])
35
40
  end
36
41
  end
37
42
 
38
43
  context '.template' do
39
- it 'puts a bad syntax ruby template file in the error files array' do
44
+ it 'puts a bad syntax ruby template file in the error files hash' do
40
45
  RubyParser.template(["#{fixtures_dir}templates/syntax.erb"])
46
+ expect(PuppetCheck.files[:errors].keys).to eql(["#{fixtures_dir}templates/syntax.erb"])
41
47
  if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.7')
42
- expect(PuppetCheck.settings[:error_files][0]).to match(%r{^#{fixtures_dir}templates/syntax.erb:\n.*1: syntax error, unexpected.*\n.*ruby})
48
+ expect(PuppetCheck.files[:errors]["#{fixtures_dir}templates/syntax.erb"].join("\n")).to match(%r{1: syntax error, unexpected.*\n.*ruby})
43
49
  else
44
- expect(PuppetCheck.settings[:error_files][0]).to match(%r{^#{fixtures_dir}templates/syntax.erb:\n.*syntax error, unexpected tIDENTIFIER})
50
+ expect(PuppetCheck.files[:errors]["#{fixtures_dir}templates/syntax.erb"].join("\n")).to match(%r{syntax error, unexpected tIDENTIFIER})
45
51
  end
46
- expect(PuppetCheck.settings[:warning_files]).to eql([])
47
- expect(PuppetCheck.settings[:clean_files]).to eql([])
52
+ expect(PuppetCheck.files[:warnings]).to eql({})
53
+ expect(PuppetCheck.files[:clean]).to eql([])
48
54
  end
49
55
  it 'puts a bad style ruby template file in the warning files array' do
50
56
  RubyParser.template(["#{fixtures_dir}templates/style.erb"])
51
- expect(PuppetCheck.settings[:error_files]).to eql([])
52
- expect(PuppetCheck.settings[:warning_files][0]).to match(%r{^#{fixtures_dir}templates/style.erb:\n.*already initialized constant.*\n.*previous definition of})
53
- expect(PuppetCheck.settings[:clean_files]).to eql([])
57
+ expect(PuppetCheck.files[:errors]).to eql({})
58
+ expect(PuppetCheck.files[:warnings].keys).to eql(["#{fixtures_dir}templates/style.erb"])
59
+ expect(PuppetCheck.files[:warnings]["#{fixtures_dir}templates/style.erb"].join("\n")).to match(%r{already initialized constant.*\n.*previous definition of})
60
+ expect(PuppetCheck.files[:clean]).to eql([])
54
61
  end
55
62
  it 'puts a ruby template file with ignored errors in the clean files array' do
56
63
  RubyParser.template(["#{fixtures_dir}templates/no_method_error.erb"])
57
- expect(PuppetCheck.settings[:error_files]).to eql([])
58
- expect(PuppetCheck.settings[:warning_files]).to eql([])
59
- expect(PuppetCheck.settings[:clean_files]).to eql(["#{fixtures_dir}templates/no_method_error.erb"])
64
+ expect(PuppetCheck.files[:errors]).to eql({})
65
+ expect(PuppetCheck.files[:warnings]).to eql({})
66
+ expect(PuppetCheck.files[:clean]).to eql(["#{fixtures_dir}templates/no_method_error.erb"])
60
67
  end
61
68
  it 'puts a good ruby template file in the clean files array' do
62
69
  RubyParser.template(["#{fixtures_dir}templates/good.erb"])
63
- expect(PuppetCheck.settings[:error_files]).to eql([])
64
- expect(PuppetCheck.settings[:warning_files]).to eql([])
65
- expect(PuppetCheck.settings[:clean_files]).to eql(["#{fixtures_dir}templates/good.erb"])
70
+ expect(PuppetCheck.files[:errors]).to eql({})
71
+ expect(PuppetCheck.files[:warnings]).to eql({})
72
+ expect(PuppetCheck.files[:clean]).to eql(["#{fixtures_dir}templates/good.erb"])
66
73
  end
67
74
  end
68
75
 
69
76
  context '.librarian' do
70
- it 'puts a bad syntax librarian Puppet file in the error files array' do
77
+ it 'puts a bad syntax librarian Puppet file in the error files hash' do
71
78
  RubyParser.librarian(["#{fixtures_dir}librarian_syntax/Puppetfile"], false, [])
72
- expect(PuppetCheck.settings[:error_files][0]).to match(%r{^#{fixtures_dir}librarian_syntax/Puppetfile:\n.*syntax error})
73
- expect(PuppetCheck.settings[:warning_files]).to eql([])
74
- expect(PuppetCheck.settings[:clean_files]).to eql([])
79
+ expect(PuppetCheck.files[:errors].keys).to eql(["#{fixtures_dir}librarian_syntax/Puppetfile"])
80
+ expect(PuppetCheck.files[:errors]["#{fixtures_dir}librarian_syntax/Puppetfile"].join("\n")).to match(%r{^.*syntax error})
81
+ expect(PuppetCheck.files[:warnings]).to eql({})
82
+ expect(PuppetCheck.files[:clean]).to eql([])
75
83
  end
76
84
  it 'puts a bad style librarian Puppet file in the warning files array' do
77
85
  RubyParser.librarian(["#{fixtures_dir}librarian_style/Puppetfile"], true, [])
78
- expect(PuppetCheck.settings[:error_files]).to eql([])
79
- expect(PuppetCheck.settings[:warning_files][0]).to match(%r{^#{fixtures_dir}librarian_style/Puppetfile:\n.*Align the arguments.*\n.*Use the new})
80
- expect(PuppetCheck.settings[:clean_files]).to eql([])
86
+ expect(PuppetCheck.files[:errors]).to eql({})
87
+ expect(PuppetCheck.files[:warnings].keys).to eql(["#{fixtures_dir}librarian_style/Puppetfile"])
88
+ expect(PuppetCheck.files[:warnings]["#{fixtures_dir}librarian_style/Puppetfile"].join("\n")).to match(%r{Align the arguments.*\n.*Use the new})
89
+ expect(PuppetCheck.files[:clean]).to eql([])
81
90
  end
82
91
  it 'puts a bad style librarian Puppet file in the clean files array when rubocop_args ignores its warnings' do
83
- RubyParser.librarian(["#{fixtures_dir}librarian_style/Puppetfile"], true, ['--except', 'Layout/AlignArguments,Style/HashSyntax'])
84
- expect(PuppetCheck.settings[:error_files]).to eql([])
85
- expect(PuppetCheck.settings[:warning_files]).to eql([])
86
- expect(PuppetCheck.settings[:clean_files]).to eql(["#{fixtures_dir}librarian_style/Puppetfile"])
92
+ RubyParser.librarian(["#{fixtures_dir}librarian_style/Puppetfile"], true, ['--except', 'Layout/ArgumentAlignment,Style/HashSyntax'])
93
+ expect(PuppetCheck.files[:errors]).to eql({})
94
+ expect(PuppetCheck.files[:warnings]).to eql({})
95
+ expect(PuppetCheck.files[:clean]).to eql(["#{fixtures_dir}librarian_style/Puppetfile"])
87
96
  end
88
97
  it 'puts a good librarian Puppet file in the clean files array' do
89
98
  RubyParser.librarian(["#{fixtures_dir}librarian_good/Puppetfile"], true, [])
90
- expect(PuppetCheck.settings[:error_files]).to eql([])
91
- expect(PuppetCheck.settings[:warning_files]).to eql([])
92
- expect(PuppetCheck.settings[:clean_files]).to eql(["#{fixtures_dir}librarian_good/Puppetfile"])
99
+ expect(PuppetCheck.files[:errors]).to eql({})
100
+ expect(PuppetCheck.files[:warnings]).to eql({})
101
+ expect(PuppetCheck.files[:clean]).to eql(["#{fixtures_dir}librarian_good/Puppetfile"])
93
102
  end
94
103
  end
95
104
  end
@@ -10,7 +10,7 @@ describe PuppetCheck::Tasks do
10
10
  end
11
11
 
12
12
  context 'puppetcheck:spec' do
13
- let(:spec_tasks) { Rake::Task['puppetcheck:spec'.to_sym].invoke }
13
+ let(:spec_tasks) { Rake::Task[:'puppetcheck:spec'].invoke }
14
14
 
15
15
  it 'executes RSpec and RSpec-Puppet checks in the expected manner' do
16
16
  Dir.chdir(fixtures_dir)
@@ -23,23 +23,19 @@ describe PuppetCheck::Tasks do
23
23
  end
24
24
 
25
25
  context 'puppetcheck:beaker' do
26
- let(:beaker_task) { Rake::Task['puppetcheck:beaker'.to_sym].invoke }
26
+ let(:beaker_task) { Rake::Task[:'puppetcheck:beaker'].invoke }
27
27
 
28
28
  it 'verifies the Beaker task exists' do
29
- Dir.chdir(fixtures_dir)
30
-
31
29
  # beaker task executed
32
30
  expect { beaker_task }.to output("Beaker is not installed. The Beaker tasks will not be available.\n").to_stdout
33
31
  end
34
32
  end
35
33
 
36
34
  context 'puppetcheck:kitchen' do
37
- let(:kitchen_task) { Rake::Task['puppetcheck:kitchen'.to_sym].invoke }
35
+ let(:kitchen_task) { Rake::Task[:'puppetcheck:kitchen'].invoke }
38
36
 
39
37
  it 'verifies the Kitchen task exists' do
40
- Dir.chdir(fixtures_dir)
41
-
42
- # beaker task executed
38
+ # kitchen task executed
43
39
  expect { kitchen_task }.to output("Test Kitchen is not installed. The Kitchen tasks will not be available.\n").to_stdout
44
40
  end
45
41
  end
@@ -3,30 +3,68 @@ require_relative '../lib/puppet_check'
3
3
 
4
4
  describe PuppetCheck do
5
5
  context 'self' do
6
- it 'settings can be altered' do
7
- expect(PuppetCheck.settings[:future_parser]).to eql(nil)
8
- PuppetCheck.settings[:fail_on_warnings] = true
9
- expect(PuppetCheck.settings[:fail_on_warnings]).to eql(true)
10
- PuppetCheck.settings[:style] = true
11
- expect(PuppetCheck.settings[:style]).to eql(true)
12
- PuppetCheck.settings[:smoke] = true
13
- expect(PuppetCheck.settings[:smoke]).to eql(true)
14
- PuppetCheck.settings[:regression] = true
15
- expect(PuppetCheck.settings[:regression]).to eql(true)
16
- PuppetCheck.settings[:public] = 'public.pem'
17
- expect(PuppetCheck.settings[:public]).to eql('public.pem')
18
- PuppetCheck.settings[:private] = 'private.pem'
19
- expect(PuppetCheck.settings[:private]).to eql('private.pem')
20
- PuppetCheck.settings[:output_format] = 'text'
21
- expect(PuppetCheck.settings[:output_format]).to eql('text')
22
- PuppetCheck.settings[:octoconfig] = '.octocatalog-diff.cfg.rb'
23
- expect(PuppetCheck.settings[:octoconfig]).to eql('.octocatalog-diff.cfg.rb')
24
- PuppetCheck.settings[:octonodes] = %w[localhost.localdomain]
25
- expect(PuppetCheck.settings[:octonodes]).to eql(%w[localhost.localdomain])
26
- PuppetCheck.settings[:puppetlint_args] = ['--puppetlint-arg-one', '--puppetlint-arg-two']
27
- expect(PuppetCheck.settings[:puppetlint_args]).to eql(['--puppetlint-arg-one', '--puppetlint-arg-two'])
28
- PuppetCheck.settings[:rubocop_args] = ['--rubocop-arg-one', '--rubocop-arg-two']
29
- expect(PuppetCheck.settings[:rubocop_args]).to eql(['--rubocop-arg-one', '--rubocop-arg-two'])
6
+ it 'files are initialized correctly' do
7
+ expect(PuppetCheck.files).to eql(
8
+ {
9
+ errors: {},
10
+ warnings: {},
11
+ clean: [],
12
+ ignored: []
13
+ }
14
+ )
15
+ end
16
+ it 'files can be altered' do
17
+ PuppetCheck.files = {
18
+ errors: { 'foo' => ['i had an error'] },
19
+ warnings: { 'foo' => ['i had a warning'] },
20
+ clean: ['foo'],
21
+ ignored: ['foo']
22
+ }
23
+ expect(PuppetCheck.files).to eql(
24
+ {
25
+ errors: { 'foo' => ['i had an error'] },
26
+ warnings: { 'foo' => ['i had a warning'] },
27
+ clean: ['foo'],
28
+ ignored: ['foo']
29
+ }
30
+ )
31
+ end
32
+ end
33
+
34
+ context 'defaults' do
35
+ it 'returns defaults correctly' do
36
+ expect(PuppetCheck.defaults).to eql(
37
+ {
38
+ fail_on_warning: false,
39
+ style: false,
40
+ smoke: false,
41
+ regression: false,
42
+ public: nil,
43
+ private: nil,
44
+ output_format: 'text',
45
+ octoconfig: '.octocatalog-diff.cfg.rb',
46
+ octonodes: %w[localhost.localdomain],
47
+ puppetlint_args: [],
48
+ rubocop_args: []
49
+ }
50
+ )
51
+ end
52
+
53
+ it 'modifies settings correctly' do
54
+ settings = {
55
+ fail_on_warning: true,
56
+ style: true,
57
+ smoke: true,
58
+ regression: true,
59
+ public: 'public.pem',
60
+ private: 'private.pem',
61
+ output_format: 'yaml',
62
+ octoconfig: '.octocatalog-diff.cfg.erb',
63
+ octonodes: %w[host.domain],
64
+ puppetlint_args: %w[--puppetlint-arg-one --puppetlint-arg-two],
65
+ rubocop_args: %w[--rubocop-arg-one --rubocop-arg-two]
66
+ }
67
+ expect(PuppetCheck.defaults(settings)).to eql(settings)
30
68
  end
31
69
  end
32
70
 
@@ -73,7 +111,7 @@ describe PuppetCheck do
73
111
  # expect(parser_output).to receive(:yaml).with(%w[yaml.yaml yaml.yml])
74
112
  # expect(parser_output).to receive(:json).with(%w[json.json])
75
113
  # expect(parser_output).to receive(:librarian).with(%w[Puppetfile Modulefile])
76
- # expect(PuppetCheck.settings[:ignored_files]).to eql(%w[foobarbaz])
114
+ # expect(PuppetCheck.files[:ignored]).to eql(%w[foobarbaz])
77
115
  end
78
116
  end
79
117
  end
@@ -6,10 +6,10 @@ require_relative '../../lib/puppet-check/tasks'
6
6
  describe PuppetCheck do
7
7
  context 'executed as a system from the CLI with arguments and various files to be processed' do
8
8
  # see regression_check_spec
9
- if ENV['TRAVIS'] == 'true' || ENV['CIRCLECI'] == 'true'
10
- let(:cli) { PuppetCheck::CLI.run(%w[-s --puppet-lint no-hard_tabs-check,no-140chars-check --rubocop Metrics/LineLength,Style/Encoding .]) }
9
+ if ENV['TRAVIS'] == 'true' || ENV['CIRCLECI'] == 'true' || ENV['GITHUB_ACTIONS'] == 'true'
10
+ let(:cli) { PuppetCheck::CLI.run(%w[-s --puppet-lint no-hard_tabs-check,no-140chars-check --rubocop Layout/LineLength,Style/Encoding .]) }
11
11
  else
12
- let(:cli) { PuppetCheck::CLI.run(%w[-s --puppet-lint no-hard_tabs-check,no-140chars-check --rubocop Metrics/LineLength,Style/Encoding --smoke -n good.example.com --octoconfig spec/octocatalog-diff/octocatalog-diff.cfg.rb .]) }
12
+ let(:cli) { PuppetCheck::CLI.run(%w[-s --puppet-lint no-hard_tabs-check,no-140chars-check --rubocop Layout/LineLength,Style/Encoding --smoke -n good.example.com --octoconfig spec/octocatalog-diff/octocatalog-diff.cfg.rb .]) }
13
13
  end
14
14
 
15
15
  it 'outputs diagnostic results correctly after processing all of the files' do
@@ -17,41 +17,43 @@ describe PuppetCheck do
17
17
 
18
18
  expect { cli }.not_to raise_exception
19
19
 
20
- expect(PuppetCheck.settings[:error_files].length).to eql(9)
21
- expect(PuppetCheck.settings[:warning_files].length).to eql(10)
22
- expect(PuppetCheck.settings[:clean_files].length).to eql(12)
23
- expect(PuppetCheck.settings[:ignored_files].length).to eql(6)
20
+ expect(PuppetCheck.files[:errors].length).to eql(10)
21
+ expect(PuppetCheck.files[:warnings].length).to eql(11)
22
+ expect(PuppetCheck.files[:clean].length).to eql(13)
23
+ expect(PuppetCheck.files[:ignored].length).to eql(6)
24
24
 
25
25
  expect(cli).to eql(2)
26
26
  end
27
27
  end
28
28
 
29
29
  context 'executed as a system from the Rakefile with arguments and various files to be processed' do
30
- let(:tasks) { Rake::Task['puppetcheck:file'.to_sym].invoke }
31
-
32
30
  it 'outputs diagnostic results correctly after processing all of the files' do
33
31
  # ensure rake only checks the files inside fixtures
34
32
  Dir.chdir(fixtures_dir)
35
33
 
36
- # clear out arrays from previous system test
37
- PuppetCheck.settings[:error_files] = []
38
- PuppetCheck.settings[:warning_files] = []
39
- PuppetCheck.settings[:clean_files] = []
40
- PuppetCheck.settings[:ignored_files] = []
41
- PuppetCheck.settings[:style] = true
34
+ # clear out files member from previous system test
35
+ PuppetCheck.files = {
36
+ errors: {},
37
+ warnings: {},
38
+ clean: [],
39
+ ignored: []
40
+ }
41
+ settings = { style: true }
42
42
  # see regression_check_spec
43
- unless File.directory?('/home/travis')
44
- PuppetCheck.settings[:smoke] = true
45
- PuppetCheck.settings[:octonodes] = %w[good.example.com]
46
- PuppetCheck.settings[:octoconfig] = 'spec/octocatalog-diff/octocatalog-diff.cfg.rb'
43
+ unless ENV['TRAVIS'] == 'true' || ENV['CIRCLECI'] == 'true' || ENV['GITHUB_ACTIONS'] == 'true'
44
+ settings[:smoke] = true
45
+ settings[:octonodes] = %w[good.example.com]
46
+ settings[:octoconfig] = 'spec/octocatalog-diff/octocatalog-diff.cfg.rb'
47
47
  end
48
48
 
49
- expect { tasks }.not_to raise_exception
49
+ # cannot re-use plan fixture between system tests
50
+ expect { Rake::Task[:'puppetcheck:file'].invoke(settings) }.to raise_error(ArgumentError, /Attempt to redefine entity/)
50
51
 
51
- expect(PuppetCheck.settings[:error_files].length).to eql(9)
52
- expect(PuppetCheck.settings[:warning_files].length).to eql(10)
53
- expect(PuppetCheck.settings[:clean_files].length).to eql(12)
54
- expect(PuppetCheck.settings[:ignored_files].length).to eql(6)
52
+ # current puppet pops limitations no longer allow testing this
53
+ # expect(PuppetCheck.files[:errors].length).to eql(10)
54
+ # expect(PuppetCheck.files[:warnings].length).to eql(11)
55
+ # expect(PuppetCheck.files[:clean].length).to eql(13)
56
+ # expect(PuppetCheck.files[:ignored].length).to eql(6)
55
57
  end
56
58
  end
57
59
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet-check
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Schuchard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-24 00:00:00.000000000 Z
11
+ date: 2023-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: puppet
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '5.0'
19
+ version: '5.5'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: '8'
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '5.0'
29
+ version: '5.5'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '8'
@@ -34,56 +34,50 @@ dependencies:
34
34
  name: puppet-lint
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - "~>"
37
+ - - ">="
38
38
  - !ruby/object:Gem::Version
39
39
  version: '2.0'
40
+ - - "<"
41
+ - !ruby/object:Gem::Version
42
+ version: '4'
40
43
  type: :runtime
41
44
  prerelease: false
42
45
  version_requirements: !ruby/object:Gem::Requirement
43
46
  requirements:
44
- - - "~>"
47
+ - - ">="
45
48
  - !ruby/object:Gem::Version
46
49
  version: '2.0'
50
+ - - "<"
51
+ - !ruby/object:Gem::Version
52
+ version: '4'
47
53
  - !ruby/object:Gem::Dependency
48
54
  name: reek
49
55
  requirement: !ruby/object:Gem::Requirement
50
56
  requirements:
51
- - - ">="
52
- - !ruby/object:Gem::Version
53
- version: '4.0'
54
- - - "<"
57
+ - - "~>"
55
58
  - !ruby/object:Gem::Version
56
- version: '7'
59
+ version: '6.0'
57
60
  type: :runtime
58
61
  prerelease: false
59
62
  version_requirements: !ruby/object:Gem::Requirement
60
63
  requirements:
61
- - - ">="
62
- - !ruby/object:Gem::Version
63
- version: '4.0'
64
- - - "<"
64
+ - - "~>"
65
65
  - !ruby/object:Gem::Version
66
- version: '7'
66
+ version: '6.0'
67
67
  - !ruby/object:Gem::Dependency
68
68
  name: rubocop
69
69
  requirement: !ruby/object:Gem::Requirement
70
70
  requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- version: '0.58'
74
- - - "<"
71
+ - - "~>"
75
72
  - !ruby/object:Gem::Version
76
- version: '2'
73
+ version: '1.0'
77
74
  type: :runtime
78
75
  prerelease: false
79
76
  version_requirements: !ruby/object:Gem::Requirement
80
77
  requirements:
81
- - - ">="
82
- - !ruby/object:Gem::Version
83
- version: '0.58'
84
- - - "<"
78
+ - - "~>"
85
79
  - !ruby/object:Gem::Version
86
- version: '2'
80
+ version: '1.0'
87
81
  - !ruby/object:Gem::Dependency
88
82
  name: rubocop-performance
89
83
  requirement: !ruby/object:Gem::Requirement
@@ -118,14 +112,14 @@ dependencies:
118
112
  requirements:
119
113
  - - "~>"
120
114
  - !ruby/object:Gem::Version
121
- version: '12.0'
115
+ version: '13.0'
122
116
  type: :development
123
117
  prerelease: false
124
118
  version_requirements: !ruby/object:Gem::Requirement
125
119
  requirements:
126
120
  - - "~>"
127
121
  - !ruby/object:Gem::Version
128
- version: '12.0'
122
+ version: '13.0'
129
123
  - !ruby/object:Gem::Dependency
130
124
  name: rspec
131
125
  requirement: !ruby/object:Gem::Requirement
@@ -191,6 +185,9 @@ files:
191
185
  - spec/fixtures/metadata_style/metadata.json
192
186
  - spec/fixtures/metadata_style_two/metadata.json
193
187
  - spec/fixtures/metadata_syntax/metadata.json
188
+ - spec/fixtures/plans/good.pp
189
+ - spec/fixtures/plans/style.pp
190
+ - spec/fixtures/plans/syntax.pp
194
191
  - spec/fixtures/spec/facter/facter_spec.rb
195
192
  - spec/fixtures/spec/fixtures/do_not_parse_me
196
193
  - spec/fixtures/task_metadata/task_bad.json
@@ -229,70 +226,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
229
226
  requirements:
230
227
  - - ">="
231
228
  - !ruby/object:Gem::Version
232
- version: 2.4.0
229
+ version: 2.6.0
233
230
  required_rubygems_version: !ruby/object:Gem::Requirement
234
231
  requirements:
235
232
  - - ">="
236
233
  - !ruby/object:Gem::Version
237
234
  version: '0'
238
235
  requirements: []
239
- rubygems_version: 3.1.2
236
+ rubygems_version: 3.3.5
240
237
  signing_key:
241
238
  specification_version: 4
242
239
  summary: A streamlined comprehensive set of checks for your entire Puppet code and
243
240
  data
244
- test_files:
245
- - spec/fixtures/foobarbaz
246
- - spec/fixtures/hieradata/good.eyaml
247
- - spec/fixtures/hieradata/good.json
248
- - spec/fixtures/hieradata/good.yaml
249
- - spec/fixtures/hieradata/style.eyaml
250
- - spec/fixtures/hieradata/style.yaml
251
- - spec/fixtures/hieradata/syntax.eyaml
252
- - spec/fixtures/hieradata/syntax.json
253
- - spec/fixtures/hieradata/syntax.yaml
254
- - spec/fixtures/keys/private_key.pkcs7.pem
255
- - spec/fixtures/keys/public_key.pkcs7.pem
256
- - spec/fixtures/lib/good.rb
257
- - spec/fixtures/lib/rubocop_style.rb
258
- - spec/fixtures/lib/style.rb
259
- - spec/fixtures/lib/syntax.rb
260
- - spec/fixtures/librarian_good/Puppetfile
261
- - spec/fixtures/librarian_style/Puppetfile
262
- - spec/fixtures/librarian_syntax/Puppetfile
263
- - spec/fixtures/manifests/eof_syntax.pp
264
- - spec/fixtures/manifests/good.pp
265
- - spec/fixtures/manifests/style_lint.pp
266
- - spec/fixtures/manifests/style_parser.pp
267
- - spec/fixtures/manifests/syntax.pp
268
- - spec/fixtures/metadata.json
269
- - spec/fixtures/metadata_good/metadata.json
270
- - spec/fixtures/metadata_style/metadata.json
271
- - spec/fixtures/metadata_style_two/metadata.json
272
- - spec/fixtures/metadata_syntax/metadata.json
273
- - spec/fixtures/spec/facter/facter_spec.rb
274
- - spec/fixtures/spec/fixtures/do_not_parse_me
275
- - spec/fixtures/task_metadata/task_bad.json
276
- - spec/fixtures/task_metadata/task_good.json
277
- - spec/fixtures/templates/good.epp
278
- - spec/fixtures/templates/good.erb
279
- - spec/fixtures/templates/no_method_error.erb
280
- - spec/fixtures/templates/style.erb
281
- - spec/fixtures/templates/syntax.epp
282
- - spec/fixtures/templates/syntax.erb
283
- - spec/octocatalog-diff/facts.yaml
284
- - spec/octocatalog-diff/hiera.yaml
285
- - spec/octocatalog-diff/manifests/site.pp
286
- - spec/octocatalog-diff/octocatalog_diff.cfg.rb
287
- - spec/puppet-check/cli_spec.rb
288
- - spec/puppet-check/data_parser_spec.rb
289
- - spec/puppet-check/output_results_spec.rb
290
- - spec/puppet-check/puppet_parser_spec.rb
291
- - spec/puppet-check/regression_check_spec.rb
292
- - spec/puppet-check/rspec_puppet_support_spec.rb
293
- - spec/puppet-check/ruby_parser_spec.rb
294
- - spec/puppet-check/tasks_spec.rb
295
- - spec/puppet-check/utils_spec.rb
296
- - spec/puppet_check_spec.rb
297
- - spec/spec_helper.rb
298
- - spec/system/system_spec.rb
241
+ test_files: []