phony 2.4.0 → 2.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/phony/countries/serbia.rb +3 -2
- data/spec/functional/plausibility_spec.rb +3 -1
- 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: aed9df2814f1140b3ed1ddd142dc6f1854209ebf
|
4
|
+
data.tar.gz: 2c0478d16ee451f32380f8c0b022175ae346853a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53806748c41e12355890d8e282b427c3a3e545de310920c9b72ec9f4eb97abcb583a1d57a43dcb429efd94377a1f753300e130349a29a378c6c7ec15ff3f4516
|
7
|
+
data.tar.gz: 565cae51875903985f6b65635822d39988642616ba5111588831e15b647779c974250aac09db1ac6aef0b4418eb530b1e730e9d06863f82f39598d185fa19d3b
|
@@ -17,11 +17,11 @@ Phony.define do
|
|
17
17
|
/\A\d+\z/ => [3,3]) |
|
18
18
|
one_of(%w(72)) >> split(3,3) | # ISP
|
19
19
|
one_of(%w(60 61 62 63 68 69)) >> matched_split(
|
20
|
-
/\A\d{3}\z/ => [3],
|
20
|
+
/\A\d{3}\z/ => [3],
|
21
21
|
/\A\d{7}\z/ => [3,4],
|
22
22
|
/\A\d+\z/ => [3,3,4]) | # mobile, voicemail (mobile)
|
23
23
|
one_of(%w(66)) >> matched_split(
|
24
|
-
/\A\d{3}\z/ => [3],
|
24
|
+
/\A\d{3}\z/ => [3],
|
25
25
|
/\A\d{6}\z/ => [3,3],
|
26
26
|
/\A\d{7}\z/ => [3,4],
|
27
27
|
/\A\d+\z/ => [3,3,4]) | # mobile, voicemail (mobile)
|
@@ -29,6 +29,7 @@ Phony.define do
|
|
29
29
|
/\A\d{2}\z/ => [2],
|
30
30
|
/\A\d{3}\z/ => [3],
|
31
31
|
/\A\d{6}\z/ => [3,3],
|
32
|
+
/\A\d{7}\z/ => [3,4],
|
32
33
|
/\A\d+\z/ => [3,3,4]) | # mobile, voicemail (mobile)
|
33
34
|
one_of(%w(70)) >> split(3,3) | # universal access
|
34
35
|
one_of(%w(42 78)) >> split(3,3) | # premium rate
|
@@ -721,7 +721,9 @@ describe 'plausibility' do
|
|
721
721
|
'+381 60 123',
|
722
722
|
'+381 60 123 456 7890',
|
723
723
|
'+381 70 123 456',
|
724
|
-
'+381 66 12 1234'
|
724
|
+
'+381 66 12 1234',
|
725
|
+
['+381 64 12 34567', '+381 64 12 3456'],
|
726
|
+
['+381 65 12 34567', '+381 65 12 3456']]
|
725
727
|
it_is_correct_for 'Sierra Leone', :samples => '+232 42 393 972'
|
726
728
|
it_is_correct_for 'Solomon Islands', :samples => '+677 97851'
|
727
729
|
it_is_correct_for 'Somali Democratic Republic', :samples => ['+252 1034 123 45',
|