flapjack-diner 2.0.0.pre.alpha.3 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +6 -10
  3. data/README.md +165 -272
  4. data/flapjack-diner.gemspec +1 -1
  5. data/lib/flapjack-diner.rb +54 -25
  6. data/lib/flapjack-diner/argument_validator.rb +0 -17
  7. data/lib/flapjack-diner/configuration.rb +417 -0
  8. data/lib/flapjack-diner/log_formatter.rb +22 -0
  9. data/lib/flapjack-diner/query.rb +114 -0
  10. data/lib/flapjack-diner/relationships.rb +180 -0
  11. data/lib/flapjack-diner/request.rb +280 -0
  12. data/lib/flapjack-diner/resources.rb +64 -0
  13. data/lib/flapjack-diner/response.rb +91 -0
  14. data/lib/flapjack-diner/tools.rb +46 -456
  15. data/lib/flapjack-diner/utility.rb +16 -0
  16. data/lib/flapjack-diner/version.rb +1 -1
  17. data/spec/flapjack-diner_spec.rb +9 -18
  18. data/spec/{resources/relationships_spec.rb → relationships_spec.rb} +75 -29
  19. data/spec/resources/checks_spec.rb +7 -7
  20. data/spec/resources/contacts_spec.rb +21 -19
  21. data/spec/resources/events_spec.rb +13 -13
  22. data/spec/resources/maintenance_periods_spec.rb +3 -3
  23. data/spec/resources/media_spec.rb +3 -3
  24. data/spec/resources/metrics_spec.rb +1 -1
  25. data/spec/resources/rules_spec.rb +278 -0
  26. data/spec/resources/states_spec.rb +1 -1
  27. data/spec/resources/statistics_spec.rb +1 -1
  28. data/spec/resources/tags_spec.rb +75 -19
  29. data/spec/support/fixture_data.rb +57 -98
  30. metadata +21 -29
  31. data/.rubocop.yml +0 -21
  32. data/.rubocop_todo.yml +0 -135
  33. data/lib/flapjack-diner/resources/acceptors.rb +0 -77
  34. data/lib/flapjack-diner/resources/checks.rb +0 -52
  35. data/lib/flapjack-diner/resources/contacts.rb +0 -54
  36. data/lib/flapjack-diner/resources/events.rb +0 -54
  37. data/lib/flapjack-diner/resources/maintenance_periods.rb +0 -76
  38. data/lib/flapjack-diner/resources/media.rb +0 -75
  39. data/lib/flapjack-diner/resources/metrics.rb +0 -23
  40. data/lib/flapjack-diner/resources/rejectors.rb +0 -77
  41. data/lib/flapjack-diner/resources/relationships.rb +0 -314
  42. data/lib/flapjack-diner/resources/states.rb +0 -24
  43. data/lib/flapjack-diner/resources/statistics.rb +0 -24
  44. data/lib/flapjack-diner/resources/tags.rb +0 -47
  45. data/spec/resources/acceptors_spec.rb +0 -278
  46. data/spec/resources/rejectors_spec.rb +0 -278
@@ -1,7 +1,7 @@
1
1
  require 'spec_helper'
2
2
  require 'flapjack-diner'
3
3
 
4
- describe Flapjack::Diner::Resources::Tags, :pact => true do
4
+ describe Flapjack::Diner::Resources, :pact => true do
5
5
 
6
6
  before(:each) do
7
7
  Flapjack::Diner.base_uri('localhost:19081')
@@ -95,40 +95,96 @@ describe Flapjack::Diner::Resources::Tags, :pact => true do
95
95
 
96
96
  flapjack.given("a tag exists").
97
97
  upon_receiving("a GET request for tag 'www.example.com:SSH'").
98
- with(:method => :get, :path => "/tags/#{tag_data[:name]}").
98
+ with(:method => :get, :path => "/tags/#{tag_data[:id]}").
99
99
  will_respond_with(
100
100
  :status => 200,
101
101
  :headers => {'Content-Type' => 'application/vnd.api+json; supported-ext=bulk; charset=utf-8'},
102
102
  :body => {:data => resp_data} )
103
103
 
104
- result = Flapjack::Diner.tags(tag_data[:name])
104
+ result = Flapjack::Diner.tags(tag_data[:id])
105
105
  expect(result).to eq(resultify(resp_data))
106
106
  end
107
107
 
108
108
  it "can't find tag" do
109
109
  flapjack.given("no data exists").
