def gem_installed?(gem = name)
      Gem::Specification.find_all_by_name(gem).blank? ? false : true
    end
def gem_installed?(gem = name)
      Gem::Specification.find_all_by_name(gem).blank? ? false : true
    end
def chef_run_context
   ::Chef::RunContext.new(chef_node, nil, nil)
 end

  TODO - ARE THESE CAUSING TROUBLE???

 def chef_node
   node = ::Chef::Node.new
   node.consume_external_attrs(nil, ohai)
   node
 end
 Boolean indicating if the given Ruby Gem is installed.

 @param [String] gem
   The name of the Ruby Gem to check for.

 @return [Boolean]
   True if the Ruby Gem is installed, otherwise false.