bilus/redis-bitops — pull request #1 by msaffitz (2014-11-05 07:12:10+00:00)
Title: Fix for potential empty array in watched_keys

I encountered an error when the result of a bitwise operator is an empty bitmap. It seems that bitcount and other resulting operations failed with:

`Redis::CommandError: ERR wrong number of arguments for 'watch' command`

Ensuring that the watch command isn't operating on an empty array fixed the issue.

Includes tests.