lib/jiralicious/configuration.rb in jiralicious-0.0.6 vs lib/jiralicious/configuration.rb in jiralicious-0.1.0

- old
+ new

@@ -1,11 +1,12 @@ # encoding: utf-8 module Jiralicious module Configuration - VALID_OPTIONS = [:username, :password, :uri, :api_version] + VALID_OPTIONS = [:username, :password, :uri, :api_version, :auth_type] DEFAULT_USERNAME = nil + DEFAULT_AUTH_TYPE = :basic DEFAULT_PASSWORD = nil DEFAULT_URI = nil DEFAULT_API_VERSION = "latest" def configure @@ -28,8 +29,9 @@ def reset self.username = DEFAULT_USERNAME self.password = DEFAULT_PASSWORD self.uri = DEFAULT_URI self.api_version = DEFAULT_API_VERSION + self.auth_type = DEFAULT_AUTH_TYPE end end end