bridge_api 0.1.67 → 0.1.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/bridge_api/client.rb +2 -0
- data/lib/bridge_api/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: 2e33cd3207fe1494cbc64ea799f77ee399081ad6282283aaa5d577ecbe2b91c1
|
|
4
|
+
data.tar.gz: f2dea18b065d73fa9fe87598d236af598daa85d90dd884ee4b815c9f818b44d5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 89c9a1618bba16b9a707de5ca0aa056a0fc7aad2313f5304f5ba49a231be58ae89e54cdfe66e799b8f36e400f89bacac1b9b71c49fa3d40655059ebf91f8d986
|
|
7
|
+
data.tar.gz: 59c0dc141d8693cd88eb89f9dc1dcf9993beb549548afa4048781bc631c1a93e0b08b94cb9b79197ea0bc413f86b7d4177ab5fa230a6ffd5fb77fa2304429823
|
data/lib/bridge_api/client.rb
CHANGED
|
@@ -95,6 +95,7 @@ module BridgeAPI
|
|
|
95
95
|
|
|
96
96
|
# rotates to the next token in the pool (by order in which they were provided)
|
|
97
97
|
def rotate_token!
|
|
98
|
+
return unless config[:api_keys].present?
|
|
98
99
|
old_api_key = config[:api_key]
|
|
99
100
|
keys = config[:api_keys].keys
|
|
100
101
|
return if keys.count <= 1
|
|
@@ -181,6 +182,7 @@ module BridgeAPI
|
|
|
181
182
|
|
|
182
183
|
def refresh_stale_tokens
|
|
183
184
|
return unless using_master_rate_limit?
|
|
185
|
+
return unless config[:api_keys].present?
|
|
184
186
|
api_keys = config[:api_keys].keys
|
|
185
187
|
api_keys.delete(config[:api_key])
|
|
186
188
|
api_keys.each do |key|
|
data/lib/bridge_api/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bridge_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.68
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jay Shaffer
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-02-
|
|
11
|
+
date: 2022-02-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|