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

Ruby library: fix region detection #600

Merged
merged 1 commit into from
Jul 30, 2022
Merged

Ruby library: fix region detection #600

merged 1 commit into from
Jul 30, 2022

Conversation

gadirlih
Copy link
Contributor

Motivation

Region detection fails to detect region automatically

Solution

Swap the places of the operands around the || operator. That way if the region is detectable using AUTH_TOKEN it will use that, otherwise it will use default url.

@tasn tasn added the lib/ruby Ruby client library label Jul 30, 2022
@tasn tasn changed the title fix region detection Ruby library: fix region detection Jul 30, 2022
ruby/lib/svix/svix.rb Outdated Show resolved Hide resolved
Copy link
Member

@tasn tasn left a comment

Choose a reason for hiding this comment

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

Thanks a lot, looks great!

@tasn tasn merged commit efce269 into svix:main Jul 30, 2022
@tasn
Copy link
Member

tasn commented Jul 30, 2022

We'll release a new version in the coming days!

@gadirlih
Copy link
Contributor Author

Great!

@gadirlih gadirlih deleted the fix-region-detection branch July 30, 2022 21:01
@tasn
Copy link
Member

tasn commented Aug 4, 2022

New version is being released, thanks again!

@gadirlih
Copy link
Contributor Author

gadirlih commented Aug 4, 2022

Great! Thanks for the update!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lib/ruby Ruby client library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants