stytch 0.1.12 → 0.1.13

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: a852d901e8cc3975662612396da2bcd3578867bc5bd6f70742416892a109d18b
4
- data.tar.gz: 4e53ee2283a0adca79d27e1e5af96d6023eed27e034dc711085f725350ce2f9d
3
+ metadata.gz: b8aa51bb45fcf007fecdcd610723bbabd7329fa67359a22c11d5f1bc34784a56
4
+ data.tar.gz: b00fed4171c89d4faae5fc149621bb2f432d353f77bcbafeb652c8ccf007ef0f
5
5
  SHA512:
6
- metadata.gz: 853b94e64c62729198168eea85ca74f29f050f44bc03e2daa6dd5f409c4d9cd4abb5cf312f4d0861b0011ad2144f6ba597ba1c6730a57e3c30bd2fbbaa380e8e
7
- data.tar.gz: d08b198ab79cf15faeb1b82a4f796cb15194fc0da33df6d209f1c2f4cc966d2584e949cd366be2cadd38e38b30a244e06a7f909979ea3b414fb37c0456c18cad
6
+ metadata.gz: a0ad0f15846df9f982c377f51242d99c5de2fbccaa84c675cb3d4484755fd69b5108e30db93d08fb2a4d9f0aea2490ed3108289c75c92cd1c89637287996693f
7
+ data.tar.gz: 59174086cbbe257b1dd99f0aa26d9893a12905511ab7816e691c5957a0dd92724b757f6a2e193f5a1d3076b478cb664baf298f152f1fbfe262a42f137a6c48c2
@@ -1,11 +1,9 @@
1
1
  require_relative 'endpoints/user'
2
- require_relative 'endpoints/email'
3
2
  require_relative 'endpoints/magic'
4
3
 
5
4
  module Stytch
6
5
  class Client
7
6
  include Stytch::Endpoints::User
8
- include Stytch::Endpoints::Email
9
7
  include Stytch::Endpoints::Magic
10
8
 
11
9
  ENVIRONMENTS = %i[live test].freeze
@@ -46,6 +46,13 @@ module Stytch
46
46
  delete("#{PATH}/#{user_id}")
47
47
  end
48
48
 
49
+ def delete_user_email(
50
+ user_id:,
51
+ email:
52
+ )
53
+ delete("#{PATH}/#{user_id}/emails/#{email}")
54
+ end
55
+
49
56
  private
50
57
 
51
58
  def format_emails(emails)
@@ -1,3 +1,3 @@
1
1
  module Stytch
2
- VERSION = "0.1.12"
2
+ VERSION = "0.1.13"
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.12
4
+ version: 0.1.13
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-21 00:00:00.000000000 Z
11
+ date: 2020-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -57,7 +57,6 @@ files:
57
57
  - bin/setup
58
58
  - lib/stytch.rb
59
59
  - lib/stytch/client.rb
60
- - lib/stytch/endpoints/email.rb
61
60
  - lib/stytch/endpoints/magic.rb
62
61
  - lib/stytch/endpoints/user.rb
63
62
  - lib/stytch/middleware.rb
@@ -1,11 +0,0 @@
1
- module Stytch
2
- module Endpoints
3
- module Email
4
- PATH = "/v1/emails".freeze
5
-
6
- def delete_email(user_id:, email_id:)
7
- delete("#{PATH}/#{email_id}/users/#{user_id}")
8
- end
9
- end
10
- end
11
- end