module Honeybadger::Config::Yaml

def self.dotify_keys(hash, key_prefix = nil)

def self.dotify_keys(hash, key_prefix = nil)
  {}.tap do |new_hash|
    hash.each_pair do |k,v|
      k = [key_prefix, k].compact.join('.')
      if v.kind_of?(Hash)
        new_hash.update(dotify_keys(v, k))
      else
        next if DISALLOWED_KEYS.include?(k.to_sym)
        new_hash[k.to_sym] = v
      end
    end
  end
end