phony 2.17.0 → 2.17.1

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: 719cbc1250612306ada5780c84781e64894b4ff8ff7c3681242a53237d1fee8c
4
- data.tar.gz: 6ffdf26bf946e357021bcac364f4dad7f68871a01ee887a81e9783051671b3a4
3
+ metadata.gz: 36d6e16b362c50a1aa52f246d0b931d74b49cc3fd37e4fe9f5551db542a13cbe
4
+ data.tar.gz: 87ac8a6da326707df10eac2055e74c05a6691a2d4fa47f18733cbb0bbc9b2111
5
5
  SHA512:
6
- metadata.gz: f45108af8f560d29fbf657b7635614ab852116eb14e51117ad2338c0cacb66c28634235008adce46b26e6d9094e457ee7a2087e24c6869d0e17fbfd00e0a546e
7
- data.tar.gz: 2d6d7b7ba0faf7f1e9a323e6d39a6e4b8f0c674b42686d17deaa865d7f3bc44cc5ddc4580bbc7fae15f2b0649512fa14325630f6b8f6abe98cf125fa7e6c3005
6
+ metadata.gz: 3a7a389f94b0c7ad4de95113cbfa391653c4fd9bb0e443ad89b1768a0378edb85c32d32659365792a1c86bb988ee8a698504ec141898fb46f707c76f341e440e
7
+ data.tar.gz: 6077317c2e76ce1db698e02ae0936565b0e3be9b91096f50f49b0ff13a67514b2f6f82f5df7fb9274fa5e5f8f616f912b1abe5b009613e9fcec2ef21a45c1073
@@ -1025,6 +1025,7 @@ Phony.define do
1025
1025
  # Hong Kong, China
1026
1026
 
1027
1027
  country '852',
1028
+ match(/^(800)\d+$/) >> split(2, 4) |
1028
1029
  none >> split(4,4)
1029
1030
 
1030
1031
  # Macao, China
@@ -329,7 +329,8 @@ describe 'country descriptions' do
329
329
  end
330
330
 
331
331
  describe 'Hong Kong' do
332
- it_splits '85212341234', ['852', false, '1234', '1234'] #
332
+ it_splits '85212341234', ['852', false, '1234', '1234'] #Other Numbers
333
+ it_splits '852800121234', ['852', '800', '12', '1234'] #Toll Free
333
334
  end
334
335
 
335
336
  describe 'Hungary' do
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.17.0
4
+ version: 2.17.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Hanke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-26 00:00:00.000000000 Z
11
+ date: 2019-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