class Hoe

def with_config

def with_config
  config = Hoe::DEFAULT_CONFIG
  rc = File.expand_path("~/.hoerc")
  exists = File.exist? rc
  homeconfig = exists ? YAML.load_file(rc) : {}
  config = config.merge homeconfig
  localrc = File.join Dir.pwd, '.hoerc'
  exists = File.exist? localrc
  localconfig = exists ? YAML.load_file(localrc) : {}
  config = config.merge localconfig
  yield config, rc
end