reset/ridley — pull request #5 by ivey (2012-09-15 01:30:26+00:00)
Title: Fix Exception when HTTP error has non-JSON parsed body

When Chef (or the HTTP server in front of it) returns an error that's in HTML, Ridley throws

TypeError:
can't convert Symbol into Integer
# ./lib/ridley/errors.rb:50:in `[]'
# ./lib/ridley/errors.rb:50:in `initialize'
# ./spec/unit/ridley/errors_spec.rb:35:in `new'
# ./spec/unit/ridley/errors_spec.rb:35:in `block (4 levels) in '
# ./spec/unit/ridley/errors_spec.rb:38:in `block (4 levels) in '

This fixes the case where we don't have JSON in the error body.