Permalink
Browse files

Avoid deprecation warning in the normal library usage

  • Loading branch information...
1 parent 379fcb0 commit 24c286046a2fd8a663f082aa80f3e6547c57ef1f @weppos weppos committed Sep 24, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/dnsimple/client.rb
View
@@ -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}"

0 comments on commit 24c2860

Please sign in to comment.