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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b76cc9aa22afc6c4eac2ff9a8af3b8b3b3fb534ceb770252ced3ba6bb7fb05ca
4
- data.tar.gz: 735f20fa88825c7f18c441a7951e94ba43c2e85170f200839c44d4b104ef0c0c
3
+ metadata.gz: 3fbd5a169e83000c879f4b89cf6472e9c17e70f16761f0f1c0c02997661f4e3d
4
+ data.tar.gz: 11075a47c49e622f48d90e44316956680f082375744e8e9204d0884414fa4bc4
5
5
  SHA512:
6
- metadata.gz: 8baa690f3b147ba1390c634bbe01415454329d7d27cdd622107895bb7d8ef610a792a8cfba8c5be30c2ba110edca2f02041861ec082c8d20542b2061200b9a68
7
- data.tar.gz: e99c7a48b4c4b13ebe4836b70ec304d68cfd25af8650a6e31725f2ee4206347255573aaa7a29cecf2c32c492f7a8c0fd3dc28a8ea46a2f861317a4f922302305
6
+ metadata.gz: bd2175dd907a1f2f6248c0c3bf5b91bf4ba241fed9d145ef441a65be3d873b16ca952381e25c990b352593d9cc1af3676a8bc3cd59cc5c989d33bd1d6c9590fe
7
+ data.tar.gz: 6ec42979d4d2d0aa19aaad1cbe0532a6afe4fd5392867c9e458ac65c2988bbc17ac6fb905d18201d8a70ae4ca76e4247f8d448e0e7c3226353f074175abece87
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- svix (0.63.0)
4
+ svix (0.64.1)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
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
- uri = URI(options.server_url)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Svix
4
- VERSION = "0.63.0"
4
+ VERSION = "0.64.1"
5
5
  end
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.63.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-13 00:00:00.000000000 Z
11
+ date: 2022-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus