phonelib 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e94dee20354de9770e7eed6425478b5acb4c90c5
4
- data.tar.gz: e0847fd8554de2fd5c4d23a1a9b3f38c1ba282e6
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NDA1ZmYxYWFhMzI1YzAxMTZlMTE0MGU0MjIzMTRhZTg3OWE0ZWM3OA==
5
+ data.tar.gz: !binary |-
6
+ NzA0NjcyODU3NzMyNmVhMTg3NzI0YzM5NGNkYzA0OTA0MWI4MGYzNw==
5
7
  SHA512:
6
- metadata.gz: 3e52f882100d15ff7608992574d1238f6a7ee03118bae4784f254ae4533c61b781e8524374c8044a77b331060a5968bb4013e1e6ed749b062dba747297f65326
7
- data.tar.gz: b7790648c9e1374d66e7a5c4a61d5da592e30076a25cfa73b35220d54ce58740dcda633c282c894406f6b114f9555ad13fecc3c027cdfd9285c6506684ab66f8
8
+ metadata.gz: !binary |-
9
+ MDRmMDRmMjEyZmNmNGMwNGQzYjllNGEzMDBiZGYwZTJhNTFkNWM5MDJmNjA0
10
+ ZTk4M2U4YzQ1ZTRhMmJjYmI1MmRmOTM1MWQ4M2NhNzhjNjZkM2NkMDhiYzU3
11
+ MTZjZWY3OTI5YzNiMWFhNzQzYTg0OTk3YTRmNTRkODk3MjViNWU=
12
+ data.tar.gz: !binary |-
13
+ ZGVjYjYwMDRiNTZlYmYxN2NmYmZkMjM4ZTZkMTE0NDVkZDk0MjkwN2YxY2Ni
14
+ NjQ3OWUzZTEwMzU5NTEzZGNkNmZmNDhiZWVkZDIwMjA4NTQzMGNmZDhiNTM5
15
+ YWZkYmRhZjY2OWU0ZGNiNTEyOWIyOGU0YmIxMjI3YjVkZTEwZDY=
@@ -265,7 +265,7 @@
265
265
  <mobile>
266
266
  <nationalNumberPattern>
267
267
  7(?:
268
- [057-9]\d{7}|
268
+ [05-9]\d{7}|
269
269
  29\d{6}
270
270
  )
271
271
  </nationalNumberPattern>
@@ -4547,7 +4547,7 @@
4547
4547
  <nationalNumberPattern>
4548
4548
  [1-7]\d{6,11}|
4549
4549
  8[0-357-9]\d{6,9}|
4550
- 9\d{9}
4550
+ 9\d{7,9}
4551
4551
  </nationalNumberPattern>
4552
4552
  <possibleNumberPattern>\d{4,12}</possibleNumberPattern>
4553
4553
  </generalDesc>
@@ -6377,7 +6377,7 @@
6377
6377
  0[0-8]|
6378
6378
  [12-7]\d|
6379
6379
  8[01]|
6380
- 9[27-9]
6380
+ 9[2457-9]
6381
6381
  )\d{6}
6382
6382
  </nationalNumberPattern>
6383
6383
  <exampleNumber>650123456</exampleNumber>
@@ -6840,12 +6840,12 @@
6840
6840
  <exampleNumber>3212345</exampleNumber>
6841
6841
  </fixedLine>
6842
6842
  <mobile>
6843
- <!-- Adding 7[5-8], 8[0367], and 9[034678] from numbers found online and numbers where SMSs
6843
+ <!-- Adding 7[5-8], 8[03679], and 9[034678] from numbers found online and numbers where SMSs
6844
6844
  have been received from. Adding 9[15] and 84 from Vodafone Fiji IR21. -->
6845
6845
  <nationalNumberPattern>
6846
6846
  (?:
6847
6847
  7[0-8]|
6848
- 8[03467]|
6848
+ 8[034679]|
6849
6849
  9\d
6850
6850
  )\d{5}
6851
6851
  </nationalNumberPattern>
@@ -10312,7 +10312,7 @@
10312
10312
  3[2-4]|
10313
10313
  4[235-7]|
10314
10314
  [57][2-689]|
10315
- 6[24-58]|
10315
+ 6[24-578]|
10316
10316
  8[1-6]
10317
10317
  )|
10318
10318
  8(?:
@@ -12476,12 +12476,7 @@
12476
12476
  <exampleNumber>312345678</exampleNumber>
12477
12477
  </fixedLine>
12478
12478
  <mobile>
12479
- <nationalNumberPattern>
12480
- (?:
12481
- [79]0\d|
12482
- 80[1-9]
12483
- )\d{7}
12484
- </nationalNumberPattern>
12479
+ <nationalNumberPattern>[7-9]0[1-9]\d{7}</nationalNumberPattern>
12485
12480
  <possibleNumberPattern>\d{10}</possibleNumberPattern>
12486
12481
  <exampleNumber>7012345678</exampleNumber>
12487
12482
  </mobile>
@@ -12546,7 +12541,7 @@
12546
12541
  nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
12547
12542
  mobileNumberPortableRegion="true">
12548
12543
  <availableFormats>
12549
- <numberFormat pattern="(\d{2})(\d{4,7})">
12544
+ <numberFormat pattern="(\d{2})(\d{5,7})">
12550
12545
  <leadingDigits>[24-6]</leadingDigits>
12551
12546
  <format>$1 $2</format>
12552
12547
  </numberFormat>
@@ -12564,39 +12559,37 @@
12564
12559
  20\d{6,7}|
12565
12560
  [4-9]\d{6,9}
12566
12561
  </nationalNumberPattern>
12567
- <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
12562
+ <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
12568
12563
  </generalDesc>
12569
12564
  <fixedLine>
12570
- <!-- The prefix 066 is supposed to be used only for 9-digit numbers, but none of these can
12571
- be found online, and the plan says also it is migrating to 9 digit numbers. Both are
12572
- supported for now. -->
12565
+ <!-- The prefixes 046, 050, 058, and 066 may appear online in less than 9 digits but
12566
+ calling them has confirmed these are outdated. However a 7-digit 068 number was
12567
+ dialed successfully so we consider these valid despite the plan. -->
12573
12568
  <nationalNumberPattern>
12574
12569
  20\d{6,7}|
12575
12570
  4(?:
12576
- [013]\d{7}|
12577
- [24-6]\d{5,7}
12571
+ [0136]\d{7}|
12572
+ [245]\d{5,7}
12578
12573
  )|
12579
12574
  5(?:
12580
- [0-36-8]\d{5,7}|
12581
- [459]\d{5}
12575
+ [08]\d{7}|
12576
+ [1-79]\d{5,7}
12582
12577
  )|
12583
12578
  6(?:
12584
- [08]\d{5}|
12585
- [14-79]\d{5,7}|
12586
- 2\d{7}
12579
+ [01457-9]\d{5,7}|
12580
+ [26]\d{7}
12587
12581
  )
12588
12582
  </nationalNumberPattern>
12589
- <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
12583
+ <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
12590
12584
  <exampleNumber>202012345</exampleNumber>
12591
12585
  </fixedLine>
12592
12586
  <mobile>
12593
12587
  <nationalNumberPattern>
12594
12588
  7(?:
12595
- 0[0-8]|
12596
- [123]\d|
12589
+ [0-3]\d|
12597
12590
  5[0-6]|
12598
12591
  7[0-5]|
12599
- 8[5-9]
12592
+ 8[0-25-9]
12600
12593
  )\d{6}
12601
12594
  </nationalNumberPattern>
12602
12595
  <possibleNumberPattern>\d{9}</possibleNumberPattern>
@@ -12604,12 +12597,17 @@
12604
12597
  </mobile>
12605
12598
  <tollFree>
12606
12599
  <!-- Longer numbers have been found than the plan suggests, so we support them here too. -->
12600
+ <!-- The plan suggests 0844 and 0845 may belong here, but these are short numbers rather
12601
+ than prefixes:
12602
+ http://www.telkomkenya.8k.com/Products/v/2.html
12603
+ http://www.kenya-advisor.com/phone-calls-kenya.html
12604
+ http://www.telkom.co.ke/index.php?option=com_content&view=article&id=64&Itemid=98 -->
12607
12605
  <nationalNumberPattern>800[24-8]\d{5,6}</nationalNumberPattern>
12608
12606
  <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
12609
12607
  <exampleNumber>800223456</exampleNumber>
12610
12608
  </tollFree>
12611
12609
  <premiumRate>
12612
- <nationalNumberPattern>900[02-578]\d{5}</nationalNumberPattern>
12610
+ <nationalNumberPattern>900[02-9]\d{5}</nationalNumberPattern>
12613
12611
  <possibleNumberPattern>\d{9}</possibleNumberPattern>
12614
12612
  <exampleNumber>900223456</exampleNumber>
12615
12613
  </premiumRate>
@@ -12622,8 +12620,8 @@
12622
12620
  <availableFormats>
12623
12621
  <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
12624
12622
  <leadingDigits>
12625
- 31[25]|
12626
- [5-7]
12623
+ [25-7]|
12624
+ 31[25]
12627
12625
  </leadingDigits>
12628
12626
  <format>$1 $2 $3</format>
12629
12627
  </numberFormat>
@@ -12642,20 +12640,18 @@
12642
12640
  </numberFormat>
12643
12641
  </availableFormats>
12644
12642
  <generalDesc>
12645
- <nationalNumberPattern>[35-8]\d{8,9}</nationalNumberPattern>
12643
+ <nationalNumberPattern>[235-8]\d{8,9}</nationalNumberPattern>
12646
12644
  <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
12647
12645
  </generalDesc>
12648
12646
  <fixedLine>
12649
- <!-- Extra area codes found on Web Search: 3147, 3150, 3948. -->
12647
+ <!-- Extra area codes found on Web Search: 3147. -->
12650
12648
  <nationalNumberPattern>
12651
12649
  (?:
12652
12650
  3(?:
12653
12651
  1(?:
12654
- 2\d|
12652
+ [256]\d|
12655
12653
  3[1-9]|
12656
- 47|
12657
- 5[02]|
12658
- 6[1-8]
12654
+ 47
12659
12655
  )|
12660
12656
  2(?:
12661
12657
  22|
@@ -12665,31 +12661,30 @@
12665
12661
  4(?:
12666
12662
  22|
12667
12663
  5[6-9]|
12668
- 6[0-4]
12664
+ 6\d
12669
12665
  )|
12670
12666
  5(?:
12671
12667
  22|
12672
12668
  3[4-7]|
12673
12669
  59|
12674
- 6[0-5]
12670
+ 6\d
12675
12671
  )|
12676
12672
  6(?:
12677
12673
  22|
12678
12674
  5[35-7]|
12679
- 6[0-3]
12675
+ 6\d
12680
12676
  )|
12681
12677
  7(?:
12682
12678
  22|
12683
12679
  3[468]|
12684
12680
  4[1-9]|
12685
12681
  59|
12686
- 6\d|
12687
- 7[5-7]
12682
+ [67]\d
12688
12683
  )|
12689
12684
  9(?:
12690
12685
  22|
12691
12686
  4[1-8]|
12692
- 6[0-8]
12687
+ 6\d
12693
12688
  )
12694
12689
  )|
12695
12690
  6(?:
@@ -12702,13 +12697,11 @@
12702
12697
  <exampleNumber>312123456</exampleNumber>
12703
12698
  </fixedLine>
12704
12699
  <mobile>
12705
- <!-- Added 70[1235789] since SMS messages have been successfully sent to numbers with this
12706
- prefix, and numbers have been found like this online. -->
12707
12700
  <nationalNumberPattern>
12708
- 5[124-7]\d{7}|
12709
- 7(?:
12710
- 0[0-357-9]|
12711
- 7\d
12701
+ (?:
12702
+ 20[0-35]|
12703
+ 5[124-7]\d|
12704
+ 7[07]\d
12712
12705
  )\d{6}
12713
12706
  </nationalNumberPattern>
12714
12707
  <possibleNumberPattern>\d{9}</possibleNumberPattern>
@@ -13330,6 +13323,7 @@
13330
13323
  9(?:
13331
13324
  0[09]|
13332
13325
  4[049]|
13326
+ 55|
13333
13327
  6[069]|
13334
13328
  [79]\d|
13335
13329
  8[089]
@@ -14599,7 +14593,7 @@
14599
14593
  0[0-8]|
14600
14594
  [12-7]\d|
14601
14595
  8[01]|
14602
- 9[27-9]
14596
+ 9[2457-9]
14603
14597
  )\d{6}
14604
14598
  </nationalNumberPattern>
14605
14599
  <exampleNumber>650123456</exampleNumber>
@@ -15184,7 +15178,7 @@
15184
15178
  <leadingDigits>[4-8]</leadingDigits>
15185
15179
  <format>$1 $2 $3</format>
15186
15180
  </numberFormat>
15187
- <numberFormat pattern="(9)(\d{3})(\d{4,5})">
15181
+ <numberFormat pattern="(9)(\d{3})(\d{4,6})">
15188
15182
  <leadingDigits>
15189
15183
  9(?:
15190
15184
  2[0-4]|
@@ -15213,7 +15207,8 @@
15213
15207
  [58]|
15214
15208
  3\d|
15215
15209
  4\d{1,2}|
15216
- [679]\d?
15210
+ 6\d?|
15211
+ [79]\d{0,2}
15217
15212
  )\d{6}
15218
15213
  </nationalNumberPattern>
15219
15214
  <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
@@ -15296,7 +15291,8 @@
15296
15291
  <exampleNumber>1234567</exampleNumber>
15297
15292
  </fixedLine>
15298
15293
  <mobile>
15299
- <!-- Adding 99[089] (8 digits) from numbers found online, and 961 with 9 digits. -->
15294
+ <!-- Added 99[089] (8 digits), 961 (9 digits), and 979 & 997 (10 digits) from bug
15295
+ reports/numbers found online. -->
15300
15296
  <nationalNumberPattern>
15301
15297
  17[01]\d{4}|
15302
15298
  9(?:
@@ -15314,10 +15310,14 @@
15314
15310
  )|
15315
15311
  5[0-6]|
15316
15312
  61?\d|
15317
- 73\d|
15313
+ 7(?:
15314
+ 3\d|
15315
+ 9\d{2}
15316
+ )|
15318
15317
  8\d|
15319
15318
  9(?:
15320
15319
  1\d|
15320
+ 7\d{2}|
15321
15321
  [089]
15322
15322
  )
15323
15323
  )\d{5}
@@ -17728,11 +17728,17 @@
17728
17728
  <territory id="PG" countryCode="675" internationalPrefix="00">
17729
17729
  <availableFormats>
17730
17730
  <numberFormat pattern="(\d{3})(\d{4})">
17731
- <leadingDigits>[1-689]</leadingDigits>
17731
+ <leadingDigits>
17732
+ [13-689]|
17733
+ 27
17734
+ </leadingDigits>
17732
17735
  <format>$1 $2</format>
17733
17736
  </numberFormat>
17734
- <numberFormat pattern="(7\d{3})(\d{4})">
17735
- <leadingDigits>7</leadingDigits>
17737
+ <numberFormat pattern="(\d{4})(\d{4})">
17738
+ <leadingDigits>
17739
+ 20|
17740
+ 7
17741
+ </leadingDigits>
17736
17742
  <format>$1 $2</format>
17737
17743
  </numberFormat>
17738
17744
  </availableFormats>
@@ -17760,15 +17766,17 @@
17760
17766
  </fixedLine>
17761
17767
  <mobile>
17762
17768
  <!-- Mobile number patterns from the numbering plan are included here, as well as 68X from
17763
- Wikipedia. -->
17769
+ Wikipedia.
17770
+ As per ITU doc, prefix 20150 will expire at the end of 2015.-->
17764
17771
  <nationalNumberPattern>
17765
17772
  (?:
17766
- 68|
17773
+ 20150|
17774
+ 68\d{2}|
17767
17775
  7(?:
17768
17776
  [0-369]\d|
17769
17777
  75
17770
- )
17771
- )\d{5}
17778
+ )\d{2}
17779
+ )\d{3}
17772
17780
  </nationalNumberPattern>
17773
17781
  <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
17774
17782
  <exampleNumber>6812345</exampleNumber>
@@ -18187,7 +18195,8 @@
18187
18195
  3(?:
18188
18196
  0\d|
18189
18197
  [12][0-5]|
18190
- [34][1-7]|
18198
+ 3[1-7]|
18199
+ 4[0-7]|
18191
18200
  55|
18192
18201
  64
18193
18202
  )\d{7}
@@ -20277,7 +20286,7 @@
20277
20286
  <!-- Using yellow pages and online telecom company formatting, rather than that implied in
20278
20287
  the national numbering plan. -->
20279
20288
  <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
20280
- <leadingDigits>[37]</leadingDigits>
20289
+ <leadingDigits>[379]</leadingDigits>
20281
20290
  <format>$1 $2 $3 $4</format>
20282
20291
  </numberFormat>
20283
20292
  <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
@@ -20286,7 +20295,7 @@
20286
20295
  </numberFormat>
20287
20296
  </availableFormats>
20288
20297
  <generalDesc>
20289
- <nationalNumberPattern>[378]\d{8}</nationalNumberPattern>
20298
+ <nationalNumberPattern>[3789]\d{8}</nationalNumberPattern>
20290
20299
  <possibleNumberPattern>\d{9}</possibleNumberPattern>
20291
20300
  </generalDesc>
20292
20301
  <fixedLine>
@@ -20296,10 +20305,13 @@
20296
20305
  1[0-2]|
20297
20306
  80
20298
20307
  )|
20299
- 211|
20308
+ 2(?:
20309
+ 11|
20310
+ 82
20311
+ )|
20300
20312
  3(?:
20301
20313
  8[1-9]|
20302
- 9[2-9]
20314
+ 9[3-9]
20303
20315
  )|
20304
20316
  90[1-5]
20305
20317
  )\d{5}
