wavefront-sdk 6.0.0 → 7.0.0

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
  SHA256:
3
- metadata.gz: 839f24e0a1a324b6965cb8aec1c0516bcb7c193215bc3cb6c1351f888bd49863
4
- data.tar.gz: 97ba3cce211abdef8d1b08265279a2998f968a6f85a58290efe26d8109314940
3
+ metadata.gz: 5d89604feef126265df36a17289e1f1320b07e30787f7596d195ea76284526c1
4
+ data.tar.gz: 393ea7ba3b44646eb1b67c6976713941530b36943ded7e12c4f6a5ee1d87ca7f
5
5
  SHA512:
6
- metadata.gz: 2d72451c46077024d79451aaea09efec073db0dcfb6dfb7601382973f80b14c99cd3b732bf57ec09a1ec962938b2219470676ba84c47b27051b5d2970cdeb8ef
7
- data.tar.gz: fdf2b294468db11835722f3ffbcbac2e77a42a12d8083c4e7536f637659bf8e063de0b75f023e71a46d2a25e942ad197e16e70a4229db5142b741542dbaaf2f7
6
+ metadata.gz: ccd6b23b76944bbac1a1790b61b79365dfb2da530c8c851f19052c57128db3744e52aa29b81194709315925d87b4627eef6c96079fe5a10534fbbf358cd43dfb
7
+ data.tar.gz: 4228c14a3f026d74e98dfae97a22a689772bfd4ae590820832b5ffe5af8c052e2c63a9ace60cea66c6038f50d6a3495c564c38ddb7b0def1b4013d8b6ce421d5
@@ -11,14 +11,14 @@ jobs:
11
11
  runs-on: ubuntu-latest
12
12
 
13
13
  steps:
14
- - uses: actions/checkout@v2
14
+ - uses: actions/checkout@v3
15
15
  - name: Set env
16
16
  run: echo "RELEASE_VERSION=$(echo ${GITHUB_REF:10})" >> $GITHUB_ENV
17
17
 
18
- - name: Set up Ruby 2.7
18
+ - name: Set up Ruby 3.0
19
19
  uses: ruby/setup-ruby@v1
20
20
  with:
21
- ruby-version: 2.7
21
+ ruby-version: 3.0
22
22
  - run: bundle install
23
23
 
24
24
  - name: Run tests
@@ -9,9 +9,9 @@ jobs:
9
9
  runs-on: ubuntu-latest
10
10
  strategy:
11
11
  matrix:
12
- ruby-version: [2.5.9, 2.6.7, 2.7.3, 3.0.1]
12
+ ruby-version: [2.7.7, 3.1.3, 3.2.0]
13
13
  steps:
14
- - uses: actions/checkout@v2
14
+ - uses: actions/checkout@v3
15
15
  - name: Set up Ruby
16
16
  uses: ruby/setup-ruby@v1
17
17
  with:
data/.rubocop.yml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
 
3
3
  AllCops:
4
- TargetRubyVersion: 2.5
4
+ TargetRubyVersion: 2.7
5
5
  NewCops: enable
6
6
 
7
7
  require:
@@ -14,7 +14,5 @@ Layout/LineLength:
14
14
  Max: 80
15
15
  Metrics/ClassLength:
16
16
  Max: 150
17
- Style/StringConcatenation:
18
- Enabled: false
19
17
  Style/OptionalBooleanParameter:
20
18
  Enabled: false
data/HISTORY.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 7.0.0 (2023-01-19)
4
+ * Drop support for Ruby 2.5. (Breaking change.)
5
+ * Drop support for Ruby 2.6. (Breaking change.)
6
+ * Bugfix for `metricspolicy` API.
7
+
3
8
  ## 6.0.0 (2021-07-16)
4
9
  * Drop support for Ruby 2.4. (Breaking change.)
5
10
  * Change the name of the proxy writer from `socket` to `proxy`. (Breaking
data/README.md CHANGED
@@ -24,7 +24,7 @@ or to build locally,
24
24
  $ gem build wavefront-sdk.gemspec
25
25
  ```
26
26
 
27
- `wavefront-sdk` requires Ruby >= 2.5. All its dependencies are pure
27
+ `wavefront-sdk` requires Ruby >= 2.7. All its dependencies are pure
28
28
  Ruby, right the way down, so a compiler should never be required to
29
29
  install it.
30
30
 
@@ -229,14 +229,8 @@ module Wavefront
229
229
  return if noop
230
230
 
231
231
  pp args if debug
232
-
233
232
  resp = conn.public_send(method, *args)
234
-
235
- if debug
236
- require 'pp'
237
- pp resp
238
- end
239
-
233
+ pp resp if debug
240
234
  respond(resp)
241
235
  end
242
236
 
@@ -51,7 +51,7 @@ module Wavefront
51
51
  # Were there items in the response?
52
52
  #
53
53
  def empty?
54
- response.items.size.zero?
54
+ response.items.empty?
55
55
  rescue StandardError
56
56
  false
57
57
  end
@@ -82,8 +82,8 @@ module Wavefront
82
82
  Array(Pathname.new(opts[:file]))
83
83
  else
84
84
  [Pathname.new('/etc/wavefront/credentials'),
85
- Pathname.new(ENV['HOME']) + '.wavefront.conf',
86
- Pathname.new(ENV['HOME']) + '.wavefront']
85
+ Pathname.new(Dir.home).join('.wavefront.conf'),
86
+ Pathname.new(Dir.home).join('.wavefront')]
87
87
  end
88
88
  end
89
89
 
@@ -2,5 +2,5 @@
2
2
 
3
3
  require 'pathname'
4
4
 
5
- WF_SDK_VERSION = '6.0.0'
5
+ WF_SDK_VERSION = '7.0.0'
6
6
  WF_SDK_LOCATION = Pathname.new(__dir__).parent.parent.parent
@@ -93,7 +93,7 @@ module Wavefront
93
93
  # @return [Wavefront::Response]
94
94
  #
95
95
  def pending(hours = 24)
96
- cutoff = Time.now.to_i + hours * 3600
96
+ cutoff = Time.now.to_i + (hours * 3600)
97
97
 
98
98
  ret = windows_in_state(:pending)
99
99
 
@@ -27,10 +27,10 @@ module Wavefront
27
27
  if cursor
28
28
  raise ArgumentError unless cursor.is_a?(String)
29
29
 
30
- query.<< [:c, cursor]
30
+ query << [:c, cursor]
31
31
  end
32
32
 
33
- sources.each { |source| query.<< [:h, source] }
33
+ sources.each { |source| query << [:h, source] }
34
34
 
35
35
  api.get('detail', query)
36
36
  end
@@ -37,7 +37,7 @@ module Wavefront
37
37
  def gauge(path, value, tags = nil)
38
38
  gauge = { path: path, ts: Time.now.to_i, value: value }
39
39
  gauge[:tags] = tags if tags
40
- @buf[:gauges].<< gauge
40
+ @buf[:gauges] << gauge
41
41
  end
42
42
 
43
43
  # These counters are internal, and specific to the SDK. When
@@ -30,7 +30,7 @@ module Wavefront
30
30
  # @param limit [Integer] the number of versions to return
31
31
  #
32
32
  def history(offset = 0, limit = 100)
33
- api.get('', offset: offset, limit: limit)
33
+ api.get('history', offset: offset, limit: limit)
34
34
  end
35
35
 
36
36
  # POST /api/v2/metricspolicy/revert/{version}
@@ -40,7 +40,7 @@ module Wavefront
40
40
  #
41
41
  def revert(version)
42
42
  wf_version?(version)
43
- api.post(['revert', version].uri_concat)
43
+ api.post(['revert', version].uri_concat, nil, 'application/json')
44
44
  end
45
45
 
46
46
  # PUT /api/v2/metricspolicy
@@ -166,7 +166,7 @@ module Wavefront
166
166
  end
167
167
 
168
168
  p_args = set_pagination(offset, page_size, p_args)
169
- resp.response.items.map { |i| y.<< i }
169
+ resp.response.items.map { |i| y << i }
170
170
  raise StopIteration unless resp.more_items?
171
171
  end
172
172
  end.lazy
@@ -98,7 +98,7 @@ module Wavefront
98
98
  end
99
99
 
100
100
  path = [entity]
101
- path.<< 'deleted' if deleted
101
+ path << 'deleted' if deleted
102
102
  api.post(path, body, 'application/json')
103
103
  end
104
104
 
@@ -119,8 +119,8 @@ module Wavefront
119
119
  raise ArgumentError unless entity.is_a?(String) && body.is_a?(Hash)
120
120
 
121
121
  path = [entity]
122
- path.<< 'deleted' if deleted
123
- path.<< facet || 'facets'
122
+ path << 'deleted' if deleted
123
+ path << (facet || 'facets')
124
124
  api.post(path, body, 'application/json')
125
125
  end
126
126
  # rubocop:enable Metrics/ParameterLists
@@ -23,7 +23,7 @@ module Wavefront
23
23
  # @raise Wavefront::InvalidTimestamp
24
24
  #
25
25
  def parse_time(time, in_ms = false)
26
- return relative_time(time, in_ms) if time.to_s.match?(/^[\-+]/)
26
+ return relative_time(time, in_ms) if time.to_s.match?(/^[-+]/)
27
27
 
28
28
  ParseTime.new(time, in_ms).parse!
29
29
  end
@@ -55,7 +55,7 @@ module Wavefront
55
55
  end
56
56
 
57
57
  def parse!
58
- method = ('parse_time_' + t.class.name.downcase).to_sym
58
+ method = "parse_time_#{t.class.name.downcase}".to_sym
59
59
  send(method)
60
60
  rescue StandardError
61
61
  raise Wavefront::Exception::InvalidTimestamp, t
@@ -81,7 +81,7 @@ module Wavefront
81
81
  # commas in tags and descriptions. This might be too restrictive,
82
82
  # but if it is, this is the only place we need to change it.
83
83
  #
84
- if str.is_a?(String) && str.size < 1024 && str =~ /^[\-\w .,]*$/
84
+ if str.is_a?(String) && str.size < 1024 && str =~ /^[-\w .,]*$/
85
85
  return true
86
86
  end
87
87
 
@@ -256,7 +256,7 @@ module Wavefront
256
256
  # dashboard ID is not valid
257
257
  #
258
258
  def wf_dashboard_id?(id)
259
- return true if id.is_a?(String) && id.size < 256 && id.match(/^[\w\-]+$/)
259
+ return true if id.is_a?(String) && id.size < 256 && id.match(/^[\w-]+$/)
260
260
 
261
261
  raise Wavefront::Exception::InvalidDashboardId, id
262
262
  end
@@ -391,7 +391,7 @@ module Wavefront
391
391
  # is not valid
392
392
  #
393
393
  def wf_source_id?(source)
394
- if source.is_a?(String) && source.match(/^[\w.\-]+$/) &&
394
+ if source.is_a?(String) && source.match(/^[\w.-]+$/) &&
395
395
  source.size < 1024
396
396
  return true
397
397
  end
@@ -112,7 +112,7 @@ module Wavefront
112
112
  ret = [points].flatten
113
113
  return ret unless prefix
114
114
 
115
- ret.map { |pt| pt.tap { |p| p[:path] = prefix + '.' + p[:path] } }
115
+ ret.map { |pt| pt.tap { |p| p[:path] = "#{prefix}.#{p[:path]}" } }
116
116
  end
117
117
 
118
118
  # Filter invalid points out of an array of points
data/lib/wavefront_sdk.rb CHANGED
@@ -4,7 +4,7 @@
4
4
  #
5
5
  require 'pathname'
6
6
 
7
- libdir = Pathname.new(__dir__) + 'wavefront-sdk'
7
+ libdir = Pathname.new(__dir__).join('wavefront-sdk')
8
8
 
9
9
  libdir.children.select { |f| f.extname == '.rb' }.each do |f|
10
10
  require_relative f
data/spec/constants.rb CHANGED
@@ -19,8 +19,8 @@ DUMMY_RESPONSE = '{"status":{"result":"OK","message":"","code":200},' \
19
19
  '"response":{"items":[{"name":"test data"}],"offset":0,' \
20
20
  '"limit":100,"totalItems":3,"moreItems":false}}'
21
21
 
22
- RESOURCE_DIR = (Pathname.new(__FILE__).dirname +
23
- 'wavefront-sdk' + 'resources').freeze
22
+ RESOURCE_DIR = Pathname.new(__FILE__).dirname.join('wavefront-sdk',
23
+ 'resources').freeze
24
24
 
25
25
  U_ACL_1 = 'someone@example.com'
26
26
  U_ACL_2 = 'other@elsewhere.com'
@@ -22,7 +22,7 @@ class WavefrontCoreApiTest < MiniTest::Test
22
22
  end
23
23
 
24
24
  def test_hash_for_update
25
- wf.instance_variable_set('@update_keys', %i[k1 k2])
25
+ wf.instance_variable_set(:@update_keys, %i[k1 k2])
26
26
  body = { k1: 'ov1',
27
27
  k2: 'ov2',
28
28
  k3: 'ov3',
@@ -5,8 +5,8 @@ require 'pathname'
5
5
  require_relative '../spec_helper'
6
6
  require_relative '../../lib/wavefront-sdk/credentials'
7
7
 
8
- CONF1 = RESOURCE_DIR + 'test.conf'
9
- CONF2 = RESOURCE_DIR + 'test2.conf'
8
+ CONF1 = RESOURCE_DIR.join('test.conf')
9
+ CONF2 = RESOURCE_DIR.join('test2.conf')
10
10
 
11
11
  # Test SDK base class end-to-end
12
12
  #
@@ -60,11 +60,7 @@ end
60
60
  # Test individual methods. We must override the constructor to do
61
61
  # this.
62
62
  #
63
- # rubocop:disable Lint/MissingSuper
64
- class Giblets < Wavefront::Credentials
65
- def initialize; end
66
- end
67
- # rubocop:enable Lint/MissingSuper
63
+ class Giblets < Wavefront::Credentials; end
68
64
 
69
65
  # And here are the tests
70
66
  #
@@ -119,9 +115,9 @@ class GibletsTest < MiniTest::Test
119
115
 
120
116
  def test_populate
121
117
  wf.populate(raw)
122
- config = wf.instance_variable_get('@config')
123
- creds = wf.instance_variable_get('@creds')
124
- proxy = wf.instance_variable_get('@proxy')
118
+ config = wf.instance_variable_get(:@config)
119
+ creds = wf.instance_variable_get(:@creds)
120
+ proxy = wf.instance_variable_get(:@proxy)
125
121
 
126
122
  assert_instance_of(Map, config)
127
123
  assert_equal('raw_proxy', config.proxy)
@@ -143,8 +139,8 @@ class GibletsTest < MiniTest::Test
143
139
  assert_equal(3, x.length)
144
140
  x.each { |p| assert_instance_of(Pathname, p) }
145
141
  assert_includes(x, Pathname.new('/etc/wavefront/credentials'))
146
- assert_includes(x, Pathname.new(ENV['HOME']) + '.wavefront')
147
- assert_includes(x, Pathname.new(ENV['HOME']) + '.wavefront.conf')
142
+ assert_includes(x, Pathname.new(Dir.home).join('.wavefront'))
143
+ assert_includes(x, Pathname.new(Dir.home).join('.wavefront.conf'))
148
144
  end
149
145
 
150
146
  def test_cred_files_opts
@@ -197,7 +193,7 @@ class GibletsTest < MiniTest::Test
197
193
  end
198
194
 
199
195
  assert_raises Wavefront::Exception::InvalidConfigFile do
200
- wf.load_profile(RESOURCE_DIR + 'malformed.conf')
196
+ wf.load_profile(RESOURCE_DIR.join('malformed.conf'))
201
197
  end
202
198
  end
203
199
  end
@@ -18,17 +18,17 @@ class WavefrontMetricsPolicyTest < WavefrontTestBase
18
18
  end
19
19
 
20
20
  def test_history
21
- assert_gets('/api/v2/metricspolicy?offset=10&limit=100') do
21
+ assert_gets('/api/v2/metricspolicy/history?offset=10&limit=100') do
22
22
  wf.history(10)
23
23
  end
24
24
 
25
- assert_gets('/api/v2/metricspolicy?offset=12&limit=34') do
25
+ assert_gets('/api/v2/metricspolicy/history?offset=12&limit=34') do
26
26
  wf.history(12, 34)
27
27
  end
28
28
  end
29
29
 
30
30
  def test_revert
31
- assert_posts('/api/v2/metricspolicy/revert/5') do
31
+ assert_posts('/api/v2/metricspolicy/revert/5', nil, :json) do
32
32
  wf.revert(5)
33
33
  end
34
34
 
@@ -11,8 +11,8 @@ class WavefrontMiscTest < MiniTest::Test
11
11
  # defines itself as.
12
12
  #
13
13
  def test_version_vs_history
14
- history_file = WF_SDK_LOCATION + 'HISTORY.md'
15
- history_vers = IO.read(history_file).match(/^## (\d+\.\d+\.\d+) \(/)
14
+ history_file = WF_SDK_LOCATION.join('HISTORY.md')
15
+ history_vers = File.read(history_file).match(/^## (\d+\.\d+\.\d+) \(/)
16
16
  assert_equal(WF_SDK_VERSION, history_vers.captures.first)
17
17
  end
18
18
  end
@@ -54,8 +54,8 @@ class WavefrontSavedSearchTest < WavefrontTestBase
54
54
 
55
55
  def payload
56
56
  { query: {
57
- foo: '{"searchTerms":[{"type":"freetext","value":"foo"}]}'
58
- },
57
+ foo: '{"searchTerms":[{"type":"freetext","value":"foo"}]}'
58
+ },
59
59
  entityType: 'DASHBOARD' }
60
60
  end
61
61
  end
@@ -127,10 +127,10 @@ class WavefrontUserTest < WavefrontTestBase
127
127
  end
128
128
 
129
129
  def test_response_shim
130
- (RESOURCE_DIR + 'user_responses').each_child do |input|
130
+ RESOURCE_DIR.join('user_responses').each_child do |input|
131
131
  # Ugly hack for the 202 in the 'create' file
132
132
  status = input.basename.to_s == 'create.json' ? 202 : 200
133
- shimmed = wf.response_shim(IO.read(input), status)
133
+ shimmed = wf.response_shim(File.read(input), status)
134
134
  assert_instance_of(String, shimmed)
135
135
 
136
136
  ret_obj = JSON.parse(shimmed, symbolize_names: true)
@@ -17,25 +17,25 @@ Gem::Specification.new do |gem|
17
17
  gem.license = 'BSD-2-Clause'
18
18
 
19
19
  gem.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
20
- gem.test_files = gem.files.grep(/^spec/)
21
20
  gem.require_paths = %w[lib]
22
21
  gem.bindir = 'bin'
23
22
 
24
- gem.add_dependency 'addressable', '~> 2.7'
23
+ gem.add_dependency 'addressable', '~> 2.8'
25
24
  gem.add_dependency 'faraday', '~> 1.1'
26
25
  gem.add_dependency 'inifile', '~> 3.0'
27
26
  gem.add_dependency 'map', '~> 6.6'
28
27
 
29
- gem.add_development_dependency 'minitest', '~> 5.14'
28
+ gem.add_development_dependency 'minitest', '~> 5.17'
30
29
  gem.add_development_dependency 'rake', '~> 13.0'
31
- gem.add_development_dependency 'rubocop', '~> 1.17'
32
- gem.add_development_dependency 'rubocop-minitest', '~> 0.10'
33
- gem.add_development_dependency 'rubocop-performance', '~> 1.3'
34
- gem.add_development_dependency 'rubocop-rake', '~> 0.5'
30
+ gem.add_development_dependency 'rubocop', '~> 1.43'
31
+ gem.add_development_dependency 'rubocop-minitest', '~> 0.26'
32
+ gem.add_development_dependency 'rubocop-performance', '~> 1.15'
33
+ gem.add_development_dependency 'rubocop-rake', '~> 0.6'
35
34
  gem.add_development_dependency 'simplecov', '~> 0.18'
36
- gem.add_development_dependency 'spy', '1.0.0'
37
- gem.add_development_dependency 'webmock', '~> 3.9'
35
+ gem.add_development_dependency 'spy', '1.0'
36
+ gem.add_development_dependency 'webmock', '~> 3.18'
38
37
  gem.add_development_dependency 'yard', '~> 0.9'
39
38
 
40
- gem.required_ruby_version = Gem::Requirement.new('>= 2.5.0')
39
+ gem.required_ruby_version = Gem::Requirement.new('>= 2.7.0')
40
+ gem.metadata['rubygems_mfa_required'] = 'true'
41
41
  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: 6.0.0
4
+ version: 7.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: 2021-07-16 00:00:00.000000000 Z
11
+ date: 2023-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.7'
19
+ version: '2.8'
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: '2.7'
26
+ version: '2.8'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: faraday
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '5.14'
75
+ version: '5.17'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '5.14'
82
+ version: '5.17'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -100,56 +100,56 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '1.17'
103
+ version: '1.43'
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: '1.17'
110
+ version: '1.43'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rubocop-minitest
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '0.10'
117
+ version: '0.26'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '0.10'
124
+ version: '0.26'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rubocop-performance
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '1.3'
131
+ version: '1.15'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: '1.3'
138
+ version: '1.15'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rubocop-rake
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: '0.5'
145
+ version: '0.6'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: '0.5'
152
+ version: '0.6'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: simplecov
155
155
  requirement: !ruby/object:Gem::Requirement
@@ -170,28 +170,28 @@ dependencies:
170
170
  requirements:
171
171
  - - '='
172
172
  - !ruby/object:Gem::Version
173
- version: 1.0.0
173
+ version: '1.0'
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - '='
179
179
  - !ruby/object:Gem::Version
180
- version: 1.0.0
180
+ version: '1.0'
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: webmock
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: '3.9'
187
+ version: '3.18'
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
- version: '3.9'
194
+ version: '3.18'
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: yard
197
197
  requirement: !ruby/object:Gem::Requirement
@@ -366,7 +366,8 @@ files:
366
366
  homepage: https://github.com/snltd/wavefront-sdk
367
367
  licenses:
368
368
  - BSD-2-Clause
369
- metadata: {}
369
+ metadata:
370
+ rubygems_mfa_required: 'true'
370
371
  post_install_message:
371
372
  rdoc_options: []
372
373
  require_paths:
@@ -375,89 +376,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
375
376
  requirements:
376
377
  - - ">="
377
378
  - !ruby/object:Gem::Version
378
- version: 2.5.0
379
+ version: 2.7.0
379
380
  required_rubygems_version: !ruby/object:Gem::Requirement
380
381
  requirements:
381
382
  - - ">="
382
383
  - !ruby/object:Gem::Version
383
384
  version: '0'
384
385
  requirements: []
385
- rubygems_version: 3.1.6
386
+ rubygems_version: 3.4.1
386
387
  signing_key:
387
388
  specification_version: 4
388
389
  summary: SDK for Wavefront API v2
389
- test_files:
390
- - spec/.rubocop.yml
391
- - spec/constants.rb
392
- - spec/spec_helper.rb
393
- - spec/support/bad_mocket.rb
394
- - spec/support/hash.rb
395
- - spec/support/minitest_assertions.rb
396
- - spec/support/mocket.rb
397
- - spec/test_mixins/acl.rb
398
- - spec/test_mixins/general.rb
399
- - spec/test_mixins/tag.rb
400
- - spec/wavefront-sdk/account_spec.rb
401
- - spec/wavefront-sdk/alert_spec.rb
402
- - spec/wavefront-sdk/api_mixins/user_mixins_spec.rb
403
- - spec/wavefront-sdk/apitoken_spec.rb
404
- - spec/wavefront-sdk/cloudintegration_spec.rb
405
- - spec/wavefront-sdk/core/api_caller_spec.rb
406
- - spec/wavefront-sdk/core/api_spec.rb
407
- - spec/wavefront-sdk/core/logger_spec.rb
408
- - spec/wavefront-sdk/core/response_spec.rb
409
- - spec/wavefront-sdk/credentials_spec.rb
410
- - spec/wavefront-sdk/dashboard_spec.rb
411
- - spec/wavefront-sdk/derivedmetric_spec.rb
412
- - spec/wavefront-sdk/distribution_spec.rb
413
- - spec/wavefront-sdk/event_spec.rb
414
- - spec/wavefront-sdk/externallink_spec.rb
415
- - spec/wavefront-sdk/ingestionpolicy_spec.rb
416
- - spec/wavefront-sdk/integration_spec.rb
417
- - spec/wavefront-sdk/maintenancewindow_spec.rb
418
- - spec/wavefront-sdk/message_spec.rb
419
- - spec/wavefront-sdk/metric_helper_spec.rb
420
- - spec/wavefront-sdk/metric_spec.rb
421
- - spec/wavefront-sdk/metricspolicy_spec.rb
422
- - spec/wavefront-sdk/misc_spec.rb
423
- - spec/wavefront-sdk/notificant_spec.rb
424
- - spec/wavefront-sdk/paginator/base_spec.rb
425
- - spec/wavefront-sdk/paginator/post_spec.rb
426
- - spec/wavefront-sdk/proxy_spec.rb
427
- - spec/wavefront-sdk/query_spec.rb
428
- - spec/wavefront-sdk/report_spec.rb
429
- - spec/wavefront-sdk/resources/dummy_points.rb
430
- - spec/wavefront-sdk/resources/malformed.conf
431
- - spec/wavefront-sdk/resources/test.conf
432
- - spec/wavefront-sdk/resources/test2.conf
433
- - spec/wavefront-sdk/resources/user_responses/add_user_groups.json
434
- - spec/wavefront-sdk/resources/user_responses/create.json
435
- - spec/wavefront-sdk/resources/user_responses/delete_multiple.json
436
- - spec/wavefront-sdk/resources/user_responses/describe.json
437
- - spec/wavefront-sdk/resources/user_responses/grant.json
438
- - spec/wavefront-sdk/resources/user_responses/list.json
439
- - spec/wavefront-sdk/role_spec.rb
440
- - spec/wavefront-sdk/savedsearch_spec.rb
441
- - spec/wavefront-sdk/search_spec.rb
442
- - spec/wavefront-sdk/serviceaccount_spec.rb
443
- - spec/wavefront-sdk/settings_spec.rb
444
- - spec/wavefront-sdk/source_spec.rb
445
- - spec/wavefront-sdk/spy_spec.rb
446
- - spec/wavefront-sdk/stdlib/array_spec.rb
447
- - spec/wavefront-sdk/stdlib/hash_spec.rb
448
- - spec/wavefront-sdk/stdlib/string_spec.rb
449
- - spec/wavefront-sdk/support/mixins_spec.rb
450
- - spec/wavefront-sdk/support/parse_time_spec.rb
451
- - spec/wavefront-sdk/unstable/chart_spec.rb
452
- - spec/wavefront-sdk/usage_spec.rb
453
- - spec/wavefront-sdk/user_spec.rb
454
- - spec/wavefront-sdk/usergroup_spec.rb
455
- - spec/wavefront-sdk/validators_spec.rb
456
- - spec/wavefront-sdk/webhook_spec.rb
457
- - spec/wavefront-sdk/write_spec.rb
458
- - spec/wavefront-sdk/writers/api_spec.rb
459
- - spec/wavefront-sdk/writers/core_spec.rb
460
- - spec/wavefront-sdk/writers/http_spec.rb
461
- - spec/wavefront-sdk/writers/proxy_spec.rb
462
- - spec/wavefront-sdk/writers/socket_spec.rb
463
- - spec/wavefront-sdk/writers/summary_spec.rb
390
+ test_files: []