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

allow overridable options #77

Merged
merged 2 commits into from
Jan 3, 2016
Merged

Conversation

joelcollinsdc
Copy link
Contributor

I need to use an http proxy so I need to override the typhoeus options. Please let me know if there is a better way to accomplish this...

@@ -55,6 +55,10 @@ def typhoeus_defaults
"User-Agent" => "Mozilla/5.0 (compatible; SiteInspector/#{SiteInspector::VERSION}; +https://github.com/benbalter/site-inspector)"
}
}
unless @typhoeus_options.nil?
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you're okay with truthiness, I recommend if @typhoeus_options over unless @typhoeus_options.nil?.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops.

@konklone
Copy link
Collaborator

👍 Looks like a reasonable API to export for people using the Ruby lib directly.

@benbalter
Copy link
Owner

Looks good. Sorry for the delay. Thanks @joelcollinsdc!

benbalter added a commit that referenced this pull request Jan 3, 2016
@benbalter benbalter merged commit bae162c into benbalter:master Jan 3, 2016
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.

3 participants