@@ -20309,9 +20321,7 @@
20309
20321
  <mobile>
20310
20322
  <nationalNumberPattern>
20311
20323
  7(?:
20312
- [07]\d|
20313
- 21|
20314
- 6[1-9]|
20324
+ [067]\d|
20315
20325
  8[0-26]|
20316
20326
  90
20317
20327
  )\d{6}
@@ -20335,8 +20345,12 @@
20335
20345
  <exampleNumber>810123456</exampleNumber>
20336
20346
  </sharedCost>
20337
20347
  <voip>
20338
- <nationalNumberPattern>391\d{6}</nationalNumberPattern>
20339
- <exampleNumber>391011234</exampleNumber>
20348
+ <!-- Also covers satellite telephony ranges. -->
20349
+ <nationalNumberPattern>
20350
+ 3392\d{5}|
20351
+ 93330\d{4}
20352
+ </nationalNumberPattern>
20353
+ <exampleNumber>933301234</exampleNumber>
20340
20354
  </voip>
20341
20355
  </territory>
20342
20356
 
@@ -20370,8 +20384,7 @@
20370
20384
  <leadingDigits>
20371
20385
  15|
20372
20386
  28|
20373
- 6[1378]|
20374
- 9
20387
+ 6[1378]
20375
20388
  </leadingDigits>
