class Bundler::Dsl

def _normalize_options(name, version, opts)

def _normalize_options(name, version, opts)
  _normalize_hash(opts)
  group = opts.delete("group") || @group
  # Normalize git and path options
  ["git", "path"].each do |type|
    if param = opts[type]
      options = _version?(version) ? opts.merge("name" => name, "version" => version) : opts.dup
      source = send(type, param, options, :prepend => true)
      opts["source"] = source
    end
  end
  opts["source"] ||= @source
  opts["group"] = group
end