lib/mtgox/connection.rb in mtgox-0.7.2 vs lib/mtgox/connection.rb in mtgox-0.7.3
- old
+ new
@@ -1,9 +1,8 @@
require 'faraday'
require 'faraday/request/url_encoded'
require 'faraday/response/raise_error'
-require 'faraday/response/parse_json'
require 'faraday/response/raise_mtgox_error'
require 'faraday_middleware'
require 'mtgox/version'
module MtGox
@@ -21,10 +20,10 @@
}
Faraday.new(options) do |connection|
connection.use Faraday::Request::UrlEncoded
connection.use Faraday::Response::RaiseError
- connection.use Faraday::Response::ParseJson
+ connection.use FaradayMiddleware::ParseJson
connection.use Faraday::Response::RaiseMtGoxError
connection.adapter(Faraday.default_adapter)
end
end
end