20376
20389
  <format>$1 $2</format>
20377
20390
  </numberFormat>
@@ -20389,23 +20402,21 @@
20389
20402
  here since that is apparently used for mobile. -->
20390
20403
  <nationalNumberPattern>
20391
20404
  (?:
20392
- [134]\d|
20405
+ 1\d|
20393
20406
  2[0-79]|
20394
- 5[57-9]
20407
+ 3[0-46-8]|
20408
+ 4[0-7]|
20409
+ 59
20395
20410
  )\d{5}
20396
20411
  </nationalNumberPattern>
20397
20412
  <possibleNumberPattern>\d{7}</possibleNumberPattern>
20398
- <!-- Example numbers are test numbers from the document. -->
20399
- <exampleNumber>5522010</exampleNumber>
20413
+ <exampleNumber>4012345</exampleNumber>
20400
20414
  </fixedLine>
20401
20415
  <mobile>
20402
20416
  <!-- 24 is used by the carrier Telesom. 28 is used by Nationlink. 6[89] are apparently used
20403
20417
  by Nationlink Somalia, 67 by Nationlink Puntland, and 61 by Hormuud. 7X is used by
20404
- Somtel. 6 followed by only 7 digits is used by Telecom. We have received information
20405
- from Golis Telecom that 90 numbers are extended by 1 digit by becoming 907.
20406
- Note that the ITU update of Apr. 2013 suggests there is a longer 707 XXX XXX range for
20407
- mobile, but the document is not self consistent, so this is probably a typo. 63 was
20408
- found in numbers online. -->
20418
+ Somtel. 6 followed by only 7 digits is used by Telecom. Note that in June 2014 many
20419
+ ranges were suspended by the government. -->
20409
20420
  <nationalNumberPattern>
