countries 3.1.0 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (395) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/tests.yml +37 -0
  3. data/.gitignore +1 -0
  4. data/CHANGELOG.md +28 -1
  5. data/Gemfile +5 -0
  6. data/README.markdown +30 -27
  7. data/Rakefile +5 -3
  8. data/countries.gemspec +8 -5
  9. data/lib/countries.rb +0 -1
  10. data/lib/countries/cache/countries.json +1 -1
  11. data/lib/countries/cache/locales/an.json +1 -1
  12. data/lib/countries/cache/locales/be.json +1 -1
  13. data/lib/countries/cache/locales/cv.json +1 -1
  14. data/lib/countries/cache/locales/he.json +1 -1
  15. data/lib/countries/cache/locales/hr.json +1 -1
  16. data/lib/countries/cache/locales/ru.json +1 -1
  17. data/lib/countries/cache/locales/sv.json +1 -1
  18. data/lib/countries/cache/locales/tr.json +1 -1
  19. data/lib/countries/country.rb +4 -0
  20. data/lib/countries/country/class_methods.rb +10 -3
  21. data/lib/countries/data.rb +48 -22
  22. data/lib/countries/data/countries/AL.yaml +2 -2
  23. data/lib/countries/data/countries/AM.yaml +2 -2
  24. data/lib/countries/data/countries/AO.yaml +10 -10
  25. data/lib/countries/data/countries/AQ.yaml +2 -2
  26. data/lib/countries/data/countries/AS.yaml +2 -2
  27. data/lib/countries/data/countries/AT.yaml +3 -3
  28. data/lib/countries/data/countries/BA.yaml +4 -4
  29. data/lib/countries/data/countries/BD.yaml +2 -2
  30. data/lib/countries/data/countries/BE.yaml +1 -1
  31. data/lib/countries/data/countries/BF.yaml +8 -8
  32. data/lib/countries/data/countries/BG.yaml +4 -4
  33. data/lib/countries/data/countries/BH.yaml +4 -4
  34. data/lib/countries/data/countries/BI.yaml +6 -6
  35. data/lib/countries/data/countries/BJ.yaml +2 -2
  36. data/lib/countries/data/countries/BR.yaml +4 -4
  37. data/lib/countries/data/countries/BT.yaml +6 -6
  38. data/lib/countries/data/countries/BV.yaml +10 -10
  39. data/lib/countries/data/countries/BW.yaml +4 -4
  40. data/lib/countries/data/countries/CC.yaml +2 -2
  41. data/lib/countries/data/countries/CF.yaml +2 -2
  42. data/lib/countries/data/countries/CG.yaml +2 -2
  43. data/lib/countries/data/countries/CH.yaml +3 -3
  44. data/lib/countries/data/countries/CI.yaml +2 -2
  45. data/lib/countries/data/countries/CL.yaml +2 -2
  46. data/lib/countries/data/countries/CN.yaml +4 -4
  47. data/lib/countries/data/countries/CO.yaml +4 -4
  48. data/lib/countries/data/countries/CR.yaml +2 -2
  49. data/lib/countries/data/countries/CV.yaml +2 -2
  50. data/lib/countries/data/countries/CY.yaml +2 -2
  51. data/lib/countries/data/countries/CZ.yaml +2 -2
  52. data/lib/countries/data/countries/DE.yaml +2 -2
  53. data/lib/countries/data/countries/DJ.yaml +6 -6
  54. data/lib/countries/data/countries/DK.yaml +2 -2
  55. data/lib/countries/data/countries/DZ.yaml +6 -6
  56. data/lib/countries/data/countries/EC.yaml +4 -4
  57. data/lib/countries/data/countries/EE.yaml +3 -3
  58. data/lib/countries/data/countries/ES.yaml +1 -1
  59. data/lib/countries/data/countries/FI.yaml +5 -5
  60. data/lib/countries/data/countries/FK.yaml +2 -2
  61. data/lib/countries/data/countries/FM.yaml +2 -2
  62. data/lib/countries/data/countries/FO.yaml +5 -5
  63. data/lib/countries/data/countries/FR.yaml +3 -3
  64. data/lib/countries/data/countries/GE.yaml +4 -4
  65. data/lib/countries/data/countries/GG.yaml +10 -10
  66. data/lib/countries/data/countries/GH.yaml +4 -4
  67. data/lib/countries/data/countries/GI.yaml +2 -2
  68. data/lib/countries/data/countries/GL.yaml +6 -6
  69. data/lib/countries/data/countries/GM.yaml +4 -4
  70. data/lib/countries/data/countries/GN.yaml +2 -2
  71. data/lib/countries/data/countries/GR.yaml +2 -2
  72. data/lib/countries/data/countries/GS.yaml +2 -2
  73. data/lib/countries/data/countries/GT.yaml +2 -2
  74. data/lib/countries/data/countries/HK.yaml +4 -4
  75. data/lib/countries/data/countries/HN.yaml +2 -2
  76. data/lib/countries/data/countries/HR.yaml +3 -3
  77. data/lib/countries/data/countries/HU.yaml +7 -7
  78. data/lib/countries/data/countries/IE.yaml +10 -10
  79. data/lib/countries/data/countries/IM.yaml +8 -8
  80. data/lib/countries/data/countries/IN.yaml +2 -2
  81. data/lib/countries/data/countries/IO.yaml +2 -2
  82. data/lib/countries/data/countries/IQ.yaml +2 -2
  83. data/lib/countries/data/countries/IS.yaml +4 -4
  84. data/lib/countries/data/countries/IT.yaml +1 -1
  85. data/lib/countries/data/countries/JO.yaml +2 -2
  86. data/lib/countries/data/countries/KE.yaml +2 -2
  87. data/lib/countries/data/countries/KG.yaml +2 -2
  88. data/lib/countries/data/countries/KI.yaml +6 -6
  89. data/lib/countries/data/countries/KP.yaml +3 -2
  90. data/lib/countries/data/countries/KZ.yaml +2 -2
  91. data/lib/countries/data/countries/LA.yaml +6 -6
  92. data/lib/countries/data/countries/LT.yaml +6 -6
  93. data/lib/countries/data/countries/LV.yaml +4 -4
  94. data/lib/countries/data/countries/MA.yaml +4 -4
  95. data/lib/countries/data/countries/MD.yaml +8 -8
  96. data/lib/countries/data/countries/ME.yaml +2 -2
  97. data/lib/countries/data/countries/MH.yaml +2 -2
  98. data/lib/countries/data/countries/MK.yaml +2 -2
  99. data/lib/countries/data/countries/ML.yaml +4 -4
  100. data/lib/countries/data/countries/MN.yaml +8 -8
  101. data/lib/countries/data/countries/MR.yaml +2 -2
  102. data/lib/countries/data/countries/MT.yaml +2 -2
  103. data/lib/countries/data/countries/MV.yaml +2 -2
  104. data/lib/countries/data/countries/MW.yaml +2 -2
  105. data/lib/countries/data/countries/MX.yaml +2 -2
  106. data/lib/countries/data/countries/MY.yaml +2 -2
  107. data/lib/countries/data/countries/NA.yaml +4 -4
  108. data/lib/countries/data/countries/NE.yaml +4 -4
  109. data/lib/countries/data/countries/NI.yaml +2 -2
  110. data/lib/countries/data/countries/NL.yaml +2 -2
  111. data/lib/countries/data/countries/NO.yaml +4 -4
  112. data/lib/countries/data/countries/NP.yaml +6 -6
  113. data/lib/countries/data/countries/OM.yaml +2 -2
  114. data/lib/countries/data/countries/PA.yaml +2 -2
  115. data/lib/countries/data/countries/PE.yaml +4 -4
  116. data/lib/countries/data/countries/PF.yaml +4 -4
  117. data/lib/countries/data/countries/PH.yaml +2 -2
  118. data/lib/countries/data/countries/PK.yaml +4 -4
  119. data/lib/countries/data/countries/PL.yaml +4 -4
  120. data/lib/countries/data/countries/PR.yaml +8 -8
  121. data/lib/countries/data/countries/PT.yaml +5 -5
  122. data/lib/countries/data/countries/PY.yaml +2 -2
  123. data/lib/countries/data/countries/QA.yaml +2 -2
  124. data/lib/countries/data/countries/RO.yaml +6 -6
  125. data/lib/countries/data/countries/RU.yaml +2 -2
  126. data/lib/countries/data/countries/RW.yaml +2 -2
  127. data/lib/countries/data/countries/SA.yaml +2 -2
  128. data/lib/countries/data/countries/SC.yaml +2 -2
  129. data/lib/countries/data/countries/SD.yaml +2 -2
  130. data/lib/countries/data/countries/SE.yaml +4 -4
  131. data/lib/countries/data/countries/SH.yaml +4 -4
  132. data/lib/countries/data/countries/SI.yaml +4 -4
  133. data/lib/countries/data/countries/SJ.yaml +5 -5
  134. data/lib/countries/data/countries/SK.yaml +6 -6
  135. data/lib/countries/data/countries/SL.yaml +2 -2
  136. data/lib/countries/data/countries/SN.yaml +4 -4
  137. data/lib/countries/data/countries/TF.yaml +5 -5
  138. data/lib/countries/data/countries/TG.yaml +6 -6
  139. data/lib/countries/data/countries/TV.yaml +2 -2
  140. data/lib/countries/data/countries/TZ.yaml +2 -2
  141. data/lib/countries/data/countries/UA.yaml +5 -5
  142. data/lib/countries/data/countries/UG.yaml +4 -4
  143. data/lib/countries/data/countries/UY.yaml +2 -2
  144. data/lib/countries/data/countries/VC.yaml +2 -2
  145. data/lib/countries/data/countries/VE.yaml +2 -2
  146. data/lib/countries/data/countries/VN.yaml +4 -4
  147. data/lib/countries/data/countries/WS.yaml +2 -2
  148. data/lib/countries/data/countries/ZA.yaml +2 -2
  149. data/lib/countries/data/countries/ZM.yaml +4 -4
  150. data/lib/countries/data/countries/ZW.yaml +4 -4
  151. data/lib/countries/data/subdivisions/AD.yaml +35 -28
  152. data/lib/countries/data/subdivisions/AE.yaml +142 -63
  153. data/lib/countries/data/subdivisions/AF.yaml +569 -298
  154. data/lib/countries/data/subdivisions/AG.yaml +141 -68
  155. data/lib/countries/data/subdivisions/AI.yaml +139 -125
  156. data/lib/countries/data/subdivisions/AL.yaml +472 -156
  157. data/lib/countries/data/subdivisions/AM.yaml +235 -99
  158. data/lib/countries/data/subdivisions/AO.yaml +344 -162
  159. data/lib/countries/data/subdivisions/AR.yaml +447 -210
  160. data/lib/countries/data/subdivisions/AS.yaml +64 -45
  161. data/lib/countries/data/subdivisions/AT.yaml +200 -81
  162. data/lib/countries/data/subdivisions/AU.yaml +211 -72
  163. data/lib/countries/data/subdivisions/AW.yaml +9 -0
  164. data/lib/countries/data/subdivisions/AX.yaml +38 -27
  165. data/lib/countries/data/subdivisions/AZ.yaml +1547 -666
  166. data/lib/countries/data/subdivisions/BA.yaml +198 -28
  167. data/lib/countries/data/subdivisions/BB.yaml +187 -99
  168. data/lib/countries/data/subdivisions/BD.yaml +1246 -585
  169. data/lib/countries/data/subdivisions/BE.yaml +276 -100
  170. data/lib/countries/data/subdivisions/BF.yaml +987 -418
  171. data/lib/countries/data/subdivisions/BG.yaml +599 -246
  172. data/lib/countries/data/subdivisions/BH.yaml +73 -40
  173. data/lib/countries/data/subdivisions/BI.yaml +299 -141
  174. data/lib/countries/data/subdivisions/BJ.yaml +214 -108
  175. data/lib/countries/data/subdivisions/BL.yaml +11 -0
  176. data/lib/countries/data/subdivisions/BM.yaml +110 -99
  177. data/lib/countries/data/subdivisions/BN.yaml +63 -36
  178. data/lib/countries/data/subdivisions/BO.yaml +157 -81
  179. data/lib/countries/data/subdivisions/BQ.yaml +61 -26
  180. data/lib/countries/data/subdivisions/BR.yaml +663 -243
  181. data/lib/countries/data/subdivisions/BS.yaml +637 -151
  182. data/lib/countries/data/subdivisions/BT.yaml +346 -180
  183. data/lib/countries/data/subdivisions/BW.yaml +291 -87
  184. data/lib/countries/data/subdivisions/BY.yaml +140 -59
  185. data/lib/countries/data/subdivisions/BZ.yaml +97 -54
  186. data/lib/countries/data/subdivisions/CA.yaml +356 -118
  187. data/lib/countries/data/subdivisions/CD.yaml +453 -97
  188. data/lib/countries/data/subdivisions/CF.yaml +289 -153
  189. data/lib/countries/data/subdivisions/CG.yaml +214 -98
  190. data/lib/countries/data/subdivisions/CH.yaml +593 -234
  191. data/lib/countries/data/subdivisions/CI.yaml +443 -90
  192. data/lib/countries/data/subdivisions/CK.yaml +110 -99
  193. data/lib/countries/data/subdivisions/CL.yaml +262 -148
  194. data/lib/countries/data/subdivisions/CM.yaml +186 -90
  195. data/lib/countries/data/subdivisions/CO.yaml +610 -297
  196. data/lib/countries/data/subdivisions/CP.yaml +4 -0
  197. data/lib/countries/data/subdivisions/CR.yaml +119 -63
  198. data/lib/countries/data/subdivisions/CU.yaml +269 -144
  199. data/lib/countries/data/subdivisions/CV.yaml +416 -151
  200. data/lib/countries/data/subdivisions/CW.yaml +9 -0
  201. data/lib/countries/data/subdivisions/CY.yaml +102 -54
  202. data/lib/countries/data/subdivisions/CZ.yaml +2543 -197
  203. data/lib/countries/data/subdivisions/DE.yaml +450 -144
  204. data/lib/countries/data/subdivisions/DJ.yaml +108 -54
  205. data/lib/countries/data/subdivisions/DK.yaml +194 -109
  206. data/lib/countries/data/subdivisions/DM.yaml +159 -90
  207. data/lib/countries/data/subdivisions/DO.yaml +671 -289
  208. data/lib/countries/data/subdivisions/DZ.yaml +812 -435
  209. data/lib/countries/data/subdivisions/EC.yaml +390 -215
  210. data/lib/countries/data/subdivisions/EE.yaml +273 -135
  211. data/lib/countries/data/subdivisions/EG.yaml +472 -243
  212. data/lib/countries/data/subdivisions/EH.yaml +24 -16
  213. data/lib/countries/data/subdivisions/ER.yaml +109 -54
  214. data/lib/countries/data/subdivisions/ES.yaml +1804 -620
  215. data/lib/countries/data/subdivisions/ET.yaml +204 -99
  216. data/lib/countries/data/subdivisions/FI.yaml +408 -43
  217. data/lib/countries/data/subdivisions/FJ.yaml +312 -58
  218. data/lib/countries/data/subdivisions/FM.yaml +64 -36
  219. data/lib/countries/data/subdivisions/FO.yaml +60 -54
  220. data/lib/countries/data/subdivisions/FR.yaml +2790 -982
  221. data/lib/countries/data/subdivisions/GA.yaml +159 -81
  222. data/lib/countries/data/subdivisions/GB.yaml +4958 -1973
  223. data/lib/countries/data/subdivisions/GD.yaml +114 -63
  224. data/lib/countries/data/subdivisions/GE.yaml +236 -108
  225. data/lib/countries/data/subdivisions/GF.yaml +11 -0
  226. data/lib/countries/data/subdivisions/GG.yaml +110 -99
  227. data/lib/countries/data/subdivisions/GH.yaml +254 -88
  228. data/lib/countries/data/subdivisions/GL.yaml +87 -4
  229. data/lib/countries/data/subdivisions/GM.yaml +122 -54
  230. data/lib/countries/data/subdivisions/GN.yaml +706 -312
  231. data/lib/countries/data/subdivisions/GP.yaml +11 -0
  232. data/lib/countries/data/subdivisions/GQ.yaml +141 -81
  233. data/lib/countries/data/subdivisions/GR.yaml +642 -226
  234. data/lib/countries/data/subdivisions/GT.yaml +351 -198
  235. data/lib/countries/data/subdivisions/GU.yaml +198 -171
  236. data/lib/countries/data/subdivisions/GW.yaml +189 -79
  237. data/lib/countries/data/subdivisions/GY.yaml +163 -90
  238. data/lib/countries/data/subdivisions/HK.yaml +194 -162
  239. data/lib/countries/data/subdivisions/HN.yaml +275 -162
  240. data/lib/countries/data/subdivisions/HR.yaml +428 -189
  241. data/lib/countries/data/subdivisions/HT.yaml +178 -81
  242. data/lib/countries/data/subdivisions/HU.yaml +792 -381
  243. data/lib/countries/data/subdivisions/IC.yaml +4 -0
  244. data/lib/countries/data/subdivisions/ID.yaml +2303 -1868
  245. data/lib/countries/data/subdivisions/IE.yaml +665 -304
  246. data/lib/countries/data/subdivisions/IL.yaml +114 -54
  247. data/lib/countries/data/subdivisions/IM.yaml +240 -216
  248. data/lib/countries/data/subdivisions/IN.yaml +972 -337
  249. data/lib/countries/data/subdivisions/IQ.yaml +316 -157
  250. data/lib/countries/data/subdivisions/IR.yaml +591 -268
  251. data/lib/countries/data/subdivisions/IS.yaml +158 -76
  252. data/lib/countries/data/subdivisions/IT.yaml +2686 -1009
  253. data/lib/countries/data/subdivisions/JE.yaml +120 -108
  254. data/lib/countries/data/subdivisions/JM.yaml +243 -126
  255. data/lib/countries/data/subdivisions/JO.yaml +182 -97
  256. data/lib/countries/data/subdivisions/JP.yaml +950 -425
  257. data/lib/countries/data/subdivisions/KE.yaml +800 -79
  258. data/lib/countries/data/subdivisions/KG.yaml +186 -72
  259. data/lib/countries/data/subdivisions/KH.yaml +436 -216
  260. data/lib/countries/data/subdivisions/KI.yaml +57 -27
  261. data/lib/countries/data/subdivisions/KM.yaml +49 -27
  262. data/lib/countries/data/subdivisions/KN.yaml +307 -127
  263. data/lib/countries/data/subdivisions/KP.yaml +361 -67
  264. data/lib/countries/data/subdivisions/KR.yaml +376 -134
  265. data/lib/countries/data/subdivisions/KW.yaml +88 -54
  266. data/lib/countries/data/subdivisions/KY.yaml +36 -24
  267. data/lib/countries/data/subdivisions/KZ.yaml +360 -151
  268. data/lib/countries/data/subdivisions/LA.yaml +296 -157
  269. data/lib/countries/data/subdivisions/LB.yaml +130 -49
  270. data/lib/countries/data/subdivisions/LC.yaml +167 -10
  271. data/lib/countries/data/subdivisions/LI.yaml +154 -68
  272. data/lib/countries/data/subdivisions/LK.yaml +556 -233
  273. data/lib/countries/data/subdivisions/LR.yaml +253 -126
  274. data/lib/countries/data/subdivisions/LS.yaml +149 -90
  275. data/lib/countries/data/subdivisions/LT.yaml +1090 -149
  276. data/lib/countries/data/subdivisions/LU.yaml +198 -27
  277. data/lib/countries/data/subdivisions/LV.yaml +2332 -277
  278. data/lib/countries/data/subdivisions/LY.yaml +341 -184
  279. data/lib/countries/data/subdivisions/MA.yaml +1487 -562
  280. data/lib/countries/data/subdivisions/MC.yaml +265 -17
  281. data/lib/countries/data/subdivisions/MD.yaml +633 -127
  282. data/lib/countries/data/subdivisions/ME.yaml +429 -190
  283. data/lib/countries/data/subdivisions/MF.yaml +9 -0
  284. data/lib/countries/data/subdivisions/MG.yaml +93 -54
  285. data/lib/countries/data/subdivisions/MH.yaml +429 -213
  286. data/lib/countries/data/subdivisions/MK.yaml +3083 -425
  287. data/lib/countries/data/subdivisions/ML.yaml +185 -80
  288. data/lib/countries/data/subdivisions/MM.yaml +274 -126
  289. data/lib/countries/data/subdivisions/MN.yaml +420 -198
  290. data/lib/countries/data/subdivisions/MO.yaml +9 -0
  291. data/lib/countries/data/subdivisions/MP.yaml +54 -36
  292. data/lib/countries/data/subdivisions/MQ.yaml +11 -0
  293. data/lib/countries/data/subdivisions/MR.yaml +249 -115
  294. data/lib/countries/data/subdivisions/MS.yaml +30 -27
  295. data/lib/countries/data/subdivisions/MT.yaml +1059 -612
  296. data/lib/countries/data/subdivisions/MU.yaml +314 -147
  297. data/lib/countries/data/subdivisions/MV.yaml +466 -192
  298. data/lib/countries/data/subdivisions/MW.yaml +536 -246
  299. data/lib/countries/data/subdivisions/MX.yaml +707 -288
  300. data/lib/countries/data/subdivisions/MY.yaml +334 -144
  301. data/lib/countries/data/subdivisions/MZ.yaml +188 -93
  302. data/lib/countries/data/subdivisions/NA.yaml +221 -120
  303. data/lib/countries/data/subdivisions/NC.yaml +44 -27
  304. data/lib/countries/data/subdivisions/NE.yaml +161 -72
  305. data/lib/countries/data/subdivisions/NG.yaml +833 -333
  306. data/lib/countries/data/subdivisions/NI.yaml +260 -153
  307. data/lib/countries/data/subdivisions/NL.yaml +382 -113
  308. data/lib/countries/data/subdivisions/NO.yaml +596 -102
  309. data/lib/countries/data/subdivisions/NP.yaml +389 -130
  310. data/lib/countries/data/subdivisions/NR.yaml +260 -126
  311. data/lib/countries/data/subdivisions/NZ.yaml +322 -151
  312. data/lib/countries/data/subdivisions/OM.yaml +205 -66
  313. data/lib/countries/data/subdivisions/PA.yaml +204 -113
  314. data/lib/countries/data/subdivisions/PE.yaml +418 -234
  315. data/lib/countries/data/subdivisions/PF.yaml +60 -45
  316. data/lib/countries/data/subdivisions/PG.yaml +383 -177
  317. data/lib/countries/data/subdivisions/PH.yaml +1867 -767
  318. data/lib/countries/data/subdivisions/PK.yaml +185 -63
  319. data/lib/countries/data/subdivisions/PL.yaml +1161 -143
  320. data/lib/countries/data/subdivisions/PM.yaml +30 -18
  321. data/lib/countries/data/subdivisions/PR.yaml +1107 -0
  322. data/lib/countries/data/subdivisions/PS.yaml +265 -16
  323. data/lib/countries/data/subdivisions/PT.yaml +341 -180
  324. data/lib/countries/data/subdivisions/PW.yaml +265 -144
  325. data/lib/countries/data/subdivisions/PY.yaml +321 -162
  326. data/lib/countries/data/subdivisions/QA.yaml +165 -71
  327. data/lib/countries/data/subdivisions/RE.yaml +11 -0
  328. data/lib/countries/data/subdivisions/RO.yaml +731 -381
  329. data/lib/countries/data/subdivisions/RS.yaml +582 -261
  330. data/lib/countries/data/subdivisions/RU.yaml +1873 -750
  331. data/lib/countries/data/subdivisions/RW.yaml +100 -45
  332. data/lib/countries/data/subdivisions/SA.yaml +234 -117
  333. data/lib/countries/data/subdivisions/SB.yaml +169 -90
  334. data/lib/countries/data/subdivisions/SC.yaml +457 -208
  335. data/lib/countries/data/subdivisions/SD.yaml +142 -18
  336. data/lib/countries/data/subdivisions/SE.yaml +435 -258
  337. data/lib/countries/data/subdivisions/SG.yaml +117 -25
  338. data/lib/countries/data/subdivisions/SH.yaml +68 -18
  339. data/lib/countries/data/subdivisions/SI.yaml +3605 -1760
  340. data/lib/countries/data/subdivisions/SJ.yaml +20 -18
  341. data/lib/countries/data/subdivisions/SK.yaml +129 -72
  342. data/lib/countries/data/subdivisions/SL.yaml +80 -35
  343. data/lib/countries/data/subdivisions/SM.yaml +158 -81
  344. data/lib/countries/data/subdivisions/SN.yaml +232 -101
  345. data/lib/countries/data/subdivisions/SO.yaml +313 -161
  346. data/lib/countries/data/subdivisions/SR.yaml +158 -90
  347. data/lib/countries/data/subdivisions/SS.yaml +196 -10
  348. data/lib/countries/data/subdivisions/ST.yaml +30 -18
  349. data/lib/countries/data/subdivisions/SV.yaml +233 -126
  350. data/lib/countries/data/subdivisions/SX.yaml +9 -0
  351. data/lib/countries/data/subdivisions/SY.yaml +219 -124
  352. data/lib/countries/data/subdivisions/SZ.yaml +64 -35
  353. data/lib/countries/data/subdivisions/TA.yaml +4 -0
  354. data/lib/countries/data/subdivisions/TD.yaml +408 -161
  355. data/lib/countries/data/subdivisions/TF.yaml +34 -16
  356. data/lib/countries/data/subdivisions/TG.yaml +75 -45
  357. data/lib/countries/data/subdivisions/TH.yaml +1449 -694
  358. data/lib/countries/data/subdivisions/TJ.yaml +98 -28
  359. data/lib/countries/data/subdivisions/TK.yaml +30 -27
  360. data/lib/countries/data/subdivisions/TL.yaml +209 -117
  361. data/lib/countries/data/subdivisions/TM.yaml +116 -45
  362. data/lib/countries/data/subdivisions/TN.yaml +412 -216
  363. data/lib/countries/data/subdivisions/TO.yaml +76 -45
  364. data/lib/countries/data/subdivisions/TR.yaml +1818 -730
  365. data/lib/countries/data/subdivisions/TT.yaml +296 -131
  366. data/lib/countries/data/subdivisions/TV.yaml +130 -64
  367. data/lib/countries/data/subdivisions/TW.yaml +481 -187
  368. data/lib/countries/data/subdivisions/TZ.yaml +635 -237
  369. data/lib/countries/data/subdivisions/UA.yaml +504 -243
  370. data/lib/countries/data/subdivisions/UG.yaml +2237 -752
  371. data/lib/countries/data/subdivisions/UM.yaml +216 -80
  372. data/lib/countries/data/subdivisions/US.yaml +1570 -495
  373. data/lib/countries/data/subdivisions/UY.yaml +364 -170
  374. data/lib/countries/data/subdivisions/UZ.yaml +288 -127
  375. data/lib/countries/data/subdivisions/VC.yaml +96 -53
  376. data/lib/countries/data/subdivisions/VE.yaml +456 -225
  377. data/lib/countries/data/subdivisions/VI.yaml +44 -27
  378. data/lib/countries/data/subdivisions/VN.yaml +3583 -2980
  379. data/lib/countries/data/subdivisions/VU.yaml +98 -54
  380. data/lib/countries/data/subdivisions/WF.yaml +73 -3
  381. data/lib/countries/data/subdivisions/WS.yaml +200 -99
  382. data/lib/countries/data/subdivisions/YE.yaml +376 -173
  383. data/lib/countries/data/subdivisions/YT.yaml +178 -153
  384. data/lib/countries/data/subdivisions/ZA.yaml +230 -81
  385. data/lib/countries/data/subdivisions/ZM.yaml +156 -81
  386. data/lib/countries/data/subdivisions/ZW.yaml +153 -83
  387. data/lib/countries/data/translation_corrections.yaml +4 -1
  388. data/lib/countries/sources/cldr/downloader.rb +12 -13
  389. data/lib/countries/tasks/geocoding.rake +9 -16
  390. data/lib/countries/version.rb +1 -1
  391. data/spec/country_spec.rb +37 -0
  392. data/spec/data_spec.rb +4 -4
  393. data/spec/thread_safety_spec.rb +46 -0
  394. metadata +33 -25
  395. data/.travis.yml +0 -15
@@ -1,8 +1,17 @@
1
1
  ---
2
- AS:
2
+ AS:
3
+ name: Loubnâne ech Chemâli
4
+ code:
3
5
  unofficial_names:
4
6
  - Ash Shamal
5
7
  - North
8
+ geo:
9
+ latitude:
10
+ longitude:
11
+ min_latitude:
12
+ min_longitude:
13
+ max_latitude:
14
+ max_longitude:
6
15
  translations:
7
16
  en: North
8
17
  ar: الشمال
@@ -46,15 +55,14 @@ AS:
46
55
  ur: محافظہ شمالی
47
56
  vi: Tỉnh Bắc
48
57
  zh: 北部省
49
- geo:
50
- latitude:
51
- longitude:
52
- min_latitude:
53
- min_longitude:
54
- max_latitude:
55
- max_longitude:
56
- name: Loubnâne ech Chemâli
57
- BA:
58
+ lv: Ziemeļlibānas muhāfaza
59
+ ceb: Mohafazat Liban-Nord
60
+ ccp: "\U00011105\U0001112A\U00011116\U00011133\U00011126\U00011127\U00011122\U00011134"
61
+ ka: ჩრდილოეთის მუჰაფაზა
62
+ comments:
63
+ BA:
64
+ name: Beirut
65
+ code:
58
66
  unofficial_names:
59
67
  - Bayrout
60
68
  - Bayrut
@@ -62,6 +70,13 @@ BA:
62
70
  - Beyrout
63
71
  - Beyrouth
64
72
  - Beyrût
73
+ geo:
74
+ latitude: 33.8886289
75
+ longitude: 35.4954794
76
+ min_latitude:
77
+ min_longitude:
78
+ max_latitude:
79
+ max_longitude:
65
80
  translations:
66
81
  en: Beirut
67
82
  ar: بيروت
@@ -103,17 +118,24 @@ BA:
103
118
  uk: Бейрут (провінція)
104
119
  ur: محافظہ بیروت
105
120
  vi: Beirut
121
+ lv: Beirūtas muhāfaza
122
+ ceb: Beyrouth
123
+ zh: 贝鲁特省
124
+ ccp: "\U0001111D\U00011130\U00011122\U0001112A\U00011116\U00011134"
125
+ ka: ბეირუთის მუჰაფაზა
126
+ comments:
127
+ BI:
128
+ name: El Béqaa
129
+ code:
130
+ unofficial_names:
131
+ - Bekaa
106
132
  geo:
107
- latitude: 33.8886289
108
- longitude: 35.4954794
133
+ latitude: 33.7616036
134
+ longitude: 35.8835437
109
135
  min_latitude:
110
136
  min_longitude:
111
137
  max_latitude:
112
138
  max_longitude:
113
- name: Beirut
114
- BI:
115
- unofficial_names:
116
- - Bekaa
117
139
  translations:
118
140
  en: Beqaa
119
141
  ar: البقاع
@@ -148,17 +170,23 @@ BI:
148
170
  uk: Бекаа
149
171
  ur: محافظہ بقاع
150
172
  vi: Beqaa
173
+ ceb: Mohafazat Béqaa
174
+ zh: 貝卡省
175
+ ccp: "\U0001111D\U0001112C\U00011107"
176
+ ka: ბექაას მუჰაფაზა
177
+ comments:
178
+ JA:
179
+ name: Loubnâne ej Jnoûbi
180
+ code:
181
+ unofficial_names:
182
+ - South
151
183
  geo:
152
- latitude: 33.7616036
153
- longitude: 35.8835437
184
+ latitude:
185
+ longitude:
154
186
  min_latitude:
155
187
  min_longitude:
156
188
  max_latitude:
157
189
  max_longitude:
158
- name: El Béqaa
159
- JA:
160
- unofficial_names:
161
- - South
162
190
  translations:
163
191
  en: South
164
192
  ar: محافظة الجنوب
@@ -192,17 +220,23 @@ JA:
192
220
  uk: Південний Ліван (провінція)
