lib/avatax/configuration.rb in avatax-18.4.0 vs lib/avatax/configuration.rb in avatax-18.4.1

- old
+ new

@@ -13,11 +13,15 @@ :user_agent, :username, :password, :connection_options, :logger, + :custom_logger, + :custom_logger_options, :proxy, + :faraday_response, + :response_big_decimal_conversion ].freeze DEFAULT_APP_NAME = nil DEFAULT_APP_VERSION = nil DEFAULT_MACHINE_NAME = nil @@ -25,11 +29,15 @@ DEFAULT_USER_AGENT = "AvaTax Ruby Gem #{AvaTax::VERSION}".freeze DEFAULT_USERNAME = nil DEFAULT_PASSWORD = nil DEFAULT_CONNECTION_OPTIONS = {} DEFAULT_LOGGER = false + DEFAULT_CUSTOM_LOGGER = nil + DEFAULT_CUSTOM_LOGGER_OPTIONS = {} DEFAULT_PROXY = nil + DEFAULT_FARADAY_RESPONSE = false + DEFAULT_RESPONSE_BIG_DECIMAL_CONVERSION = false attr_accessor *VALID_OPTIONS_KEYS # Reset config values when extended def self.extended(base) @@ -55,10 +63,14 @@ self.user_agent = DEFAULT_USER_AGENT self.username = DEFAULT_USERNAME self.password = DEFAULT_PASSWORD self.connection_options = DEFAULT_CONNECTION_OPTIONS self.logger = DEFAULT_LOGGER + self.custom_logger = DEFAULT_CUSTOM_LOGGER + self.custom_logger_options = DEFAULT_CUSTOM_LOGGER_OPTIONS self.proxy = DEFAULT_PROXY + self.faraday_response = DEFAULT_FARADAY_RESPONSE + self.response_big_decimal_conversion = DEFAULT_RESPONSE_BIG_DECIMAL_CONVERSION end end end