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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/bender/main.rb +10 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 60db63765297783a1b5ad6ee9ca684e8336e0a73
4
- data.tar.gz: b3aab2e9c8f723841481cd34fa5618f76572e211
3
+ metadata.gz: 3cd5a24c116633990f56c202c89d34bad627a0d8
4
+ data.tar.gz: 61984589dafa9cd50bd68654379f44ddfe11d7d0
5
5
  SHA512:
6
- metadata.gz: 9b870df43429b3c8fbd67372c30be317b543b1406f120328ab3703118273ddcaf11a37e1d8a2b8023d16314ee81e56ddf1d61c902c11dea38a15c3b3b6b70b9e
7
- data.tar.gz: d9aa432b896d51a8b7a5cbda1232702fa7d852f6693ee8c2486239ed887e2521191084c1a0c6938931a0cf859783c96d491e6503504b68df0137209eaa045a42
6
+ metadata.gz: 28c70600bce22bf5a4ccdca6ce237365d353730fdedd13c8ec42c04d5df62744a347bc203ba583081bce18404c1284364c851fe287b6879f0871e07e8b28490d
7
+ data.tar.gz: 59d32095fe69c7696f79890c2a2fb8f5105785013cb5b2913453cbbe3e4ea67e6f070912f8c3dd4894f6f72c011198651f0ad026d287ef9602de4e0f7d0e5ea5
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.2
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
- room.update_room(new_room)
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
- room.update_room(new_room)
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.2
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-27 00:00:00.000000000 Z
11
+ date: 2015-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor