# File lib/heroku/commands/db.rb, line 84 def uri_hash_to_url(uri) uri_parts = { :scheme => uri['scheme'], :userinfo => userinfo_from_uri(uri), :password => uri['password'], :host => uri['host'] || '127.0.0.1', :port => uri['port'], :path => "/%s" % uri['path'], :query => uri['query'], } URI::Generic.build(uri_parts).to_s end