wavefront-client 3.5.3 → 3.5.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +4 -2
  3. data/README-cli.md +84 -60
  4. data/bin/wavefront +84 -69
  5. data/lib/wavefront/alerting.rb +14 -3
  6. data/lib/wavefront/batch_writer.rb +7 -0
  7. data/lib/wavefront/cli.rb +15 -17
  8. data/lib/wavefront/cli/alerts.rb +15 -10
  9. data/lib/wavefront/cli/batch_write.rb +12 -3
  10. data/lib/wavefront/cli/events.rb +19 -3
  11. data/lib/wavefront/cli/sources.rb +22 -12
  12. data/lib/wavefront/cli/ts.rb +9 -1
  13. data/lib/wavefront/cli/write.rb +7 -0
  14. data/lib/wavefront/client.rb +9 -5
  15. data/lib/wavefront/client/version.rb +1 -1
  16. data/lib/wavefront/constants.rb +20 -0
  17. data/lib/wavefront/events.rb +26 -4
  18. data/lib/wavefront/metadata.rb +23 -6
  19. data/lib/wavefront/opt_handler.rb +61 -0
  20. data/spec/cli_spec.rb +584 -0
  21. data/spec/spec_helper.rb +42 -0
  22. data/spec/wavefront/alerting_spec.rb +8 -9
  23. data/spec/wavefront/batch_writer_spec.rb +1 -1
  24. data/spec/wavefront/cli/alerts_spec.rb +5 -4
  25. data/spec/wavefront/cli/batch_write_spec.rb +4 -2
  26. data/spec/wavefront/cli/events_spec.rb +3 -2
  27. data/spec/wavefront/cli/sources_spec.rb +3 -2
  28. data/spec/wavefront/cli/write_spec.rb +4 -2
  29. data/spec/wavefront/cli_spec.rb +11 -43
  30. data/spec/wavefront/client_spec.rb +2 -2
  31. data/spec/wavefront/events_spec.rb +1 -1
  32. data/spec/wavefront/metadata_spec.rb +1 -1
  33. data/spec/wavefront/mixins_spec.rb +1 -1
  34. data/spec/wavefront/opt_handler_spec.rb +89 -0
  35. data/spec/wavefront/resources/conf.yaml +10 -0
  36. data/spec/wavefront/response_spec.rb +3 -3
  37. data/spec/wavefront/validators_spec.rb +1 -1
  38. data/spec/wavefront/writer_spec.rb +1 -1
  39. metadata +9 -3
  40. data/.ruby-version +0 -1
@@ -1,4 +1,4 @@
1
- require 'spec_helper'
1
+ require_relative '../spec_helper'
2
2
 
3
3
  describe Wavefront::Validators do
4
4
  include Wavefront::Validators
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
14
14
 
15
15
  =end
16
16
 
17
- require 'spec_helper'
17
+ require_relative '../spec_helper'
18
18
  require 'socket'
19
19
 
20
20
  describe Wavefront::Writer do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wavefront-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.3
4
+ version: 3.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Pointer
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2016-11-23 00:00:00.000000000 Z
16
+ date: 2017-02-03 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: bundler
@@ -129,7 +129,6 @@ extensions: []
129
129
  extra_rdoc_files: []
130
130
  files:
131
131
  - ".gitignore"
132
- - ".ruby-version"
133
132
  - ".travis.yml"
134
133
  - Gemfile
135
134
  - LICENSE
@@ -154,9 +153,11 @@ files:
154
153
  - lib/wavefront/exception.rb
155
154
  - lib/wavefront/metadata.rb
156
155
  - lib/wavefront/mixins.rb
156
+ - lib/wavefront/opt_handler.rb
157
157
  - lib/wavefront/response.rb
158
158
  - lib/wavefront/validators.rb
159
159
  - lib/wavefront/writer.rb
160
+ - spec/cli_spec.rb
160
161
  - spec/example_response.json
161
162
  - spec/spec_helper.rb
162
163
  - spec/wavefront/alerting_spec.rb
@@ -177,6 +178,8 @@ files:
177
178
  - spec/wavefront/events_spec.rb
178
179
  - spec/wavefront/metadata_spec.rb
179
180
  - spec/wavefront/mixins_spec.rb
181
+ - spec/wavefront/opt_handler_spec.rb
182
+ - spec/wavefront/resources/conf.yaml
180
183
  - spec/wavefront/response_spec.rb
181
184
  - spec/wavefront/validators_spec.rb
182
185
  - spec/wavefront/writer_spec.rb
@@ -206,6 +209,7 @@ signing_key:
206
209
  specification_version: 4
207
210
  summary: A simple abstraction for talking to Wavefront in Ruby
208
211
  test_files:
212
+ - spec/cli_spec.rb
209
213
  - spec/example_response.json
210
214
  - spec/spec_helper.rb
211
215
  - spec/wavefront/alerting_spec.rb
@@ -226,6 +230,8 @@ test_files:
226
230
  - spec/wavefront/events_spec.rb
227
231
  - spec/wavefront/metadata_spec.rb
228
232
  - spec/wavefront/mixins_spec.rb
233
+ - spec/wavefront/opt_handler_spec.rb
234
+ - spec/wavefront/resources/conf.yaml
229
235
  - spec/wavefront/response_spec.rb
230
236
  - spec/wavefront/validators_spec.rb
231
237
  - spec/wavefront/writer_spec.rb
@@ -1 +0,0 @@
1
- 2.2.2