runscope_statuspage 0.1.6 → 0.1.7

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: 7209e392f8c7246f9fc6636fc30aab688e9ab428
4
- data.tar.gz: 5171ef0f04c4ab325e0bd465cec9c09efeedfb8d
3
+ metadata.gz: 385a56abb3df60bf7edb5b8a6f8524c09f4ea2c0
4
+ data.tar.gz: 4ffd7053461283181afdbd6ebc7b98418219a588
5
5
  SHA512:
6
- metadata.gz: c176029b404f9e017dc23cab1a4fc7a2e2f7a337ac0e8ba8eb9961b6c5eca186fa748ec4606c77892b1b29e927e66d8de18592da4d34d23c1f161571cac1bf8e
7
- data.tar.gz: 76b2677f4511d6a84a2ce0e5c48bb8796abd005d2d039469f9ba24c9a51ec53359687c533dd4354d7e6d1271bed53e7d7bc561f0dc4b0fb43d97d71db2c85a60
6
+ metadata.gz: f955268e622c2119e9b0ff89dfe8a2a8f4db2bd03c6f270af83cf9de57176e5981bff7e2d54334b1e2fed9f9b8138debf3b8718c592ff9c31abfe16da80602f5
7
+ data.tar.gz: 18759424dae4ab3792ce0b8c8b465b188f6fdbbae4be5662d7f78722687853a56dbd24c6c0b88c84b5ccc5d13761791c6a18dbc8ff656425f79552aef608c613
data/README.md CHANGED
@@ -109,6 +109,9 @@ Usage:
109
109
 
110
110
  ## Changelog
111
111
 
112
+ 0.1.7
113
+ * Runscope now reports if a test is `working`. Alerts will no longer be fired for `working` tests; if failures occur they will be caught on next execution.
114
+
112
115
  0.1.6
113
116
  * Fix interpolation bug.
114
117
 
@@ -70,7 +70,9 @@ module RunscopeStatuspage
70
70
  @rs.buckets.each do |bucket|
71
71
  @rs.radars(bucket['key']).each do |radar|
72
72
  begin
73
- if @rs.latest_radar_result(bucket['key'], radar['uuid'])['result'] != 'pass'
73
+ latest = @rs.latest_radar_result(bucket['key'], radar['uuid'])
74
+
75
+ if latest['result'] != 'pass' and latest['result'] != 'working'
74
76
  failed_radars.push radar
75
77
  end
76
78
  rescue RunscopeAPIException => r
@@ -116,7 +118,9 @@ module RunscopeStatuspage
116
118
  if bucket['name'] == bucket_name
117
119
  @rs.radars(bucket['key']).each do |radar|
118
120
  begin
119
- if @rs.latest_radar_result(bucket['key'], radar['uuid'])['result'] != 'pass' and radar['name'] == radar_name
121
+ latest = @rs.latest_radar_result(bucket['key'], radar['uuid'])
122
+
123
+ if latest['result'] != 'pass' and radar['name'] == radar_name and latest['result'] != 'working'
120
124
  failed_radars.push radar
121
125
  end
122
126
  rescue RunscopeAPIException => r
@@ -163,7 +167,9 @@ module RunscopeStatuspage
163
167
  if bucket['name'] == opts[:bucket_name]
164
168
  @rs.radars(bucket['key']).each do |radar|
165
169
  begin
166
- if @rs.latest_radar_result(bucket['key'], radar['uuid'])['result'] != 'pass' and opts[:radar_names].include?(radar['name'])
170
+ latest = @rs.latest_radar_result(bucket['key'], radar['uuid'])
171
+
172
+ if latest['result'] != 'pass' and opts[:radar_names].include?(radar['name']) and latest['result'] != 'working'
167
173
  failed_radars.push radar
168
174
  end
169
175
  rescue RunscopeAPIException => r
@@ -210,9 +216,11 @@ module RunscopeStatuspage
210
216
  if bucket['name'] == opts[:bucket_name]
211
217
  @rs.radars(bucket['key']).each do |radar|
212
218
  begin
213
- if @rs.latest_radar_result(bucket['key'], radar['uuid'])['result'] != 'pass'
214
- failed_radars.push radar
215
- end
219
+ latest = @rs.latest_radar_result(bucket['key'], radar['uuid'])
220
+
221
+ if latest['result'] != 'pass' and latest['result'] != 'working'
222
+ failed_radars.push radar
223
+ end
216
224
  rescue RunscopeAPIException => r
217
225
  p r
218
226
  next
@@ -250,6 +258,7 @@ module RunscopeStatuspage
250
258
  opts[:no_sp] = opts.key?(:no_sp) ? opts[:no_sp] : false
251
259
 
252
260
  failed_radars = []
261
+
253
262
  event_info = []
254
263
 
255
264
  reinit_rest
@@ -258,9 +267,11 @@ module RunscopeStatuspage
258
267
  if opts[:bucket_names].include?(bucket['name'])
259
268
  @rs.radars(bucket['key']).each do |radar|
260
269
  begin
261
- if @rs.latest_radar_result(bucket['key'], radar['uuid'])['result'] != 'pass'
262
- failed_radars.push radar
263
- end
270
+ latest = @rs.latest_radar_result(bucket['key'], radar['uuid'])
271
+
272
+ if latest['result'] != 'pass' and latest['result'] != 'working'
273
+ failed_radars.push radar
274
+ end
264
275
  rescue RunscopeAPIException => r
265
276
  p r
266
277
  next
@@ -1,3 +1,3 @@
1
1
  module RunscopeStatuspage
2
- VERSION = '0.1.6'
2
+ VERSION = '0.1.7'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runscope_statuspage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Stancu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-09 00:00:00.000000000 Z
11
+ date: 2015-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler