nylas / nylas-ruby

Ruby bindings for the Nylas Platform APIs
https://nylas.com/docs
MIT License
101 stars 130 forks source link

Add Rate Limit error support #389

Closed mrashed-dev closed 2 years ago

mrashed-dev commented 2 years ago

Description

This PR adds support for rate limit 429 headers from the API.

License

I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

codecov[bot] commented 2 years ago

Codecov Report

Merging #389 (9cafd22) into main (a70042b) will increase coverage by 0.04%. The diff coverage is 97.82%.

@@            Coverage Diff             @@
##             main     #389      +/-   ##
==========================================
+ Coverage   97.69%   97.73%   +0.04%     
==========================================
  Files         126      126              
  Lines        4513     4556      +43     
==========================================
+ Hits         4409     4453      +44     
+ Misses        104      103       -1     
Impacted Files Coverage Δ
lib/nylas/http_client.rb 94.17% <83.33%> (+1.24%) :arrow_up:
lib/nylas/errors.rb 100.00% <100.00%> (ø)
spec/nylas/http_client_spec.rb 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.