Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed bug on base_uri setter in DNSimple::Client #19

Merged
merged 1 commit into from
Jun 26, 2012

Conversation

benjaminkeeping
Copy link
Contributor

Hi,

In client.rb, there is a bug on the base_uri setter.
The cli blows up because it tries to deference the base_uri, which is nil.
Its a simple change.
From :
base_uri += '/' if base_uri[//$/].nil?

To:
base_uri += '/' if base_uri && base_uri[//$/].nil?

Cheers,
Ben

@aeden aeden merged commit 6ab9344 into dnsimple:master Jun 26, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants