Changelog - longlostnick/faraday GitHub Wiki
0.7.x => 0.8.x
The signature for #get, #head, and #delete changed.
http = Faraday.new
# OLD
resp = http.get '/items', :accept => 'application/json'
# NEW
resp = http.get '/items', {:page => 1}, :accept => 'application/json'
The headers argument has moved from the second to the third position. The URI query params are now in the second position. If you ever get confused, use the block form.
resp = http.get '/items' do |req|
req.params[:page] = 1
req.headers[:accept] = 'application/json'
end
Also, the ActionDispatch middleware was replaced in favor of the Rack one. ActionDispatch may resurface in a separate gem if needed.
Future Releases
See the Roadmap for info on v0.9 and v1.0!