phony 2.15.46 → 2.15.47

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: 425702e9ff19dfa1d39a04347c5aa17aa68ee0c9
4
- data.tar.gz: 0d33325a64b947754d840bb30f59288157c06c36
3
+ metadata.gz: 3e978c5a79c5540145b9bb9b8988924ff0be4d22
4
+ data.tar.gz: 58f070c2f6fa6eb27396554f7221487c8475dc72
5
5
  SHA512:
6
- metadata.gz: 944eef26079290a5ed72511efdb219eefe5328918964ad80febc0a368a4e759436cee633cfe3857f9a43c285ad9cd6fe138f770c2da427a252b01290050854f2
7
- data.tar.gz: 98c7fc92e39eed57867085e44bd77f54965405ffbbce9692c5eb6620cd00b6a895ac7558c7c678c9a5d32f0250cace9dca2ef48ea2b49a91a75c9dd1da426382
6
+ metadata.gz: ed80ee547d6a0c3adc4552769346bf66b6b18af05898d10e682d05c8f909856dd0676e0426239e7367a2388dca961deb0ee2dc8148520fb7b27fa1f6fd79ce6d
7
+ data.tar.gz: b1eb46a6f89898db4c82efae75eaa670bf4f0bb81eb5286fb5fd915a68995098cb725c43c5ac02f7ddcec5dafb9659b621bdaff8d6b65a354f3986e737afbe3b
@@ -11,10 +11,10 @@ Phony.define do
11
11
  one_of(%w(201 204 208 210 214)) >> split(2,2) | # Telcom Somalia
12
12
  one_of(%w(500 501 502 503 504 505 506 507 508 509)) >> split(3,2) | # mobile NationLink Telecom
13
13
  one_of(%w(523 525 526)) >> split(2,2) | # Netco
14
+ match(/\A(61|62|63|64|65|66|67|68|69|90)\d{7}\z/) >> split(3,4) | # mobile Hormuud, Somtel Mogadishu, Telesom, Hormuud, Somtel, Somtel Puntland, Nationlink Mogadishu, Nationlink Mogadishu, Nationlink, Golis
14
15
  one_of(%w(642 643 644 648 649)) >> split(2,2) | # Galcom
15
16
  one_of(%w(33 51 52 54 55 56 57 58 59 68 71 76 78 79 88)) >> split(3,2) |
16
17
  match(/\A(67)\d{5}\z/) >> split(3,2) | # Golis Telecom Somalia
17
- match(/\A(63|90|69|65|61)\d{7}\z/) >> split(3,4) | # Telesom, Golis, Nationlink, Somtel, Hormuud
18
18
  one_of(%w(15 40 42 45 46 60 61 90 91)) >> split(3,3) | # mobile Somafone, Hortel
19
19
  one_of(%w(18)) >> split(3,2) | # Hortel
20
20
  one_of(%w(27 28 29 62 63 87)) >> split(2,2) | # Telcom Somalia, Emir Set
@@ -1197,14 +1197,18 @@ describe 'country descriptions' do
1197
1197
  it_splits '2521313123', %w(252 1313 123)
1198
1198
  it_splits '2521601234', %w(252 160 12 34)
1199
1199
  it_splits '25250012345', %w(252 500 123 45)
1200
- it_splits '252671234567', %w(252 67 1234 567)
1200
+ it_splits '252612345678', %w(252 61 234 5678) # Hormuud
1201
+ it_splits '252622345678', %w(252 62 234 5678) # Somtel Mogadishu
1201
1202
  it_splits '252634000613', %w(252 63 400 0613) # Telesom
1202
- it_splits '252634423020', %w(252 63 442 3020) # Telesom
1203
- it_splits '252902345678', %w(252 90 234 5678) # Golis
1204
- it_splits '252692345678', %w(252 69 234 5678) # Nationlink
1203
+ it_splits '252642345678', %w(252 64 234 5678) # Hormuud
1205
1204
  it_splits '252652345678', %w(252 65 234 5678) # Somtel
1206
- it_splits '252612345678', %w(252 61 234 5678) # Hormuud
1205
+ it_splits '252662345678', %w(252 66 234 5678) # Somtel Puntland
1206
+ it_splits '252672345678', %w(252 67 234 5678) # Nationlink Mogadishu
1207
+ it_splits '252682345678', %w(252 68 234 5678) # Nationlink Mogadishu
1208
+ it_splits '252692345678', %w(252 69 234 5678) # Nationlink
1209
+ it_splits '252902345678', %w(252 90 234 5678) # Golis
1207
1210
  end
1211
+
1208
1212
  describe 'Suriname (Republic of)' do
1209
1213
  it_splits '597958434', ['597', false, '958', '434']
1210
1214
 
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.46
4
+ version: 2.15.47
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Hanke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-23 00:00:00.000000000 Z
11
+ date: 2017-07-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