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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6f276685c4b57737d725263680f095756e05cedc3b690b1f6a680a4cedb610c7
4
- data.tar.gz: 451bc4c22312b0802260bad468ece4e1c49660c0ef2cbf2c8a0cc22ee98eb4f6
3
+ metadata.gz: 20f86027d22541084d7e8e2d48814c49693d66f04359584c0042597afd8c69d7
4
+ data.tar.gz: 147edd38908625ec094e2d9037e7c07bbe02f545c9322c690bdff4b677e9e2a5
5
5
  SHA512:
6
- metadata.gz: 6a10afbfd1d0718c1dd80e2af6cda6e3cc06d133db78ecc332724fe75fe6649b1f07964fa45f1bc7aa6dd5ee89eb9d760b2d988546bbb01d74762f5fb15d6134
7
- data.tar.gz: ee0be0d8181e37c19753e82a5162c71adc76157285e3f4db72b093e0856dec456faeb0e257685881aa2aaa42907c41f8cc953efbe660844f7f4adaf20e8bcd93
6
+ metadata.gz: bb57921aa5cfb4194305906e70c86ce0d6cd7eb50921dc4f19f53f8bea85483b975ab21202b6afc7992c28528f343623c685b9b3cd39cfe2a2a72557cfff7780
7
+ data.tar.gz: 5fae4bf3faa2dbf8d6ff786fb8c3e8c1099cb46473a7a22cf5eacd5f3da4da9fe050bfd42c14675083e23505ff9847aa4f041a63ebc82e0c0d9d1a33a9b15616
@@ -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'])
@@ -1,3 +1,3 @@
1
1
  module Bearcat
2
- VERSION = '1.3.37' unless defined?(Bearcat::VERSION)
2
+ VERSION = '1.3.38' unless defined?(Bearcat::VERSION)
3
3
  end
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.37
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-04-25 00:00:00.000000000 Z
11
+ date: 2019-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake