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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a692a55cbcbd9468fce9e49b6ea2e866695de5b32683b8e70fdeed9148bc26fa
4
- data.tar.gz: 339527a9c152e964205ddc42f4c701ede918aa36d3c4fb861335800c78ad9e91
3
+ metadata.gz: 1e622072f5e3f04ef107fdc8341ccebcb643842bff138528fa977334dcf87563
4
+ data.tar.gz: 141e3f0e06ecd7cfa5fd46bc7ad0db41b0db473ac2f6f54626f5aeee1bc98128
5
5
  SHA512:
6
- metadata.gz: 72558d720a71eeab6dd18b4b0c85c02e640688d0337a82a288434fec29c3f38df3b706ceef959f76b618b1c62f77bc8c792160c9f454115f419903ca8c9a15a6
7
- data.tar.gz: bf64d35ba470fd802f5c63aec263703312ed5a3cf5266bc736c396d9c337ff3986619f90f733a94405e2fe935633fcfc0d57d24ccde9ab26ca06daaded00467f
6
+ metadata.gz: f279963e4766c3754cca1f4d71b4b3b5b6a7b4b02674ec239bf893b9c60a6a520f0cba61ace62cd2903bb8791a33d0f14d2344238adfc1aec0926ca5a46140aa
7
+ data.tar.gz: 49e0e02b826af7466eb003023695f9c8860f25ea8c999e694c746c5cb413d016c0cfbe9f8b004e23e26051a53d00e3f9977d05389b44e5007513a84fea6d7a03
@@ -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+\z/ => [2,3,4])| # freephone
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)
@@ -495,6 +495,7 @@ describe 'plausibility' do
495
495
  ]
496
496
  it_is_correct_for 'United Arab Emirates', :samples => ['+971 800 12',
497
497
  '+971 800 12 345 6789',
498
+ '+971 800 12 345 67',
498
499
  '+971 2 123 4567',
499
500
  '+971 50 641 2345',
500
501
  '+971 600 641 234',
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.6
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-13 00:00:00.000000000 Z
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