telephone_number 1.4.6 → 1.4.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (177) hide show
  1. checksums.yaml +5 -5
  2. data/.travis.yml +0 -1
  3. data/CHANGELOG.md +23 -0
  4. data/README.md +11 -5
  5. data/data/geocoding/de/352.dat +0 -0
  6. data/data/geocoding/de/352.txt +0 -1
  7. data/data/geocoding/de/43.dat +0 -0
  8. data/data/geocoding/de/43.txt +2 -0
  9. data/data/geocoding/de/49.dat +0 -0
  10. data/data/geocoding/de/49.txt +3 -3
  11. data/data/geocoding/en/1.dat +0 -0
  12. data/data/geocoding/en/1.txt +441 -12
  13. data/data/geocoding/en/212.dat +0 -0
  14. data/data/geocoding/en/212.txt +12 -4
  15. data/data/geocoding/en/213.dat +0 -0
  16. data/data/geocoding/en/213.txt +1 -0
  17. data/data/geocoding/en/221.dat +0 -0
  18. data/data/geocoding/en/221.txt +7 -1
  19. data/data/geocoding/en/224.dat +0 -0
  20. data/data/geocoding/en/224.txt +1 -1
  21. data/data/geocoding/en/225.dat +0 -0
  22. data/data/geocoding/en/225.txt +36 -12
  23. data/data/geocoding/en/233.dat +0 -0
  24. data/data/geocoding/en/233.txt +1 -0
  25. data/data/geocoding/en/234.dat +0 -0
  26. data/data/geocoding/en/234.txt +16 -1
  27. data/data/geocoding/en/236.dat +0 -0
  28. data/data/geocoding/en/236.txt +15 -0
  29. data/data/geocoding/en/238.dat +0 -0
  30. data/data/geocoding/en/238.txt +3 -3
  31. data/data/geocoding/en/252.dat +0 -0
  32. data/data/geocoding/en/252.txt +0 -1
  33. data/data/geocoding/en/264.dat +0 -0
  34. data/data/geocoding/en/264.txt +2 -0
  35. data/data/geocoding/en/267.dat +0 -0
  36. data/data/geocoding/en/267.txt +1 -0
  37. data/data/geocoding/en/290.dat +0 -0
  38. data/data/geocoding/en/290.txt +6 -1
  39. data/data/geocoding/en/33.txt +115 -1
  40. data/data/geocoding/en/352.dat +0 -0
  41. data/data/geocoding/en/352.txt +0 -1
  42. data/data/geocoding/en/370.dat +0 -0
  43. data/data/geocoding/en/370.txt +9 -2
  44. data/data/geocoding/en/374.dat +0 -0
  45. data/data/geocoding/en/374.txt +0 -5
  46. data/data/geocoding/en/380.dat +0 -0
  47. data/data/geocoding/en/380.txt +1 -1
  48. data/data/geocoding/en/389.dat +0 -0
  49. data/data/geocoding/en/389.txt +29 -2
  50. data/data/geocoding/en/421.dat +0 -0
  51. data/data/geocoding/en/421.txt +15 -14
  52. data/data/geocoding/en/43.dat +0 -0
  53. data/data/geocoding/en/43.txt +2 -0
  54. data/data/geocoding/en/44.dat +0 -0
  55. data/data/geocoding/en/44.txt +17 -6
  56. data/data/geocoding/en/49.dat +0 -0
  57. data/data/geocoding/en/49.txt +3 -3
  58. data/data/geocoding/en/504.dat +0 -0
  59. data/data/geocoding/en/504.txt +77 -2
  60. data/data/geocoding/en/52.dat +0 -0
  61. data/data/geocoding/en/52.txt +2 -0
  62. data/data/geocoding/en/54.dat +0 -0
  63. data/data/geocoding/en/54.txt +18 -3
  64. data/data/geocoding/en/55.dat +0 -0
  65. data/data/geocoding/en/55.txt +1 -1
  66. data/data/geocoding/en/56.dat +0 -0
  67. data/data/geocoding/en/56.txt +38 -1
  68. data/data/geocoding/en/57.dat +0 -0
  69. data/data/geocoding/en/57.txt +149 -0
  70. data/data/geocoding/en/58.dat +0 -0
  71. data/data/geocoding/en/58.txt +21 -12
  72. data/data/geocoding/en/593.dat +0 -0
  73. data/data/geocoding/en/593.txt +21 -0
  74. data/data/geocoding/en/595.dat +0 -0
  75. data/data/geocoding/en/595.txt +73 -0
  76. data/data/geocoding/en/598.dat +0 -0
  77. data/data/geocoding/en/598.txt +41 -0
  78. data/data/geocoding/en/599.dat +0 -0
  79. data/data/geocoding/en/599.txt +8 -2
  80. data/data/geocoding/en/60.dat +0 -0
  81. data/data/geocoding/en/60.txt +9 -8
  82. data/data/geocoding/en/61.dat +0 -0
  83. data/data/geocoding/en/61.txt +20670 -2002
  84. data/data/geocoding/en/63.dat +0 -0
  85. data/data/geocoding/en/63.txt +61 -0
  86. data/data/geocoding/en/64.dat +0 -0
  87. data/data/geocoding/en/64.txt +2862 -108
  88. data/data/geocoding/en/66.dat +0 -0
  89. data/data/geocoding/en/66.txt +4 -0
  90. data/data/geocoding/en/670.dat +0 -0
  91. data/data/geocoding/en/670.txt +31 -0
  92. data/data/geocoding/en/672.dat +0 -0
  93. data/data/geocoding/en/672.txt +18 -0
  94. data/data/geocoding/en/678.dat +0 -0
  95. data/data/geocoding/en/678.txt +27 -0
  96. data/data/geocoding/en/680.dat +0 -0
  97. data/data/geocoding/en/680.txt +1 -1
  98. data/data/geocoding/en/685.dat +0 -0
  99. data/data/geocoding/en/685.txt +27 -0
  100. data/data/geocoding/en/686.dat +0 -0
  101. data/data/geocoding/en/686.txt +0 -1
  102. data/data/geocoding/en/689.dat +0 -0
  103. data/data/geocoding/en/689.txt +24 -0
  104. data/data/geocoding/en/690.dat +0 -0
  105. data/data/geocoding/en/690.txt +17 -0
  106. data/data/geocoding/en/7.dat +0 -0
  107. data/data/geocoding/en/7.txt +3 -0
  108. data/data/geocoding/en/81.dat +0 -0
  109. data/data/geocoding/en/81.txt +10 -2
  110. data/data/geocoding/en/850.dat +0 -0
  111. data/data/geocoding/en/850.txt +31 -0
  112. data/data/geocoding/en/880.dat +0 -0
  113. data/data/geocoding/en/880.txt +252 -614
  114. data/data/geocoding/en/92.dat +0 -0
  115. data/data/geocoding/en/92.txt +760 -0
  116. data/data/geocoding/en/94.dat +0 -0
  117. data/data/geocoding/en/94.txt +2 -2
  118. data/data/geocoding/en/961.dat +0 -0
  119. data/data/geocoding/en/961.txt +23 -0
  120. data/data/geocoding/en/962.dat +0 -0
  121. data/data/geocoding/en/962.txt +24 -2
  122. data/data/geocoding/en/963.dat +0 -0
  123. data/data/geocoding/en/963.txt +35 -0
  124. data/data/geocoding/en/967.dat +0 -0
  125. data/data/geocoding/en/967.txt +98 -0
  126. data/data/geocoding/en/970.dat +0 -0
  127. data/data/geocoding/en/970.txt +29 -0
  128. data/data/geocoding/en/993.dat +0 -0
  129. data/data/geocoding/en/993.txt +5 -0
  130. data/data/geocoding/en/994.dat +0 -0
  131. data/data/geocoding/en/994.txt +2 -2
  132. data/data/geocoding/en/995.dat +0 -0
  133. data/data/geocoding/en/995.txt +91 -0
  134. data/data/geocoding/es/52.dat +0 -0
  135. data/data/geocoding/es/52.txt +18 -16
  136. data/data/geocoding/es/54.dat +0 -0
  137. data/data/geocoding/es/54.txt +18 -3
  138. data/data/geocoding/es/56.dat +0 -0
  139. data/data/geocoding/es/56.txt +38 -1
  140. data/data/geocoding/es/57.dat +0 -0
  141. data/data/geocoding/es/57.txt +149 -0
  142. data/data/geocoding/es/58.dat +0 -0
  143. data/data/geocoding/es/58.txt +21 -12
  144. data/data/geocoding/fr/212.dat +0 -0
  145. data/data/geocoding/fr/212.txt +12 -4
  146. data/data/geocoding/fr/225.dat +0 -0
  147. data/data/geocoding/fr/225.txt +36 -12
  148. data/data/geocoding/fr/290.dat +0 -0
  149. data/data/geocoding/fr/290.txt +6 -1
  150. data/data/geocoding/fr/33.txt +115 -1
  151. data/data/geocoding/fr/352.dat +0 -0
  152. data/data/geocoding/fr/352.txt +0 -1
  153. data/data/geocoding/hy/374.dat +0 -0
  154. data/data/geocoding/hy/374.txt +0 -5
  155. data/data/geocoding/ja/81.dat +0 -0
  156. data/data/geocoding/ja/81.txt +9 -1
  157. data/data/geocoding/pt/238.dat +0 -0
  158. data/data/geocoding/pt/238.txt +3 -3
  159. data/data/geocoding/pt/55.dat +0 -0
  160. data/data/geocoding/pt/55.txt +1 -1
  161. data/data/geocoding/ru/374.dat +0 -0
  162. data/data/geocoding/ru/374.txt +0 -6
  163. data/data/geocoding/ru/7.dat +0 -0
  164. data/data/geocoding/ru/7.txt +92 -1
  165. data/data/geocoding/th/66.dat +0 -0
  166. data/data/geocoding/th/66.txt +4 -0
  167. data/data/telephone_number_data_file.dat +0 -0
  168. data/data/telephone_number_data_file.xml +4052 -1989
  169. data/data/timezones/map_data.dat +0 -0
  170. data/data/timezones/map_data.txt +287 -208
  171. data/lib/importers/geo_location_data_importer.rb +1 -1
  172. data/lib/telephone_number/country.rb +22 -9
  173. data/lib/telephone_number/version.rb +1 -1
  174. data/lib/telephone_number.rb +0 -1
  175. data/telephone_number.gemspec +1 -0
  176. metadata +47 -10
  177. data/lib/utilities/hash.rb +0 -47
