wavefront-sdk 3.3.1 → 3.3.2

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
  SHA256:
3
- metadata.gz: 2bbfb49f0c6292fa72ed5496a636e5627fc0a6a06df639f737703acff90600a9
4
- data.tar.gz: 676f628b99a7618736f547c8de353b323a0bb0e0978a9a9aee42bc58c53abbae
3
+ metadata.gz: 7e6718d9f3e031c2fa1483886a56af0ab13a497d3f8af778d426176d00f3ebde
4
+ data.tar.gz: 31c8f31a4e0e12bbdf5000d342411a56ca623f66dbe577650f11986f807b8c81
5
5
  SHA512:
6
- metadata.gz: 2bc53c1bab53f1a274dc225cadcedc4db619b3ecd6b6b26c89b55013b1829e805f45757d570413468bd347c1739b386a33fbdbe18a8f0890642fb16be7397b78
7
- data.tar.gz: f9479dcefc166eb4a1463e06b8ad496fc90e18ebada48c69dce636942da4492bf9dd414b19bf1d03fdec744ff5294a52dcf122e886848eadb60d19997c7954c5
6
+ metadata.gz: 1fa4b966047249113c4271263fe0f5f6b59637e8b9823df56373f4992c3c56a2b648b272e81c5eb110c5b69d650ae3950b2794908d1a698cc468d57eedc86757
7
+ data.tar.gz: de8c2c6d0edca705eaed18041d6118315809de5bc2d2c7560fdc66a097200905c62d35278eca6e48069979322e61e1da6b0215397e75ade9518ad0d8b501fa7f
data/HISTORY.md CHANGED
@@ -1,9 +1,12 @@
1
1
  # Changelog
2
2
 
3
- ## 3.3.1
3
+ ## 3.3.2 (24/05/2019)
4
+ * Don't report `moreItems` as `true` at the end of a recursive `GET`.
5
+
6
+ ## 3.3.1 (10/05/2019)
4
7
  * Better handling of query errors.
5
8
 
6
- ## 3.3.0
9
+ ## 3.3.0 (09/05/2019)
7
10
  * Reflect the way the API ACL format has changed.
8
11
 
9
12
  ## 3.2.0 (01/05/2019)
@@ -1,4 +1,4 @@
1
1
  require 'pathname'
2
2
 
3
- WF_SDK_VERSION = '3.3.1'.freeze
3
+ WF_SDK_VERSION = '3.3.2'.freeze
4
4
  WF_SDK_LOCATION = Pathname.new(__FILE__).dirname.parent.parent.parent
@@ -111,10 +111,20 @@ module Wavefront
111
111
  resp = api_caller.respond(conn.public_send(method, *p_args))
112
112
  raise StopIteration unless resp.ok?
113
113
  ret.response.items += resp.response.items
114
- raise StopIteration unless resp.more_items?
114
+ return finalize_response(ret) unless resp.more_items?
115
115
  end
116
+ end
116
117
 
117
- ret
118
+ # In #make_recursive_call we've built up a composite response
119
+ # object. This method corrects a couple of things in that
120
+ # object which are misleading. (Because they're left over from
121
+ # the original call.)
122
+ #
123
+ def finalize_response(resp)
124
+ resp.tap do |r|
125
+ r.response[:limit] = r.response.items.size - 1
126
+ r.response[:moreItems] = false
127
+ end
118
128
  end
119
129
 
120
130
  # Return all objects using a lazy enumerator.
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: 3.3.1
4
+ version: 3.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Fisher
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-18 00:00:00.000000000 Z
11
+ date: 2019-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable