bender-bot 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/bender/main.rb +10 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3cd5a24c116633990f56c202c89d34bad627a0d8
|
4
|
+
data.tar.gz: 61984589dafa9cd50bd68654379f44ddfe11d7d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28c70600bce22bf5a4ccdca6ce237365d353730fdedd13c8ec42c04d5df62744a347bc203ba583081bce18404c1284364c851fe287b6879f0871e07e8b28490d
|
7
|
+
data.tar.gz: 59d32095fe69c7696f79890c2a2fb8f5105785013cb5b2913453cbbe3e4ea67e6f070912f8c3dd4894f6f72c011198651f0ad026d287ef9602de4e0f7d0e5ea5
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.3
|
data/lib/bender/main.rb
CHANGED
@@ -199,7 +199,11 @@ module Bender
|
|
199
199
|
if @open
|
200
200
|
new_room['name'] = @room_name
|
201
201
|
new_room['topic'] = @room_topic
|
202
|
-
|
202
|
+
begin
|
203
|
+
room.update_room(new_room)
|
204
|
+
rescue NoMethodError
|
205
|
+
log.warn 'NoMethodError in set_room_name_and_topic'
|
206
|
+
end
|
203
207
|
end
|
204
208
|
|
205
209
|
@open = 0
|
@@ -213,7 +217,11 @@ module Bender
|
|
213
217
|
unless @open == open_incidents.size
|
214
218
|
new_room['name'] = 'DANGER WILL ROBINSON'
|
215
219
|
new_room['topic'] = '%d open incicents!' % open_incidents.size
|
216
|
-
|
220
|
+
begin
|
221
|
+
room.update_room(new_room)
|
222
|
+
rescue NoMethodError
|
223
|
+
log.warn 'NoMethodError in set_room_name_and_topic'
|
224
|
+
end
|
217
225
|
end
|
218
226
|
|
219
227
|
@open = open_incidents.size
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bender-bot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Clemmer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|