wavefront-sdk 5.3.1 → 5.4.0
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 +4 -4
- data/HISTORY.md +4 -0
- data/lib/wavefront-sdk/core/api_caller.rb +4 -3
- data/lib/wavefront-sdk/defs/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e5742363bab25cb1c4fbc8cbd41eb192f64a353b15f9accdbfea8d7206f1dc95
|
|
4
|
+
data.tar.gz: 2896790866e6838c90f54ae025ad3ac7347d9b76611b7a809b570dbd42a7e4d7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 12ef9efa434dacef9361c5daaf58a3e0db2831a4ffbb1ee9049f30c3956c5dbeb4c36953445ad5bf5632f4e37249281ce71130531e6486880613eb92b06b794c
|
|
7
|
+
data.tar.gz: 9abf41e3684e46cf844a1dd8f5cd0f016dacc6e4bdb2422f660f2ca8f720796ce5702eb9ee740becfe2c79b4ed84b1c6a013ac9935ace898c98a78cc0e383ef1
|
data/HISTORY.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.4.0 (2020-12-16)
|
|
4
|
+
* Add `raw_response` option, which makes the SDK return the raw API response
|
|
5
|
+
as plain JSON text, rather than as a `Wavefront::Response` object.
|
|
6
|
+
|
|
3
7
|
## 5.3.1 (2020-12-11)
|
|
4
8
|
* Fix error when renaming ingestion policies, and improve testing which should
|
|
5
9
|
have caught the problem in the first place.
|
|
@@ -15,8 +15,7 @@ module Wavefront
|
|
|
15
15
|
class ApiCaller
|
|
16
16
|
include Wavefront::Mixins
|
|
17
17
|
|
|
18
|
-
attr_reader :opts, :noop, :debug, :verbose, :net, :logger,
|
|
19
|
-
:calling_class
|
|
18
|
+
attr_reader :opts, :noop, :debug, :verbose, :net, :logger, :calling_class
|
|
20
19
|
|
|
21
20
|
# @param calling_class [
|
|
22
21
|
# @param creds [Hash] Wavefront credentials
|
|
@@ -178,7 +177,9 @@ module Wavefront
|
|
|
178
177
|
resp.body
|
|
179
178
|
end
|
|
180
179
|
|
|
181
|
-
|
|
180
|
+
return body if opts[:raw_response]
|
|
181
|
+
|
|
182
|
+
Wavefront::Response.new(body, resp.status, opts)
|
|
182
183
|
end
|
|
183
184
|
|
|
184
185
|
# Try to describe the actual HTTP calls we make. There's a bit
|
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: 5.
|
|
4
|
+
version: 5.4.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: 2020-12-
|
|
11
|
+
date: 2020-12-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|