lib/spark_api/configuration.rb in spark_api-1.4.24 vs lib/spark_api/configuration.rb in spark_api-1.4.25

- old
+ new

@@ -9,11 +9,11 @@ end # valid configuration options VALID_OPTION_KEYS = [:api_key, :api_secret, :api_user, :endpoint, :user_agent, :version, :ssl, :ssl_verify, :oauth2_provider, :authentication_mode, - :auth_endpoint, :callback, :compress, :timeout, :middleware].freeze + :auth_endpoint, :callback, :compress, :timeout, :middleware, :request_id_chain].freeze OAUTH2_KEYS = [:authorization_uri, :access_uri, :client_id, :client_secret, # Requirements for authorization_code grant type :redirect_uri, # Requirements for password grant type :username, :password, @@ -42,10 +42,11 @@ DEFAULT_SSL_VERIFY = true DEFAULT_OAUTH2 = nil DEFAULT_COMPRESS = false DEFAULT_TIMEOUT = 5 # seconds DEFAULT_MIDDLEWARE = 'spark_api' + DEFAULT_REQUEST_ID_CHAIN = nil X_SPARK_API_USER_AGENT = "X-SparkApi-User-Agent" attr_accessor *VALID_OPTION_KEYS def configure @@ -76,9 +77,10 @@ self.ssl_verify = DEFAULT_SSL_VERIFY self.version = DEFAULT_VERSION self.compress = DEFAULT_COMPRESS self.timeout = DEFAULT_TIMEOUT self.middleware = DEFAULT_MIDDLEWARE + self.request_id_chain = DEFAULT_REQUEST_ID_CHAIN self end end end