Merge pull request #181 from travis-ci/rkh-more-pusher-info

add secure and private flag to pusher config payload
This commit is contained in:
Konstantin Haase 2015-07-14 17:46:30 +02:00
commit 43219fe49e

View File

@ -11,7 +11,7 @@ class Travis::Api::App
host: host, host: host,
shorten_host: Travis.config.shorten_host, shorten_host: Travis.config.shorten_host,
assets: Travis.config.assets, assets: Travis.config.assets,
pusher: (Travis.config.pusher_ws || Travis.config.pusher || {}).to_hash.slice(:scheme, :host, :port, :path, :key), pusher: (Travis.config.pusher_ws || Travis.config.pusher || {}).to_hash.slice(:scheme, :host, :port, :path, :key, :secure, :private),
github: { api_url: GH.current.api_host.to_s, scopes: Travis.config.oauth2.try(:scope).to_s.split(?,) } 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/). # Landing point. Redirects web browsers to [API documentation](#/docs/).