193
221
  ur: محافظہ جنوبی
194
222
  vi: Tỉnh Nam, Liban
195
- geo:
196
- latitude:
197
- longitude:
198
- min_latitude:
199
- min_longitude:
200
- max_latitude:
201
- max_longitude:
202
- name: Loubnâne ej Jnoûbi
203
- JL:
223
+ ceb: Mohafazat Liban-Sud
224
+ zh: 南部省
225
+ ccp: "\U00011118\U00011127\U0001110A\U00011128\U0001111A\U00011134"
226
+ ka: სამხრეთის მუჰაფაზა
227
+ comments:
228
+ JL:
229
+ name: Jabal Loubnâne
230
+ code:
204
231
  unofficial_names:
205
232
  - Mount Lebanon
233
+ geo:
234
+ latitude: 33.9046635
235
+ longitude: 35.6969984
236
+ min_latitude: 33.4916836
237
+ min_longitude: 35.3858701
238
+ max_latitude: 34.2113502
239
+ max_longitude: 36.0150637
206
240
  translations:
207
241
  en: Mount Lebanon
208
242
  ar: جبل لبنان
@@ -245,17 +279,24 @@ JL:
245
279
  uk: Гірський Ліван
246
280
  ur: محافظہ جبل لبنان
247
281
  vi: Núi Liban