20410
20421
  (?:
20411
20422
  15\d|
@@ -20414,14 +20425,10 @@
20414
20425
  8
20415
20426
  )|
20416
20427
  6[137-9]?\d{2}|
20417
- 7\d{2}|
20418
- 9(?:
20419
- 07|
20420
- [13-9]
20421
- )\d
20428
+ 7[1-9]\d
20422
20429
  )\d{5}
20423
20430
  </nationalNumberPattern>
20424
- <exampleNumber>907792024</exampleNumber>
20431
+ <exampleNumber>71123456</exampleNumber>
20425
20432
  </mobile>
20426
20433
  </territory>
20427
20434
 
data/data/phone_data.dat CHANGED
Binary file
data/lib/phonelib.rb CHANGED
@@ -10,4 +10,4 @@ module Phonelib
10
10
  }
11
11
  end
12
12
 
13
- autoload :PhoneValidator, 'validators/phone_validator' if defined? ActiveModel
13
+ autoload :PhoneValidator, 'validators/phone_validator' if defined?(ActiveModel) || defined?(Rails)
data/lib/phonelib/core.rb CHANGED
@@ -6,7 +6,7 @@ module Phonelib
6
6
 
7
7
  # getter for phone data for other modules of gem, can be used outside
8
8
  def phone_data
