summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2019-04-09 14:06:36 +0100
committerSean McGivern <sean@gitlab.com>2019-04-10 12:58:18 +0100
commitcd9ae6bb820ae8ec98cce38d958298e081860dab (patch)
tree5ae1b923e40d42392c6443e2308722bf670727f1 /config
parent0de88f57997ef1d60467464f15411dae0c7ee870 (diff)
downloadgitlab-ce-cd9ae6bb820ae8ec98cce38d958298e081860dab.tar.gz
Revert "Remove HipChat integration from GitLab"
This reverts commit a5378665a1dc0b9c8dc3a4fa279a0eb78aac5aac.
Diffstat (limited to 'config')
-rw-r--r--config/initializers/hipchat_client_patch.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/config/initializers/hipchat_client_patch.rb b/config/initializers/hipchat_client_patch.rb
new file mode 100644
index 00000000000..aec265312bb
--- /dev/null
+++ b/config/initializers/hipchat_client_patch.rb
@@ -0,0 +1,14 @@
+# This monkey patches the HTTParty used in https://github.com/hipchat/hipchat-rb.
+module HipChat
+ class Client
+ connection_adapter ::Gitlab::ProxyHTTPConnectionAdapter
+ end
+
+ class Room
+ connection_adapter ::Gitlab::ProxyHTTPConnectionAdapter
+ end
+
+ class User
+ connection_adapter ::Gitlab::ProxyHTTPConnectionAdapter
+ end
+end