bearcat 1.5.21 → 1.5.22.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bearcat/client.rb +2 -1
- data/lib/bearcat/version.rb +1 -1
- data/lib/bearcat.rb +2 -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: 0cf70d636b31fe54885a741a1c95e25fb78eeab7347fc5f59972c01d1f26df63
|
4
|
+
data.tar.gz: 6906404e021103e042e72dcbe3ef9296b96cd68fb77ab96b8d021211794dc3f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2882cf230eb94f6676a5d6e67b633242d79cc175b839c6c465385012fb9d78b7be32f38eb137f60f6c90ec3a4f5209de9678442afeb87cb85d9ee850c4ed05d0
|
7
|
+
data.tar.gz: 06edf279b7dd702bea3e0f6ba9c340828f279bf3ba40e1e7b5b3e734286da0033a4b573abd3a75e28a2677d3c4efa5bed497c2a3f8863da40a884775d2035875
|
data/lib/bearcat/client.rb
CHANGED
@@ -2,6 +2,7 @@ require 'active_support/core_ext/hash'
|
|
2
2
|
require 'footrest/client'
|
3
3
|
require_relative 'rate_limiting'
|
4
4
|
require_relative 'client_module'
|
5
|
+
require_relative 'redis_connection'
|
5
6
|
|
6
7
|
module Bearcat
|
7
8
|
class Client < Footrest::Client
|
@@ -85,7 +86,7 @@ module Bearcat
|
|
85
86
|
rl = config[:rate_limiter] || Bearcat.rate_limiter
|
86
87
|
master_rate_limit = config[:master_rate_limit].present? ? config[:master_rate_limit] : Bearcat.master_rate_limit
|
87
88
|
|
88
|
-
if rl.nil? && master_rate_limit.nil? && defined?(Rails) && Rails.env.production? && defined?(::Redis) && RedisConnection.configured?("BEARCAT", explicit: false)
|
89
|
+
if rl.nil? && master_rate_limit.nil? && defined?(Rails) && Rails.env.production? && defined?(::Redis) && Bearcat::RedisConnection.configured?("BEARCAT", explicit: false)
|
89
90
|
master_rate_limit = true
|
90
91
|
end
|
91
92
|
|
data/lib/bearcat/version.rb
CHANGED
data/lib/bearcat.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'bearcat/version'
|
2
2
|
require 'bearcat/client'
|
3
|
+
require 'bearcat/redis_connection'
|
3
4
|
|
4
5
|
module Bearcat
|
5
6
|
class << self
|
@@ -37,7 +38,7 @@ module Bearcat
|
|
37
38
|
|
38
39
|
def redis_pool
|
39
40
|
require 'bearcat/redis_connection'
|
40
|
-
@redis_pool ||= RedisConnection.create(env_prefix: "BEARCAT")
|
41
|
+
@redis_pool ||= Bearcat::RedisConnection.create(env_prefix: "BEARCAT")
|
41
42
|
end
|
42
43
|
|
43
44
|
def redis
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bearcat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.22.beta2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Instructure CustomDev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-05-
|
11
|
+
date: 2024-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|