I am using gem setting e.g.
gem 'rubyzip'… in the metadata.rb to install some gems prerequisite for the cookbook’s custom resource. The gems do get installed before the coookbooks are compiled, however first chef runs fails at the
require in the custom resource with a failure to load a file at the compilation phase. E.g.
LoadError: cannot load such file -- zip. Second chef client run succeeds.
What am I missing? My understanding is that with the gem metadata instruction, gem install happens at compile time and is available for usage at converge time and the former seems to be the case judging by the log output.
This is on Windows and with chef-client 12.10