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 +4 -4
- data/HISTORY.md +5 -2
- data/lib/wavefront-sdk/defs/version.rb +1 -1
- data/lib/wavefront-sdk/paginator/base.rb +12 -2
- 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: 7e6718d9f3e031c2fa1483886a56af0ab13a497d3f8af778d426176d00f3ebde
|
4
|
+
data.tar.gz: 31c8f31a4e0e12bbdf5000d342411a56ca623f66dbe577650f11986f807b8c81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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)
|
@@ -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
|
-
|
114
|
+
return finalize_response(ret) unless resp.more_items?
|
115
115
|
end
|
116
|
+
end
|
116
117
|
|
117
|
-
|
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.
|
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-
|
11
|
+
date: 2019-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|