stytch 0.1.19 → 0.1.20

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: 3c8b898c1c7e673cc54ef1ee97fdaeb3d436c24f26b251254656b1122687ff6e
4
- data.tar.gz: 7dc74b9fd3d9de595f6d30b51c800ec0942ab048b3ce7696268335140d8c5b56
3
+ metadata.gz: f433032f5886a7845a9ea6567dad3b080c604cf2f9f68dddf13e6370600f11fa
4
+ data.tar.gz: 72a52e55e18c8c196b2df876bf9b469d8076695bf7059271e12f4b93a43d72e9
5
5
  SHA512:
6
- metadata.gz: ce3b4b0172588906bec95a68cc479e74ec77dafcc070e7d3019d1b262a23ff504505c62189ef0b10351b5156bee7ce72e7c6a638e6a4b5dffa96b2d44e61d022
7
- data.tar.gz: db7fb71f2cdba11ab2eac8acbf6f41ecb7f5e50f5bae31d76a9a5305b41529070e5e008c3275b47f4765f065309c6a6a3e21e3a5092b584dd92c45ed8337da1b
6
+ metadata.gz: 3255290e7d8d28f36401441251c248901c0873c8fd61d2a32c10004c9cfed7a74a62d6c07e7afaa004e21e06c903c9bff1268521b5bcd4019e9f1e816b2cda1d
7
+ data.tar.gz: 40e5b0f177e54ac5c27c33093b9c0f54fa3900c39587c802f4dfb26fc8b3f661e71dbb08482b0147f7af3bc0a3ad7edaec53a10c18efbdbd97269c83e14f3e0e
data/README.md CHANGED
@@ -41,4 +41,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
41
41
 
42
42
  ## Code of Conduct
43
43
 
44
- Everyone interacting in the Stytch project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/stytch/blob/master/CODE_OF_CONDUCT.md).
44
+ Everyone interacting in the Stytch project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/stytchauth/stytch-ruby/blob/main/CODE_OF_CONDUCT.md).
@@ -7,16 +7,16 @@ module Stytch
7
7
  method_id:,
8
8
  user_id:,
9
9
  magic_link_url:,
10
- expiration_minutes:,
10
+ expiration_minutes: nil,
11
11
  attributes: {}
12
12
  )
13
13
  request = {
14
14
  method_id: method_id,
15
15
  user_id: user_id,
16
16
  magic_link_url: magic_link_url,
17
- expiration_minutes: expiration_minutes,
18
17
  }
19
18
 
19
+ request[:expiration_minutes] = expiration_minutes if expiration_minutes != nil
20
20
  request[:attributes] = attributes if attributes != {}
21
21
 
22
22
  post("#{PATH}/send", request)
@@ -25,15 +25,15 @@ module Stytch
25
25
  def send_magic_by_email(
26
26
  email:,
27
27
  magic_link_url:,
28
- expiration_minutes:,
28
+ expiration_minutes: nil,
29
29
  attributes: {}
30
30
  )
31
31
  request = {
32
32
  email: email,
33
33
  magic_link_url: magic_link_url,
34
- expiration_minutes: expiration_minutes,
35
34
  }
36
35
 
36
+ request[:expiration_minutes] = expiration_minutes if expiration_minutes != nil
37
37
  request[:attributes] = attributes if attributes != {}
38
38
 
39
39
  post("#{PATH}/send_by_email", request)
@@ -1,3 +1,3 @@
1
1
  module Stytch
2
- VERSION = "0.1.19"
2
+ VERSION = "0.1.20"
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.19
4
+ version: 0.1.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - alex-stytch
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-03-30 00:00:00.000000000 Z
11
+ date: 2021-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday