phony 2.14.7 → 2.14.8

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
  SHA1:
3
- metadata.gz: 3eb67c7379354b4c0bfc601ff1932cd53013348f
4
- data.tar.gz: 2d5c022844993130753a2abda99edc95bcd507ee
3
+ metadata.gz: 88549e8d81c01fe53f690601ef47de50dff9aaaa
4
+ data.tar.gz: 38f9de728e747b9cb18d043bc3fa3771cb371679
5
5
  SHA512:
6
- metadata.gz: 086dd460b3f9ed4fa7791361fcfebd39b37e08d73b717773b9acb9457a92ccf47ea3b5f07a1612eef188f670e1de04a510f1b6d74dca072ecdef10a0757a462d
7
- data.tar.gz: c53302f18068a9bd9dd27b293b6828006c1c2d29c0599e4b6982d643d894db6455d5c9ee5296f4dbfee1a2491d058c6024271c14cb0f328a52df0b19c8aa811c
6
+ metadata.gz: c03d91af67bfac5b15227623763acff1d98234823a90d43216382e7a04a4376ff6b3eec3e4f84952f3150313234a070c367084b54cb601d5ce01b346808e23bf
7
+ data.tar.gz: aecefdac79fceb121e61353ae527bab2ac578c3d3b4cae4734ea5984fa96d95f9f8595f30517ed9f6cab094d8df5d96545341231f66b55eca6c0c7d30e71f0cd
@@ -1,12 +1,13 @@
1
1
  # The Republic of Ireland has variable-length NDCs from 2-3 digits in length. Depending on the NDC, the length of the subscriber number varies from 5-7 characters in length. There does not appear to be any pattern that relates NDCs to subscriber number length.
2
2
  #
3
3
  # 7 digit subscriber numbers follow a 3-4 split pattern.
4
- # 5 and 6 digit subscriber numbers appear split in some examples, and not in others; to be conservative, these are not currently split.
4
+ # 5 and 6 digit subscriber numbers appear split in some examples, and not in others; to be conservative, these are not currently split.
5
5
  #
6
- # For NDCs that are not recognized, we fall back to not attempting to split out an NDC at all.
6
+ # For NDCs that are not recognized, we fall back to not attempting to split out an NDC at all.
7
7
  #
8
8
  # References:
9
- # http://www.comreg.ie/_fileupload/publications/ComReg03147.pdf
9
+ # http://www.comreg.ie/_fileupload/publications/ComReg03147.pdf (2003)
10
+ # http://www.comreg.ie/licensing_and_services/area_code_maps.552.1040.html
10
11
  # http://en.wikipedia.org/wiki/Telephone_numbers_in_the_Republic_of_Ireland
11
12
  #
12
13
  ndcs_with_5_subscriber_digits = [
@@ -22,7 +23,9 @@ ndcs_with_5_subscriber_digits = [
22
23
  '505', # Roscrea
23
24
  '506', # Tullamore
24
25
  '509', # Bin-
25
- ('52'..'55').to_a, # Killenaule, Wexford, Enniscorthy, Ferns, Gorey
26
+ '52', # Killenaule
27
+ '54', # Legacy Ferns, Enniscorthy
28
+ '55', # Legacy Gorey
26
29
  '62', # Tipperary, Cashel
27
30
  '63', # Charleville
28
31
  '64', # Killarney, Rathmore
@@ -47,6 +50,7 @@ ndcs_with_7_subscriber_digits = [
47
50
  '42', # Dundalk, Carrickmacross, Castleblaney
48
51
  '46', # Navan, Kells, Trim, Enfield, Edenderry
49
52
  '49', # Cavan, Cootehill, Oldcastle, Belturbet
53
+ '53', # Wexford, Enniscorthy, Ferns, Gorey, Craanford
50
54
  '56', # Kilkenny, Castlecomer
51
55
  '58', # Dungarvan
52
56
  '59', # Carlow, Muine Bheag, Athy, Baltinglass
@@ -332,6 +332,7 @@ describe 'country descriptions' do
332
332
 
333
333
  describe 'Ireland' do
334
334
  it_splits '35311234567', ['353', '1', '123', '4567'] # Dublin, 7 digit subscriber #
335
+ it_splits '353539233333', ['353', '53', '923', '3333'] # Wexford, 7 digit subscriber
335
336
  it_splits '3532212345', ['353', '22', '12345'] # Mallow, 5 digit subscriber #
336
337
  it_splits '35345123456', ['353', '45', '123456'] # Naas, 6 digit subscriber #
337
338
  it_splits '353801234567', ['353', '80', '123', '4567'] # Mobile
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.14.7
4
+ version: 2.14.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Hanke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-03 00:00:00.000000000 Z
11
+ date: 2015-07-14 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