lib/creditsafe/client.rb in creditsafe_connect-0.1.4 vs lib/creditsafe/client.rb in creditsafe_connect-0.1.5

- old
+ new

@@ -1,9 +1,9 @@ # frozen_string_literal: true require 'faraday' -require 'faraday_middleware/multi_json' +require 'multi_json' require 'creditsafe/configuration' require 'creditsafe/faraday_auth' module Creditsafe class Client @@ -32,10 +32,10 @@ username = Creditsafe.configuration.username passwd = Creditsafe.configuration.password @connection ||= Faraday.new(url: api_url) do |conn| conn.request :creditsafe_auth, username, passwd - conn.response :multi_json, symbolize_keys: true + conn.response :json, parser_options: { symbolize_names: true } conn.response :logger if Creditsafe.configuration.debug conn.adapter Faraday.default_adapter end end