bearcat 1.3.37 → 1.3.38
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 +6 -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: 20f86027d22541084d7e8e2d48814c49693d66f04359584c0042597afd8c69d7
|
4
|
+
data.tar.gz: 147edd38908625ec094e2d9037e7c07bbe02f545c9322c690bdff4b677e9e2a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb57921aa5cfb4194305906e70c86ce0d6cd7eb50921dc4f19f53f8bea85483b975ab21202b6afc7992c28528f343623c685b9b3cd39cfe2a2a72557cfff7780
|
7
|
+
data.tar.gz: 5fae4bf3faa2dbf8d6ff786fb8c3e8c1099cb46473a7a22cf5eacd5f3da4da9fe050bfd42c14675083e23505ff9847aa4f041a63ebc82e0c0d9d1a33a9b15616
|
data/lib/bearcat/api_array.rb
CHANGED
@@ -62,6 +62,12 @@ module Bearcat
|
|
62
62
|
|
63
63
|
def each_page(page_count = 50, &block)
|
64
64
|
@page_count = page_count
|
65
|
+
response = get_page(@link_hash['first'])
|
66
|
+
@headers = response.headers
|
67
|
+
@status = response.status
|
68
|
+
@method = response.env[:method]
|
69
|
+
init_pages(@headers[:link])
|
70
|
+
@members = process_body(response)
|
65
71
|
block.call(@members)
|
66
72
|
while @link_hash['next']
|
67
73
|
response = get_page(@link_hash['next'])
|
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.38
|
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-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|