bridge_api 0.1.47 → 0.1.48
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bridge_api/client.rb +4 -0
- data/lib/bridge_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 757bc0d323c278bd190a57adbed819655384dfde356a94d3f75261c8b636d1a3
|
4
|
+
data.tar.gz: 9cdfd99253f8a9dc34c2c1bf6baa76fb812c56d8722f8df588cc2cc4ffbbb215
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82362409dee64a4fedda2f6f87b9ef0cf0121c8b7ab133768c9c71270aad6a7821f864f80b9578c29811f0ba12e977a7c06de435b16994cc96ece7b168889428
|
7
|
+
data.tar.gz: 2515324336c1c1c06f640b3184d15ce07bc6ef73eb73688c66d7daf4bcc5c9d8a079c8bee0023109fe4def2b40b31db437ccefae10449f689e61ce7e21f695e5
|
data/lib/bridge_api/client.rb
CHANGED
@@ -78,6 +78,10 @@ module BridgeAPI
|
|
78
78
|
def current_limit
|
79
79
|
if config[:master_rate_limit]
|
80
80
|
limit = PaulWalker::RateLimit.get(config[:api_key], config[:api_key])
|
81
|
+
if limit.nil?
|
82
|
+
PaulWalker::RateLimit.add(config[:api_key], config[:api_key], 0, BridgeAPI::rate_limit_min)
|
83
|
+
limit = {current: 0}.with_indifferent_access
|
84
|
+
end
|
81
85
|
limit['current']
|
82
86
|
else
|
83
87
|
BridgeAPI.rate_limits[config[:api_key]]
|
data/lib/bridge_api/version.rb
CHANGED