phony 2.15.19 → 2.15.20
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 +2 -2
- data/spec/functional/plausibility_spec.rb +1 -0
- data/spec/lib/phony/countries_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: 80c3cd9ec064cea03c0a9be28d5b119a70a8b60e
|
4
|
+
data.tar.gz: 786121b9ec8465a6a5767c5b47c793d4d918626d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 315fdfbf53096487118204e4918b65e64510ae444bbb8d84bc57c294fb42a29333d3372dea33e7347b863b30027db3d2939fe9f3eec4260af05abfab459e503e
|
7
|
+
data.tar.gz: 270f784d5596acc5d11d5364737171125a1df8abaee71934b62990a8c00a777b3747660cce26af9ad7dcd4734b433872d6dfbbc61f1a122743faedbe2159309f
|
@@ -17,11 +17,11 @@ 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 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)
|
24
|
-
one_of(%w(66)) >> matched_split(
|
24
|
+
one_of(%w(66 63)) >> matched_split(
|
25
25
|
/\A\d{3}\z/ => [3],
|
26
26
|
/\A\d{6}\z/ => [3,3],
|
27
27
|
/\A\d{7}\z/ => [3,4],
|
@@ -213,6 +213,7 @@ describe 'plausibility' do
|
|
213
213
|
'+381 60 123 456 7890',
|
214
214
|
'+381 70 123 456',
|
215
215
|
'+381 66 12 1234',
|
216
|
+
'+381 63 123 456',
|
216
217
|
['+381 64 12 34567', '+381 64 12 3456'],
|
217
218
|
['+381 62 12 34567', '+381 62 12 3456'],
|
218
219
|
['+381 65 12 34567', '+381 65 12 3456']]
|
@@ -1100,6 +1100,7 @@ describe 'country descriptions' do
|
|
1100
1100
|
it_splits '38160123', %w(381 60 123)
|
1101
1101
|
it_splits '381601234567890', %w(381 60 123 456 7890)
|
1102
1102
|
it_splits '38170123456', %w(381 70 123 456)
|
1103
|
+
it_splits '38163123456', %w(381 63 123 456)
|
1103
1104
|
end
|
1104
1105
|
describe 'Sierra Leone' do
|
1105
1106
|
it_splits '23264629769', %w(232 64 629 769)
|
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.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Hanke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-01 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
|