bridge_api 0.1.47 → 0.1.48

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 33d53dbe69e83c140ece152e38d4b640a952dbe71157d3349d2ec992c00a3cdf
4
- data.tar.gz: ce0087b8b507566f1620be38adac6e9dcdc48ac4bf24319616771b381cf0b02d
3
+ metadata.gz: 757bc0d323c278bd190a57adbed819655384dfde356a94d3f75261c8b636d1a3
4
+ data.tar.gz: 9cdfd99253f8a9dc34c2c1bf6baa76fb812c56d8722f8df588cc2cc4ffbbb215
5
5
  SHA512:
6
- metadata.gz: abf0c52442afe33ed5708c7c70a09e04277c5838244cbf3c5696842f86cdb54716d1740d38c6b4d7cd53cb069531075ab9a79fd03a7ac7088b7c7aa31a05fa24
7
- data.tar.gz: 2f1a010419bad863287b118a899484c689b901099a891b1ac40b57a55ec010585b81a6b4f1a5d7aaa6237d2ebc3342662555454daed43b960f71124121fc7979
6
+ metadata.gz: 82362409dee64a4fedda2f6f87b9ef0cf0121c8b7ab133768c9c71270aad6a7821f864f80b9578c29811f0ba12e977a7c06de435b16994cc96ece7b168889428
7
+ data.tar.gz: 2515324336c1c1c06f640b3184d15ce07bc6ef73eb73688c66d7daf4bcc5c9d8a079c8bee0023109fe4def2b40b31db437ccefae10449f689e61ce7e21f695e5
@@ -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]]
@@ -1,3 +1,3 @@
1
1
  module BridgeAPI
2
- VERSION = '0.1.47'.freeze unless defined?(BridgeAPI::VERSION)
2
+ VERSION = '0.1.48'.freeze unless defined?(BridgeAPI::VERSION)
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bridge_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.47
4
+ version: 0.1.48
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jay Shaffer