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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 08deda7c76973896d7bf68d6db1b9e3f1cd381a6
4
- data.tar.gz: 61a61b4d9d39f346f4fa9560a60723342d4f2a63
3
+ metadata.gz: 235303d70149124952080aa2283a79957ffa9386
4
+ data.tar.gz: d6d3b31bab05f87dbd408a9fa11cee918c8ff34f
5
5
  SHA512:
6
- metadata.gz: 20006fd1d0fb11f335a29d86420827d01cc5fbbd336dc0848e5e6d26b69b5224b39a873db68e97af6b53d210aae1dbdee8eabf97580650091978ca620f99e50e
7
- data.tar.gz: ace982cadf6bda2f52f96561e588053ae2eb01e67b6cf25a63995b5501583459fb4330b62723bd7dd7c75f84f1d58d76508bd359805275e0ba6297ae73ebd59e
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.size + 1, project: message[:project], tracker: message[:tracker], assignees: assignees, assignee_index: 0}
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)
@@ -1,5 +1,5 @@
1
1
  module Ruboty
2
2
  module Redmine
3
- VERSION = "0.0.6"
3
+ VERSION = "0.0.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruboty-redmine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryota Arai