wavefront-sdk 0.2.2 → 0.2.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: ff8c467f5b0500ea1052bbbfb024585e1b124e3a
4
- data.tar.gz: 7db790c982150218b285232b6fba145e687a5f18
3
+ metadata.gz: a834d2f501fb52ddaf2675e357d5a0ed285a12b9
4
+ data.tar.gz: 93635191aae83d66e6dde2ec1deaf564046269e3
5
5
  SHA512:
6
- metadata.gz: b83f2c2348f9bbeb3c740cfbfe652f46114e8d39a01462467189ddb4fd58bac093e39c9d8701308754cbb48ead1d693dc7d402db015823a7f529f8f601e17fe7
7
- data.tar.gz: 6d6f034907ce032483bf8c4d461ab944968e0b20d6b6c72b2398f211bc937bdeb4a5a31061ab081c52de4ce097f8e6cd8218da1ecec9a42caa01bdaf22a71eac
6
+ metadata.gz: 8bc7656d0c303bfb6eb9bbb79229afac145331535014fdb852b7213f13ea477f14d26edf85ff04dfd169cb3384714fef7904b6623b2f3ce2e46b8bda0e742277
7
+ data.tar.gz: b19a17c7a2e6e2d52c6016f4bd3e1e6420b57dd6bf77361d6875fb0a1c3ea384570213a8460a5f81d58bd089a340ed06e41c957dc493bcb8a8e263f739d7347b
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # wavefront-sdk
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) [![Known Vulnerabilities](https://snyk.io/test/github/snltd/wavefront-sdk/badge.svg)](https://snyk.io/test/github/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)
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
5
  [Wavefront](https://www.wavefront.com/)'s public API. It supports Ruby >= 2.2.
@@ -202,7 +202,7 @@ module Wavefront
202
202
  resp.status) :
203
203
  resp.body
204
204
 
205
- Wavefront::Response.new(body, resp.status)
205
+ Wavefront::Response.new(body, resp.status, debug)
206
206
  end
207
207
 
208
208
  private
@@ -39,6 +39,7 @@ module Wavefront
39
39
 
40
40
  @status = build_status(raw, status)
41
41
  @response = build_response(raw)
42
+
42
43
  p self if debug
43
44
  rescue => e
44
45
  puts "could not parse:\n#{json}" if debug
@@ -59,7 +60,7 @@ module Wavefront
59
60
  raw[:response]
60
61
  end
61
62
  else
62
- Map.new
63
+ Map.new(raw)
63
64
  end
64
65
  else
65
66
  Map.new
@@ -1 +1 @@
1
- WF_SDK_VERSION = '0.2.2'.freeze
1
+ WF_SDK_VERSION = '0.2.3'.freeze
@@ -20,16 +20,16 @@ Gem::Specification.new do |gem|
20
20
  gem.require_paths = %w(lib)
21
21
  gem.bindir = 'bin'
22
22
 
23
- gem.add_runtime_dependency 'faraday', '>= 0.12.1', '< 0.13'
24
- gem.add_runtime_dependency 'inifile', '~> 3.0'
25
- gem.add_runtime_dependency 'addressable', '~> 2.4'
26
- gem.add_runtime_dependency 'map', '~> 6.6'
23
+ gem.add_dependency 'faraday', '>= 0.12.1', '< 0.13'
24
+ gem.add_dependency 'inifile', '~> 3.0'
25
+ gem.add_dependency 'addressable', '~> 2.4'
26
+ gem.add_dependency 'map', '~> 6.6'
27
27
 
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.47.0'
32
- gem.add_development_dependency 'webmock', '~> 2.3', '>= 2.3.2'
31
+ gem.add_development_dependency 'rubocop', '~> 0.49.1'
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'
35
35
 
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: 0.2.2
4
+ version: 0.2.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-06-21 00:00:00.000000000 Z
11
+ date: 2017-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -120,34 +120,28 @@ dependencies:
120
120
  requirements:
121
121
  - - "~>"
122
122
  - !ruby/object:Gem::Version
123
- version: 0.47.0
123
+ version: 0.49.1
124
124
  type: :development
125
125
  prerelease: false
126
126
  version_requirements: !ruby/object:Gem::Requirement
127
127
  requirements:
128
128
  - - "~>"
129
129
  - !ruby/object:Gem::Version
130
- version: 0.47.0
130
+ version: 0.49.1
131
131
  - !ruby/object:Gem::Dependency
132
132
  name: webmock
133
133
  requirement: !ruby/object:Gem::Requirement
134
134
  requirements:
135
135
  - - "~>"
136
136
  - !ruby/object:Gem::Version
137
- version: '2.3'
138
- - - ">="
139
- - !ruby/object:Gem::Version
140
- version: 2.3.2
137
+ version: '3.0'
141
138
  type: :development
142
139
  prerelease: false
143
140
  version_requirements: !ruby/object:Gem::Requirement
144
141
  requirements:
145
142
  - - "~>"
146
143
  - !ruby/object:Gem::Version
147
- version: '2.3'
148
- - - ">="
149
- - !ruby/object:Gem::Version
150
- version: 2.3.2
144
+ version: '3.0'
151
145
  - !ruby/object:Gem::Dependency
152
146
  name: minitest
153
147
  requirement: !ruby/object:Gem::Requirement