248
- geo:
249
- latitude: 33.9046635
250
- longitude: 35.6969984
251
- min_latitude: 33.4916836
252
- min_longitude: 35.3858701
253
- max_latitude: 34.2113502
254
- max_longitude: 36.0150637
255
- name: Jabal Loubnâne
256
- NA:
282
+ lv: Kalnu Libānas muhāfaza
283
+ zh: 黎巴嫩山省
284
+ ccp: "\U0001111F\U00011127\U00011105\U0001112A\U0001111A\U00011134\U00011111\U00011134
285
+ \U00011123\U0001112C\U0001111D\U0001111A\U00011127\U0001111A\U00011134"
286
+ ka: მთიანი ლიბანის მუჰაფაზა
287
+ comments:
288
+ NA:
289
+ name: Nabatîyé
290
+ code:
257
291
  unofficial_names:
258
292
  - Nabatiyeh
293
+ geo:
294
+ latitude: 33.285507
295
+ longitude: 35.5000999
296
+ min_latitude: 33.0549366
297
+ min_longitude: 35.2418835
298
+ max_latitude: 33.5112517
299
+ max_longitude: 35.86385569999999
259
300
  translations:
260
301
  en: Nabatieh
261
302
  ar: النبطية
@@ -300,22 +341,51 @@ NA:
300
341
  uk: Набатія (провінція)
301
342
  ur: محافظہ نبطیہ
