phony 2.15.12 → 2.15.13
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/lib/phony/countries/serbia.rb +2 -2
- data/spec/functional/plausibility_spec.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7f96bfbdf7d8396522e35eb71add389ef5a51eff
|
|
4
|
+
data.tar.gz: bc48eaac2fda894921d48bb0ff1de85607a39355
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c24cfe4be6e31c5ff4a37857a1528546e4d234086def93a452acdfb43d5a2bbb247f1e8967c756707387d572f306848eedb191e7d248f8744ebe27cc254f40cb
|
|
7
|
+
data.tar.gz: 7938d62c6936874ab474eda0f0ff30596b3a8f3c833bec4cbd0ca3daf06adc6c7a2024f08ad6cebd64b3be7448b3c73f32337bb23d591c44f4cc47050467187c
|
|
@@ -17,7 +17,7 @@ Phony.define do
|
|
|
17
17
|
/\A\d{5}\z/ => [3,2],
|
|
18
18
|
/\A\d+\z/ => [3,3]) |
|
|
19
19
|
one_of(%w(72)) >> split(3,3) | # ISP
|
|
20
|
-
one_of(%w(60 61
|
|
20
|
+
one_of(%w(60 61 63 68 69)) >> matched_split(
|
|
21
21
|
/\A\d{3}\z/ => [3],
|
|
22
22
|
/\A\d{7}\z/ => [3,4],
|
|
23
23
|
/\A\d+\z/ => [3,3,4]) | # mobile, voicemail (mobile)
|
|
@@ -26,7 +26,7 @@ Phony.define do
|
|
|
26
26
|
/\A\d{6}\z/ => [3,3],
|
|
27
27
|
/\A\d{7}\z/ => [3,4],
|
|
28
28
|
/\A\d+\z/ => [3,3,4]) | # mobile, voicemail (mobile)
|
|
29
|
-
one_of(%w(64 65)) >> matched_split(
|
|
29
|
+
one_of(%w(62 64 65)) >> matched_split(
|
|
30
30
|
/\A\d{2}\z/ => [2],
|
|
31
31
|
/\A\d{3}\z/ => [3],
|
|
32
32
|
/\A\d{6}\z/ => [3,3],
|
|
@@ -214,6 +214,7 @@ describe 'plausibility' do
|
|
|
214
214
|
'+381 70 123 456',
|
|
215
215
|
'+381 66 12 1234',
|
|
216
216
|
['+381 64 12 34567', '+381 64 12 3456'],
|
|
217
|
+
['+381 62 12 34567', '+381 62 12 3456'],
|
|
217
218
|
['+381 65 12 34567', '+381 65 12 3456']]
|
|
218
219
|
it_is_correct_for 'Sierra Leone', :samples => '+232 42 393 972'
|
|
219
220
|
it_is_correct_for 'Solomon Islands', :samples => '+677 97851'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: phony
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.15.
|
|
4
|
+
version: 2.15.13
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Florian Hanke
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2016-01-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: 'Fast international phone number (E164 standard) normalizing, splitting
|
|
14
14
|
and formatting. Lots of formatting options: International (+.., 00..), national
|