Binary file
@@ -15,6 +15,10 @@
15
15
  # Generated from:
16
16
  # http://en.wikipedia.org/wiki/+66 [495591842]
17
17
 
18
+ 6610|Bangkok/Nonthaburi/Pathum Thani/Samut Prakan
19
+ 6616|Bangkok/Nonthaburi/Pathum Thani/Samut Prakan
20
+ 6618|Bangkok/Nonthaburi/Pathum Thani/Samut Prakan
21
+ 6619|Bangkok/Nonthaburi/Pathum Thani/Samut Prakan
18
22
  662|Bangkok/Nonthaburi/Pathum Thani/Samut Prakan
19
23
  6632|Phetchaburi/Prachuap Khiri Khan/Ratchaburi
20
24
  6633|Chachoengsao/Chon Buri/Rayong
Binary file
@@ -0,0 +1,31 @@
1
+ # Copyright (C) 2020 The Libphonenumber Authors
2
+
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+
16
+ 67021|Manufahi
17
+ 67022|Cova Lima
18
+ 67023|Bobonaro
19
+ 67024|Ainaro
20
+ 67025|Dekuse
21
+ 67031|Dili
22
+ 67032|Dili
23
+ 67033|Dili
24
+ 67036|Liquica
25
+ 67037|Aileu
26
+ 67038|Ermera
27
+ 67039|Oekusi
28
+ 67041|Baucau
29
+ 67042|Manatuto
30
+ 67043|Viqueque
31
+ 67044|Lautem
Binary file
@@ -0,0 +1,18 @@
1
+ # Copyright (C) 2020 The Libphonenumber Authors
2
+
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ 67210|Davis
16
+ 67211|Mawson
17
+ 67212|Casey
18
+ 67213|Macquarie Island
Binary file
@@ -0,0 +1,27 @@
1
+ # Copyright (C) 2020 The Libphonenumber Authors
2
+
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ 67822|Port Vila, Shefa
16
+ 67823|Port Vila, Shefa
17
+ 67824|Port Vila, Shefa
18
+ 67825|Port Vila, Shefa
19
+ 67826|Port Vila, Shefa
20
+ 67827|Port Vila, Shefa
21
+ 67828|Port Vila, Shefa
22
+ 67829|Port Vila, Shefa
23
+ 67836|Sanma
24
+ 67837|Luganville
25
+ 67838|Penama/Torba
26
+ 6784|Malampa
27
+ 67888|Tafea
Binary file
@@ -17,7 +17,7 @@
17
17
  68025|Sonsorol State and Hatohobei State
