This change is automatically generated by the Cookstyle Bot using the latest version of Cookstyle (6.21.1). Adopting changes suggested by Cookstyle improves cookbook readability, avoids common coding mistakes, and eases upgrades to newer versions of the Chef Infra Client.
ChefDeprecations/UseYamlDump
/test/fixtures/test_rubygems/recipes/gemrc_local_merge.rb:9: Chef Infra Client 16.5 introduced performance enhancements to Ruby library loading. Due to the underlying implementation of Ruby's .to_yaml method, it does not automatically load the yaml library and YAML.dump() should be used instead to properly load the yaml library.
This change is automatically generated by the Cookstyle Bot using the latest version of Cookstyle (6.21.1). Adopting changes suggested by Cookstyle improves cookbook readability, avoids common coding mistakes, and eases upgrades to newer versions of the Chef Infra Client.
ChefDeprecations/UseYamlDump
.to_yaml
method, it does not automatically load theyaml
library andYAML.dump()
should be used instead to properly load theyaml
library.Signed-off-by: Cookstyle cookbooks@chef.io