wavefront-sdk 3.6.0 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +43 -2
  3. data/.travis.yml +5 -5
  4. data/HISTORY.md +32 -0
  5. data/README.md +4 -3
  6. data/lib/wavefront-sdk/account.rb +303 -0
  7. data/lib/wavefront-sdk/api_mixins/user.rb +20 -0
  8. data/lib/wavefront-sdk/core/api_caller.rb +50 -7
  9. data/lib/wavefront-sdk/core/exception.rb +6 -0
  10. data/lib/wavefront-sdk/core/response.rb +2 -1
  11. data/lib/wavefront-sdk/defs/version.rb +1 -3
  12. data/lib/wavefront-sdk/ingestionpolicy.rb +85 -0
  13. data/lib/wavefront-sdk/paginator/base.rb +21 -15
  14. data/lib/wavefront-sdk/query.rb +0 -1
  15. data/lib/wavefront-sdk/role.rb +104 -0
  16. data/lib/wavefront-sdk/spy.rb +126 -0
  17. data/lib/wavefront-sdk/stdlib/array.rb +1 -1
  18. data/lib/wavefront-sdk/stdlib/time.rb +13 -0
  19. data/lib/wavefront-sdk/support/mixins.rb +1 -1
  20. data/lib/wavefront-sdk/unstable/README.md +4 -0
  21. data/lib/wavefront-sdk/unstable/chart.rb +90 -0
  22. data/lib/wavefront-sdk/unstable/unstable.rb +9 -0
  23. data/lib/wavefront-sdk/usage.rb +31 -0
  24. data/lib/wavefront-sdk/user.rb +41 -0
  25. data/lib/wavefront-sdk/usergroup.rb +17 -16
  26. data/lib/wavefront-sdk/validators.rb +65 -7
  27. data/lib/wavefront-sdk/write.rb +13 -3
  28. data/spec/.rubocop.yml +42 -1
  29. data/spec/spec_helper.rb +4 -0
  30. data/spec/support/minitest_assertions.rb +4 -4
  31. data/spec/wavefront-sdk/account_spec.rb +238 -0
  32. data/spec/wavefront-sdk/core/api_caller_spec.rb +43 -0
  33. data/spec/wavefront-sdk/ingestionpolicy_spec.rb +43 -0
  34. data/spec/wavefront-sdk/metric_helper_spec.rb +1 -1
  35. data/spec/wavefront-sdk/role_spec.rb +68 -0
  36. data/spec/wavefront-sdk/spy_spec.rb +113 -0
  37. data/spec/wavefront-sdk/unstable/chart_spec.rb +39 -0
  38. data/spec/wavefront-sdk/usage_spec.rb +33 -0
  39. data/spec/wavefront-sdk/user_spec.rb +20 -0
  40. data/spec/wavefront-sdk/usergroup_spec.rb +21 -11
  41. data/spec/wavefront-sdk/validators_spec.rb +52 -6
  42. data/wavefront-sdk.gemspec +4 -4
  43. metadata +30 -9
@@ -23,17 +23,17 @@ Gem::Specification.new do |gem|
23
23
  gem.bindir = 'bin'
24
24
 
25
25
  gem.add_dependency 'addressable', '~> 2.7'
26
- gem.add_dependency 'faraday', '~> 0.17.0'
26
+ gem.add_dependency 'faraday', '~> 1.0'
27
27
  gem.add_dependency 'inifile', '~> 3.0'
28
28
  gem.add_dependency 'map', '~> 6.6'
29
29
 
30
30
  gem.add_development_dependency 'minitest', '~> 5.11'
31
- gem.add_development_dependency 'rake', '~> 12.3'
32
- gem.add_development_dependency 'rubocop', '~> 0.76'
31
+ gem.add_development_dependency 'rake', '~> 13.0'
32
+ gem.add_development_dependency 'rubocop', '~> 0.87'
33
33
  gem.add_development_dependency 'simplecov', '~> 0.16'
34
34
  gem.add_development_dependency 'spy', '~> 1.0.0'
35
35
  gem.add_development_dependency 'webmock', '~> 3.7'
36
36
  gem.add_development_dependency 'yard', '~> 0.9'
37
37
 
