puppet-ci-testing 0.14.1 → 0.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bab5b4bd9a70514e432b23757ebec6feb9f6f938
4
- data.tar.gz: ea18cf491542d6aeaf1ac8cbe16c36aab63cdea8
3
+ metadata.gz: 3dce4ab3bbad464ff601d1081743c358461409d2
4
+ data.tar.gz: 21f39ea39e39f91e42c5e6ead2bb723a2f794cd0
5
5
  SHA512:
6
- metadata.gz: f50fd167af90114d3b640a415605c126a94fd1055a7090624d27bbd8331a77c86f15ac7e6c376cbc02bf6b5b925514ffb1bcae9698562f7ee4bde8d56fc1ac74
7
- data.tar.gz: c682f5034ab8c68b98cde833d7d23c8c09c2f2389737eacfc5aba52414e55ea83e1d044caf294ba5607e7c97f305645230490ed13389e59244a6f79791e859d2
6
+ metadata.gz: c737f446e8139a9b78262d2041998e2bc6dae9b15699d33aeb7105794787688d1170d04192c856a1220cd4e69657efa0ae5be871210271b3545b43c49d57d22f
7
+ data.tar.gz: aaf844c2d87f93c0c8fd0e1d658371355edd2b2e22e726c9f7a34c5c3ba3f5e10e7714dd57f8ee4076a53186a90998a4fd89051fd03b8ec33f606bf1bb9a1824
@@ -89,7 +89,7 @@ end
89
89
  def process_puppet_lint_parsing(opts)
90
90
 
91
91
  all_checks = PuppetLint.configuration.checks.map {|chk| chk.to_s}
92
- enables = opts.puppet_lint_enable || all_checks
92
+ enables = opts.puppet_lint_enable.empty? ? all_checks : opts.puppet_lint_enable
93
93
  disables = all_checks - enables
94
94
 
95
95
  puts <<-EOM
@@ -141,7 +141,7 @@ end
141
141
  def process_metadata_lint_parsing(opts)
142
142
 
143
143
  all_checks = MetadataJsonLint.options.members.select {|check| check.to_s if check != :format }
144
- enables = opts.metadata_lint_enable || all_checks
144
+ enables = opts.metadata_lint_enable.empty? ? all_checks : opts.metadata_lint_enable
145
145
  disables = all_checks - enables
146
146
 
147
147
  puts <<-EOM
@@ -159,17 +159,12 @@ def process_metadata_lint_parsing(opts)
159
159
  EOM
160
160
 
161
161
  # configure the rake task to disable specific checks
162
- if not disables.empty?
163
- Rake::Task['lint'].clear
164
- MetadataJsonLint::RakeTask.new :lint do |config|
165
- enables.each {|check| config[check] = true }
166
- disables.each {|check| config[check] = false }
167
- end
168
- end
162
+ enables.each {|check| MetadataJsonLint.options[check] = true }
163
+ disables.each {|check| MetadataJsonLint.options[check] = false}
169
164
 
170
165
  begin
171
166
  # TODO: gather lint output and generate JUnit reports
172
- Rake.application['lint'].invoke
167
+ Rake.application['metadata_lint'].invoke
173
168
  rescue SystemExit => e
174
169
  puts <<-EOM
175
170
 
@@ -62,6 +62,7 @@
62
62
  # - strict-dependencies
63
63
  - strict-license
64
64
  - fail-on-warnings
65
+ #
65
66
  # Configuration for RSpec unit testing
66
67
  rspec:
67
68
  run: true
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet-ci-testing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.1
4
+ version: 0.14.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gerard Hickey