phonelib 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e94dee20354de9770e7eed6425478b5acb4c90c5
4
+ data.tar.gz: e0847fd8554de2fd5c4d23a1a9b3f38c1ba282e6
5
+ SHA512:
6
+ metadata.gz: 3e52f882100d15ff7608992574d1238f6a7ee03118bae4784f254ae4533c61b781e8524374c8044a77b331060a5968bb4013e1e6ed749b062dba747297f65326
7
+ data.tar.gz: b7790648c9e1374d66e7a5c4a61d5da592e30076a25cfa73b35220d54ce58740dcda633c282c894406f6b114f9555ad13fecc3c027cdfd9285c6506684ab66f8
@@ -234,7 +234,17 @@
234
234
  <territory id="AF" countryCode="93" internationalPrefix="00"
235
235
  nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
236
236
  <availableFormats>
237
+ <!-- Formatting based primarily on ITU document. -->
237
238
  <numberFormat pattern="([2-7]\d)(\d{3})(\d{4})">
239
+ <leadingDigits>
240
+ [2-6]|
241
+ 7[013-9]
242
+ </leadingDigits>
243
+ <format>$1 $2 $3</format>
244
+ </numberFormat>
245
+ <!-- Formatting 729 numbers differently based on numbers seen online. -->
246
+ <numberFormat pattern="(729)(\d{3})(\d{3})">
247
+ <leadingDigits>729</leadingDigits>
238
248
  <format>$1 $2 $3</format>
239
249
  </numberFormat>
240
250
  </availableFormats>
@@ -253,7 +263,12 @@
253
263
  <exampleNumber>234567890</exampleNumber>
254
264
  </fixedLine>
255
265
  <mobile>
256
- <nationalNumberPattern>7[057-9]\d{7}</nationalNumberPattern>
266
+ <nationalNumberPattern>
267
+ 7(?:
268
+ [057-9]\d{7}|
269
+ 29\d{6}
270
+ )
271
+ </nationalNumberPattern>
257
272
  <possibleNumberPattern>\d{9}</possibleNumberPattern>
258
273
  <exampleNumber>701234567</exampleNumber>
259
274
  </mobile>
@@ -324,12 +339,14 @@
324
339
  <exampleNumber>9002123456</exampleNumber>
325
340
  </premiumRate>
326
341
  <personalNumber>
327
- <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
342
+ <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
328
343
  <nationalNumberPattern>
329
344
  5(?:
330
345
  00|
331
346
  33|
332
- 44
347
+ 44|
348
+ 66|
349
+ 77
333
350
  )[2-9]\d{6}
334
351
  </nationalNumberPattern>
335
352
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -399,12 +416,14 @@
399
416
  <exampleNumber>9002123456</exampleNumber>
400
417
  </premiumRate>
401
418
  <personalNumber>
402
- <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
419
+ <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
403
420
  <nationalNumberPattern>
404
421
  5(?:
405
422
  00|
406
423
  33|
407
- 44
424
+ 44|
425
+ 66|
426
+ 77
408
427
  )[2-9]\d{6}
409
428
  </nationalNumberPattern>
410
429
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -1146,12 +1165,14 @@
1146
1165
  <exampleNumber>9002123456</exampleNumber>
1147
1166
  </premiumRate>
1148
1167
  <personalNumber>
1149
- <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
1168
+ <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
1150
1169
  <nationalNumberPattern>
1151
1170
  5(?:
1152
1171
  00|
1153
1172
  33|
1154
- 44
1173
+ 44|
1174
+ 66|
1175
+ 77
1155
1176
  )[2-9]\d{6}
1156
1177
  </nationalNumberPattern>
1157
1178
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -1877,12 +1898,14 @@
1877
1898
  <exampleNumber>9002123456</exampleNumber>
1878
1899
  </premiumRate>
1879
1900
  <personalNumber>
1880
- <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
1901
+ <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
1881
1902
  <nationalNumberPattern>
1882
1903
  5(?:
1883
1904
  00|
1884
1905
  33|
1885
- 44
1906
+ 44|
1907
+ 66|
1908
+ 77
1886
1909
  )[2-9]\d{6}
1887
1910
  </nationalNumberPattern>
1888
1911
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -2421,7 +2444,7 @@
2421
2444
  <nationalNumberPattern>
2422
2445
  6(?:
2423
2446
  [0-689]\d|
2424
- 7[0-2]
2447
+ 7[0-5]
2425
2448
  )\d{5}|
2426
2449
  7\d{7}
2427
2450
  </nationalNumberPattern>
@@ -2839,12 +2862,14 @@
2839
2862
  <exampleNumber>9002123456</exampleNumber>
2840
2863
  </premiumRate>
2841
2864
  <personalNumber>
2842
- <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
2865
+ <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
2843
2866
  <nationalNumberPattern>
2844
2867
  5(?:
2845
2868
  00|
2846
2869
  33|
2847
- 44
2870
+ 44|
2871
+ 66|
2872
+ 77
2848
2873
  )[2-9]\d{6}
2849
2874
  </nationalNumberPattern>
2850
2875
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -3185,12 +3210,14 @@
3185
3210
  <exampleNumber>9002123456</exampleNumber>
3186
3211
  </premiumRate>
3187
3212
  <personalNumber>
3188
- <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
3213
+ <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
3189
3214
  <nationalNumberPattern>
3190
3215
  5(?:
3191
3216
  00|
3192
3217
  33|
3193
- 44
3218
+ 44|
3219
+ 66|
3220
+ 77
3194
3221
  )[2-9]\d{6}
3195
3222
  </nationalNumberPattern>
3196
3223
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -3712,12 +3739,14 @@
3712
3739
  <exampleNumber>9002123456</exampleNumber>
3713
3740
  </premiumRate>
3714
3741
  <personalNumber>
3715
- <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
3742
+ <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
3716
3743
  <nationalNumberPattern>
3717
3744
  5(?:
3718
3745
  00|
3719
3746
  33|
3720
- 44
3747
+ 44|
3748
+ 66|
3749
+ 77
3721
3750
  )[2-9]\d{6}
3722
3751
  </nationalNumberPattern>
3723
3752
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -4325,7 +4354,9 @@
4325
4354
  <intlFormat>NA</intlFormat>
4326
4355
  </numberFormat>
4327
4356
  <!-- 100xx and 95xxx(x) numbers with area codes (these numbers without an area code are now
4328
- dealt with by ShortNumberMetadata.xml). -->
4357
+ dealt with by ShortNumberMetadata.xml) and 96xxx(x) numbers with area codes (we don't
4358
+ support these as short numbers because they are only unique within a province, not
4359
+ within a country). -->
4329
4360
  <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{2})(\d{5,6})"
4330
4361
  carrierCodeFormattingRule="$CC $FG">
4331
4362
  <leadingDigits>
@@ -4340,7 +4371,7 @@
4340
4371
  2\d
4341
4372
  )(?:
4342
4373
  10|
4343
- 95
4374
+ 9[56]
4344
4375
  )
4345
4376
  </leadingDigits>
4346
4377
  <leadingDigits>
@@ -4349,7 +4380,7 @@
4349
4380
  2\d
4350
4381
  )(?:
4351
4382
  100|
4352
- 95
4383
+ 9[56]
4353
4384
  )
4354
4385
  </leadingDigits>
4355
4386
  <format>$1 $2</format>
@@ -4361,7 +4392,7 @@
4361
4392
  <leadingDigits>
4362
4393
  [3-9]\d{2}(?:
4363
4394
  10|
4364
- 95
4395
+ 9[56]
4365
4396
  )
4366
4397
  </leadingDigits>
4367
4398
  <format>$1 $2</format>
@@ -4685,8 +4716,67 @@
4685
4716
  <exampleNumber>16812345</exampleNumber>
4686
4717
  </premiumRate>
4687
4718
  <sharedCost>
4688
- <nationalNumberPattern>400\d{7}</nationalNumberPattern>
4689
- <possibleNumberPattern>\d{10}</possibleNumberPattern>
4719
+ <!-- 96xxx(x) numbers with area codes are included here. Their costs are not well
4720
+ documented, but they are thought to be mostly local costs with certain exceptions. We
4721
+ don't support them for 4-digit area codes though, as they don't seem to be used there
4722
+ based on online searches. -->
4723
+ <nationalNumberPattern>
4724
+ 400\d{7}|
4725
+ (?:
4726
+ 10|
4727
+ 2[0-57-9]|
4728
+ 3(?:
4729
+ [157]\d|
4730
+ 35|
4731
+ 49|
4732
+ 9[1-68]
4733
+ )|
4734
+ 4(?:
4735
+ [17]\d|
4736
+ 2[179]|
4737
+ [35][1-9]|
4738
+ 6[4789]|
4739
+ 8[23]
4740
+ )|
4741
+ 5(?:
4742
+ [1357]\d|
4743
+ 2[37]|
4744
+ 4[36]|
4745
+ 6[1-46]|
4746
+ 80|
4747
+ 9[1-9]
4748
+ )|
4749
+ 6(?:
4750
+ 3[1-5]|
4751
+ 6[0238]|
4752
+ 9[12]
4753
+ )|
4754
+ 7(?:
4755
+ 01|
4756
+ [1579]\d|
4757
+ 2[248]|
4758
+ 3[014-9]|
4759
+ 4[3-6]|
4760
+ 6[023689]
4761
+ )|
4762
+ 8(?:
4763
+ 1[236-8]|
4764
+ 2[5-7]|
4765
+ [37]\d|
4766
+ 5[1-9]|
4767
+ 8[3678]|
4768
+ 9[1-8]
4769
+ )|
4770
+ 9(?:
4771
+ 0[1-3689]|
4772
+ 1[1-79]|
4773
+ [379]\d|
4774
+ 4[13]|
4775
+ 5[1-5]
4776
+ )
4777
+ )96\d{3,4}
4778
+ </nationalNumberPattern>
4779
+ <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
4690
4780
  <exampleNumber>4001234567</exampleNumber>
4691
4781
  </sharedCost>
4692
4782
  </territory>
@@ -4841,15 +4931,17 @@
4841
4931
  <exampleNumber>9001234567</exampleNumber>
4842
4932
  </premiumRate>
4843
4933
  <voip>
4844
- <!-- Including trunking service numbers starting with 5100. -->
4934
+ <!-- Including trunking service numbers starting with 5100. 4001 (callmyway.com) was added
4935
+ from an open-source bug report supported by numbers found online. -->
4845
4936
  <nationalNumberPattern>
4846
4937
  210[0-6]\d{4}|
4847
4938
  4(?:
4848
4939
  0(?:
4849
- [04]0\d{4}|
4940
+ 0[01]\d{4}|
4850
4941
  10[0-3]\d{3}|
4851
4942
  2900\d{2}|
4852
4943
  3[01]\d{4}|
4944
+ 40\d{4}|
4853
4945
  5\d{5}|
4854
4946
  70[01]\d{3}|
4855
4947
  8[0-2]\d{4}
@@ -5720,12 +5812,14 @@
5720
5812
  <exampleNumber>9002123456</exampleNumber>
5721
5813
  </premiumRate>
5722
5814
  <personalNumber>
5723
- <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
5815
+ <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
5724
5816
  <nationalNumberPattern>
5725
5817
  5(?:
5726
5818
  00|
5727
5819
  33|
5728
- 44
5820
+ 44|
5821
+ 66|
5822
+ 77
5729
5823
  )[2-9]\d{6}
5730
5824
  </nationalNumberPattern>
5731
5825
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -5823,12 +5917,14 @@
5823
5917
  <exampleNumber>9002123456</exampleNumber>
5824
5918
  </premiumRate>
5825
5919
  <personalNumber>
5826
- <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
5920
+ <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
5827
5921
  <nationalNumberPattern>
5828
5922
  5(?:
5829
5923
  00|
5830
5924
  33|
5831
- 44
5925
+ 44|
5926
+ 66|
5927
+ 77
5832
5928
  )[2-9]\d{6}
5833
5929
  </nationalNumberPattern>
5834
5930
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -5880,7 +5976,7 @@
5880
5976
  </fixedLine>
5881
5977
  <mobile>
5882
5978
  <!-- Adding 65 and 78 from numbers found online. Also, prefix 670 is added since the carrier
5883
- Mobilis Algeria provided it, and 54 for Nedjma. Prefixes 67[12] were also added for
5979
+ Mobilis Algeria provided it, and 54 for Nedjma. Prefixes 67[1-3] were also added for
5884
5980
  Mobilis Algeria based on evidence found online. -->
5885
5981
  <nationalNumberPattern>
5886
5982
  (?:
@@ -5889,7 +5985,7 @@
5889
5985
  )\d{7}|
5890
5986
  6(?:
5891
5987
  [569]\d|
5892
- 7[0-2]
5988
+ 7[0-3]
5893
5989
  )\d{6}
5894
5990
  </nationalNumberPattern>
5895
5991
  <possibleNumberPattern>\d{9}</possibleNumberPattern>
@@ -6905,10 +7001,9 @@
6905
7001
  <exampleNumber>123456789</exampleNumber>
6906
7002
  </fixedLine>
6907
7003
  <mobile>
6908
- <!-- Prefixes 7[0-24] were added based on numbers found online. -->
6909
7004
  <nationalNumberPattern>
6910
7005
  6\d{8}|
6911
- 7[0-24-9]\d{7}
7006
+ 7[5-9]\d{7}
6912
7007
  </nationalNumberPattern>
6913
7008
  <exampleNumber>612345678</exampleNumber>
6914
7009
  </mobile>
@@ -7645,12 +7740,14 @@
7645
7740
  <exampleNumber>9002123456</exampleNumber>
7646
7741
  </premiumRate>
7647
7742
  <personalNumber>
7648
- <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
7743
+ <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
7649
7744
  <nationalNumberPattern>
7650
7745
  5(?:
7651
7746
  00|
7652
7747
  33|
7653
- 44
7748
+ 44|
7749
+ 66|
7750
+ 77
7654
7751
  )[2-9]\d{6}
7655
7752
  </nationalNumberPattern>
7656
7753
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -8573,12 +8670,14 @@
8573
8670
  <exampleNumber>9002123456</exampleNumber>
8574
8671
  </premiumRate>
8575
8672
  <personalNumber>
8576
- <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
8673
+ <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
8577
8674
  <nationalNumberPattern>
8578
8675
  5(?:
8579
8676
  00|
8580
8677
  33|
8581
- 44
8678
+ 44|
8679
+ 66|
8680
+ 77
8582
8681
  )[2-9]\d{6}
8583
8682
  </nationalNumberPattern>
8584
8683
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -9770,7 +9869,7 @@
9770
9869
  <numberFormat pattern="(\d{2})(\d{2})(\d{6})">
9771
9870
  <leadingDigits>
9772
9871
  7(?:
9773
- 0[2-4]|
9872
+ 0[2-7]|
9774
9873
  2[0579]|
9775
9874
  3[057-9]|
9776
9875
  4[0-389]|
@@ -9795,8 +9894,8 @@
9795
9894
  7(?:
9796
9895
  0(?:
9797
9896
  2[2-9]|
9798
- 3|
9799
- 4[0-7]
9897
+ [3-6]|
9898
+ 7[01]
9800
9899
  )|
9801
9900
  2(?:
9802
9901
  0[04-9]|
@@ -10264,8 +10363,8 @@
10264
10363
  7(?:
10265
10364
  0(?:
10266
10365
  2[2-9]|
10267
- 3\d|
10268
- 4[0-7]
10366
+ [3-6]\d|
10367
+ 7[01]
10269
10368
  )|
10270
10369
  2(?:
10271
10370
  0[04-9]|
@@ -11281,12 +11380,14 @@
11281
11380
  <exampleNumber>9002123456</exampleNumber>
11282
11381
  </premiumRate>
11283
11382
  <personalNumber>
11284
- <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
11383
+ <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
11285
11384
  <nationalNumberPattern>
11286
11385
  5(?:
11287
11386
  00|
11288
11387
  33|
11289
- 44
11388
+ 44|
11389
+ 66|
11390
+ 77
11290
11391
  )[2-9]\d{6}
11291
11392
  </nationalNumberPattern>
11292
11393
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -12679,15 +12780,15 @@
12679
12780
  Mobitel uses 01[1247].
12680
12781
  Cellcard uses 0857 and 061.
12681
12782
  Extra prefixes found online: 088, 097.
12682
- Allowing 9-digit 12, 31, and 76 numbers based on information from Cambodia Yellow
12683
- Pages. -->
12783
+ Allowing 9-digit 12, 31, 38 and 76 numbers based on information from Cambodia Yellow
12784
+ Pages and online search. -->
12684
12785
  <nationalNumberPattern>
12685
12786
  (?:
12686
12787
  1(?:
12687
12788
  [013-9]|
12688
12789
  2\d?
12689
12790
  )|
12690
- 31\d|
12791
+ 3[18]\d|
12691
12792
  6[016-9]|
12692
12793
  7(?:
12693
12794
  [07-9]|
@@ -12881,12 +12982,14 @@
12881
12982
  <exampleNumber>9002123456</exampleNumber>
12882
12983
  </premiumRate>
12883
12984
  <personalNumber>
12884
- <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
12985
+ <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
12885
12986
  <nationalNumberPattern>
12886
12987
  5(?:
12887
12988
  00|
12888
12989
  33|
12889
- 44
12990
+ 44|
12991
+ 66|
12992
+ 77
12890
12993
  )[2-9]\d{6}
12891
12994
  </nationalNumberPattern>
12892
12995
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -13229,7 +13332,7 @@
13229
13332
  4[049]|
13230
13333
  6[069]|
13231
13334
  [79]\d|
13232
- 8[08]
13335
+ 8[089]
13233
13336
  )
13234
13337
  )\d{5}
13235
13338
  </nationalNumberPattern>
@@ -13335,12 +13438,14 @@
13335
13438
  <exampleNumber>9002345678</exampleNumber>
13336
13439
  </premiumRate>
13337
13440
  <personalNumber>
13338
- <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
13441
+ <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
13339
13442
  <nationalNumberPattern>
13340
13443
  5(?:
13341
13444
  00|
13342
13445
  33|
13343
- 44
13446
+ 44|
13447
+ 66|
13448
+ 77
13344
13449
  )[2-9]\d{6}
13345
13450
  </nationalNumberPattern>
13346
13451
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -13709,12 +13814,14 @@
13709
13814
  <exampleNumber>9002123456</exampleNumber>
13710
13815
  </premiumRate>
13711
13816
  <personalNumber>
13712
- <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
13817
+ <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
13713
13818
  <nationalNumberPattern>
13714
13819
  5(?:
13715
13820
  00|
13716
13821
  33|
13717
- 44
13822
+ 44|
13823
+ 66|
13824
+ 77
13718
13825
  )[2-9]\d{6}
13719
13826
  </nationalNumberPattern>
13720
13827
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -15309,7 +15416,7 @@
15309
15416
  <mobile>
15310
15417
  <nationalNumberPattern>
15311
15418
  (?:
15312
- 8[89]|
15419
+ 8[689]|
15313
15420
  9[013-9]
15314
15421
  )\d{6}
15315
15422
  </nationalNumberPattern>
@@ -15449,12 +15556,14 @@
15449
15556
  <exampleNumber>9002123456</exampleNumber>
15450
15557
  </premiumRate>
15451
15558
  <personalNumber>
15452
- <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
15559
+ <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
15453
15560
  <nationalNumberPattern>
15454
15561
  5(?:
15455
15562
  00|
15456
15563
  33|
15457
- 44
15564
+ 44|
15565
+ 66|
15566
+ 77
15458
15567
  )[2-9]\d{6}
15459
15568
  </nationalNumberPattern>
15460
15569
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -15592,12 +15701,14 @@
15592
15701
  <exampleNumber>9002123456</exampleNumber>
15593
15702
  </premiumRate>
15594
15703
  <personalNumber>
15595
- <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
15704
+ <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
15596
15705
  <nationalNumberPattern>
15597
15706
  5(?:
15598
15707
  00|
15599
15708
  33|
15600
- 44
15709
+ 44|
15710
+ 66|
15711
+ 77
15601
15712
  )[2-9]\d{6}
15602
15713
  </nationalNumberPattern>
15603
15714
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -16600,7 +16711,7 @@
16600
16711
  <leadingDigits>
16601
16712
  70|
16602
16713
  8[01]|
16603
- 90[39]
16714
+ 90[239]
16604
16715
  </leadingDigits>
16605
16716
  <format>$1 $2 $3</format>
16606
16717
  </numberFormat>
@@ -16742,7 +16853,7 @@
16742
16853
  0[2-9]|
16743
16854
  1\d
16744
16855
  )\d|
16745
- 90[39]\d
16856
+ 90[239]\d
16746
16857
  )\d{6}
16747
16858
  </nationalNumberPattern>
16748
16859
  <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
@@ -16780,13 +16891,13 @@
16780
16891
  <mobile>
16781
16892
  <!-- Online users have reported seeing 5500 used by Claro; until we can find actual numbers
16782
16893
  or any documentation about it, we restrict this pattern to this prefix exactly. 57 and
16783
- 78 were added from bug reports/numbers found online. -->
16894
+ 7[5-8] were added from bug reports/numbers found online. -->
16784
16895
  <nationalNumberPattern>
16785
16896
  5(?:
16786
16897
  500\d{4}|
16787
16898
  7\d{6}
16788
16899
  )|
16789
- 78\d{6}|
16900
+ 7[5-8]\d{6}|
16790
16901
  8\d{7}
16791
16902
  </nationalNumberPattern>
16792
16903
  <exampleNumber>81234567</exampleNumber>
@@ -17833,13 +17944,13 @@
17833
17944
  81[37]|
17834
17945
  9(?:
17835
17946
  0[5-9]|
17836
- 1[025-9]|
17947
+ 1[024-9]|
17837
17948
  2[0-35-9]|
17838
17949
  3[02-9]|
17839
17950
  4[236-9]|
17840
- 7[3479]|
17951
+ 7[34-79]|
17841
17952
  89|
17842
- 9[46-9]
17953
+ 9[4-9]
17843
17954
  )
17844
17955
  )\d{7}
17845
17956
  </nationalNumberPattern>
@@ -18340,12 +18451,14 @@
18340
18451
  <exampleNumber>9002345678</exampleNumber>
18341
18452
  </premiumRate>
18342
18453
  <personalNumber>
18343
- <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
18454
+ <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
18344
18455
  <nationalNumberPattern>
18345
18456
  5(?:
18346
18457
  00|
18347
18458
  33|
18348
- 44
18459
+ 44|
18460
+ 66|
18461
+ 77
18349
18462
  )[2-9]\d{6}
18350
18463
  </nationalNumberPattern>
18351
18464
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -20528,12 +20641,14 @@
20528
20641
  <exampleNumber>9002123456</exampleNumber>
20529
20642
  </premiumRate>
20530
20643
  <personalNumber>
20531
- <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
20644
+ <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
20532
20645
  <nationalNumberPattern>
20533
20646
  5(?:
20534
20647
  00|
20535
20648
  33|
20536
- 44
20649
+ 44|
20650
+ 66|
20651
+ 77
20537
20652
  )[2-9]\d{6}
20538
20653
  </nationalNumberPattern>
20539
20654
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -20738,12 +20853,14 @@
20738
20853
  <exampleNumber>9002345678</exampleNumber>
20739
20854
  </premiumRate>
20740
20855
  <personalNumber>
20741
- <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
20856
+ <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
20742
20857
  <nationalNumberPattern>
20743
20858
  5(?:
20744
20859
  00|
20745
20860
  33|
20746
- 44
20861
+ 44|
20862
+ 66|
20863
+ 77
20747
20864
  )[2-9]\d{6}
20748
20865
  </nationalNumberPattern>
20749
20866
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -21455,12 +21572,14 @@
21455
21572
  <exampleNumber>9002345678</exampleNumber>
21456
21573
  </premiumRate>
21457
21574
  <personalNumber>
21458
- <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
21575
+ <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
21459
21576
  <nationalNumberPattern>
21460
21577
  5(?:
21461
21578
  00|
21462
21579
  33|
21463
- 44
21580
+ 44|
21581
+ 66|
21582
+ 77
21464
21583
  )[2-9]\d{6}
21465
21584
  </nationalNumberPattern>
21466
21585
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -21941,10 +22060,10 @@
21941
22060
  1[02-9]|
21942
22061
  2[0135]|
21943
22062
  3[014679]|
21944
- 47|
22063
+ 4[67]|
21945
22064
  5[12]|
21946
22065
  6[014]|
21947
- 8[056]
22066
+ 8[56]
21948
22067
  )|
21949
22068
  4(?:
21950
22069
  0[124-9]|
@@ -22006,7 +22125,7 @@
22006
22125
  2[0589]|
22007
22126
  3[1678]|
22008
22127
  4[0179]|
22009
- 5[1246]|
22128
+ 5[12469]|
22010
22129
  7[0-3589]|
22011
22130
  8[0459]
22012
22131
  )
@@ -22033,10 +22152,10 @@
22033
22152
  1[02-9]|
22034
22153
  2[0135]|
22035
22154
  3[014679]|
22036
- 47|
22155
+ 4[67]|
22037
22156
  5[12]|
22038
22157
  6[014]|
22039
- 8[056]
22158
+ 8[56]
22040
22159
  )|
22041
22160
  4(?:
22042
22161
  0[124-9]|
@@ -22098,7 +22217,7 @@
22098
22217
  2[0589]|
22099
22218
  3[1678]|
22100
22219
  4[0179]|
22101
- 5[1246]|
22220
+ 5[12469]|
22102
22221
  7[0-3589]|
22103
22222
  8[0459]
22104
22223
  )
@@ -22126,12 +22245,14 @@
22126
22245
  <exampleNumber>9002345678</exampleNumber>
22127
22246
  </premiumRate>
22128
22247
  <personalNumber>
22129
- <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
22248
+ <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
22130
22249
  <nationalNumberPattern>
22131
22250
  5(?:
22132
22251
  00|
22133
22252
  33|
22134
- 44
22253
+ 44|
22254
+ 66|
22255
+ 77
22135
22256
  )[2-9]\d{6}
22136
22257
  </nationalNumberPattern>
22137
22258
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -22636,12 +22757,14 @@
22636
22757
  <exampleNumber>9002345678</exampleNumber>
22637
22758
  </premiumRate>
22638
22759
  <personalNumber>
22639
- <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
22760
+ <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
22640
22761
  <nationalNumberPattern>
22641
22762
  5(?:
22642
22763
  00|
22643
22764
  33|
22644
- 44
22765
+ 44|
22766
+ 66|
22767
+ 77
22645
22768
  )[2-9]\d{6}
22646
22769
  </nationalNumberPattern>
22647
22770
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -22781,12 +22904,14 @@
22781
22904
  <exampleNumber>9002345678</exampleNumber>
22782
22905
  </premiumRate>
22783
22906
  <personalNumber>
22784
- <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
22907
+ <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
22785
22908
  <nationalNumberPattern>
22786
22909
  5(?:
22787
22910
  00|
22788
22911
  33|
22789
- 44
22912
+ 44|
22913
+ 66|
22914
+ 77
22790
22915
  )[2-9]\d{6}
22791
22916
  </nationalNumberPattern>
22792
22917
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
@@ -22902,12 +23027,14 @@
22902
23027
  <exampleNumber>9002345678</exampleNumber>
22903
23028
  </premiumRate>
22904
23029
  <personalNumber>
22905
- <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
23030
+ <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
22906
23031
  <nationalNumberPattern>
22907
23032
  5(?:
22908
23033
  00|
22909
23034
  33|
22910
- 44
23035
+ 44|
23036
+ 66|
23037
+ 77
22911
23038
  )[2-9]\d{6}
22912
23039
  </nationalNumberPattern>
22913
23040
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
data/data/phone_data.dat CHANGED
Binary file
@@ -1,5 +1,5 @@
1
1
  # :nodoc:
2
2
  module Phonelib
3
3
  # :nodoc:
4
- VERSION = '0.3.1'
4
+ VERSION = '0.3.2'
5
5
  end
metadata CHANGED
@@ -1,82 +1,74 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phonelib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
5
- prerelease:
4
+ version: 0.3.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Vadim Senderovich
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-05-21 00:00:00.000000000 Z
11
+ date: 2014-06-17 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rake
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: nokogiri
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: pry
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: rspec
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - '>='
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - '>='
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
- description: ! " Google libphonenumber library was taken as a basis for\n this
79
- gem. Gem uses its data file for validations and number formatting.\n"
69
+ description: |2
70
+ Google libphonenumber library was taken as a basis for
71
+ this gem. Gem uses its data file for validations and number formatting.
80
72
  email:
81
73
  - daddyzgm@gmail.com
82
74
  executables: []
@@ -85,47 +77,42 @@ extra_rdoc_files: []
85
77
  files:
86
78
  - data/phone_data.dat
87
79
  - data/PhoneNumberMetaData.xml
88
- - lib/validators/phone_validator.rb
89
- - lib/tasks/phonelib_tasks.rake
90
- - lib/phonelib/phone.rb
91
- - lib/phonelib/core.rb
80
+ - lib/phonelib.rb
92
81
  - lib/phonelib/version.rb
93
82
  - lib/phonelib/phone_analyzer.rb
94
- - lib/phonelib.rb
83
+ - lib/phonelib/phone.rb
84
+ - lib/phonelib/core.rb
85
+ - lib/validators/phone_validator.rb
86
+ - lib/tasks/phonelib_tasks.rake
95
87
  - MIT-LICENSE
96
88
  - Rakefile
97
89
  - README.rdoc
98
90
  homepage: https://github.com/daddyz/phonelib
99
91
  licenses:
100
92
  - MIT
101
- post_install_message: ! " IMPORTANT NOTICE!\n Phone types were changed from
102
- camel case to snake case!\n Example: \":tollFree\" changed to \":toll_free\".\n
103
- \ Please update your app in case you are checking types!\n"
93
+ metadata: {}
94
+ post_install_message: |2
95
+ IMPORTANT NOTICE!
96
+ Phone types were changed from camel case to snake case!
97
+ Example: ":tollFree" changed to ":toll_free".
98
+ Please update your app in case you are checking types!
104
99
  rdoc_options: []
105
100
  require_paths:
106
101
  - lib
107
102
  required_ruby_version: !ruby/object:Gem::Requirement
108
- none: false
109
103
  requirements:
110
- - - ! '>='
104
+ - - '>='
111
105
  - !ruby/object:Gem::Version
112
106
  version: '0'
113
- segments:
114
- - 0
115
- hash: -1226309370824333791
116
107
  required_rubygems_version: !ruby/object:Gem::Requirement
117
- none: false
118
108
  requirements:
119
- - - ! '>='
109
+ - - '>='
120
110
  - !ruby/object:Gem::Version
121
111
  version: '0'
122
- segments:
123
- - 0
124
- hash: -1226309370824333791
125
112
  requirements: []
126
113
  rubyforge_project:
127
- rubygems_version: 1.8.23
114
+ rubygems_version: 2.0.3
128
115
  signing_key:
129
- specification_version: 3
116
+ specification_version: 4
130
117
  summary: Gem validates phone numbers with Google libphonenumber database
131
118
  test_files: []