lib/trello_flow/api/base.rb in trello_flow-3.5.0 vs lib/trello_flow/api/base.rb in trello_flow-3.6.0

- old
+ new

@@ -1,7 +1,8 @@ require "spyke" require "trello_flow/api/json_parser" +require "trello_flow/api/error_handler" module TrelloFlow module Api class Base < Spyke::Base require "trello_flow/api/board" @@ -13,12 +14,13 @@ include_root_in_json false cattr_accessor :token def self.configure(key:, token:) self.connection = Faraday.new(url: "https://api.trello.com/1", params: { key: key, token: token }) do |c| - c.request :json - c.use JSONParser - c.adapter Faraday.default_adapter + c.request :json + c.use JSONParser + c.use ErrorHandler + c.adapter Faraday.default_adapter # For trello api logging # require "faraday/conductivity" # c.use Faraday::Conductivity::ExtendedLogging end