svix 0.64.1 → 0.65.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: 3fbd5a169e83000c879f4b89cf6472e9c17e70f16761f0f1c0c02997661f4e3d
4
- data.tar.gz: 11075a47c49e622f48d90e44316956680f082375744e8e9204d0884414fa4bc4
3
+ metadata.gz: 4b56665c0f45462010d249411167386943b4b36268e012b95f07d07e5f0d9f27
4
+ data.tar.gz: 8c372fdae859eb4f0f7304a2c52a7667b36cd9dee2c9e86d4f2bbd4a7b6656e1
5
5
  SHA512:
6
- metadata.gz: bd2175dd907a1f2f6248c0c3bf5b91bf4ba241fed9d145ef441a65be3d873b16ca952381e25c990b352593d9cc1af3676a8bc3cd59cc5c989d33bd1d6c9590fe
7
- data.tar.gz: 6ec42979d4d2d0aa19aaad1cbe0532a6afe4fd5392867c9e458ac65c2988bbc17ac6fb905d18201d8a70ae4ca76e4247f8d448e0e7c3226353f074175abece87
6
+ metadata.gz: e5044be394c475eae2f119810806c8d08263ddf9a8572cc8e1ddce8b0fdcdc6f0f9e39215202a731ff29f81b8419a78f901b476b404d43711c9821359ce9faeb
7
+ data.tar.gz: f54e58b9e0ee03aacb0143f145afdcbcd832e1c9b03154c7038c3695a51ffd1b5034f1ec4afad6e9957c6fe9dc457af2c3a7a35336c045a95c3df77763616e38
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- svix (0.64.1)
4
+ svix (0.65.1)
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.1"
4
+ VERSION = "0.65.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.64.1
4
+ version: 0.65.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-26 00:00:00.000000000 Z
11
+ date: 2022-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus