ezmobius/redis-rb — pull request #189 by gorsuch (2012-03-12 19:56:46+00:00)
Title: foundations for ssl support

The following adds some very straightforward support for SSL (stunnel) connectivity in the ruby client.

I need this for several internal projects in order to secure communications. There are two major pros to this approach as I see it:

* setting up an stunnel on both the client and server is messy, especially when a client needs to connect to multiple servers
* this allows redis clients that run in Heroku apps to connect securely to their servers (as long as they are running stunnel on the server side, of course)

I tested with an stunnel.conf that looks like so:

```
pid = /tmp/stunnel.pid
cert = /tmp/stunnel.pem
foreground = yes

[redis]
accept = 6380
connect = 6379
```

I am able to initialize my redis client like so:

```ruby
require 'redis'

# use as normal, just make sure that the other end is running stunnel (localhost:6380 in this example)
r = Redis.connect url: 'redis+ssl://localhost:6380'
```

I am not including tests in this PR, as I have a few questions:

* is the proposed change generally acceptable with the vision of the lib?
* if so, can you offer some guidance as to how you'd like me to include the stunnel tests within your framework?