upstreamstatus 0.4.0 → 0.4.1

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: ef5044e79defd768b4025d6174301b3a726d6f16
4
- data.tar.gz: 664dc56b3f95d0a759b75b3be95044069ceb5626
3
+ metadata.gz: 79a33e1f1f33ab1afa51f286e047655360b18e19
4
+ data.tar.gz: acc60a82ad8ae2bbeeb75d1280363c4f1b7b8315
5
5
  SHA512:
6
- metadata.gz: 7d369903baab9059b51b272db1fe2e5e715e7631ade8bee938bc4d4dde92326f6960ab9ea38e5fd83663d2221696e8063ed74c8dffb8220e5772927adf2a5e5e
7
- data.tar.gz: 4be7a4354decbc9c8978fd0553457b712cc9627ed144a094dfc1025167056082e14e989d27b9ed3affb3bbf41ab0826e35eafe4b22fad30add6094b5488239bb
6
+ metadata.gz: 5f9a34cdc7896dcea5e314999ba5f8d6b24f121decf9867ad78a1aa6143185327821f7125088b348d1e71b02f667cb746e102d7a7cb607fd1a9d39a51a6e2286
7
+ data.tar.gz: c76513567f352014a3408f1eeb66b34bfa92b764d06580bcd7411266c4636c705a93230414339a136ac1b115886205e7922637be844d9f090178448178f16ad4
@@ -1,3 +1,3 @@
1
1
  class Upstreamstatus
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
@@ -137,6 +137,8 @@ class Upstreamstatus
137
137
  "#{pagerduty_api_url}/incidents?service_ids[]=#{pagerduty_service_id}&statuses[]=triggered&statuses[]=acknowledged&offset=#{offset}"
138
138
  )
139
139
  fail "Result: #{r.inspect}" unless (200..299).include?(r.code)
140
+ return [] if r.body['total'].nil?
141
+
140
142
  pointer = r.body['limit'] + offset
141
143
  r.body['incidents'] + (pointer < r.body['total'] ? active_alerts_paged(pointer) : [])
142
144
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: upstreamstatus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Herot
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-12-14 00:00:00.000000000 Z
11
+ date: 2019-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unirest