9
- @@phone_data
9
+ @@phone_data ||= load_data
10
10
  end
11
11
 
12
12
  # default country for parsing variable setting
@@ -104,7 +104,6 @@ module Phonelib
104
104
  # method for parsing phone number.
105
105
  # On first run fills @@phone_data with data present in yaml file
106
106
  def parse(phone, passed_country = nil)
107
- @@phone_data ||= load_data
108
107
  Phonelib::Phone.new phone, passed_country
109
108
  end
110
109
 
@@ -1,5 +1,5 @@
1
1
  # :nodoc:
2
2
  module Phonelib
3
3
  # :nodoc:
4
- VERSION = '0.3.2'
4
+ VERSION = '0.3.3'
5
5
  end
metadata CHANGED
@@ -1,117 +1,114 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phonelib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vadim Senderovich
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-17 00:00:00.000000000 Z
11
+ date: 2014-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ! '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ! '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: nokogiri
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ! '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ! '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: pry
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ! '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ! '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: 2.14.1
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
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.
68
+ version: 2.14.1
69
+ description: ! " Google libphonenumber library was taken as a basis for\n this
70
+ gem. Gem uses its data file for validations and number formatting.\n"
72
71
  email:
73
72
  - daddyzgm@gmail.com
74
73
  executables: []
75
74
  extensions: []
76
75
  extra_rdoc_files: []
77
76
  files:
78
- - data/phone_data.dat
77
+ - MIT-LICENSE
78
+ - README.rdoc
79
+ - Rakefile
79
80
  - data/PhoneNumberMetaData.xml
81
+ - data/phone_data.dat
80
82
  - lib/phonelib.rb
81
- - lib/phonelib/version.rb
82
- - lib/phonelib/phone_analyzer.rb
83
- - lib/phonelib/phone.rb
84
83
  - lib/phonelib/core.rb
85
- - lib/validators/phone_validator.rb
84
+ - lib/phonelib/phone.rb
85
+ - lib/phonelib/phone_analyzer.rb
86
+ - lib/phonelib/version.rb
86
87
  - lib/tasks/phonelib_tasks.rake
87
- - MIT-LICENSE
88
- - Rakefile
89
- - README.rdoc
88
+ - lib/validators/phone_validator.rb
90
89
  homepage: https://github.com/daddyz/phonelib
91
90
  licenses:
92
91
  - MIT
93
92
  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!
93
+ post_install_message: ! " IMPORTANT NOTICE!\n Phone types were changed from
94
+ camel case to snake case!\n Example: \":tollFree\" changed to \":toll_free\".\n
95
+ \ Please update your app in case you are checking types!\n"
99
96
  rdoc_options: []
100
97
  require_paths:
101
98
  - lib
102
99
  required_ruby_version: !ruby/object:Gem::Requirement
103
100
  requirements:
104
- - - '>='
101
+ - - ! '>='
105
102
  - !ruby/object:Gem::Version
106
103
  version: '0'
107
104
  required_rubygems_version: !ruby/object:Gem::Requirement
108
105
  requirements:
109
- - - '>='
106
+ - - ! '>='
110
107
  - !ruby/object:Gem::Version
111
108
  version: '0'
112
109
  requirements: []
113
110
  rubyforge_project:
114
- rubygems_version: 2.0.3
111
+ rubygems_version: 2.2.2
115
112
  signing_key:
116
113
  specification_version: 4
117
114
  summary: Gem validates phone numbers with Google libphonenumber database