bender-bot 0.4.4 → 0.4.5

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/helpers.rb +6 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eb5513228c548c513ce2e5d9ac1334533fe1585e
4
- data.tar.gz: b04c3ce4225699684f13608dcb45b1ee8787c066
3
+ metadata.gz: dea2fba9600c9e3c69175188361d1ecc25963afa
4
+ data.tar.gz: 6d5dd7070e5be5f27054644d232cec5f128ba01a
5
5
  SHA512:
6
- metadata.gz: 0c5c2be4556cbf32baaf45fe51b9558a0865b1a29e6623f5b3fe2a697aaa93f13e6c6158d18211b257dc3d54fecc35f120cabd43c5d6b3fa1a3af3345ef774b5
7
- data.tar.gz: b0df342ecf533c2059392f88993e1733669521d57c0aded6b520c9bb88a6a447b3d16de10e5ecd4cb39d827d40d9585a42aa0dfc325f99cc9793b15dc91ed08e
6
+ metadata.gz: 6012bac14aed3d48856287d444e94f08b45d69cd15f2cb032bb5c0f92f2bfc65a5e0f1df2c84706926850da9edb80496bb2e17f4774fb91d6c0ff8394a8f5771
7
+ data.tar.gz: 894f41cec02c47f13f3d02d00d1c9bb7c9b542d0a2acb6c4cf6523c34b01634183a3066938e96fc3a2fbaea8c965e65d14500f0b93e5680d59424f873b07e1a7
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.4
1
+ 0.4.5
@@ -68,7 +68,12 @@ module Helpers
68
68
  req['Accept'] = 'application/json'
69
69
 
70
70
  resp = http.request req
71
- issues = JSON.parse(resp.body)['issues']
71
+ begin
72
+ issues = JSON.parse(resp.body)['issues']
73
+ rescue JSON::ParserError
74
+ log.warn 'Could not refresh incidents!'
75
+ return
76
+ end
72
77
 
73
78
  bot.store['incidents'] = issues.map! do |i|
74
79
  i['num'] = i['key'].split('-', 2).last ; i
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bender-bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Clemmer