twilio_phone_verification 1.0.0 → 1.0.1

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: 07af1f70b989c194fa8eeaa0b8518726fd329433
4
- data.tar.gz: 44096f2a57fd56fa1b7da191d00e9cf7c58c1f32
3
+ metadata.gz: ffc83901f13d0e1f98d64001fb9941373a3d776c
4
+ data.tar.gz: d2b6b3261af9c69ac9d05807dd5764445fe5d038
5
5
  SHA512:
6
- metadata.gz: 734d0d27bb6f16ae5dd739d378823610257763cd8e74b9e3804355b4e157460cb602d739aa502cc47de688059e829da69d5c8cad54f64abd77d22c6ad3aaec83
7
- data.tar.gz: bb561c9aaf7fefdc92a3114226dfb37396e8c7067408d163050c4df1600675b1df2894317e76f7cb29aec39a88b70f835c01d9f31d32b7a5269c575569c70e48
6
+ metadata.gz: 84d1940df68395ccb15ff1a9861f9dd65ca362c1cf78aa5310c35f667b770766b338e543987b9514c782e57da5c74372bb4ca2fc0acd53b64188b70b49e3ab28
7
+ data.tar.gz: 8a9cb8f5746e35f352c64d6392a9732b5cf8660b4f11946ed2d583e93d446b2178b0bb53beddb8b1d574b3042335a63d115ae36a790ba4d4aa6c60e85407b527
data/README.md CHANGED
@@ -63,13 +63,15 @@ Now you can call some new methods on your model
63
63
  | **`confirm_phone_by_code(code)`** | Returns `true` and makes user's phone verified if code was correct, otherwise `false`. |
64
64
  | **`confirm_phone`** | Confirms user's phone number without sending a code |
65
65
 
66
- If one of these methods returns `false`, you can see error in `.errors` method. (exception: `phone_confirmed`)
66
+ If one of these methods returns `false`, you can see error in `.errors` method. (except `phone_confirmed?`)
67
67
 
68
68
  **Note:** Code can be sent only once per 60 seconds, if you call `send_phone_confirmation` few times, it will send only one code.
69
69
 
70
+ **Note:** No need to validate `phone`. It validates `phone` out of the box :)
71
+
70
72
  ## Contributing
71
73
 
72
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/twilio_phone_verification. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
74
+ Bug reports and pull requests are welcome on GitHub at https://github.com/kaikash/twilio_phone_verification. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
73
75
 
74
76
 
75
77
  ## License
@@ -4,6 +4,7 @@ require "twilio_phone_verification/phonable"
4
4
  require "twilio_phone_verification/twilio_service"
5
5
  require "twilio_phone_verification/configuration"
6
6
  require "twilio-ruby"
7
+ require "phony_rails"
7
8
 
8
9
  module TwilioPhoneVerification
9
10
  def self.configure(&block)
@@ -1,3 +1,3 @@
1
1
  module TwilioPhoneVerification
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
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.0
4
+ version: 1.0.1
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-08-12 00:00:00.000000000 Z
11
+ date: 2016-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: twilio-ruby