110
110
  upon_receiving("a GET request for tag 'www.example.com:SSH'").
111
- with(:method => :get, :path => "/tags/#{tag_data[:name]}").
111
+ with(:method => :get, :path => "/tags/#{tag_data[:id]}").
112
112
  will_respond_with(
113
113
  :status => 404,
114
114
  :headers => {'Content-Type' => 'application/vnd.api+json; supported-ext=bulk; charset=utf-8'},
115
115
  :body => {:errors => [{
116
116
  :status => '404',
117
- :detail => "could not find Tag record, id: '#{tag_data[:name]}'"
117
+ :detail => "could not find Tag record, id: '#{tag_data[:id]}'"
118
118
  }]}
119
119
  )
120
120
 
121
- result = Flapjack::Diner.tags(tag_data[:name])
121
+ result = Flapjack::Diner.tags(tag_data[:id])
122
122
  expect(result).to be_nil
123
- expect(Flapjack::Diner.last_error).to eq([{:status => '404',
124
- :detail => "could not find Tag record, id: '#{tag_data[:name]}'"}])
123
+ expect(Flapjack::Diner.error).to eq([{:status => '404',
124
+ :detail => "could not find Tag record, id: '#{tag_data[:id]}'"}])
125
125
  end
126
126
 
127
127
  end
128
128
 
129
129
  end
130
130
 
131
- # no tag updates allowed
131
+ context 'update' do
132
+
133
+ it 'submits a PATCH request for a tag' do
134
+ flapjack.given("a tag exists").
135
+ upon_receiving("a PATCH request for a single tag").
136
+ with(:method => :patch,
137
+ :path => "/tags/#{tag_data[:id]}",
138
+ :body => {:data => {:id => tag_data[:id], :type => 'tag', :attributes => {:name => 'database_only'}}},
139
+ :headers => {'Content-Type' => 'application/vnd.api+json'}).
140
+ will_respond_with(
141
+ :status => 204,
142
+ :body => '' )
143
+
144
+ result = Flapjack::Diner.update_tags(:id => tag_data[:id], :name => 'database_only')
145
+ expect(result).to be_a(TrueClass)
146
+ end
147
+
148
+ it 'submits a PATCH request for several tags' do
149
+ flapjack.given("two tags exist").
150
+ upon_receiving("a PATCH request for two tags").
151
+ with(:method => :patch,
152
+ :path => "/tags",
153
+ :headers => {'Content-Type' => 'application/vnd.api+json; ext=bulk'},
154
+ :body => {:data => [{:id => tag_data[:id], :type => 'tag', :attributes => {:name => 'database_only'}},
155
+ {:id => tag_2_data[:id], :type => 'tag', :attributes => {:name => 'app_only'}}]}).
156
+ will_respond_with(
157
+ :status => 204,
158
+ :body => '' )
159
+
160
+ result = Flapjack::Diner.update_tags(
161
+ {:id => tag_data[:id], :name => 'database_only'},
162
+ {:id => tag_2_data[:id], :name => 'app_only'})
163
+ expect(result).to be_a(TrueClass)
164
+ end
165
+
166
+ it "can't find the tag to update" do
167
+ flapjack.given("no data exists").
168
+ upon_receiving("a PATCH request for a single tag").
169
+ with(:method => :patch,
170
+ :path => "/tags/#{tag_data[:id]}",
171
+ :body => {:data => {:id => tag_data[:id], :type => 'tag', :attributes => {:name => 'database_only'}}},
172
+ :headers => {'Content-Type' => 'application/vnd.api+json'}).
173
+ will_respond_with(
174
+ :status => 404,
175
+ :headers => {'Content-Type' => 'application/vnd.api+json; supported-ext=bulk; charset=utf-8'},
176
+ :body => {:errors => [{
177
+ :status => '404',
178
+ :detail => "could not find Tag record, id: '#{tag_data[:id]}'"
179
+ }]}
180
+ )
181
+
182
+ result = Flapjack::Diner.update_tags(:id => tag_data[:id], :name => 'database_only')
183
+ expect(result).to be_nil
184
+ expect(Flapjack::Diner.error).to eq([{:status => '404',
185
+ :detail => "could not find Tag record, id: '#{tag_data[:id]}'"}])
186
+ end
187
+ end
132
188
 
133
189
  context 'delete' do
134
190
 
@@ -136,18 +192,18 @@ describe Flapjack::Diner::Resources::Tags, :pact => true do
136
192
  flapjack.given("a tag exists").
