opscode/ohai — pull request #454 by thoughtcroft (2014-12-26 19:42:42+00:00)
Title: Fix for removal of :Config in ruby 2.2

Ohai ruby attribute detection is broken on ruby 2.2 due to removal of Config module which has been deprecated in favour of RbConfig for some time. The ruby plugin uses :Config::CONFIG['foo'] which errors with Constant Config not defined.

This fix alters the ruby invocation to replace the :Config constant with RbConfig.

The spec passes.