wavefront-sdk 1.0.2 → 1.0.3

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: 9eae8e2a8cbcdbb3ccb64cf4dc886d20cc6a290c
4
- data.tar.gz: 65046ec5de662fa9a1f6da59cd8baf9cf037469f
3
+ metadata.gz: 1c09b458b9e9921e9a33d3478fffd60c9428239f
4
+ data.tar.gz: 7b2d2bceb5c45fec4c221b62569d7bd089737fe2
5
5
  SHA512:
6
- metadata.gz: dad9fb89d890c9a2b05e396e3c534f34bc15f2a16a3ac91704fca0048224844f4192bb796586d0562c960de0b6f7887c9eb6dba1b25799093fb2af7e0a291f5f
7
- data.tar.gz: da81260eaf66b3354789e31a6c4f125e4a13e8f6955760a9b7fa353b38e9cea4a1513c3f068c2a57382e0da114dfbd22eb2a1b3538035df5be0a3749416f0e08
6
+ metadata.gz: 5a616119c5be2f0c074410156240a8647e37dac522193d52e84a3496d38360cb040649cfac4b028732e2b24f835fbaa03be7aadf074b45c61adcf602ca4048fc
7
+ data.tar.gz: 5a80bc97dbdbb236208462bb337914f2fe0e899ec5046d8e44ec440b13ff7e657707a5c08cfcb5adaff759448863aa8daff07dd86ec5ac4f40b55e3fcadcf7ad
data/.travis.yml CHANGED
@@ -1,9 +1,9 @@
1
1
  language: ruby
2
2
  cache: bundler
3
3
  rvm:
4
- - 2.2.7
5
- - 2.3.4
6
- - 2.4.1
4
+ - 2.2.8
5
+ - 2.3.5
6
+ - 2.4.2
7
7
  before_install: gem install bundler --no-rdoc --no-ri
8
8
  deploy:
9
9
  provider: rubygems
@@ -13,4 +13,4 @@ deploy:
13
13
  on:
14
14
  tags: true
15
15
  repo: snltd/wavefront-sdk