137
193
  upon_receiving("a DELETE request for a single tag").
138
194
  with(:method => :delete,
139
- :path => "/tags/#{tag_data[:name]}",
195
+ :path => "/tags/#{tag_data[:id]}",
140
196
  :body => nil).
141
197
  will_respond_with(:status => 204,
142
198
  :body => '')
143
199
 
144
- result = Flapjack::Diner.delete_tags(tag_data[:name])
200
+ result = Flapjack::Diner.delete_tags(tag_data[:id])
145
201
  expect(result).to be_a(TrueClass)
146
202
  end
147
203
 
148
204
  it "submits a DELETE request for several tags" do
149
- tags_data = [{:type => 'tag', :id => tag_data[:name]},
150
- {:type => 'tag', :id => tag_2_data[:name]}]
205
+ tags_data = [{:type => 'tag', :id => tag_data[:id]},
206
+ {:type => 'tag', :id => tag_2_data[:id]}]
151
207
 
152
208
  flapjack.given("two tags exist").
153
209
  upon_receiving("a DELETE request for two tags").
@@ -158,7 +214,7 @@ describe Flapjack::Diner::Resources::Tags, :pact => true do
158
214
  will_respond_with(:status => 204,
159
215
  :body => '')
160
216
 
161
- result = Flapjack::Diner.delete_tags(tag_data[:name], tag_2_data[:name])
217
+ result = Flapjack::Diner.delete_tags(tag_data[:id], tag_2_data[:id])
162
218
  expect(result).to be_a(TrueClass)
163
219
  end
164
220
 
@@ -166,21 +222,21 @@ describe Flapjack::Diner::Resources::Tags, :pact => true do
166
222
  flapjack.given("no data exists").
167
223
  upon_receiving("a DELETE request for a single tag").
168
224
  with(:method => :delete,
169
- :path => "/tags/#{tag_data[:name]}",
225
+ :path => "/tags/#{tag_data[:id]}",
170
226
  :body => nil).
171
227
  will_respond_with(
172
228
  :status => 404,
173
229
  :headers => {'Content-Type' => 'application/vnd.api+json; supported-ext=bulk; charset=utf-8'},
174
230
  :body => {:errors => [{
175
231
  :status => '404',
176
- :detail => "could not find Tag record, id: '#{tag_data[:name]}'"
232
+ :detail => "could not find Tag record, id: '#{tag_data[:id]}'"
177
233
  }]}
178
234
  )
179
235
 
180
- result = Flapjack::Diner.delete_tags(tag_data[:name])
236
+ result = Flapjack::Diner.delete_tags(tag_data[:id])
181
237
  expect(result).to be_nil
182
- expect(Flapjack::Diner.last_error).to eq([{:status => '404',
183
- :detail => "could not find Tag record, id: '#{tag_data[:name]}'"}])
238
+ expect(Flapjack::Diner.error).to eq([{:status => '404',
239
+ :detail => "could not find Tag record, id: '#{tag_data[:id]}'"}])
184
240
  end
185
241
  end
186
242
 
@@ -40,15 +40,14 @@ module FixtureData
40
40
  ret
41
41
  end
42
42
 
43
- # def contextify(resp_data)
44
-
45
- # end
46
-
47
43
  def check_data
48
44
  @check_data ||= {
49
45
  :id => '1ed80833-6d28-4aba-8603-d81c249b8c23',
50
46
  :name => 'www.example.com:SSH',
51
- :enabled => true
47
+ :enabled => true,
48
+ :initial_failure_delay => nil,
49
+ :repeat_failure_delay => nil,
50
+ :initial_recovery_delay => nil
52
51
  }
53
52
  end
54
53
 
@@ -56,7 +55,10 @@ module FixtureData
56
55
  @check_2_data ||= {
57
56
  :id => '29e913cf-29ea-4ae5-94f6-7069cf4a1514',
58
57
  :name => 'www2.example.com:PING',
59
- :enabled => true
58
+ :enabled => true,
59
+ :initial_failure_delay => nil,
60
+ :repeat_failure_delay => nil,
61
+ :initial_recovery_delay => nil
60
62
  }
61
63
  end
62
64
 
@@ -162,12 +164,6 @@ module FixtureData
162
164
  def contact_rel(co_data)
163
165
  id = co_data[:id]
