jeremyd/rest_connection — pull request #12 by christopherdeutsch (2011-10-13 00:25:11+00:00)
Title: bugfix: handle requestify() returning nil

Fix bug with Deployment.find where requestify() would return nil if there were no parameters, causing an issue when it's return value was concatenated with another string:

```
irb(main):003:0> Deployment.find(79)
TypeError: can't convert nil into String
from /var/lib/gems/1.8/gems/rest_connection-0.0.22/lib/rest_connection.rb:92:in `+'
from /var/lib/gems/1.8/gems/rest_connection-0.0.22/lib/rest_connection.rb:92:in `get'
from /var/lib/gems/1.8/gems/rest_connection-0.0.22/lib/rest_connection.rb:74:in `rest_connect'
from /usr/lib/ruby/1.8/net/http.rb:543:in `start'
from /var/lib/gems/1.8/gems/rest_connection-0.0.22/lib/rest_connection.rb:73:in `rest_connect'
from /var/lib/gems/1.8/gems/rest_connection-0.0.22/lib/rest_connection.rb:90:in `get'
from /var/lib/gems/1.8/gems/rest_connection-0.0.22/lib/rest_connection/rightscale/rightscale_api_base.rb:72:in `find'
from (irb):3
from (null):0
```