phony 2.16.6 → 2.16.7
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.rb +2 -1
- data/spec/functional/plausibility_spec.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e622072f5e3f04ef107fdc8341ccebcb643842bff138528fa977334dcf87563
|
4
|
+
data.tar.gz: 141e3f0e06ecd7cfa5fd46bc7ad0db41b0db473ac2f6f54626f5aeee1bc98128
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f279963e4766c3754cca1f4d71b4b3b5b6a7b4b02674ec239bf893b9c60a6a520f0cba61ace62cd2903bb8791a33d0f14d2344238adfc1aec0926ca5a46140aa
|
7
|
+
data.tar.gz: 49e0e02b826af7466eb003023695f9c8860f25ea8c999e694c746c5cb413d016c0cfbe9f8b004e23e26051a53d00e3f9977d05389b44e5007513a84fea6d7a03
|
data/lib/phony/countries.rb
CHANGED
@@ -1166,7 +1166,8 @@ Phony.define do
|
|
1166
1166
|
one_of(%w(500 700 900)) >> split(3,3) | # premium rate
|
1167
1167
|
one_of('800') >> matched_split(
|
1168
1168
|
/\A\d{2}\z/ => [2],
|
1169
|
-
/\A\d
|
1169
|
+
/\A\d{7}\z/ => [2,3,2],
|
1170
|
+
/\A\d+\z/ => [2,3,4]) | # freephone
|
1170
1171
|
one_of(%w(50 52 54 55 56 58)) >> split(3,4) | # mobile
|
1171
1172
|
one_of(%w(2 3 4 6 7 9)) >> split(3,4) |
|
1172
1173
|
fixed(1) >> split(3,4)
|
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.16.
|
4
|
+
version: 2.16.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Hanke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-11-
|
11
|
+
date: 2018-11-16 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
|