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

fix: deprecate domain sharding #43

Merged
merged 4 commits into from
Apr 24, 2019
Merged

Conversation

sherwinski
Copy link
Contributor

This PR begins the process of deprecating, and eventually removing, domain sharding from the imgix-rb library.
The Imgix::Client object will now throw a warning when users attempt to initialize it by passing in multiple domains in the form of an array.

@sherwinski sherwinski requested a review from jayeb April 23, 2019 23:44
@@ -59,7 +60,9 @@ def host_for_crc(path)
end

def host_for_cycle
@hosts_cycle = @hosts.cycle unless @hosts_cycle
Copy link
Contributor Author

@sherwinski sherwinski Apr 23, 2019

Choose a reason for hiding this comment

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

Incidentally, this line was throwing an initialization warning that got in the way when we used assert_output to check for the expected deprecation warning.

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.

2 participants