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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0fc4311b2322403ef715d9a62c5f84712accb5ed1ee9e5350e0bbcb6237fe631
4
- data.tar.gz: f2fb99d1f35d601a619f0e7135f8b22ea0b22d0697752af5a265132d867216bb
3
+ metadata.gz: e5742363bab25cb1c4fbc8cbd41eb192f64a353b15f9accdbfea8d7206f1dc95
4
+ data.tar.gz: 2896790866e6838c90f54ae025ad3ac7347d9b76611b7a809b570dbd42a7e4d7
5
5
  SHA512:
6
- metadata.gz: a2e79e3ce013f9fcdc3e28d7e111c586746e65ae341b0187b44b3908d29d81ae9aa8f0723d8eeea239c27f9976b232aa2acf2ecda92b797b0c45f25dc9e9c612
7
- data.tar.gz: 20f3124667013b4f1212df12c6e04c235e7dfda24e3f0ac9a87ba4c4a4884d96d11f1a855d460f8026d65d8a35754d7a2f5d0bf705f13456dea066d0faee7822
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
- Wavefront::Response.new(body, resp.status, @opts)
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
@@ -2,5 +2,5 @@
2
2
 
3
3
  require 'pathname'
4
4
 
5
- WF_SDK_VERSION = '5.3.1'
5
+ WF_SDK_VERSION = '5.4.0'
6
6
  WF_SDK_LOCATION = Pathname.new(__dir__).parent.parent.parent
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.3.1
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-12 00:00:00.000000000 Z
11
+ date: 2020-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable