phone_number_validator 0.5.7 → 0.5.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/PhoneNumberValidator/Validator.html +1 -1
- data/doc/created.rid +2 -2
- data/doc/js/navigation.js.gz +0 -0
- data/doc/js/search_index.js.gz +0 -0
- data/doc/js/searcher.js.gz +0 -0
- data/lib/phone_number_validator/validator.rb +1 -1
- data/phone_number_validator.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72c117ad19fa060f5d643e142ed2052a58acf8ed377cde2dbc1a9b54a636f715
|
4
|
+
data.tar.gz: da37be8c29dc41debbfb0c7648f7644887d6c8000d03156105f98160fdc47991
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2966df8442a331549e9e360982222901bafebf604f2f95aff06e9a1dfef529b1cdd674491033100f8f2bf6c693159b47c64b502da2e1954a7ff92464b0abff4
|
7
|
+
data.tar.gz: fd0b9a0a0494778eea274afc32e785af3bbfa2adfa55232367bcbe217d501b0a46f5bc3dfa5aae4318074ffff4dfe3d4e71d85966adc27ee0f41b8cad8868dad
|
@@ -200,7 +200,7 @@ regex the pattern with the phone number</p>
|
|
200
200
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">validate</span>
|
201
201
|
<span class="ruby-keyword">if</span> (<span class="ruby-ivar">@phone_number</span>.<span class="ruby-identifier">match</span>(<span class="ruby-constant">PHONE_NUMBER_REGEX</span>))
|
202
202
|
<span class="ruby-keyword">return</span> <span class="ruby-keyword">true</span>
|
203
|
-
<span class="ruby-keyword">elsif</span> (<span class="ruby-ivar">@phone_number</span> <span class="ruby-operator">==</span> <span class="ruby-string">''</span>)
|
203
|
+
<span class="ruby-keyword">elsif</span> (<span class="ruby-ivar">@phone_number</span> <span class="ruby-operator">==</span> <span class="ruby-string">''</span> <span class="ruby-operator">||</span> <span class="ruby-ivar">@phone_number</span> <span class="ruby-operator">==</span> <span class="ruby-keyword">nil</span>)
|
204
204
|
<span class="ruby-keyword">return</span> <span class="ruby-value">:nil</span>
|
205
205
|
<span class="ruby-keyword">else</span>
|
206
206
|
<span class="ruby-keyword">return</span> <span class="ruby-keyword">false</span>
|
data/doc/created.rid
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
Fri, 23 Nov 2018
|
1
|
+
Fri, 23 Nov 2018 21:09:54 -0800
|
2
2
|
README.rdoc Fri, 23 Nov 2018 19:32:32 -0800
|
3
3
|
lib/phone_number_validator.rb Fri, 23 Nov 2018 20:11:17 -0800
|
4
|
-
lib/phone_number_validator/validator.rb Fri, 23 Nov 2018
|
4
|
+
lib/phone_number_validator/validator.rb Fri, 23 Nov 2018 21:09:35 -0800
|
5
5
|
test/test_phone_number_validator.rb Fri, 23 Nov 2018 19:43:10 -0800
|
6
6
|
bin/pnv Fri, 23 Nov 2018 20:09:29 -0800
|
data/doc/js/navigation.js.gz
CHANGED
Binary file
|
data/doc/js/search_index.js.gz
CHANGED
Binary file
|
data/doc/js/searcher.js.gz
CHANGED
Binary file
|