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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 07adc38ec735dcc0b6840f28cfcf981fc9527bae
4
- data.tar.gz: 67e21c6ec212a633b80abb1d51345e9d5d944e8f
3
+ metadata.gz: 0455311b6497c40a5a2517cc557aee54f4abb381
4
+ data.tar.gz: a72b526d26bee5e47d4f8bacd32537c305ceb23f
5
5
  SHA512:
6
- metadata.gz: 3292d0df5eafe0e3cf784161f2196b9402b889f3014a3315cc3aa6e01309db5c802a0cbf762d2db0d1445a06fbb78c865186dab3a6a4df23bd7da1776d31ccfc
7
- data.tar.gz: 170b5e0f12d274621bb93710b1ba6a951e20b972490ccda1a7e92d6357475bc9f4ea5ae873fb63b4a2627a8c77d41abedee3863c258adc92bd9748852c1ea324
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: watches.last['id'] + 1, project: message[:project], tracker: message[:tracker], assignees: assignees, assignee_index: 0}
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
 
@@ -1,5 +1,5 @@
1
1
  module Ruboty
2
2
  module Redmine
3
- VERSION = "0.1.6"
3
+ VERSION = "0.1.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.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryota Arai