16
- ruby: 2.3.4
16
+ ruby: 2.3.5
data/README.md CHANGED
@@ -2,7 +2,9 @@
2
2
  [![Build Status](https://travis-ci.org/snltd/wavefront-sdk.svg?branch=master)](https://travis-ci.org/snltd/wavefront-sdk) [![Code Climate](https://codeclimate.com/github/snltd/wavefront-sdk/badges/gpa.svg)](https://codeclimate.com/github/snltd/wavefront-sdk) [![Issue Count](https://codeclimate.com/github/snltd/wavefront-sdk/badges/issue_count.svg)](https://codeclimate.com/github/snltd/wavefront-sdk) [![Dependency Status](https://gemnasium.com/badges/github.com/snltd/wavefront-sdk.svg)](https://gemnasium.com/github.com/snltd/wavefront-sdk) [![Gem Version](https://badge.fury.io/rb/wavefront-sdk.svg)](https://badge.fury.io/rb/wavefront-sdk) ![](http://ruby-gem-downloads-badge.herokuapp.com/wavefront-sdk?type=total)
3
3
 
4
4
  This is a Ruby SDK for v2 of
5
- [Wavefront](https://www.wavefront.com/)'s public API. It supports Ruby >= 2.2.
5
+ [Wavefront](https://www.wavefront.com/)'s public API. It supports Ruby
6
+ >= 2.2. It aims to be more lightweight, consistent, simple, and
7
+ convenient than an auto-generated SDK.
6
8
 
7
9
  ## Installation
8
10
 
@@ -120,3 +122,9 @@ p Wavefront::Proxy.new(c.creds).list
120
122
 
121
123
  wf = Wavefront::Write.new(c.proxy)
122
124
  ```
125
+
126
+ ## Contributing
127
+
128
+ Fork it, fix it, send me a PR. Please supply tests, and try to keep
129
+ [Rubocop](https://github.com/bbatsov/rubocop)
130
+ happy.
@@ -164,7 +164,7 @@ module Wavefront
164
164
  raise Wavefront::Exception::InvalidTag unless tags.is_a?(Hash)
165
165
 
166
166
  tags.each do |k, v|
167
- unless (k.size + v.size < 254) && k.match(/^[\w\-\.:]+$/)
167
+ unless k && v && (k.size + v.size < 254) && k.match(/^[\w\-\.:]+$/)
168
168
  raise Wavefront::Exception::InvalidTag
169
169
  end
170
170
  end
@@ -1 +1 @@
1
- WF_SDK_VERSION = '1.0.2'.freeze
1
+ WF_SDK_VERSION = '1.0.3'.freeze
@@ -87,6 +87,8 @@ class WavefrontValidatorsTest < MiniTest::Test
87
87
  {'tag 1': 'val1', 'tag 2': 'val2'},
88
88
  {'TAG*1': 'val 1', tag_2: 'val 2'},
89
89
  {'(>_<)': 'val1', '^_^': 'val2'},
90
+ {tag: nil},
91
+ {tag: false},
90
92
  {tag1: 'v' * 255},
91
93
  {'k' * 255 => 'val1'},
92
94
  {'k' * 130 => 'v' * 130}]
@@ -20,7 +20,7 @@ Gem::Specification.new do |gem|
20
20
  gem.require_paths = %w(lib)
21
21
  gem.bindir = 'bin'
22
22
 
23
- gem.add_dependency 'faraday', '>= 0.12.1', '< 0.13'
23
+ gem.add_dependency 'faraday', '~> 0.13.0'
24
24
  gem.add_dependency 'inifile', '~> 3.0'
25
25
  gem.add_dependency 'addressable', '~> 2.4'
26
26
  gem.add_dependency 'map', '~> 6.6'
@@ -28,7 +28,7 @@ Gem::Specification.new do |gem|
28
28
  gem.add_development_dependency 'bundler', '~> 1.3'
29
29
  gem.add_development_dependency 'rake', '~> 12.0'
30
30
  gem.add_development_dependency 'yard', '~> 0.9.5'
31
- gem.add_development_dependency 'rubocop', '~> 0.49.1'
31
+ gem.add_development_dependency 'rubocop', '~> 0.50.0'
32
32
  gem.add_development_dependency 'webmock', '~> 3.0'
33
33
  gem.add_development_dependency 'minitest', '~> 5.8', '>= 5.8.0'
34
34
  gem.add_development_dependency 'spy', '~> 0.4.0'
metadata CHANGED
@@ -1,35 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wavefront-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Fisher
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-04 00:00:00.000000000 Z
11
+ date: 2017-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: 0.12.1
20
- - - "<"
17
+ - - "~>"
21
18
  - !ruby/object:Gem::Version
22
- version: '0.13'
19
+ version: 0.13.0
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- version: 0.12.1
30
- - - "<"
24
+ - - "~>"
31
25
  - !ruby/object:Gem::Version
32
- version: '0.13'
26
+ version: 0.13.0
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: inifile
35
29
  requirement: !ruby/object:Gem::Requirement
@@ -120,14 +114,14 @@ dependencies:
120
114
  requirements:
121
115
  - - "~>"
122
116
  - !ruby/object:Gem::Version
123
- version: 0.49.1
117
+ version: 0.50.0
124
118
  type: :development
125
119
  prerelease: false
126
120
  version_requirements: !ruby/object:Gem::Requirement
127
121
  requirements:
128
122
  - - "~>"
129
123
  - !ruby/object:Gem::Version
130
- version: 0.49.1
124
+ version: 0.50.0
131
125
  - !ruby/object:Gem::Dependency
132
126
  name: webmock
133
127
  requirement: !ruby/object:Gem::Requirement
@@ -259,7 +253,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
259
253
  version: '0'
260
254
  requirements: []
261
255
  rubyforge_project:
262
- rubygems_version: 2.4.5
256
+ rubygems_version: 2.6.13
263
257
  signing_key:
264
258
  specification_version: 4
265
259
  summary: SDK for Wavefront API v2