164
166
  {
165
- :acceptors => {
166
- :links => {
167
- :self => "http://#{api_host}/contacts/#{id}/relationships/acceptors",
168
- :related => "http://#{api_host}/contacts/#{id}/acceptors"
169
- }
170
- },
171
167
  :checks => {
172
168
  :links => {
173
169
  :self => "http://#{api_host}/contacts/#{id}/relationships/checks",
@@ -180,10 +176,16 @@ module FixtureData
180
176
  :related => "http://#{api_host}/contacts/#{id}/media"
181
177
  }
182
178
  },
183
- :rejectors => {
179
+ :rules => {
184
180
  :links => {
185
- :self => "http://#{api_host}/contacts/#{id}/relationships/rejectors",
186
- :related => "http://#{api_host}/contacts/#{id}/rejectors"
181
+ :self => "http://#{api_host}/contacts/#{id}/relationships/rules",
182
+ :related => "http://#{api_host}/contacts/#{id}/rules"
183
+ }
184
+ },
185
+ :tags => {
186
+ :links => {
187
+ :self => "http://#{api_host}/contacts/#{id}/relationships/tags",
188
+ :related => "http://#{api_host}/contacts/#{id}/tags"
187
189
  }
188
190
  }
189
191
  }
@@ -283,12 +285,6 @@ module FixtureData
283
285
  def medium_rel(me_data)
284
286
  id = me_data[:id]
285
287
  {
286
- :acceptors => {
287
- :links => {
288
- :self => "http://#{api_host}/media/#{id}/relationships/acceptors",
289
- :related => "http://#{api_host}/media/#{id}/acceptors"
290
- }
291
- },
292
288
  :alerting_checks => {
293
289
  :links => {
294
290
  :self => "http://#{api_host}/media/#{id}/relationships/alerting_checks",
@@ -301,102 +297,62 @@ module FixtureData
301
297
  :related => "http://#{api_host}/media/#{id}/contact"
302
298
  }
303
299
  },
304
- :rejectors => {
305
- :links => {
306
- :self => "http://#{api_host}/media/#{id}/relationships/rejectors",
307
- :related => "http://#{api_host}/media/#{id}/rejectors"
308
- }
309
- }
310
- }
311
- end
312
-
313
- def acceptor_data
314
- @acceptor_data ||= {
315
- :id => '05983623-fcef-42da-af44-ed6990b500fa',
316
- :conditions_list => 'critical'
317
- }
318
- end
319
-
320
- def acceptor_2_data
321
- @acceptor_2_data ||= {
322
- :id => '20f182fc-6e32-4794-9007-97366d162c51',
323
- :conditions_list => 'warning'
324
- }
325
- end
326
-
327
- def acceptor_json(ac_data)
328
- {
329
- :id => ac_data[:id],
330
- :type => 'acceptor',
331
- :attributes => ac_data.reject {|k,v| :id.eql?(k) }
332
- }
333
- end
334
-
335
- def acceptor_rel(ac_data)
336
- id = ac_data[:id]
337
- {
338
- :contact => {
339
- :links => {
340
- :self => "http://#{api_host}/acceptors/#{id}/relationships/contact",
341
- :related => "http://#{api_host}/acceptors/#{id}/contact"
342
- }
343
- },
344
- :media => {
300
+ :rules => {
345
301
  :links => {
346
- :self => "http://#{api_host}/acceptors/#{id}/relationships/media",
347
- :related => "http://#{api_host}/acceptors/#{id}/media"
348
- }
349
- },
350
- :tags => {
351
- :links => {
352
- :self => "http://#{api_host}/acceptors/#{id}/relationships/tags",
353
- :related => "http://#{api_host}/acceptors/#{id}/tags"
302
+ :self => "http://#{api_host}/media/#{id}/relationships/rules",
303
+ :related => "http://#{api_host}/media/#{id}/rules"
354
304
  }
355
305
  }
356
306
  }
357
307
  end
358
308
 
359
- def rejector_data
360
- @rejector_data ||= {
309
+ def rule_data
310
+ @rule_data ||= {
361
311
  :id => '05983623-fcef-42da-af44-ed6990b500fa',
312
+ :enabled => true,
313
+ :blackhole => false,
314
+ :strategy => 'all_tags',
362
315
  :conditions_list => 'critical'
363
316
  }
364
317
  end
365
318
 
366
- def rejector_2_data
367
- @rejector_2_data ||= {
319
+ def rule_2_data
320
+ @rule_2_data ||= {
368
321
  :id => '20f182fc-6e32-4794-9007-97366d162c51',
322
+ :enabled => true,
323
+ :blackhole => true,
324
+ :strategy => 'all_tags',
369
325
  :conditions_list => 'warning'
370
326
  }
371
327
  end
372
328
 
373
- def rejector_json(re_data)
329
+ def rule_json(ru_data)
374
330
  {
375
- :id => re_data[:id],
376
- :type => 'rejector',
377
- :attributes => re_data.reject {|k,v| :id.eql?(k) }
331
+ :id => ru_data[:id],
332
+ :type => 'rule',
333
+ :attributes => ru_data.reject {|k,v| :id.eql?(k) }
378
334
  }
379
335
  end
380
336
 
381
- def rejector_rel(re_data)
382
- id = re_data[:id]
337
+ def rule_rel(ru_data)
338
+ id = ru_data[:id]
383
339
  {
384
340
  :contact => {
385
341
  :links => {
386
- :self => "http://#{api_host}/rejectors/#{id}/relationships/contact",
387
- :related => "http://#{api_host}/rejectors/#{id}/contact"
342
+ :self => "http://#{api_host}/rules/#{id}/relationships/contact",
343
+ :related => "http://#{api_host}/rules/#{id}/contact"
388
344
  }
389
345
  },
390
346
  :media => {
391
347
  :links => {
392
- :self => "http://#{api_host}/rejectors/#{id}/relationships/media",
393
- :related => "http://#{api_host}/rejectors/#{id}/media"
348
+ :self => "http://#{api_host}/rules/#{id}/relationships/media",
349
+ :related => "http://#{api_host}/rules/#{id}/media"
394
350
  }
395
351
  },
396
352
  :tags => {
397
353
  :links => {
398
- :self => "http://#{api_host}/rejectors/#{id}/relationships/tags",
399
- :related => "http://#{api_host}/rejectors/#{id}/tags"
354
+ :self => "http://#{api_host}/rules/#{id}/relationships/tags",
355
+ :related => "http://#{api_host}/rules/#{id}/tags"
400
356
  }
401
357
  }
402
358
  }
@@ -443,43 +399,46 @@ module FixtureData
443
399
 
444
400
  def tag_data
445
401
  @tag_data ||= {
402
+ :id => '1850b8d7-1055-4a6e-9c96-f8f50e55bd0f',
446
403
  :name => 'database',
447
404
  }
448
405
  end
449
406
 
450
407
  def tag_2_data
451
408
  @tag_2_data ||= {
409
+ :id => 'c7a12328-8902-4974-8efa-68ec3e284507',
452
410
  :name => 'physical',
453
411
  }
454
412
  end
455
413
 
456
414
  def tag_json(ta_data)
457
- id = ta_data[:name]
415
+ id = ta_data[:id]
458
416
  {
417
+ :id => id,
459
418
  :type => 'tag',
460
- :attributes => ta_data
419
+ :attributes => ta_data.reject {|k,v| :id.eql?(k) }
461
420
  }
462
421
  end
463
422
 
464
423
  def tag_rel(ta_data)
465
- id = ta_data[:name]
424
+ id = ta_data[:id]
466
425
  {
467
- :acceptors => {
468
- :links => {
469
- :self => "http://#{api_host}/tags/#{id}/relationships/acceptors",
470
- :related => "http://#{api_host}/tags/#{id}/acceptors"
471
- }
472
- },
473
426
  :checks => {
474
427
  :links => {
475
428
  :self => "http://#{api_host}/tags/#{id}/relationships/checks",
476
429
  :related => "http://#{api_host}/tags/#{id}/checks"
477
430
  }
478
431
  },
479
- :rejectors => {
432
+ :contacts => {
433
+ :links => {
434
+ :self => "http://#{api_host}/tags/#{id}/relationships/contacts",
435
+ :related => "http://#{api_host}/tags/#{id}/contacts"
436
+ }
437
+ },
438
+ :rules => {
480
439
  :links => {
481
- :self => "http://#{api_host}/tags/#{id}/relationships/rejectors",
482
- :related => "http://#{api_host}/tags/#{id}/rejectors"
440
+ :self => "http://#{api_host}/tags/#{id}/relationships/rules",
441
+ :related => "http://#{api_host}/tags/#{id}/rules"
483
442
  }
484
443
  },
485
444
  :scheduled_maintenances => {
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flapjack-diner
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.pre.alpha.3
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ali Graham
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-15 00:00:00.000000000 Z
11
+ date: 2016-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: '0.10'
19
+ version: 0.13.5
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: '0.10'
26
+ version: 0.13.5
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: json
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -47,8 +47,6 @@ extra_rdoc_files: []
47
47
  files:
48
48
  - ".gitignore"
49
49
  - ".rspec"
50
- - ".rubocop.yml"
51
- - ".rubocop_todo.yml"
52
50
  - ".travis.yml"
53
51
  - Gemfile
54
52
  - LICENSE
@@ -57,33 +55,28 @@ files:
57
55
  - flapjack-diner.gemspec
58
56
  - lib/flapjack-diner.rb
59
57
  - lib/flapjack-diner/argument_validator.rb
58
+ - lib/flapjack-diner/configuration.rb
60
59
  - lib/flapjack-diner/index_range.rb
61
- - lib/flapjack-diner/resources/acceptors.rb
62
- - lib/flapjack-diner/resources/checks.rb
63
- - lib/flapjack-diner/resources/contacts.rb
64
- - lib/flapjack-diner/resources/events.rb
65
- - lib/flapjack-diner/resources/maintenance_periods.rb
66
- - lib/flapjack-diner/resources/media.rb
67
- - lib/flapjack-diner/resources/metrics.rb
68
- - lib/flapjack-diner/resources/rejectors.rb
69
- - lib/flapjack-diner/resources/relationships.rb
70
- - lib/flapjack-diner/resources/states.rb
71
- - lib/flapjack-diner/resources/statistics.rb
72
- - lib/flapjack-diner/resources/tags.rb
60
+ - lib/flapjack-diner/log_formatter.rb
61
+ - lib/flapjack-diner/query.rb
62
+ - lib/flapjack-diner/relationships.rb
63
+ - lib/flapjack-diner/request.rb
64
+ - lib/flapjack-diner/resources.rb
65
+ - lib/flapjack-diner/response.rb
73
66
  - lib/flapjack-diner/tools.rb
67
+ - lib/flapjack-diner/utility.rb
74
68
  - lib/flapjack-diner/version.rb
75
69
  - log/.gitkeep
76
70
  - spec/argument_validator_spec.rb
77
71
  - spec/flapjack-diner_spec.rb
78
- - spec/resources/acceptors_spec.rb
72
+ - spec/relationships_spec.rb
79
73
  - spec/resources/checks_spec.rb
80
74
  - spec/resources/contacts_spec.rb
81
75
  - spec/resources/events_spec.rb
82
76
  - spec/resources/maintenance_periods_spec.rb
83
77
  - spec/resources/media_spec.rb
84
78
  - spec/resources/metrics_spec.rb
85
- - spec/resources/rejectors_spec.rb
86
- - spec/resources/relationships_spec.rb
79
+ - spec/resources/rules_spec.rb
87
80
  - spec/resources/states_spec.rb
88
81
  - spec/resources/statistics_spec.rb
89
82
  - spec/resources/tags_spec.rb
@@ -103,27 +96,26 @@ required_ruby_version: !ruby/object:Gem::Requirement
103
96
  version: '0'
104
97
  required_rubygems_version: !ruby/object:Gem::Requirement
105
98
  requirements:
106
- - - ">"
99
+ - - ">="
107
100
  - !ruby/object:Gem::Version
108
- version: 1.3.1
101
+ version: '0'
109
102
  requirements: []
110
103
  rubyforge_project:
111
- rubygems_version: 2.4.8
104
+ rubygems_version: 2.5.1
112
105
  signing_key:
113
106
  specification_version: 4
114
107
  summary: Access the API of a Flapjack system monitoring server
115
108
  test_files:
116
109
  - spec/argument_validator_spec.rb
117
110
  - spec/flapjack-diner_spec.rb
118
- - spec/resources/acceptors_spec.rb
111
+ - spec/relationships_spec.rb
119
112
  - spec/resources/checks_spec.rb
120
113
  - spec/resources/contacts_spec.rb
121
114
  - spec/resources/events_spec.rb
122
115
  - spec/resources/maintenance_periods_spec.rb
123
116
  - spec/resources/media_spec.rb
124
117
  - spec/resources/metrics_spec.rb
125
- - spec/resources/rejectors_spec.rb
126
- - spec/resources/relationships_spec.rb
118
+ - spec/resources/rules_spec.rb
127
119
  - spec/resources/states_spec.rb
128
120
  - spec/resources/statistics_spec.rb
129
121
  - spec/resources/tags_spec.rb