Skip to content

Commit

Permalink
Avoid deprecation warning in the normal library usage
Browse files Browse the repository at this point in the history
  • Loading branch information
weppos committed Sep 24, 2012
1 parent 379fcb0 commit 24c2860
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/dnsimple/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 24c2860

Please sign in to comment.