From b8d700ea65fa33b5208566fc13df0e82cb1db2df Mon Sep 17 00:00:00 2001 From: Konstantin Haase Date: Tue, 3 Sep 2013 18:22:31 +0200 Subject: [PATCH] expose more pusher infos --- lib/travis/api/app/endpoint/home.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/travis/api/app/endpoint/home.rb b/lib/travis/api/app/endpoint/home.rb index 1db26e1f..de1386d8 100644 --- a/lib/travis/api/app/endpoint/home.rb +++ b/lib/travis/api/app/endpoint/home.rb @@ -12,7 +12,7 @@ class Travis::Api::App host: Travis.config.client_domain, shorten_host: Travis.config.shorten_host, assets: Travis.config.assets, - pusher: { key: Travis.config.pusher.try(:key) }, + pusher: (Travis.config.pusher || {}).to_hash.slice(:host, :port, :scheme, :key), github: { api_url: GH.current.api_host.to_s, scopes: Travis.config.oauth2.try(:scope).to_s.split(?,) } # Landing point. Redirects web browsers to [API documentation](#/docs/).