eye-notify-hipchat 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/eye/notify/hipchat.rb +2 -2
- data/lib/eye/notify/hipchat/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d7a60519761f10e810c1c05354dea0cca1331e2
|
4
|
+
data.tar.gz: 279640ae853084b81525012bac21ddbe12d0fdf4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 173fdb496e7a9013730a672f94b134774ae9b731ad8ad91f0b4cf6ffd058fb84222a884ef34b03e3df4e32d86cbf97676b328a900de22d69e1a20d192e719b02
|
7
|
+
data.tar.gz: d32f610d43f7130f5b40607a9cde5564cd07b9f257f46b5cb9f0ae5a9c019ba75919e7ae9b2d68f9dc36d8fb146fc18cc823f50f25944e3343f61c38dcc0011c
|
data/lib/eye/notify/hipchat.rb
CHANGED
@@ -14,7 +14,7 @@ module Eye
|
|
14
14
|
|
15
15
|
param :api_token, String, true # Required
|
16
16
|
param :name, String, false, 'Eye' # Not required, defaults to 'Eye'
|
17
|
-
param :
|
17
|
+
param :notify_room, [TrueClass, FalseClass], false, true # Not required, defaults to true
|
18
18
|
param :color, String, false, 'yellow', ['yellow', 'green', 'red', 'purple', 'gray', 'random']
|
19
19
|
|
20
20
|
def execute
|
@@ -22,7 +22,7 @@ module Eye
|
|
22
22
|
room_name = contact
|
23
23
|
|
24
24
|
client = HipChat::Client.new(api_token, :api_version => 'v2')
|
25
|
-
client[room_name].send(name, message_body, notify:
|
25
|
+
client[room_name].send(name, message_body, notify: notify_room, color: color)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|