twilio_phone_verification 1.0.6 → 1.0.7

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
  SHA1:
3
- metadata.gz: 27778dbabf63da384471afc9e946dde4dab8cc10
4
- data.tar.gz: 4b5378d754384bc9e6f8f9d90dfa23746053fc39
3
+ metadata.gz: 1cc2855472ec9e3a7d71742d422891d328526a7f
4
+ data.tar.gz: 6e9d93bcee007dc2cb5d8dba8405ca59ae02d63a
5
5
  SHA512:
6
- metadata.gz: 1e58cf09a5d61eec16e235de2c78b5eacde5e4befcb6e69ac582774005de73dc49dcc17f27f7679a4dc4437cf4e2129a92a4ea993e99b46b0e2f8da7aa4b6bbf
7
- data.tar.gz: 1763ba7e62692279a9ffd89f35bdaac4e6a0413b8048772ac755f181647e53a29152e0103b035dea1e8dbc5b4ae4f2aed798f432f1671d74a4873ac4109bd6a6
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 `{success: true}` if code was sent, or `false` if it wasn't |
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
@@ -1,3 +1,3 @@
1
1
  module TwilioPhoneVerification
2
- VERSION = "1.0.6"
2
+ VERSION = "1.0.7"
3
3
  end
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.6
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-03 00:00:00.000000000 Z
11
+ date: 2016-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: twilio-ruby