302
343
  vi: Nabatieh
344
+ lv: Nabatijas muhāfaza
345
+ ceb: Mohafazat Nabatîyé
346
+ zh: 納巴泰省
347
+ ccp: "\U0001111A\U00011127\U0001111D\U00011127\U00011111\U00011128\U00011120\U00011126\U00011134"
348
+ ka: ნაბათიეს მუჰაფაზა
349
+ comments:
350
+ AK:
351
+ name:
352
+ code:
353
+ unofficial_names:
303
354
  geo:
304
- latitude: 33.285507
305
- longitude: 35.5000999
306
- min_latitude: 33.0549366
307
- min_longitude: 35.2418835
308
- max_latitude: 33.5112517
309
- max_longitude: 35.86385569999999
310
- name: Nabatîyé
311
- AK:
355
+ latitude:
356
+ longitude:
357
+ min_latitude:
358
+ min_longitude:
359
+ max_latitude:
360
+ max_longitude:
312
361
  translations:
313
362
  ar: محافظة عكار
314
363
  de: Gouvernement Akkar
315
364
  en: Akkar
316
365
  es: Gobernación de Akkar
317
366
  hu: Akkár kormányzóság
318
- BH:
367
+ ceb: Mohafazat Aakkâr
368
+ zh: 阿卡省
369
+ sv: Mohafazat Aakkâr
370
+ ja: アッカール県
371
+ ru: Аккар
372
+ ccp: "\U00011103\U00011127\U00011107\U00011134\U00011107\U00011127\U00011122\U00011134"
373
+ ka: აკარის მუჰაფაზა
374
+ ko: 아카르 주
375
+ he: מחוז עכאר
376
+ it: Governatorato di Akkar
377
+ comments:
378
+ BH:
379
+ name:
380
+ code:
381
+ unofficial_names:
382
+ geo:
383
+ latitude:
384
+ longitude:
385
+ min_latitude:
386
+ min_longitude:
387
+ max_latitude:
388
+ max_longitude:
319
389
  translations:
320
390
  ar: محافظة بعلبك الهرمل
321
391
  de: Gouvernement Baalbek-Hermel
@@ -323,3 +393,14 @@ BH:
323
393
  es: Gobernación de Baalbek - Hermel
324
394
  he: מחוז בעלבכ-הרמל
325
395
  hu: Baalbek-Hermel kormányzóság
396
+ ceb: Mohafazat Baalbek-Hermel
397
+ ur: محافظہ بعلبک الہرمل
398
+ zh: 巴勒貝克-希爾米勒省
399
+ sv: Mohafazat Baalbek-Hermel
400
+ ru: Баальбек-Хирмиль
401
+ ccp: "\U0001111D\U00011127\U00011123\U00011134\U0001111D\U0001112C\U00011107\U00011134-\U00011126\U00011122\U00011134\U0001111F\U0001112C\U00011123\U00011134"
402
+ ka: ბაალბექ-ჰერმელის მუჰაფაზა
403
+ fr: gouvernorat de Baalbek-Hermel
404
+ ko: 바알베크헤르멜 주
405
+ it: Governatorato di Baalbek-Hermel
406
+ comments:
@@ -1,5 +1,15 @@
1
1
  ---
2
- '01':
2
+ '01':
3
+ name:
4
+ code:
5
+ unofficial_names:
6
+ geo:
7
+ latitude:
8
+ longitude:
9
+ min_latitude:
10
+ min_longitude:
11
+ max_latitude:
12
+ max_longitude:
3
13
  translations:
4
14
  ar: حي أنس لا راي
5
15
  bn: আন্স লা রায়ে কোয়ার্টার
@@ -36,7 +46,23 @@
36
46
  ur: انسے لا رائے کوارٹر
37
47
  vi: Anse la Raye
38
48
  zh: 昂斯拉雷區
39
- '05':
49
+ lv: Anslavua
50
+ ceb: Anse-la-Raye
51
+ ccp: "\U00011103\U0001111A\U00011134\U00011125\U0001112C \U00011123 \U00011122\U00011120\U0001112C"
52
+ uk: Анс-Лавуа
53
+ mk: Анс ла Реј
54
+ comments:
55
+ '05':
56
+ name:
57
+ code:
58
+ unofficial_names:
59
+ geo:
60
+ latitude:
61
+ longitude:
62
+ min_latitude:
63
+ min_longitude:
64
+ max_latitude:
65
+ max_longitude:
40
66
  translations:
41
67
  ar: حي دينيري
42
68
  bn: ডেনিরি কোয়ার্টার
@@ -72,7 +98,23 @@
72
98
  tr: Dennery (şehir)
73
99
  ur: دیننیری کوارٹر
74
100
  vi: Dennery (quận)
75
- '06':
101
+ lv: Denerī
102
+ ceb: Dennery (baranggay)
103
+ zh: 登內里區
104
+ ccp: "\U00011113\U0001112C\U00011125\U00011122\U00011129"
105
+ uk: Денері
106
+ comments:
107
+ '06':
108
+ name:
109
+ code:
110
+ unofficial_names:
111
+ geo:
112
+ latitude:
113
+ longitude:
114
+ min_latitude:
115
+ min_longitude:
116
+ max_latitude:
117
+ max_longitude:
76
118
  translations:
77
119
  ar: حي غروس إسليت
78
120
  bn: গ্রোস ইজলেট কোয়ার্টার
@@ -107,7 +149,24 @@
107
149
  tr: Gros Islet (şehir)
108
150
  ur: گروس آئلیٹ کوارٹر
109
151
  vi: Gros Islet
110
- '07':
152
+ lv: Grozilē
153
+ ceb: Gros-Islet
154
+ zh: 格羅斯伊斯勒區
155
+ ccp: "\U00011109\U00011133\U00011122\U00011127\U0001110C\U00011134 \U00011103\U0001112D\U0001110C\U00011134\U00011123\U0001112C\U00011116\U00011134"
156
+ uk: Грос-Айлет
157
+ be: Грос-Айлет
158
+ comments:
159
+ '07':
160
+ name:
161
+ code:
162
+ unofficial_names:
163
+ geo:
164
+ latitude:
165
+ longitude:
166
+ min_latitude:
167
+ min_longitude:
168
+ max_latitude:
169
+ max_longitude:
111
170
  translations:
