ruboty-redmine 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ruboty/handlers/redmine.rb +12 -1
- data/lib/ruboty/redmine/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: 235303d70149124952080aa2283a79957ffa9386
|
4
|
+
data.tar.gz: d6d3b31bab05f87dbd408a9fa11cee918c8ff34f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74501135652ad512ada38ef1b27743d5f9fb7e20089e30eb37d5d80630fe2e3e0641f72be816442554abb8903edfe1e0ce0a1d7bc337c6070da1de430bfa46e3
|
7
|
+
data.tar.gz: 113992c7e4c007646c1fca063bc4220b8bc6f492530cc1a9240883687b3b356a322c3662ff1ea4fd45d9ec5d8094e2d9f3b37478e104327968b545ef96546262
|
@@ -110,7 +110,7 @@ module Ruboty
|
|
110
110
|
end
|
111
111
|
|
112
112
|
watches << message.original.except(:robot).merge(
|
113
|
-
{id: watches.
|
113
|
+
{id: watches.last['id'] + 1, project: message[:project], tracker: message[:tracker], assignees: assignees, assignee_index: 0}
|
114
114
|
).stringify_keys
|
115
115
|
message.reply("Watching.")
|
116
116
|
end
|
@@ -121,6 +121,17 @@ module Ruboty
|
|
121
121
|
if assignees = watch['assignees']
|
122
122
|
s << " and assign to #{assignees}"
|
123
123
|
end
|
124
|
+
|
125
|
+
room = case watch['type']
|
126
|
+
when "groupchat"
|
127
|
+
watch['from'].split('@').first
|
128
|
+
when "chat"
|
129
|
+
watch['from_name']
|
130
|
+
else
|
131
|
+
"unknown"
|
132
|
+
end
|
133
|
+
|
134
|
+
s << " (#{room})"
|
124
135
|
end.join("\n")
|
125
136
|
|
126
137
|
message.reply(reply)
|