svix 0.63.0 → 0.64.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/svix/svix.rb +12 -1
- data/lib/svix/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3fbd5a169e83000c879f4b89cf6472e9c17e70f16761f0f1c0c02997661f4e3d
|
4
|
+
data.tar.gz: 11075a47c49e622f48d90e44316956680f082375744e8e9204d0884414fa4bc4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd2175dd907a1f2f6248c0c3bf5b91bf4ba241fed9d145ef441a65be3d873b16ca952381e25c990b352593d9cc1af3676a8bc3cd59cc5c989d33bd1d6c9590fe
|
7
|
+
data.tar.gz: 6ec42979d4d2d0aa19aaad1cbe0532a6afe4fd5392867c9e458ac65c2988bbc17ac6fb905d18201d8a70ae4ca76e4247f8d448e0e7c3226353f074175abece87
|
data/Gemfile.lock
CHANGED
data/lib/svix/svix.rb
CHANGED
@@ -21,7 +21,18 @@ module Svix
|
|
21
21
|
attr_accessor :message_attempt
|
22
22
|
|
23
23
|
def initialize(auth_token, options = SvixOptions.new)
|
24
|
-
|
24
|
+
|
25
|
+
regional_url = nil
|
26
|
+
region = auth_token.split(".").last
|
27
|
+
if region == "us"
|
28
|
+
regional_url = "https://api.us.svix.com"
|
29
|
+
elsif region == "eu"
|
30
|
+
regional_url = "https://api.eu.svix.com"
|
31
|
+
elsif region == "in"
|
32
|
+
regional_url = "https://api.in.svix.com"
|
33
|
+
end
|
34
|
+
|
35
|
+
uri = URI(options.server_url || regional_url)
|
25
36
|
|
26
37
|
configuration = Configuration.new
|
27
38
|
configuration.debugging = options.debug
|
data/lib/svix/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: svix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.64.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Svix
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-07-
|
11
|
+
date: 2022-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|