stytch 0.1.9 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dce77f663ed188c6e17b28e8a1152cb505caf33fbe331baf39bddafe27d72ef1
4
- data.tar.gz: 287cd35a182658ddbfea53054ee6009369f93009af2237625f00a409f58dce2e
3
+ metadata.gz: 409176c57386a26803a2c84b7b2db5b7999b26e9feb619a58b00e4507152c2e3
4
+ data.tar.gz: cf38edf9df963fa9cebb595b2471876417757c8a4c788386451440b4ce91ffb2
5
5
  SHA512:
6
- metadata.gz: 2d01625b9eb70a78e699cbf8812d190c607b3b15e14ed54b1c864c5b8d0ed25f4fc60722788ea6814807265803b41cfcd1cdc30dc807f039acb0a5ad908ba6c0
7
- data.tar.gz: 155eae0215c8e8e80e47e890863e094e5aad737301e45b9d62cd0313317d3c593c5fc8d06857950a5693af1de5acf2c1fc3f9893a3cd6f92fce41a631b4765cf
6
+ metadata.gz: fe97179b5728daf0552c6174577ab6769e49083cd3c99a7365759c9db36095a8ffe3a46f191452a89f318777fc83ec1996241f6c3b8d1234bb58f59d4f7d6e7d
7
+ data.tar.gz: '09c91100429121ba1471f411a0b64f816f0bf66f7ac7e5fb7c2ab71b3ebfb79a787f5ec770d32d8c6570241a836e7e233cd7e201755122427cd843ef4f7fcff4'
@@ -72,4 +72,4 @@ module Stytch
72
72
  ).body
73
73
  end
74
74
  end
75
- end
75
+ end
@@ -8,4 +8,4 @@ module Stytch
8
8
  end
9
9
  end
10
10
  end
11
- end
11
+ end
@@ -8,7 +8,6 @@ module Stytch
8
8
  user_id:,
9
9
  magic_link_url:,
10
10
  expiration_minutes:,
11
- template_id: nil,
12
11
  attributes: {}
13
12
  )
14
13
  request = {
@@ -18,7 +17,6 @@ module Stytch
18
17
  expiration_minutes: expiration_minutes,
19
18
  }
20
19
 
21
- request[:template_id] = template_id if template_id != nil
22
20
  request[:attributes] = attributes if attributes != {}
23
21
 
24
22
  post("#{PATH}/send", request)
@@ -28,7 +26,6 @@ module Stytch
28
26
  email:,
29
27
  magic_link_url:,
30
28
  expiration_minutes:,
31
- template_id: nil,
32
29
  attributes: {}
33
30
  )
34
31
  request = {
@@ -37,7 +34,6 @@ module Stytch
37
34
  expiration_minutes: expiration_minutes,
38
35
  }
39
36
 
40
- request[:template_id] = template_id if template_id != nil
41
37
  request[:attributes] = attributes if attributes != {}
42
38
 
43
39
  post("#{PATH}/send_by_email", request)
@@ -49,8 +45,6 @@ module Stytch
49
45
  signup_magic_link_url:,
50
46
  login_expiration_minutes: nil,
51
47
  signup_expiration_minutes: nil,
52
- login_template_id: nil,
53
- signup_template_id: nil,
54
48
  attributes: {}
55
49
  )
56
50
 
@@ -60,9 +54,7 @@ module Stytch
60
54
  signup_magic_link_url: signup_magic_link_url,
61
55
  }
62
56
 
63
- request[:login_template_id] = login_template_id if login_template_id != nil
64
57
  request[:login_expiration_minutes] = login_expiration_minutes if login_expiration_minutes != nil
65
- request[:signup_template_id] = signup_template_id if signup_template_id != nil
66
58
  request[:signup_expiration_minutes] = signup_expiration_minutes if signup_expiration_minutes != nil
67
59
  request[:attributes] = attributes if attributes != {}
68
60
 
@@ -75,8 +67,6 @@ module Stytch
75
67
  invite_magic_link_url:,
76
68
  login_expiration_minutes: nil,
77
69
  invite_expiration_minutes: nil,
78
- login_template_id: nil,
79
- signup_template_id: nil,
80
70
  attributes: {}
81
71
  )
82
72
 
@@ -86,9 +76,7 @@ module Stytch
86
76
  invite_magic_link_url: invite_magic_link_url,
87
77
  }
88
78
 
89
- request[:login_template_id] = login_template_id if login_template_id != nil
90
79
  request[:login_expiration_minutes] = login_expiration_minutes if login_expiration_minutes != nil
91
- request[:invite_template_id] = invite_template_id if invite_template_id != nil
92
80
  request[:invite_expiration_minutes] = invite_expiration_minutes if invite_expiration_minutes != nil
93
81
  request[:attributes] = attributes if attributes != {}
94
82
 
@@ -109,4 +97,4 @@ module Stytch
109
97
  end
110
98
  end
111
99
  end
112
- end
100
+ end
@@ -24,15 +24,15 @@ module Stytch
24
24
 
25
25
  def update_user(
26
26
  user_id:,
27
- name: nil,
27
+ name: {},
28
28
  emails: [],
29
29
  attributes: {}
30
30
  )
31
31
  request = {
32
- name: name,
33
32
  emails: format_emails(emails),
34
33
  }
35
34
 
35
+ request[:name] = name if name != {}
36
36
  request[:attributes] = attributes if attributes != {}
37
37
 
38
38
  put("#{PATH}/#{user_id}", request)
@@ -51,4 +51,4 @@ module Stytch
51
51
  end
52
52
  end
53
53
  end
54
- end
54
+ end
@@ -13,4 +13,4 @@ module Stytch
13
13
 
14
14
  NETWORK_TIMEOUT = 300
15
15
  end
16
- end
16
+ end
@@ -1,3 +1,3 @@
1
1
  module Stytch
2
- VERSION = "0.1.9"
2
+ VERSION = "0.1.10"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stytch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - alex-stytch
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-12-14 00:00:00.000000000 Z
11
+ date: 2020-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday