devise_sms_confirmable 0.1.20 → 0.1.21

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: 37a1ccf905ae8ce4995d9522e7e2e04db39e308d154957c978c1d4898b3ae307
4
- data.tar.gz: 1712b03ef09fc4768d3602384c092173bbdf73ed228d74452f7250661c13fcdb
3
+ metadata.gz: c9b1b6aef5ee7fba9976ad18f1ab390b14f7028645a744125fdbc51e0880ecf0
4
+ data.tar.gz: 3ae010331a42bfe37a8b4780bf4c254104ba4204e9df48562fd5c80d7a1590e6
5
5
  SHA512:
6
- metadata.gz: 7f29072c774183064e047a05477d0666c43c8c22c1e8ba021c2de78e5585b4c21f91356e14566f4f3034647df7f17d3af74d190bcb0973ec6fc225992b40bfee
7
- data.tar.gz: 8d906df0d88a2e0882863bc9f8e88ea22db3b8d755453e0e40067dbb6da089a3299a39fc5b9ea547fe88d4fcb9a469e802b94d8b1af93df7271b1f0500c3b13f
6
+ metadata.gz: 7cf7ee4aa615ba70651f7c988061dfa81d659ffc922110450d130df28166e1e027058135b7a9b26ee58ced97cf62d86bb7d3a99b7735386ccad1b061393e486b
7
+ data.tar.gz: 3585582f3148215b494ec276432bf2b5380878fda5ea819689117f7bea260745da867104da3278247e98cf0d0b89b4a60a337e758e4ace9056658a970f21eaad
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- devise_sms_confirmable (0.1.20)
4
+ devise_sms_confirmable (0.1.21)
5
5
  devise (>= 4.6.2)
6
6
  rails (~> 5.1.4)
7
7
  textris (~> 0.7)
@@ -221,7 +221,7 @@ module Devise
221
221
  confirmable
222
222
  end
223
223
 
224
- def sms_confirm_by_token(sms_confirmation_token)
224
+ def sms_confirm_by_token(sms_confirmation_token, context: nil)
225
225
  confirmable = find_first_by_auth_conditions(sms_confirmation_token: sms_confirmation_token)
226
226
  unless confirmable
227
227
  confirmation_digest = Devise.token_generator.digest(self, :sms_confirmation_token, sms_confirmation_token)
@@ -232,7 +232,7 @@ module Devise
232
232
  # confirmable = find_or_initialize_with_error_by(:sms_confirmation_token, sms_confirmation_token)
233
233
  # after enough time has passed that Devise clients do not use digested tokens
234
234
 
235
- confirmable.sms_confirm if confirmable.persisted?
235
+ confirmable.sms_confirm(context: context) if confirmable.persisted?
236
236
  confirmable
237
237
  end
238
238
 
@@ -1,3 +1,3 @@
1
1
  module DeviseSmsConfirmable
2
- VERSION = "0.1.20"
2
+ VERSION = "0.1.21"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_sms_confirmable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.20
4
+ version: 0.1.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - uuushiro