svix 0.64.2 → 0.65.0

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: efb1ddfa12d5d1811807ee3c01afe581030704b614a8227a1673d0b685cac65e
4
- data.tar.gz: 06a790f4e352ad5bc3d2ee7defee7ec485c229b43641df95c4eaca7e1d465ff0
3
+ metadata.gz: 98a2fad59ff26b0991230800248415ec136350710f45b51b45c013e293ccc321
4
+ data.tar.gz: 99a8fbc197b4583dcc8ade6824cd59f7ebf496a8a1f5b10fbe6d14d41e13de23
5
5
  SHA512:
6
- metadata.gz: 4de8c481dd8d46a802847563b3dc4e3b99441896dde76d9ccad6a53e137e97b67785d2a59609510ff64a0c19835d087cd625380c523da1eced958588fbe64244
7
- data.tar.gz: c8fb2d1614d5bba9362fb9b38697fc9697230847bf72556b4823aab6a3451531a8245bf680ef70eef1909e55c1c96d62c2611201ca6d31d5af9d9ad5a0281aed
6
+ metadata.gz: 226762fd40d3959cb7435ac9827b5091fde8ae66ccdab9dd5293cd462677c161bedf39c2bfe6890c4e38f4a7cf55c97112c0636e852dc1e6fbe0ddc75cfb6aed
7
+ data.tar.gz: d53fd69d31eeb5c4f8aaf1bf5bb3567fca3f374df6a85af057e8c59e27fc5a22eb00d8f5e6a4ad05e7c16c3e3eabde610ae2bd9aae2acf4f293f8dba5f0f7002
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- svix (0.64.2)
4
+ svix (0.65.0)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -19,8 +19,8 @@ module Svix
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Get App Portal Access
23
- # Use this function to get magic links (and authentication codes) for connecting your users to the Application Portal.
22
+ # Get Consumer App Portal Access
23
+ # Use this function to get magic links (and authentication codes) for connecting your users to the Consumer Application Portal.
24
24
  # @param app_id [String]
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @option opts [String] :idempotency_key The request's idempotency key
@@ -30,8 +30,8 @@ module Svix
30
30
  data
31
31
  end
32
32
 
33
- # Get App Portal Access
34
- # Use this function to get magic links (and authentication codes) for connecting your users to the Application Portal.
33
+ # Get Consumer App Portal Access
34
+ # Use this function to get magic links (and authentication codes) for connecting your users to the Consumer Application Portal.
35
35
  # @param app_id [String]
36
36
  # @param [Hash] opts the optional parameters
37
37
  # @option opts [String] :idempotency_key The request's idempotency key
data/lib/svix/svix.rb CHANGED
@@ -5,7 +5,7 @@ module Svix
5
5
  attr_accessor :debug
6
6
  attr_accessor :server_url
7
7
 
8
- def initialize(debug = false, server_url = "https://api.svix.com")
8
+ def initialize(debug = false, server_url = nil)
9
9
  @debug=debug
10
10
  @server_url=server_url
11
11
  end
@@ -22,7 +22,6 @@ module Svix
22
22
 
23
23
  def initialize(auth_token, options = SvixOptions.new)
24
24
 
25
- regional_url = nil
26
25
  region = auth_token.split(".").last
27
26
  if region == "us"
28
27
  regional_url = "https://api.us.svix.com"
@@ -30,6 +29,8 @@ module Svix
30
29
  regional_url = "https://api.eu.svix.com"
31
30
  elsif region == "in"
32
31
  regional_url = "https://api.in.svix.com"
32
+ else
33
+ regional_url = "https://api.svix.com"
33
34
  end
34
35
 
35
36
  uri = URI(options.server_url || regional_url)
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.64.2"
4
+ VERSION = "0.65.0"
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.64.2
4
+ version: 0.65.0
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-28 00:00:00.000000000 Z
11
+ date: 2022-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus