bearcat 1.3.49 → 1.3.51
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bearcat/api_array.rb +4 -2
- data/lib/bearcat/client/graph_ql.rb +5 -0
- data/lib/bearcat/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: 74ac1f7a25b0fc1e8b55d931d7ba7fe4713e0a9d5b47b0acff54811d940af9f4
|
4
|
+
data.tar.gz: cb29fcdbaccfbdf407072625276e16bbeedd29cadd4be8fec04f3e75a10b47bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28f325c2b16af3989a2a366556e1ed832e15749184c5673cb0e42d6fbdf4c9513217c6c3fd7119d5813351044effb55a3540193cbc6196c76730e7ae37b3f2d5
|
7
|
+
data.tar.gz: e73cfe35199f3b65ff65e11cd12b99814cca0ab67f069966409e311317ba37bab5990b82b8b1d234e8ae077e9a56a4087992343ad306d2bd931c2a1bd1df69c7
|
data/lib/bearcat/api_array.rb
CHANGED
@@ -70,7 +70,7 @@ module Bearcat
|
|
70
70
|
init_pages(@headers[:link])
|
71
71
|
@members = process_body(response)
|
72
72
|
block.call(@members)
|
73
|
-
while @link_hash['next']
|
73
|
+
while @link_hash['next'] && @members.present?
|
74
74
|
response = get_page(@link_hash['next'])
|
75
75
|
@headers = response.headers
|
76
76
|
@status = response.status
|
@@ -105,7 +105,9 @@ module Bearcat
|
|
105
105
|
@headers = response.headers
|
106
106
|
@status = response.status
|
107
107
|
@method = response.env[:method]
|
108
|
-
|
108
|
+
page_members = process_body(response)
|
109
|
+
break unless page_members.present?
|
110
|
+
@members.concat(page_members)
|
109
111
|
init_pages(@headers[:link])
|
110
112
|
end
|
111
113
|
@link_hash = {}
|
data/lib/bearcat/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bearcat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.51
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Mills, Jake Sorce
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|