lib/redic/client.rb in redic-1.1.0 vs lib/redic/client.rb in redic-1.1.1

- old
+ new

@@ -39,10 +39,10 @@ raise err, "Can't connect to: %s" % @uri end if @uri.scheme == "redis" @uri.password && assert_ok(call("AUTH", @uri.password)) - @uri.path && assert_ok(call("SELECT", @uri.path[1..-1])) + @uri.path != "" && assert_ok(call("SELECT", @uri.path[1..-1])) end end def call(*args) @semaphore.synchronize do