lib/redis_failover/util.rb in redis_failover-0.2.0 vs lib/redis_failover/util.rb in redis_failover-0.3.0

- old
+ new

@@ -5,9 +5,13 @@ def symbolize_keys(hash) Hash[hash.map { |k, v| [k.to_sym, v] }] end + def different?(ary_a, ary_b) + ((ary_a | ary_b) - (ary_a & ary_b)).size > 0 + end + def self.logger @logger ||= begin logger = Logger.new(STDOUT) logger.level = Logger::INFO logger.formatter = proc do |severity, datetime, progname, msg|