38
- gem.required_ruby_version = Gem::Requirement.new('>= 2.3.0')
38
+ gem.required_ruby_version = Gem::Requirement.new('>= 2.4.0')
39
39
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wavefront-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.0
4
+ version: 5.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Fisher
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-12 00:00:00.000000000 Z
11
+ date: 2020-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.17.0
33
+ version: '1.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.17.0
40
+ version: '1.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: inifile
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -86,28 +86,28 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '12.3'
89
+ version: '13.0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '12.3'
96
+ version: '13.0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rubocop
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '0.76'
103
+ version: '0.87'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '0.76'
110
+ version: '0.87'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: simplecov
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -179,6 +179,7 @@ files:
179
179
  - LICENSE.txt
180
180
  - README.md
181
181
  - Rakefile
182
+ - lib/wavefront-sdk/account.rb
182
183
  - lib/wavefront-sdk/alert.rb
183
184
  - lib/wavefront-sdk/api_mixins/acl.rb
184
185
  - lib/wavefront-sdk/api_mixins/tag.rb
@@ -198,6 +199,7 @@ files:
198
199
  - lib/wavefront-sdk/distribution.rb
199
200
  - lib/wavefront-sdk/event.rb
200
201
  - lib/wavefront-sdk/externallink.rb
202
+ - lib/wavefront-sdk/ingestionpolicy.rb
201
203
  - lib/wavefront-sdk/integration.rb
202
204
  - lib/wavefront-sdk/maintenancewindow.rb
203
205
  - lib/wavefront-sdk/message.rb
@@ -212,17 +214,24 @@ files:
212
214
  - lib/wavefront-sdk/proxy.rb
213
215
  - lib/wavefront-sdk/query.rb
214
216
  - lib/wavefront-sdk/report.rb
217
+ - lib/wavefront-sdk/role.rb
215
218
  - lib/wavefront-sdk/savedsearch.rb
216
219
  - lib/wavefront-sdk/search.rb
217
220
  - lib/wavefront-sdk/serviceaccount.rb
218
221
  - lib/wavefront-sdk/settings.rb
219
222
  - lib/wavefront-sdk/source.rb
223
+ - lib/wavefront-sdk/spy.rb
220
224
  - lib/wavefront-sdk/stdlib/array.rb
221
225
  - lib/wavefront-sdk/stdlib/hash.rb
222
226
  - lib/wavefront-sdk/stdlib/string.rb
227
+ - lib/wavefront-sdk/stdlib/time.rb
223
228
  - lib/wavefront-sdk/support/mixins.rb
224
229
  - lib/wavefront-sdk/support/parse_time.rb
225
230
  - lib/wavefront-sdk/types/status.rb
231
+ - lib/wavefront-sdk/unstable/README.md
232
+ - lib/wavefront-sdk/unstable/chart.rb
233
+ - lib/wavefront-sdk/unstable/unstable.rb
234
+ - lib/wavefront-sdk/usage.rb
226
235
  - lib/wavefront-sdk/user.rb
227
236
  - lib/wavefront-sdk/usergroup.rb
228
237
  - lib/wavefront-sdk/validators.rb
@@ -246,6 +255,7 @@ files:
246
255
  - spec/test_mixins/general.rb
247
256
  - spec/test_mixins/tag.rb
248
257
  - spec/test_mixins/update_keys.rb
258
+ - spec/wavefront-sdk/account_spec.rb
249
259
  - spec/wavefront-sdk/alert_spec.rb
250
260
  - spec/wavefront-sdk/api_mixins/user_mixins_spec.rb
251
261
  - spec/wavefront-sdk/apitoken_spec.rb
@@ -260,6 +270,7 @@ files:
260
270
  - spec/wavefront-sdk/distribution_spec.rb
261
271
  - spec/wavefront-sdk/event_spec.rb
262
272
  - spec/wavefront-sdk/externallink_spec.rb
273
+ - spec/wavefront-sdk/ingestionpolicy_spec.rb
263
274
  - spec/wavefront-sdk/integration_spec.rb
264
275
  - spec/wavefront-sdk/maintenancewindow_spec.rb
265
276
  - spec/wavefront-sdk/message_spec.rb
@@ -281,16 +292,20 @@ files:
281
292
  - spec/wavefront-sdk/resources/user_responses/describe.json
