socketry / cloudflare

An asynchronous Ruby wrapper for the CloudFlare V4 API.
138 stars 86 forks source link

Fix infinity loop when record number % page_size = 0 #42

Closed valodzka closed 5 years ago

valodzka commented 5 years ago

paginate goes into infinite loop if total records number % page_size = 0 (for example, 50).

ioquatix commented 5 years ago

Thank you for this PR. I have fixed this. I've refactored the code to build it on top of async-rest.