CHEF-11996: Move cookstyle as a dependency to inspec-core.gemspec (#7034)

* gem: Add cookstyle as a dependency for inspec-core.gemspec

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* chore: fix lint of empty newlines

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

---------

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
This commit is contained in:
Sonu Saha 2024-05-06 16:30:05 +05:30 committed by GitHub
parent 9939b0d220
commit 9ab6a463d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 4 deletions

View file

@ -57,6 +57,12 @@ Source code obtained from the Chef GitHub repository is made available under Apa
spec.add_dependency "semverse", "~> 3.0"
spec.add_dependency "multipart-post", "~> 2.0"
# cookstyle support for inspec check
# This was initially included in 'inspec.gemspec' to keep 'chef-client' lightweight.
# However, it has been moved to 'inspec-core.gemspec' due to a dependency on the 'ast' gem,
# which was causing a LoadError ('cannot load such file -- ast') for users/applications using 'inspec-core'.
spec.add_dependency "cookstyle"
spec.add_dependency "train-core", ">= 3.11.0"
spec.add_dependency "chef-licensing", ">= 0.7.5"
end

View file

@ -35,10 +35,6 @@ Source code obtained from the Chef GitHub repository is made available under Apa
spec.add_dependency "inspec-core", "= #{Inspec::VERSION}"
spec.add_dependency "train", "~> 3.10"
# cookstyle support for inspec check
# Added here not because they are compiled, but to keep chef-client lightweight
spec.add_dependency "cookstyle"
spec.add_dependency "rake"
# progress bar streaming reporter plugin support