282
293
  - spec/wavefront-sdk/resources/user_responses/grant.json
283
294
  - spec/wavefront-sdk/resources/user_responses/list.json
295
+ - spec/wavefront-sdk/role_spec.rb
284
296
  - spec/wavefront-sdk/savedsearch_spec.rb
285
297
  - spec/wavefront-sdk/search_spec.rb
286
298
  - spec/wavefront-sdk/serviceaccount_spec.rb
287
299
  - spec/wavefront-sdk/settings_spec.rb
288
300
  - spec/wavefront-sdk/source_spec.rb
301
+ - spec/wavefront-sdk/spy_spec.rb
289
302
  - spec/wavefront-sdk/stdlib/array_spec.rb
290
303
  - spec/wavefront-sdk/stdlib/hash_spec.rb
291
304
  - spec/wavefront-sdk/stdlib/string_spec.rb
292
305
  - spec/wavefront-sdk/support/mixins_spec.rb
293
306
  - spec/wavefront-sdk/support/parse_time_spec.rb
307
+ - spec/wavefront-sdk/unstable/chart_spec.rb
308
+ - spec/wavefront-sdk/usage_spec.rb
294
309
  - spec/wavefront-sdk/user_spec.rb
295
310
  - spec/wavefront-sdk/usergroup_spec.rb
296
311
  - spec/wavefront-sdk/validators_spec.rb
@@ -314,7 +329,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
314
329
  requirements:
315
330
  - - ">="
316
331
  - !ruby/object:Gem::Version
317
- version: 2.3.0
332
+ version: 2.4.0
318
333
  required_rubygems_version: !ruby/object:Gem::Requirement
319
334
  requirements:
320
335
  - - ">="
@@ -338,6 +353,7 @@ test_files:
338
353
  - spec/test_mixins/general.rb
339
354
  - spec/test_mixins/tag.rb
340
355
  - spec/test_mixins/update_keys.rb
356
+ - spec/wavefront-sdk/account_spec.rb
341
357
  - spec/wavefront-sdk/alert_spec.rb
342
358
  - spec/wavefront-sdk/api_mixins/user_mixins_spec.rb
343
359
  - spec/wavefront-sdk/apitoken_spec.rb
@@ -352,6 +368,7 @@ test_files:
352
368
  - spec/wavefront-sdk/distribution_spec.rb
353
369
  - spec/wavefront-sdk/event_spec.rb
354
370
  - spec/wavefront-sdk/externallink_spec.rb
371
+ - spec/wavefront-sdk/ingestionpolicy_spec.rb
355
372
  - spec/wavefront-sdk/integration_spec.rb
356
373
  - spec/wavefront-sdk/maintenancewindow_spec.rb
357
374
  - spec/wavefront-sdk/message_spec.rb
@@ -373,16 +390,20 @@ test_files:
373
390
  - spec/wavefront-sdk/resources/user_responses/describe.json
374
391
  - spec/wavefront-sdk/resources/user_responses/grant.json
375
392
  - spec/wavefront-sdk/resources/user_responses/list.json
393
+ - spec/wavefront-sdk/role_spec.rb
376
394
  - spec/wavefront-sdk/savedsearch_spec.rb
377
395
  - spec/wavefront-sdk/search_spec.rb
378
396
  - spec/wavefront-sdk/serviceaccount_spec.rb
379
397
  - spec/wavefront-sdk/settings_spec.rb
380
398
  - spec/wavefront-sdk/source_spec.rb
399
+ - spec/wavefront-sdk/spy_spec.rb
381
400
  - spec/wavefront-sdk/stdlib/array_spec.rb
382
401
  - spec/wavefront-sdk/stdlib/hash_spec.rb
383
402
  - spec/wavefront-sdk/stdlib/string_spec.rb
384
403
  - spec/wavefront-sdk/support/mixins_spec.rb
385
404
  - spec/wavefront-sdk/support/parse_time_spec.rb
405
+ - spec/wavefront-sdk/unstable/chart_spec.rb
406
+ - spec/wavefront-sdk/usage_spec.rb
386
407
  - spec/wavefront-sdk/user_spec.rb
387
408
  - spec/wavefront-sdk/usergroup_spec.rb
388
409
  - spec/wavefront-sdk/validators_spec.rb