pengwynn/faraday_middleware — pull request #43 by 7even (2012-06-24 15:20:30+00:00)
Title: Mashify handling nested arrays of hashes properly

I changed `FaradayMiddleware::Mashify#parse` so it runs recursively after encountering an `Array`. So with the following connection:

``` ruby
connection = Faraday.new do |builder|
builder.response :mashify
builder.response :json

builder.adapter :test do |stub|
stub.get('/url') do
data = [[{a: 1, b: 2}]]
[200, {}, data.to_json]
end
end
end
```

we get a `Hashie::Mash` inside, not a `Hash`.

``` ruby
connection.get('/url').body
# => [[#]]
```