Replace read() with sysread() in __try_read_sock() if we are running Win32

See #20 and #21 and also 6a517e64510 for the logic behind this.

Signed-off-by: Pedro Melo <melo@simplicidade.org>
Merge pull request #26 from tsee/master

Implement support for multi-word Redis commands such as "script load"
Merge branch 'windows-fix-with-sysread'

* windows-fix-with-sysread:
  Replace read() with sysread() in __try_read_sock() if we are running Win32
Remove left over die from script tests

Signed-off-by: Pedro Melo <melo@simplicidade.org>
Improve script tests to check script_load() returns valid sha1 digest

Signed-off-by: Pedro Melo <melo@simplicidade.org>
Add documentation for the new scripting commands

Signed-off-by: Pedro Melo <melo@simplicidade.org>
Prepare next release

Signed-off-by: Pedro Melo <melo@simplicidade.org>
Remove trailing spaces

Signed-off-by: Pedro Melo <melo@simplicidade.org>
v1.954

    * Support for multi-word commands such as "SCRIPT LOAD".
    * Try another fix for Windows non-blocking reads
Skip scripting tests if redis-server found lack scripting support

Signed-off-by: Pedro Melo <melo@simplicidade.org>
v1.955

    * Skip 30-scripts.t if the redis-server found lacks script support
Add on_connect callback to Redis constructor

The on_connect callback will be called after each successful connection.

Signed-off-by: Pedro Melo <melo@simplicidade.org>
Tidy code a bit

Signed-off-by: Pedro Melo <melo@simplicidade.org>
Remove extra cpanm commands: installing the PluginBundle should be enough

Signed-off-by: Pedro Melo <melo@simplicidade.org>
Make sure we have a redis-server available

Signed-off-by: Pedro Melo <melo@simplicidade.org>
Switch from Digest::SHA1 to Digest::SHA, the latter is core RT-81841

Signed-off-by: Pedro Melo <melo@simplicidade.org>
Be more precise when dealing with syswrite errors

Signed-off-by: Pedro Melo <melo@simplicidade.org>
Make sure quit() doesn't die if we fail to send the command:

The end result is the same - the socket connection is down - so make sure
we cleanup properly but don't bother with errors in the process.

Closes #30.

Signed-off-by: Pedro Melo <melo@simplicidade.org>
Update Changes for new release

Signed-off-by: Pedro Melo <melo@simplicidade.org>
Tweak Dist::Zilla config, enable some tests, disable portability for now

Signed-off-by: Pedro Melo <melo@simplicidade.org>