authsignal-ruby 2.1.2 → 2.1.3

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: 48ebd8ec89b609d681ae6277fedb6066ce662e6b951e6a36b0d8d21c36d4e776
4
- data.tar.gz: 37c41a67b2b9d0979aff65ced189a4e400245911f78ed02607d7fadf26a5a005
3
+ metadata.gz: 261ad3aa9e626f62f4b8ec843b0ec4516a157b083980cae0ed7c8641f16b5088
4
+ data.tar.gz: 56d2f9ad45e5f6330999034ee7ac4667f5864bd0a2a745941f11edca0e840395
5
5
  SHA512:
6
- metadata.gz: 96e71fb2bb2eb01015b9860d47c2aed8e9d85a8dda8d7387c140130c8dda0cb78663275dcfa285e2b9ab4b292af96343d1bf2bca71b14234ac8db03c039e24d2
7
- data.tar.gz: bd96e884f222202d34f0f97607c76a46294b70aeb3358668ff47cc4b3f31da98935d32b51b0a38efb0fb253c4c52ea58d9cc4b48a2a48350ba55c9f4ea8159fa
6
+ metadata.gz: eac78f4ddab0dbb2d042c2d77ce424b512524cb0c1b31c5c956793e651441a4b2d93c1611a195eadfe53b4d377c1ad404a2190ee2b88add9a5867c40ba5c396e
7
+ data.tar.gz: a0178eda449c5707522d441d680fd7ea7586fa21694a4ca7ea14a24b83543b9cfbcdf0613a00c2ad7d5f9cc10465ac3d767c8449dad6a18aaa44e85298fe96cd
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- authsignal-ruby (2.1.2)
4
+ authsignal-ruby (2.1.3)
5
5
  httparty (~> 0.21.0)
6
6
 
7
7
  GEM
@@ -72,6 +72,10 @@ module Authsignal
72
72
  post("/users/#{ERB::Util.url_encode(user_id)}/authenticators", body: JSON.generate(authenticator))
73
73
  end
74
74
 
75
+ def delete_user_authenticator(user_id:, user_authenticator_id:)
76
+ delete("/users/#{ERB::Util.url_encode(user_id)}/authenticators/#{ERB::Util.url_encode(user_authenticator_id)}")
77
+ end
78
+
75
79
  def get(path, query: {})
76
80
  self.class.get(path, headers: @headers, basic_auth: {username: @api_key})
77
81
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Authsignal
4
- VERSION = "2.1.2"
4
+ VERSION = "2.1.3"
5
5
  end
data/lib/authsignal.rb CHANGED
@@ -54,6 +54,11 @@ module Authsignal
54
54
  response
55
55
  end
56
56
 
57
+ def delete_user_authenticator(user_id:, user_authenticator_id: )
58
+ response = Client.new.delete_user_authenticator(user_id: user_id, user_authenticator_id: user_authenticator_id)
59
+ response.transform_keys { |key| underscore(key) }.transform_keys(&:to_sym)
60
+ end
61
+
57
62
  def track(event, options={})
58
63
  raise ArgumentError, "Action Code is required" unless event[:action].to_s.length > 0
59
64
  raise ArgumentError, "User ID value" unless event[:user_id].to_s.length > 0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authsignal-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - justinsoong