From fb166f4d7156cc506f958564772bd3794bd90b09 Mon Sep 17 00:00:00 2001 From: amatriain Date: Wed, 20 Dec 2017 16:22:31 +0100 Subject: [PATCH 1/2] Support for redis 4 Since redis 4 the previously deprecated #connect method has been removed. Redmon should use #new instead. --- lib/redmon/redis.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/redmon/redis.rb b/lib/redmon/redis.rb index 6b82ad2..1289122 100644 --- a/lib/redmon/redis.rb +++ b/lib/redmon/redis.rb @@ -15,7 +15,7 @@ module Redis ] def redis - @redis ||= ::Redis.connect(:url => Redmon.config.redis_url) + @redis ||= ::Redis.new(:url => Redmon.config.redis_url) end def ns @@ -62,4 +62,4 @@ def stats_key "#{ns}:redis:#{redis_host}:stats" end end -end \ No newline at end of file +end From 958a1d42f3b6e25ac497857384f8dfa54425f44d Mon Sep 17 00:00:00 2001 From: Alfredo Amatriain Date: Sat, 16 May 2020 21:13:30 +0200 Subject: [PATCH 2/2] Removed deprecated line from gemspec --- redmon.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redmon.gemspec b/redmon.gemspec index 130bdeb..38771fc 100644 --- a/redmon.gemspec +++ b/redmon.gemspec @@ -11,7 +11,7 @@ Gem::Specification.new do |s| s.summary = %q{Redis monitor} s.description = %q{Redis Admin interface and monitor.} - s.rubyforge_project = "redmon" + #s.rubyforge_project = "redmon" s.files = `git ls-files`.split("\n") s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")