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.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/bender/helpers.rb +6 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dea2fba9600c9e3c69175188361d1ecc25963afa
|
4
|
+
data.tar.gz: 6d5dd7070e5be5f27054644d232cec5f128ba01a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6012bac14aed3d48856287d444e94f08b45d69cd15f2cb032bb5c0f92f2bfc65a5e0f1df2c84706926850da9edb80496bb2e17f4774fb91d6c0ff8394a8f5771
|
7
|
+
data.tar.gz: 894f41cec02c47f13f3d02d00d1c9bb7c9b542d0a2acb6c4cf6523c34b01634183a3066938e96fc3a2fbaea8c965e65d14500f0b93e5680d59424f873b07e1a7
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.5
|
data/lib/bender/helpers.rb
CHANGED
@@ -68,7 +68,12 @@ module Helpers
|
|
68
68
|
req['Accept'] = 'application/json'
|
69
69
|
|
70
70
|
resp = http.request req
|
71
|
-
|
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
|