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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c5e4609f1a2197a4de501c57adcf2e6b1ac49f8da1bee63d3828d247007e1f49
4
- data.tar.gz: e8dec27f59a72df043c02a8dbcabb22c171dc0ea1a7f6ddea2813563d8b87d57
3
+ metadata.gz: 0cf70d636b31fe54885a741a1c95e25fb78eeab7347fc5f59972c01d1f26df63
4
+ data.tar.gz: 6906404e021103e042e72dcbe3ef9296b96cd68fb77ab96b8d021211794dc3f9
5
5
  SHA512:
6
- metadata.gz: 214e9a15e522bb68b3576c72fbdc8f72c598096a1d19a8daa9aca852a30f27e1172e884fe5af64ca75a26abb9499278abb524e648bf56df0e122309ee260fbe5
7
- data.tar.gz: 0a4091c32877621c4b420ee55b72727ff2b8e223dbbf096b6b9ef51d106fa896bb7f36475f62a474eed98d5f60fc89309df544b2b866a1161716ffb719d4d66b
6
+ metadata.gz: 2882cf230eb94f6676a5d6e67b633242d79cc175b839c6c465385012fb9d78b7be32f38eb137f60f6c90ec3a4f5209de9678442afeb87cb85d9ee850c4ed05d0
7
+ data.tar.gz: 06edf279b7dd702bea3e0f6ba9c340828f279bf3ba40e1e7b5b3e734286da0033a4b573abd3a75e28a2677d3c4efa5bed497c2a3f8863da40a884775d2035875
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module Bearcat
2
- VERSION = '1.5.21' unless defined?(Bearcat::VERSION)
2
+ VERSION = '1.5.22.beta2' unless defined?(Bearcat::VERSION)
3
3
  end
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.21
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-09 00:00:00.000000000 Z
11
+ date: 2024-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake