phony 2.15.38 → 2.15.39

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a15cdae263b64d27ac8b24e3d1398186ac8d1554
4
- data.tar.gz: 083e0ee93d09ca412426db832608bbcd125d2fb0
3
+ metadata.gz: b5599428edc732f14e6af39ae34748798321b46e
4
+ data.tar.gz: f7636a373111f4e80201ea14bbb4d90a6f11ac6b
5
5
  SHA512:
6
- metadata.gz: 4f9eb133a9b741551a747b762eeb6fd262c0a9648f3965464fb84b0e480711f3e41abac69712ed5c91278fb97e491a19bff04468ca531c1a97f5331c83c1481b
7
- data.tar.gz: f4406104348e256dd1533ee1d9f492d5425940c00d506d26949dafa172d1e18869b9e6b40d0bfbaf7622bdd5bb5e0febcb24203f9aa5d74087282ad20dfb9fb8
6
+ metadata.gz: ce455ab036c7107c0960fe44178ef23a777b96a1333ab8bf7199a84e41ad4f0101e8b67b8e50520965d75879ef10d2101e9f6c07a5f9d015bdfbac590a3518d2
7
+ data.tar.gz: ee478bb7ccd31c974b43c6e6d1116f4262f697ec5c0b38a5c3cfa3cc34f08ab2347b846d81775e689ded40b5ba662531314e57c3d4c7fdce040938a02d09286e
@@ -96,7 +96,8 @@ Phony.define do
96
96
  # http://en.wikipedia.org/wiki/Telephone_numbers_in_Belgium
97
97
  #
98
98
  country '32', trunk('0') |
99
- match(/^(70|800|90\d)\d+$/) >> split(3,3) | # Service
99
+ match(/^(7[08])\d+$/) >> split(3,3) | # Premium and national rate Services
100
+ match(/^(800|90\d)\d+$/) >> split(2,3) | # Toll free service and premium numbers
100
101
  match(/^(46[0568])\d{6}$/) >> split(2,2,2) | # Mobile (Lycamobile, Telenet, Proximus 0460)
101
102
  match(/^(4[789]\d)\d{6}$/) >> split(2,2,2) | # Mobile
102
103
  one_of('2','3','4','9') >> split(3,2,2) | # Short NDCs
@@ -1114,7 +1115,7 @@ Phony.define do
1114
1115
  one_of('800') >> matched_split(
1115
1116
  /\A\d{2}\z/ => [2],
1116
1117
  /\A\d+\z/ => [2,3,4]) | # freephone
1117
- one_of(%w(50 52 54 55 56)) >> split(3,4) | # mobile
1118
+ one_of(%w(50 52 54 55 56 58)) >> split(3,4) | # mobile
1118
1119
  one_of(%w(2 3 4 6 7 9)) >> split(3,4) |
1119
1120
  fixed(1) >> split(3,4)
1120
1121
 
@@ -345,7 +345,8 @@ describe 'plausibility' do
345
345
  '+971 600 641 234',
346
346
  '+971 500 641 234',
347
347
  '+971 200 641 234',
348
- '+971 54 999 9999']
348
+ '+971 54 999 9999',
349
+ '+971 58 999 9999']
349
350
 
350
351
  it_is_correct_for 'United Kingdom', :samples => ['+44 1827 50111'], :invalid_samples => ['+44 0000 123456']
351
352
 
@@ -105,6 +105,9 @@ describe 'country descriptions' do
105
105
  it_splits '32475279584', ['32', '475', '27', '95', '84'] # mobile
106
106
  it_splits '32468279584', ['32', '468', '27', '95', '84'] # mobile (Telenet)
107
107
  it_splits '3270123123', ['32', '70', '123', '123'] # Bus Service?
108
+ it_splits '3278123123', ['32', '78', '123', '123'] # National rate service
109
+ it_splits '3290123123', ['32', '901', '23', '123'] # National rate service
110
+ it_splits '3280080404', ['32', '800', '80', '404'] # Apple support
108
111
  end
109
112
 
110
113
  describe 'Belize' do
@@ -1262,6 +1265,7 @@ describe 'country descriptions' do
1262
1265
  it_splits '971500641234', %w(971 500 641 234)
1263
1266
  it_splits '971200641234', %w(971 200 641 234)
1264
1267
  it_splits '971549999999', %w(971 54 999 9999)
1268
+ it_splits '971589999999', %w(971 58 999 9999)
1265
1269
  end
1266
1270
  describe 'Uruguay (Eastern Republic of)' do
1267
1271
  it_splits '59880012345', %w(598 800 123 45)
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.38
4
+ version: 2.15.39
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-12-09 00:00:00.000000000 Z
11
+ date: 2017-01-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