twilio_phone_verification 1.0.6 → 1.0.7
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 +4 -4
- data/README.md +1 -1
- data/lib/twilio_phone_verification/phonable.rb +1 -1
- data/lib/twilio_phone_verification/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1cc2855472ec9e3a7d71742d422891d328526a7f
|
4
|
+
data.tar.gz: 6e9d93bcee007dc2cb5d8dba8405ca59ae02d63a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa9180cd232e452bcdfb265a28e11d7f61349457e5f2bf066d4b5f27e518dd6d75fc6286c253c43b2dc30c0592f239ceecbcf531511471690cced85b36717b34
|
7
|
+
data.tar.gz: 06a0899f434012cbb6a4e707427423d2dab9a4d713a6c4e719b1ac674b83c24871c3ab037f5e5b143cb95b4d4525715770f5b097716ad5778d2eb2e84b90218e
|
data/README.md
CHANGED
@@ -73,7 +73,7 @@ Now you can call some new methods on your model
|
|
73
73
|
| Method | Description |
|
74
74
|
|---|---|
|
75
75
|
| **`phone_confirmed?`** | Returns `true` if phone was confirmed, or `false` if it wasn't. |
|
76
|
-
| **`send_phone_confirmation`** | Generate and send generated code to user's phone number. Returns `
|
76
|
+
| **`send_phone_confirmation`** | Generate and send generated code to user's phone number. Returns `true` if code was sent, or `false` if it wasn't |
|
77
77
|
| **`confirm_phone_by_code(code)`** | Returns `true` and makes user's phone verified if code was correct, otherwise `false`. |
|
78
78
|
| **`confirm_phone`** | Confirms user's phone number without sending a code |
|
79
79
|
|
@@ -27,7 +27,7 @@ module TwilioPhoneVerification::Phonable
|
|
27
27
|
errors.add(:phone, "Error occured, while sending code. Please try again later.")
|
28
28
|
return false
|
29
29
|
end
|
30
|
-
twilio_res
|
30
|
+
twilio_res[:success]
|
31
31
|
else
|
32
32
|
errors.add(:code, "can be sent once per #{phone_confirmation_delay.to_s} seconds.")
|
33
33
|
return false
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twilio_phone_verification
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vishgleb@mail.ru
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: twilio-ruby
|