title: Chef 12.5-style custom resource: install a gem required by the load_current_value block?
body: <p>I have a Chef 12.5-style custom resource that requires a gem to be installed before I "require" it in the load_current_value block.  I tried to use a <code>chef_gem</code> resource, but I get a NoMethodError on chef_gem when I use it there.  This works:</p>
  
  <pre><code>load_current_value do
    Chef::Resource::ChefGem.new 'inifile' do
      compile_time true
    end
    require 'inifile'
    # ... load_current_value code
  end
  </code></pre>
  
  <p>... but explicitly calling <code>Chef::Resource::ChefGem.new</code> seems wrong, or at least "inelegant."   </p>
  
  <p>This makes the gem available to the actions, and that's convenient.  But I'm wondering if there a more appropriate way to install a chef_gem in (or ahead of) the load_current_value block?</p>