chef-api should not require chef
Closed this issue · 3 comments
nvwls commented
The stated goal of chef-api is to have as few dependencies as possible. There is an implicit dependency on the chef gem.
`rescue in block in deep_const_get': can't get const Chef::Environment: uninitialized constant Chef (ArgumentError)
This can be avoided by passing create_additions: false into JSON.parse.
PR forthcoming.
sethvargo commented
Sorry. What do you mean by "implicit dependency"? Are you saying that Ruby is inflating that class? I thought that was fixed in modern Rubies...
nvwls commented
Yes, this is restricted to systems with 1.9.3.
sethvargo commented
Ah makes sense. I don't use 1.9.3 😄