lib/bearcat.rb in bearcat-1.5.13 vs lib/bearcat.rb in bearcat-1.5.14

- old
+ new

@@ -1,8 +1,7 @@ require 'bearcat/version' require 'bearcat/client' -require 'bearcat/redis_connection' module Bearcat class << self require 'logger' attr_writer :rate_limit_min, :rate_limits, :max_sleep_seconds, @@ -39,9 +38,10 @@ @logger.level = Logger::DEBUG @logger end def redis_pool + require 'bearcat/redis_connection' @redis_pool ||= RedisConnection.create(env_prefix: "BEARCAT") end def redis raise ArgumentError, "requires a block" unless block_given?