kitchen-dokken 2.23.3 → 2.23.4

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
  SHA256:
3
- metadata.gz: 9bbe79ca0ad5a4b71659c1359871a9e4c86f6e243d83d694ab76341f94a0e6c0
4
- data.tar.gz: 2e6dd411ce0d408331cf312249d208c6b6345382cc94d2d83cba0cf7b407d0be
3
+ metadata.gz: 2d9ccb56c8974df70436872b28c19a5450c2c05bf932455bcfa58aafce70864c
4
+ data.tar.gz: 8e07df1d7dba596d084ad7a4a102c585052a746cc89bb2e4e67684ac4860711e
5
5
  SHA512:
6
- metadata.gz: a14d2a57ab4bdb76e6192107fd2f0c185df2f1fab90522c1fa45546420c8a508e0adfb9b893a56c2c9ef6e84c4b7fd5cf1428f578b614f788659b523e6219753
7
- data.tar.gz: df6506e366a8379682f5bbbfc3e3b1574d841a3da048d7ab35d61b944f4b28996277cf30907fa1b1de3b21aa36c52fd01521844344c51c0ec976cd93b396ed1e
6
+ metadata.gz: c1e01f4007692ced6bf2072031e2ab0ccb64540baac5c8442b52241e9202c744a9392382712b69cf02cf62716410ea645c9c2967f13a8fb8c72ae2cd3a94209e
7
+ data.tar.gz: b5213a8c3f73612734cc5db99a607c9d9eb4253a5814d563122f7556d14df100aeec431eb459a673b3f083408a7581a778d89e0c5ddc8dfb50cfa7b62952b56c
data/Gemfile CHANGED
@@ -4,16 +4,25 @@ gemspec
4
4
 
5
5
  group :test do
6
6
  gem "syslog" # this is a workaround for ruby 3.4 support in berkshelf 8.0.22 and can be removed when a new version of berkshelf is released
7
- gem "csv" # this is a workaround for ruby 3.4 support in inspec-core 6.8.24 and can be removed when a new version of inspec-core is released
8
7
  gem "berkshelf"
9
8
  gem "kitchen-inspec"
9
+ # Pin to the last Apache-2.0 line of inspec-core. From 6.6.0 onwards the gem
10
+ # ships under LicenseRef-Chef-EULA and refuses to run without a Chef license
11
+ # entitlement, which would make `kitchen verify` impossible in CI and on
12
+ # forks. kitchen-inspec allows anything up to 8.0, so without this pin a
13
+ # fresh resolve silently lands on the licensed line. Cinc Auditor is built
14
+ # from this same Apache-2.0 source; there is no cinc-auditor gem to depend
15
+ # on instead.
16
+ gem "inspec-core", "< 6"
10
17
  gem "minitest"
11
18
  gem "mocha"
12
19
  gem "rake", ">= 11.0"
20
+ gem "simplecov", require: false # opt-in via COVERAGE=1
13
21
  end
14
22
 
15
23
  group :development do
16
24
  gem "pry"
25
+ gem "yard" # `rake doc` -- documentation is not gated in CI
17
26
  end
18
27
 
19
28
  group :cookstyle do
data/Rakefile CHANGED
@@ -11,6 +11,24 @@ end
11
11
  desc "Run all unit tests"
12
12
  task test: %i{unit}
13
13
 
14
+ desc "Run the unit tests with coverage reporting"
15
+ task :coverage do
16
+ ENV["COVERAGE"] = "1"
17
+ Rake::Task[:unit].invoke
18
+ end
19
+
20
+ begin
21
+ require "yard"
22
+ YARD::Rake::YardocTask.new(:doc)
23
+
24
+ desc "Report YARD documentation coverage"
25
+ task :doc_stats do
26
+ sh "yard stats --list-undoc"
27
+ end
28
+ rescue LoadError
29
+ puts "yard is not available. (sudo) gem install yard to generate documentation."
30
+ end
31
+
14
32
  begin
15
33
  require "cookstyle/chefstyle"
16
34
  require "rubocop/rake_task"