From 5fe5b60845fa81940ab6949ed3ea52848717f628 Mon Sep 17 00:00:00 2001 From: adrian-gomez Date: Thu, 16 Nov 2023 12:19:56 -0300 Subject: [PATCH] Remove hiredis dependency --- Gemfile.lock | 2 -- lib/simple_redlock.rb | 3 +-- simple_redlock.gemspec | 1 - 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index e76bdd3..d82c47c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -3,7 +3,6 @@ PATH specs: simple_redlock (0.1.0) connection_pool (~> 2.2.5) - hiredis (~> 0.6.3) redis (~> 4.6.0) GEM @@ -11,7 +10,6 @@ GEM specs: connection_pool (2.2.5) diff-lcs (1.5.0) - hiredis (0.6.3) rake (13.0.6) redis (4.6.0) rspec (3.11.0) diff --git a/lib/simple_redlock.rb b/lib/simple_redlock.rb index ba7880b..d2a2232 100644 --- a/lib/simple_redlock.rb +++ b/lib/simple_redlock.rb @@ -1,6 +1,5 @@ require 'connection_pool' require 'redis' -require 'redis/connection/hiredis' require_relative 'simple_redlock/locker' require_relative 'simple_redlock/lockable' @@ -40,7 +39,7 @@ def self.redis_pool=(redis_pool) def self.redis_pool @redis_pool ||= ConnectionPool.new(timeout: redis_pool_timeout, size: redis_pool_size) do - Redis.new(url: redis_url, driver: :hiredis) + Redis.new(url: redis_url) end end diff --git a/simple_redlock.gemspec b/simple_redlock.gemspec index 7616dba..9af5a77 100644 --- a/simple_redlock.gemspec +++ b/simple_redlock.gemspec @@ -18,7 +18,6 @@ Gem::Specification.new do |spec| spec.require_paths = ['lib'] spec.add_dependency 'redis', '~> 4.6.0' - spec.add_dependency 'hiredis', '~> 0.6.3' spec.add_dependency 'connection_pool', '~> 2.2.5' spec.add_development_dependency 'rake', '~> 13.0'