112
171
  ar: حي لابوري
113
172
  bn: লেবুরি কোয়ার্টার
@@ -143,7 +202,23 @@
143
202
  tr: Laborie
144
203
  ur: لابوری کوارٹیر
145
204
  vi: Laborie
146
- '08':
205
+ lv: Laborī
206
+ ceb: Laborie (baranggay)
207
+ zh: 拉博列區
208
+ ccp: "\U00011123\U0001111D\U0001112E\U00011122\U00011128"
209
+ uk: Лаборі
210
+ comments:
211
+ '08':
212
+ name:
213
+ code:
214
+ unofficial_names:
215
+ geo:
216
+ latitude:
217
+ longitude:
218
+ min_latitude:
219
+ min_longitude:
220
+ max_latitude:
221
+ max_longitude:
147
222
  translations:
148
223
  ar: حي ميكود
149
224
  bn: মাইকড কোয়ার্টার
@@ -178,7 +253,23 @@
178
253
  tr: Micoud (şehir)
179
254
  ur: میکود کوارٹر
180
255
  vi: Micoud
181
- '11':
256
+ lv: Mikū
257
+ ceb: Micoud
258
+ zh: 米庫區
259
+ ccp: "\U0001111F\U00011128\U00011107\U00011105\U0001112A\U00011116\U00011134"
260
+ uk: Міку
261
+ comments:
262
+ '11':
263
+ name:
264
+ code:
265
+ unofficial_names:
266
+ geo:
267
+ latitude:
268
+ longitude:
269
+ min_latitude:
270
+ min_longitude:
271
+ max_latitude:
272
+ max_longitude:
182
273
  translations:
183
274
  ar: فيو فورت
184
275
  bn: ভিয়ক্স ফোর্ট কোয়ার্টার
@@ -213,7 +304,24 @@
213
304
  tr: Vieux Fort
214
305
  ur: ویو فورٹ کوارٹر
215
306
  vi: Vieux Fort
216
- '12':
307
+ lv: Vjēfora
308
+ ceb: Vieux-Fort (baranggay)
309
+ zh: 伯堡區
310
+ ccp: "\U0001111E\U0001112D\U00011120\U0001112C\U00011107\U00011134\U00011125\U00011134
311
+ \U0001111C\U0001112E\U00011122\U00011134\U00011111\U00011134"
312
+ uk: Вʼє-Форт
313
+ comments:
314
+ '12':
315
+ name:
316
+ code:
317
+ unofficial_names:
318
+ geo:
319
+ latitude:
320
+ longitude:
321
+ min_latitude:
322
+ min_longitude:
323
+ max_latitude:
324
+ max_longitude:
217
325
  translations:
218
326
  ar: جزر الكناري
219
327
  bn: কানারাইসে
@@ -247,7 +355,24 @@
247
355
  tr: Canaries
248
356
  ur: کناریز، سینٹ لوسیا
249
357
  vi: Canaries
250
- '02':
358
+ lv: Kanarisa
359
+ ceb: Canaries
360
+ lt: Kanaris
361
+ zh: 卡納里斯
362
+ ccp: "\U00011107\U00011133\U00011120\U0001111A\U00011122\U00011128\U0001110C\U00011134"
363
+ uk: Канаріс
364
+ comments:
365
+ '02':
366
+ name:
367
+ code:
368
+ unofficial_names:
369
+ geo:
370
+ latitude:
371
+ longitude:
372
+ min_latitude:
373
+ min_longitude:
374
+ max_latitude:
375
+ max_longitude:
251
376
  translations:
252
377
  de: Castries
253
378
  en: Castries
@@ -265,7 +390,21 @@
265
390
  tr: Castries (şehir)
266
391
  ur: کاستریس کوارٹر
267
392
  vi: Castries (quận)
268
- '03':
393
+ ceb: Castries (baranggay)
394
+ zh: 卡斯特里區
395
+ ccp: "\U00011107\U0001110C\U00011134\U00011111\U00011133\U00011122\U0001112D\U0001110C\U00011134"
396
+ comments:
397
+ '03':
398
+ name:
399
+ code:
400
+ unofficial_names:
401
+ geo:
402
+ latitude:
403
+ longitude:
404
+ min_latitude:
405
+ min_longitude:
406
+ max_latitude:
407
+ max_longitude:
269
408
  translations:
270
409
  de: Choiseul
271
410
  en: Choiseul
@@ -283,7 +422,21 @@
283
422
  tr: Choiseul (şehir)
284
423
  ur: چویسول کوارٹر
285
424
  vi: Choiseul (quận)
286
- '10':
425
+ ceb: Choiseul (baranggay sa Saint Lucia, lat 13,79, long -61,03)
426
+ zh: 舒瓦瑟爾區
427
+ ccp: "\U00011107\U00011130\U00011131\U00011125\U00011128\U00011105\U0001112A\U00011123\U00011134"
428
+ comments:
429
+ '10':
430
+ name:
431
+ code:
432
+ unofficial_names:
433
+ geo:
434
+ latitude:
435
+ longitude:
436
+ min_latitude:
437
+ min_longitude:
438
+ max_latitude:
439
+ max_longitude:
287
440
  translations:
288
441
  de: Soufrière
289
442
  en: Soufrière
@@ -302,3 +455,7 @@
302
455
  sv: Soufrière (kvarter)
303
456
  tr: Soufrière
304
457
  vi: Soufrière
458
+ ceb: Soufrière (baranggay)
459
+ zh: 蘇弗里耶爾區
460
+ ccp: "\U00011125\U0001112F\U0001111C\U00011133\U00011122\U0001112D\U00011120\U00011122\U00011134"
461
+ comments: