lib/ddtrace/contrib/redis/integration.rb in ddtrace-0.32.0 vs lib/ddtrace/contrib/redis/integration.rb in ddtrace-0.33.0

- old
+ new

@@ -13,23 +13,27 @@ def self.version Gem.loaded_specs['redis'] && Gem.loaded_specs['redis'].version end - def self.present? - super && defined?(::Redis) + def self.loaded? + defined?(::Redis) end def self.compatible? - !version.nil? && version >= Gem::Version.new('3.0.0') + super && version >= Gem::Version.new('3.2') end def default_configuration Configuration::Settings.new end def patcher Patcher + end + + def resolver + @resolver ||= Configuration::Resolver.new end end end end end