18
18
  68027|Angaur State
19
19
  6803|Peleliu State
20
- 6804|Koror State
20
+ 68048|Koror State
21
21
  68053|Ngatpang State
22
22
  68054|Aimeliik State
23
23
  68058|Airai State
Binary file
@@ -0,0 +1,27 @@
1
+ # Copyright (C) 2020 The Libphonenumber Authors
2
+
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ 6852|Apia
16
+ 6853|Apia
17
+ 6854|Upolu Rural
18
+ 6855|Savaii
19
+ 68561|Apia
20
+ 68562|Apia
21
+ 68563|Apia
22
+ 68564|Apia
23
+ 68565|Apia
24
+ 68566|Apia
25
+ 68567|Apia
26
+ 68568|Apia
27
+ 68569|Apia
Binary file
@@ -23,7 +23,6 @@
23
23
  68627|Tarawa
24
24
  68628|Bikenibeu
25
25
  68629|Bikenibeu
26
- 68630|Tarawa
27
26
  68631|North Tarawa
28
27
  68632|North Tarawa
29
28
  68633|Abaiang
Binary file
@@ -0,0 +1,24 @@
1
+ # Copyright (C) 2019 The Libphonenumber Authors
2
+
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ 689404|Îles du Vent(IDV)
16
+ 689405|Îles du Vent(IDV)
17
+ 689406|Îles Sous-le-vent(ISLV)
18
+ 689408|Îles du Vent(IDV)
19
+ 6894088|Polynesia
20
+ 689409|Remote Archipelago
21
+ 689494|Polynesia
22
+ 689495|Polynesia
23
+ 689496|Polynesia
24
+ 689498|Polynesia
Binary file
@@ -0,0 +1,17 @@
1
+ # Copyright (C) 2019 The Libphonenumber Authors
2
+
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ 6902|Atafu Atoll
16
+ 6903|Fakaofo Atoll
17
+ 6904|Nakunonu Atoll
Binary file
@@ -34,6 +34,7 @@
34
34
  7351|Chelyabinsk
35
35
  7352|Kurgan
36
36
  7353|Orenburg
37
+ 736|Simferopol
37
38
  7381|Omsk
38
39
  7382|Tomsk
39
40
  7383|Novosibirsk
@@ -43,6 +44,7 @@
43
44
  7390|Republic of Khakassia
44
45
  7391|Krasnoyarsk Territory
45
46
  7394|Republic of Tuva
47
+ 7395|Irkutsk
46
48
  740|Kaliningrad
47
49
  7411|Republic of Sakha
48
50
  7413|Magadan
@@ -391,6 +393,7 @@
391
393
  7865|Stavropol territory
392
394
  7866|Kabardino-Balkarian Republic
393
395
  7867|Republic of North Ossetia
396
+ 7869|Sevastopol
394
397
  7871|Chechen Republic
395
398
  7872|Republic of Daghestan
396
399
  7873|Ingushi Republic
Binary file
@@ -693,7 +693,15 @@
693
693
  815997|Ago, Mie
694
694
  815998|Ago, Mie
695
695
  815999|Tsu, Mie
696
- 816|Osaka, Osaka
696
+ 8161|Osaka, Osaka
697
+ 8162|Osaka, Osaka
698
+ 8163|Osaka, Osaka
699
+ 8164|Osaka, Osaka
700
+ 8165|Osaka, Osaka
701
+ 8166|Osaka, Osaka
702
+ 8167|Osaka, Osaka
703
+ 8168|Osaka, Osaka
704
+ 8169|Osaka, Osaka
697
705
  81721|Tondabayashi, Osaka
698
706
  81722|Sakai, Osaka
699
707
  81723|Sakai, Osaka
@@ -1126,7 +1134,7 @@
1126
1134
  819556|Karatsu, Saga
1127
1135
  819557|Karatsu, Saga
1128
1136
  819558|Karatsu, Saga
1129
- 81956|Sasebo, Japan
1137
+ 81956|Sasebo, Nagasaki
1130
1138
  819572|Isahaya, Nagasaki
1131
1139
  819573|Isahaya, Nagasaki
1132
1140
  819574|Isahaya, Nagasaki
Binary file
@@ -0,0 +1,31 @@
1
+ # Copyright (C) 2020 The Libphonenumber Authors
2
+
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ 850195|Pyongyang
16
+ 85021|Pyongyang
17
+ 8502381|Pyongyang
18
+ 85027|Pyongyang
19
+ 85028|Pyongyang
20
+ 85031|Pyongyang
21
+ 85039|Nampo
22
+ 85041|Sariwon
23
+ 85045|Haeju
24
+ 85049|Kaesong
25
+ 85053|Hamhung
26
+ 85057|Wonsan
27
+ 85061|Sinuiju
28
+ 85067|Kanggye
29
+ 85073|Chongjin
30
+ 85079|Hyesan
31
+ 8508|Rason
Binary file