From 4444060309af797c6b64a86990729085c693a32e Mon Sep 17 00:00:00 2001 From: Jurgens du Toit Date: Thu, 14 Dec 2023 04:32:29 +0200 Subject: [PATCH] fix: Register memcached scheme properly --- ditty.gemspec | 1 + lib/ditty/services/cache.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ditty.gemspec b/ditty.gemspec index 2042054..ff972ae 100644 --- a/ditty.gemspec +++ b/ditty.gemspec @@ -44,6 +44,7 @@ Gem::Specification.new do |spec| spec.add_dependency 'haml', '~> 5.1', '>= 5.1.2' # Going to 6 creates a `undefined method capture_html` and breaks a lot of other stuff spec.add_dependency 'logger', '>= 1.0' spec.add_dependency 'mail', '>= 1.7' + spec.add_dependency 'net-telnet', '>= 0.2' spec.add_dependency 'oga', '>= 2.14' spec.add_dependency 'omniauth', '>= 1.0' spec.add_dependency 'omniauth-identity', '>= 1.0' diff --git a/lib/ditty/services/cache.rb b/lib/ditty/services/cache.rb index cfe7d1b..d1ac2a0 100644 --- a/lib/ditty/services/cache.rb +++ b/lib/ditty/services/cache.rb @@ -98,5 +98,5 @@ module URI class Memcached < Generic DEFAULT_PORT = 11211 end - @@schemes['Memcached'] = Memcached + register_scheme 'Memcached', Memcached end