Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Avoid deprecation warning in the normal library usage

  • Loading branch information...
commit 24c286046a2fd8a663f082aa80f3e6547c57ef1f 1 parent 379fcb0
@weppos weppos authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/dnsimple/client.rb
View
4 lib/dnsimple/client.rb
@@ -83,8 +83,8 @@ def self.load_credentials(path = config_path)
self.username ||= credentials['username']
self.password ||= credentials['password']
self.api_token ||= credentials['api_token']
- self.base_uri = credentials['site'] if credentials['site']
- self.host = credentials['host'] if credentials['host']
+ self.base_uri = credentials['base_uri'] if credentials['base_uri']
+ self.site = credentials['site'] if credentials['site']
self.http_proxy = { :addr => credentials['proxy_addr'], :port => credentials['proxy_port'] }
@credentials_loaded = true
puts "Credentials loaded from #{path}"
Please sign in to comment.
Something went wrong with that request. Please try again.