lib/gemfury/configuration.rb in gemfury-0.4.19 vs lib/gemfury/configuration.rb in gemfury-0.4.20.beta1

- old
+ new

@@ -4,18 +4,20 @@ # An array of valid keys in the options hash when configuring VALID_OPTIONS_KEYS = [ :user_api_key, :adapter, :endpoint, + :endpoint2, :user_agent, :account].freeze # The adapter that will be used to connect if none is set DEFAULT_ADAPTER = :net_http # The endpoint that will be used to connect if none is set DEFAULT_ENDPOINT = 'https://www.gemfury.com/1/'.freeze + DEFAULT_ENDPOINT2 = 'https://www.gemfury.com/2/'.freeze # The value sent in the 'User-Agent' header if none is set DEFAULT_USER_AGENT = "Gemfury RubyGem #{Gemfury::VERSION}".freeze # Default user API key @@ -47,9 +49,10 @@ # Reset all configuration options to defaults def reset self.user_api_key = DEFAULT_API_KEY self.adapter = DEFAULT_ADAPTER self.endpoint = DEFAULT_ENDPOINT + self.endpoint2 = DEFAULT_ENDPOINT2 self.user_agent = DEFAULT_USER_AGENT self.account = DEFAULT_ACCOUNT self end end