wavefront-sdk 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d40567787f9b9712aec60c01fc49a6efb30d31ae
4
- data.tar.gz: db8147e94b8589d1bd06aed17b6624b19729c3a9
3
+ metadata.gz: 07d018022e5a12994c8ac0968972035e01f6bdb2
4
+ data.tar.gz: 72a2324f931c09a52482c07f455751f7559d286e
5
5
  SHA512:
6
- metadata.gz: cdb83339828a884226d9df89c3376245aebf8d68c2f2cdc3cafb07a73d2cf12ecba6c5faf2bbdc793f11dd7f99423a8e86c941f9ba26b0d54b21f27f2a1a52ac
7
- data.tar.gz: c901b39875e0828471bce2c59be8db34ca97d05d459dcb6f7405d58f748241e2e13fc0104f6d5090fcfc74d44ec6a378bf16425a6ddc172c73495989b4aade7c
6
+ metadata.gz: 542b5e0c6d180648c077f88bf0c8771c8c53b597c6304ce7c54715c582b9f0b92cfa882a91d1ff3e37681c44bef8b9b975970effcbfceb0600a16cfb2526aa56
7
+ data.tar.gz: 7c0049c2df44cb24a8d2c5429d8ba0f78e64ef248a48ed94a8b01e40e8ef506a2fd4f39952017dbf1b1dfcd762f5990193f53947de649a2c4176d0a1c594c2a9
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
- # wavefront-sdk [![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)
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
3
 
3
4
  This is a Ruby SDK for v2 of
4
5
  [Wavefront](https://www.wavefront.com/)'s public API. It supports Ruby >= 2.2.
@@ -53,7 +53,11 @@ module Wavefront
53
53
  def build_response(raw)
54
54
  if raw.is_a?(Hash)
55
55
  if raw.key?(:response)
56
- Map(raw[:response])
56
+ if raw[:response].is_a?(Hash)
57
+ Map(raw[:response])
58
+ else
59
+ raw[:response]
60
+ end
57
61
  else
58
62
  Map.new
59
63
  end
@@ -1 +1 @@
1
- WF_SDK_VERSION = '0.1.5'.freeze
1
+ WF_SDK_VERSION = '0.1.6'.freeze
@@ -18,6 +18,7 @@ Gem::Specification.new do |gem|
18
18
  gem.files = `git ls-files`.split($/)
19
19
  gem.test_files = gem.files.grep(/^spec/)
20
20
  gem.require_paths = %w(lib)
21
+ gem.bindir = 'bin'
21
22
 
22
23
  gem.add_runtime_dependency 'faraday', '>= 0.12.1', '< 0.13'
23
24
  gem.add_runtime_dependency 'inifile', '>= 3.0.0'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wavefront-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Fisher
@@ -193,7 +193,6 @@ files:
193
193
  - ".rubocop.yml"
194
194
  - ".travis.yml"
195
195
  - Gemfile
196
- - Gemfile.lock
197
196
  - LICENSE.txt
198
197
  - README.md
199
198
  - Rakefile
data/Gemfile.lock DELETED
@@ -1,61 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- wavefront-sdk (0.1.5)
5
- addressable (~> 2.4)
6
- faraday (>= 0.12.1, < 0.13)
7
- inifile (>= 3.0.0)
8
- map (~> 6.6.0)
9
-
10
- GEM
11
- remote: https://rubygems.org/
12
- specs:
13
- addressable (2.5.1)
14
- public_suffix (~> 2.0, >= 2.0.2)
15
- ast (2.3.0)
16
- crack (0.4.3)
17
- safe_yaml (~> 1.0.0)
18
- faraday (0.12.1)
19
- multipart-post (>= 1.2, < 3)
20
- hashdiff (0.3.2)
21
- inifile (3.0.0)
22
- map (6.6.0)
23
- minitest (5.8.5)
24
- multipart-post (2.0.0)
25
- parser (2.4.0.0)
26
- ast (~> 2.2)
27
- powerpack (0.1.1)
28
- public_suffix (2.0.5)
29
- rainbow (2.2.1)
30
- rake (12.0.0)
31
- rubocop (0.47.1)
32
- parser (>= 2.3.3.1, < 3.0)
33
- powerpack (~> 0.1)
34
- rainbow (>= 1.99.1, < 3.0)
35
- ruby-progressbar (~> 1.7)
36
- unicode-display_width (~> 1.0, >= 1.0.1)
37
- ruby-progressbar (1.8.1)
38
- safe_yaml (1.0.4)
39
- spy (0.4.5)
40
- unicode-display_width (1.1.3)
41
- webmock (2.3.2)
42
- addressable (>= 2.3.6)
43
- crack (>= 0.3.2)
44
- hashdiff
45
- yard (0.9.5)
46
-
47
- PLATFORMS
48
- ruby
49
-
50
- DEPENDENCIES
51
- bundler (~> 1.3)
52
- minitest (~> 5.8, >= 5.8.0)
53
- rake (~> 12.0)
54
- rubocop (~> 0.47.0)
55
- spy (~> 0.4.0)
56
- wavefront-sdk!
57
- webmock (~> 2.3, >= 2.3.2)
58
- yard (~> 0.9.5)
59
-
60
- BUNDLED WITH
61
- 1.14.6