ruboty-redmine 0.1.6 → 0.1.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 +8 -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: 0455311b6497c40a5a2517cc557aee54f4abb381
|
4
|
+
data.tar.gz: a72b526d26bee5e47d4f8bacd32537c305ceb23f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 658d9e332aba5e69aed4063750c39b8d5dda2db4492aaca89301c6480a02d3fb3392df8389ada2504e98d18ae42779a1a7869f8eb8918860dcf112abe883e8ba
|
7
|
+
data.tar.gz: e6a819fe5bc996352450c4d2f05447eea06d0b0252c58849ee753b7afe92ff0c31d566e46f98f34bdab78666c3b81d2422fa413408c595fd34aff7d5ed045b66
|
@@ -114,9 +114,16 @@ module Ruboty
|
|
114
114
|
assignees = []
|
115
115
|
end
|
116
116
|
|
117
|
+
id = if watches.empty?
|
118
|
+
1
|
119
|
+
else
|
120
|
+
watches.last['id'] + 1
|
121
|
+
end
|
122
|
+
|
117
123
|
watches << message.original.except(:robot).merge(
|
118
|
-
{id:
|
124
|
+
{id: id, project: message[:project], tracker: message[:tracker], assignees: assignees, assignee_index: 0}
|
119
125
|
).stringify_keys
|
126
|
+
|
120
127
|
message.reply("Watching.")
|
121
128
|
end
|
122
129
|
|