lib/desk/configuration.rb in desk-1.0.3 vs lib/desk/configuration.rb in desk-1.0.4

- old
+ new

@@ -8,10 +8,11 @@ VALID_OPTIONS_KEYS = [ :adapter, :consumer_key, :consumer_secret, :format, + :logger, :max_requests, :oauth_token, :oauth_token_secret, :proxy, :subdomain, @@ -39,11 +40,16 @@ # The response format appended to the path and sent in the 'Accept' header if none is set # # @note JSON is preferred over XML because it is more concise and faster to parse. DEFAULT_FORMAT = :json - + + # The logger that will be used to log all HTTP requests + # + # @note By default, don't set any logger + DEFAULT_LOGGER = nil + # By default, set the max requests to 60 per minute DEFAULT_MAX_REQUESTS = 60 # By default, don't use the max request feature DEFAULT_USE_MAX_REQUESTS = false @@ -91,9 +97,10 @@ def reset self.adapter = DEFAULT_ADAPTER self.consumer_key = DEFAULT_CONSUMER_KEY self.consumer_secret = DEFAULT_CONSUMER_SECRET self.format = DEFAULT_FORMAT + self.logger = DEFAULT_LOGGER self.max_requests = DEFAULT_MAX_REQUESTS self.oauth_token = DEFAULT_OAUTH_TOKEN self.oauth_token_secret = DEFAULT_OAUTH_TOKEN_SECRET self.proxy = DEFAULT_PROXY self.subdomain = DEFAULT_SUBDOMAIN