cogi_phony 0.0.2 → 0.0.3
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/cogi_phony/version.rb +1 -1
- data/lib/cogi_phony.rb +1 -0
- data/spec/cogi_phony_spec.rb +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd45a26e4f22002eb865088e6aac905cd7dc5ca8
|
4
|
+
data.tar.gz: 6addf1ed3a904c993b15eee278dc1fccc2751e70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 579ca69386d6326e0172a3c0488685ccb6934ba3684c986c9558824b0a685bc811f30bf5d1768809689123d34f55583240d05c90dad8b4a1c49d0ca832cabfcd
|
7
|
+
data.tar.gz: fa02a5c1618ecb2b670f9a0041c598e4a457781650093376fb1036750f1cf67c4e3c5c535136b0cbb91fd40752df041b4ec9027c878ceb3b94421fc66cf16f1b
|
data/README.MD
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# CogiPhony [](https://travis-ci.org/hoahm/cogi_phony) [](https://coveralls.io/github/hoahm/cogi_phony) [](https://github.com/hoahm/cogi_phony/issues) [](https://badge.fury.io/rb/cogi_phony)
|
2
2
|
|
3
3
|
This gem provide you library to validate, parsing, format and normalize phone number, detect phone network in Vietnam.
|
4
4
|
|
data/lib/cogi_phony/version.rb
CHANGED
data/lib/cogi_phony.rb
CHANGED
data/spec/cogi_phony_spec.rb
CHANGED
@@ -439,6 +439,8 @@ describe CogiPhony do
|
|
439
439
|
expect(CogiPhony.normalize('(+84)933081090 ')).to eq('+84933081090')
|
440
440
|
expect(CogiPhony.normalize('+8493-308-1090')).to eq('+84933081090')
|
441
441
|
expect(CogiPhony.normalize('+1 (403) 708-9189')).to eq('+14037089189')
|
442
|
+
expect(CogiPhony.normalize('084933081090')).to eq('+84933081090')
|
443
|
+
expect(CogiPhony.normalize('84933081090')).to eq('+84933081090')
|
442
444
|
end
|
443
445
|
|
444
446
|
it 'add plus sign before' do
|