countries 4.1.2 → 4.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (418) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/tests.yml +2 -0
  3. data/CHANGELOG.md +80 -2
  4. data/README.markdown +41 -31
  5. data/Rakefile +23 -31
  6. data/countries.gemspec +4 -4
  7. data/lib/countries/cache/countries.json +1 -1
  8. data/lib/countries/cache/locales/nb.json +1 -1
  9. data/lib/countries/cache/locales/nn.json +1 -1
  10. data/lib/countries/configuration.rb +13 -0
  11. data/lib/countries/country/class_methods.rb +19 -6
  12. data/lib/countries/country/currency_methods.rb +4 -1
  13. data/lib/countries/country/emoji.rb +3 -0
  14. data/lib/countries/country.rb +147 -7
  15. data/lib/countries/data/countries/AD.yaml +28 -29
  16. data/lib/countries/data/countries/AE.yaml +32 -33
  17. data/lib/countries/data/countries/AF.yaml +32 -33
  18. data/lib/countries/data/countries/AG.yaml +28 -29
  19. data/lib/countries/data/countries/AI.yaml +27 -28
  20. data/lib/countries/data/countries/AL.yaml +28 -29
  21. data/lib/countries/data/countries/AM.yaml +30 -31
  22. data/lib/countries/data/countries/AO.yaml +25 -26
  23. data/lib/countries/data/countries/AQ.yaml +24 -25
  24. data/lib/countries/data/countries/AR.yaml +30 -31
  25. data/lib/countries/data/countries/AS.yaml +31 -32
  26. data/lib/countries/data/countries/AT.yaml +36 -37
  27. data/lib/countries/data/countries/AU.yaml +33 -34
  28. data/lib/countries/data/countries/AW.yaml +25 -26
  29. data/lib/countries/data/countries/AX.yaml +27 -28
  30. data/lib/countries/data/countries/AZ.yaml +30 -31
  31. data/lib/countries/data/countries/BA.yaml +32 -33
  32. data/lib/countries/data/countries/BB.yaml +28 -29
  33. data/lib/countries/data/countries/BD.yaml +27 -28
  34. data/lib/countries/data/countries/BE.yaml +41 -42
  35. data/lib/countries/data/countries/BF.yaml +27 -28
  36. data/lib/countries/data/countries/BG.yaml +36 -37
  37. data/lib/countries/data/countries/BH.yaml +28 -29
  38. data/lib/countries/data/countries/BI.yaml +27 -28
  39. data/lib/countries/data/countries/BJ.yaml +26 -27
  40. data/lib/countries/data/countries/BL.yaml +25 -26
  41. data/lib/countries/data/countries/BM.yaml +29 -30
  42. data/lib/countries/data/countries/BN.yaml +26 -27
  43. data/lib/countries/data/countries/BO.yaml +31 -32
  44. data/lib/countries/data/countries/BQ.yaml +28 -29
  45. data/lib/countries/data/countries/BR.yaml +35 -36
  46. data/lib/countries/data/countries/BS.yaml +27 -28
  47. data/lib/countries/data/countries/BT.yaml +28 -29
  48. data/lib/countries/data/countries/BV.yaml +23 -24
  49. data/lib/countries/data/countries/BW.yaml +27 -28
  50. data/lib/countries/data/countries/BY.yaml +30 -31
  51. data/lib/countries/data/countries/BZ.yaml +28 -29
  52. data/lib/countries/data/countries/CA.yaml +30 -31
  53. data/lib/countries/data/countries/CC.yaml +28 -29
  54. data/lib/countries/data/countries/CD.yaml +35 -36
  55. data/lib/countries/data/countries/CF.yaml +29 -30
  56. data/lib/countries/data/countries/CG.yaml +29 -30
  57. data/lib/countries/data/countries/CH.yaml +40 -41
  58. data/lib/countries/data/countries/CI.yaml +27 -28
  59. data/lib/countries/data/countries/CK.yaml +27 -28
  60. data/lib/countries/data/countries/CL.yaml +32 -33
  61. data/lib/countries/data/countries/CM.yaml +29 -30
  62. data/lib/countries/data/countries/CN.yaml +28 -29
  63. data/lib/countries/data/countries/CO.yaml +28 -29
  64. data/lib/countries/data/countries/CR.yaml +26 -27
  65. data/lib/countries/data/countries/CU.yaml +27 -28
  66. data/lib/countries/data/countries/CV.yaml +28 -29
  67. data/lib/countries/data/countries/CW.yaml +25 -26
  68. data/lib/countries/data/countries/CX.yaml +30 -31
  69. data/lib/countries/data/countries/CY.yaml +40 -41
  70. data/lib/countries/data/countries/CZ.yaml +38 -39
  71. data/lib/countries/data/countries/DE.yaml +36 -37
  72. data/lib/countries/data/countries/DJ.yaml +29 -30
  73. data/lib/countries/data/countries/DK.yaml +35 -36
  74. data/lib/countries/data/countries/DM.yaml +26 -27
  75. data/lib/countries/data/countries/DO.yaml +28 -29
  76. data/lib/countries/data/countries/DZ.yaml +28 -29
  77. data/lib/countries/data/countries/EC.yaml +28 -29
  78. data/lib/countries/data/countries/EE.yaml +35 -36
  79. data/lib/countries/data/countries/EG.yaml +28 -29
  80. data/lib/countries/data/countries/EH.yaml +30 -31
  81. data/lib/countries/data/countries/ER.yaml +31 -32
  82. data/lib/countries/data/countries/ES.yaml +36 -37
  83. data/lib/countries/data/countries/ET.yaml +28 -29
  84. data/lib/countries/data/countries/FI.yaml +38 -39
  85. data/lib/countries/data/countries/FJ.yaml +33 -34
  86. data/lib/countries/data/countries/FK.yaml +29 -30
  87. data/lib/countries/data/countries/FM.yaml +28 -29
  88. data/lib/countries/data/countries/FO.yaml +28 -29
  89. data/lib/countries/data/countries/FR.yaml +37 -38
  90. data/lib/countries/data/countries/GA.yaml +27 -28
  91. data/lib/countries/data/countries/GB.yaml +39 -38
  92. data/lib/countries/data/countries/GD.yaml +26 -27
  93. data/lib/countries/data/countries/GE.yaml +28 -29
  94. data/lib/countries/data/countries/GF.yaml +29 -30
  95. data/lib/countries/data/countries/GG.yaml +30 -31
  96. data/lib/countries/data/countries/GH.yaml +27 -28
  97. data/lib/countries/data/countries/GI.yaml +26 -27
  98. data/lib/countries/data/countries/GL.yaml +29 -30
  99. data/lib/countries/data/countries/GM.yaml +25 -26
  100. data/lib/countries/data/countries/GN.yaml +30 -31
  101. data/lib/countries/data/countries/GP.yaml +27 -28
  102. data/lib/countries/data/countries/GQ.yaml +29 -30
  103. data/lib/countries/data/countries/GR.yaml +37 -38
  104. data/lib/countries/data/countries/GS.yaml +27 -28
  105. data/lib/countries/data/countries/GT.yaml +26 -27
  106. data/lib/countries/data/countries/GU.yaml +31 -32
  107. data/lib/countries/data/countries/GW.yaml +28 -29
  108. data/lib/countries/data/countries/GY.yaml +26 -27
  109. data/lib/countries/data/countries/HK.yaml +28 -29
  110. data/lib/countries/data/countries/HM.yaml +27 -28
  111. data/lib/countries/data/countries/HN.yaml +27 -28
  112. data/lib/countries/data/countries/HR.yaml +37 -38
  113. data/lib/countries/data/countries/HT.yaml +29 -30
  114. data/lib/countries/data/countries/HU.yaml +37 -38
  115. data/lib/countries/data/countries/ID.yaml +28 -29
  116. data/lib/countries/data/countries/IE.yaml +39 -40
  117. data/lib/countries/data/countries/IL.yaml +35 -31
  118. data/lib/countries/data/countries/IM.yaml +29 -30
  119. data/lib/countries/data/countries/IN.yaml +30 -31
  120. data/lib/countries/data/countries/IO.yaml +26 -27
  121. data/lib/countries/data/countries/IQ.yaml +28 -29
  122. data/lib/countries/data/countries/IR.yaml +28 -29
  123. data/lib/countries/data/countries/IS.yaml +35 -36
  124. data/lib/countries/data/countries/IT.yaml +36 -37
  125. data/lib/countries/data/countries/JE.yaml +26 -27
  126. data/lib/countries/data/countries/JM.yaml +28 -29
  127. data/lib/countries/data/countries/JO.yaml +28 -29
  128. data/lib/countries/data/countries/JP.yaml +28 -29
  129. data/lib/countries/data/countries/KE.yaml +29 -30
  130. data/lib/countries/data/countries/KG.yaml +30 -31
  131. data/lib/countries/data/countries/KH.yaml +28 -29
  132. data/lib/countries/data/countries/KI.yaml +25 -26
  133. data/lib/countries/data/countries/KM.yaml +29 -30
  134. data/lib/countries/data/countries/KN.yaml +29 -29
  135. data/lib/countries/data/countries/KP.yaml +27 -28
  136. data/lib/countries/data/countries/KR.yaml +28 -29
  137. data/lib/countries/data/countries/KW.yaml +28 -29
  138. data/lib/countries/data/countries/KY.yaml +29 -30
  139. data/lib/countries/data/countries/KZ.yaml +30 -31
  140. data/lib/countries/data/countries/LA.yaml +27 -28
  141. data/lib/countries/data/countries/LB.yaml +30 -31
  142. data/lib/countries/data/countries/LC.yaml +28 -29
  143. data/lib/countries/data/countries/LI.yaml +27 -28
  144. data/lib/countries/data/countries/LK.yaml +28 -29
  145. data/lib/countries/data/countries/LR.yaml +28 -29
  146. data/lib/countries/data/countries/LS.yaml +28 -29
  147. data/lib/countries/data/countries/LT.yaml +37 -38
  148. data/lib/countries/data/countries/LU.yaml +39 -40
  149. data/lib/countries/data/countries/LV.yaml +36 -37
  150. data/lib/countries/data/countries/LY.yaml +27 -28
  151. data/lib/countries/data/countries/MA.yaml +28 -29
  152. data/lib/countries/data/countries/MC.yaml +28 -29
  153. data/lib/countries/data/countries/MD.yaml +28 -29
  154. data/lib/countries/data/countries/ME.yaml +33 -34
  155. data/lib/countries/data/countries/MF.yaml +29 -30
  156. data/lib/countries/data/countries/MG.yaml +30 -31
  157. data/lib/countries/data/countries/MH.yaml +30 -31
  158. data/lib/countries/data/countries/MK.yaml +28 -29
  159. data/lib/countries/data/countries/ML.yaml +25 -26
  160. data/lib/countries/data/countries/MM.yaml +27 -28
  161. data/lib/countries/data/countries/MN.yaml +28 -29
  162. data/lib/countries/data/countries/MO.yaml +28 -29
  163. data/lib/countries/data/countries/MP.yaml +31 -32
  164. data/lib/countries/data/countries/MQ.yaml +27 -28
  165. data/lib/countries/data/countries/MR.yaml +29 -30
  166. data/lib/countries/data/countries/MS.yaml +26 -27
  167. data/lib/countries/data/countries/MT.yaml +36 -37
  168. data/lib/countries/data/countries/MU.yaml +28 -29
  169. data/lib/countries/data/countries/MV.yaml +28 -29
  170. data/lib/countries/data/countries/MW.yaml +27 -28
  171. data/lib/countries/data/countries/MX.yaml +33 -34
  172. data/lib/countries/data/countries/MY.yaml +30 -31
  173. data/lib/countries/data/countries/MZ.yaml +28 -29
  174. data/lib/countries/data/countries/NA.yaml +30 -31
  175. data/lib/countries/data/countries/NC.yaml +29 -30
  176. data/lib/countries/data/countries/NE.yaml +27 -28
  177. data/lib/countries/data/countries/NF.yaml +29 -30
  178. data/lib/countries/data/countries/NG.yaml +33 -34
  179. data/lib/countries/data/countries/NI.yaml +26 -27
  180. data/lib/countries/data/countries/NL.yaml +36 -37
  181. data/lib/countries/data/countries/NO.yaml +36 -37
  182. data/lib/countries/data/countries/NP.yaml +32 -33
  183. data/lib/countries/data/countries/NR.yaml +27 -28
  184. data/lib/countries/data/countries/NU.yaml +25 -26
  185. data/lib/countries/data/countries/NZ.yaml +34 -35
  186. data/lib/countries/data/countries/OM.yaml +28 -29
  187. data/lib/countries/data/countries/PA.yaml +26 -27
  188. data/lib/countries/data/countries/PE.yaml +28 -29
  189. data/lib/countries/data/countries/PF.yaml +29 -30
  190. data/lib/countries/data/countries/PG.yaml +28 -29
  191. data/lib/countries/data/countries/PH.yaml +35 -36
  192. data/lib/countries/data/countries/PK.yaml +30 -31
  193. data/lib/countries/data/countries/PL.yaml +36 -37
  194. data/lib/countries/data/countries/PM.yaml +29 -30
  195. data/lib/countries/data/countries/PN.yaml +27 -28
  196. data/lib/countries/data/countries/PR.yaml +28 -29
  197. data/lib/countries/data/countries/PS.yaml +31 -32
  198. data/lib/countries/data/countries/PT.yaml +33 -34
  199. data/lib/countries/data/countries/PW.yaml +26 -27
  200. data/lib/countries/data/countries/PY.yaml +28 -29
  201. data/lib/countries/data/countries/QA.yaml +27 -28
  202. data/lib/countries/data/countries/RE.yaml +28 -29
  203. data/lib/countries/data/countries/RO.yaml +37 -38
  204. data/lib/countries/data/countries/RS.yaml +28 -29
  205. data/lib/countries/data/countries/RU.yaml +28 -29
  206. data/lib/countries/data/countries/RW.yaml +31 -32
  207. data/lib/countries/data/countries/SA.yaml +33 -29
  208. data/lib/countries/data/countries/SB.yaml +27 -28
  209. data/lib/countries/data/countries/SC.yaml +28 -29
  210. data/lib/countries/data/countries/SD.yaml +30 -31
  211. data/lib/countries/data/countries/SE.yaml +37 -38
  212. data/lib/countries/data/countries/SG.yaml +32 -33
  213. data/lib/countries/data/countries/SH.yaml +29 -30
  214. data/lib/countries/data/countries/SI.yaml +36 -37
  215. data/lib/countries/data/countries/SJ.yaml +29 -30
  216. data/lib/countries/data/countries/SK.yaml +36 -37
  217. data/lib/countries/data/countries/SL.yaml +25 -26
  218. data/lib/countries/data/countries/SM.yaml +28 -29
  219. data/lib/countries/data/countries/SN.yaml +27 -28
  220. data/lib/countries/data/countries/SO.yaml +30 -31
  221. data/lib/countries/data/countries/SR.yaml +26 -27
  222. data/lib/countries/data/countries/SS.yaml +29 -30
  223. data/lib/countries/data/countries/ST.yaml +27 -28
  224. data/lib/countries/data/countries/SV.yaml +27 -28
  225. data/lib/countries/data/countries/SX.yaml +28 -29
  226. data/lib/countries/data/countries/SY.yaml +27 -28
  227. data/lib/countries/data/countries/SZ.yaml +30 -31
  228. data/lib/countries/data/countries/TC.yaml +30 -31
  229. data/lib/countries/data/countries/TD.yaml +29 -30
  230. data/lib/countries/data/countries/TF.yaml +28 -29
  231. data/lib/countries/data/countries/TG.yaml +25 -26
  232. data/lib/countries/data/countries/TH.yaml +34 -35
  233. data/lib/countries/data/countries/TJ.yaml +30 -31
  234. data/lib/countries/data/countries/TK.yaml +27 -28
  235. data/lib/countries/data/countries/TL.yaml +27 -28
  236. data/lib/countries/data/countries/TM.yaml +30 -31
  237. data/lib/countries/data/countries/TN.yaml +30 -31
  238. data/lib/countries/data/countries/TO.yaml +29 -30
  239. data/lib/countries/data/countries/TR.yaml +28 -29
  240. data/lib/countries/data/countries/TT.yaml +28 -29
  241. data/lib/countries/data/countries/TV.yaml +25 -26
  242. data/lib/countries/data/countries/TW.yaml +28 -29
  243. data/lib/countries/data/countries/TZ.yaml +30 -31
  244. data/lib/countries/data/countries/UA.yaml +34 -35
  245. data/lib/countries/data/countries/UG.yaml +28 -29
  246. data/lib/countries/data/countries/UM.yaml +29 -30
  247. data/lib/countries/data/countries/US.yaml +29 -29
  248. data/lib/countries/data/countries/UY.yaml +27 -28
  249. data/lib/countries/data/countries/UZ.yaml +30 -31
  250. data/lib/countries/data/countries/VA.yaml +31 -32
  251. data/lib/countries/data/countries/VC.yaml +29 -30
  252. data/lib/countries/data/countries/VE.yaml +26 -27
  253. data/lib/countries/data/countries/VG.yaml +29 -30
  254. data/lib/countries/data/countries/VI.yaml +28 -29
  255. data/lib/countries/data/countries/VN.yaml +28 -29
  256. data/lib/countries/data/countries/VU.yaml +31 -32
  257. data/lib/countries/data/countries/WF.yaml +29 -30
  258. data/lib/countries/data/countries/WS.yaml +28 -29
  259. data/lib/countries/data/countries/YE.yaml +27 -28
  260. data/lib/countries/data/countries/YT.yaml +26 -27
  261. data/lib/countries/data/countries/ZA.yaml +39 -40
  262. data/lib/countries/data/countries/ZM.yaml +28 -29
  263. data/lib/countries/data/countries/ZW.yaml +31 -32
  264. data/lib/countries/data/subdivisions/AD.yaml +21 -21
  265. data/lib/countries/data/subdivisions/AF.yaml +2 -2
  266. data/lib/countries/data/subdivisions/AG.yaml +1 -1
  267. data/lib/countries/data/subdivisions/AI.yaml +98 -98
  268. data/lib/countries/data/subdivisions/AL.yaml +82 -626
  269. data/lib/countries/data/subdivisions/AZ.yaml +5 -5
  270. data/lib/countries/data/subdivisions/BA.yaml +11 -11
  271. data/lib/countries/data/subdivisions/BD.yaml +8 -8
  272. data/lib/countries/data/subdivisions/BE.yaml +2 -2
  273. data/lib/countries/data/subdivisions/BF.yaml +13 -13
  274. data/lib/countries/data/subdivisions/BI.yaml +3 -3
  275. data/lib/countries/data/subdivisions/BM.yaml +77 -77
  276. data/lib/countries/data/subdivisions/BS.yaml +22 -22
  277. data/lib/countries/data/subdivisions/BW.yaml +7 -7
  278. data/lib/countries/data/subdivisions/BY.yaml +1 -1
  279. data/lib/countries/data/subdivisions/CD.yaml +19 -19
  280. data/lib/countries/data/subdivisions/CG.yaml +1 -1
  281. data/lib/countries/data/subdivisions/CI.yaml +14 -14
  282. data/lib/countries/data/subdivisions/CK.yaml +77 -77
  283. data/lib/countries/data/subdivisions/CN.yaml +0 -107
  284. data/lib/countries/data/subdivisions/CV.yaml +9 -9
  285. data/lib/countries/data/subdivisions/CZ.yaml +115 -50
  286. data/lib/countries/data/subdivisions/DK.yaml +1 -0
  287. data/lib/countries/data/subdivisions/DO.yaml +11 -11
  288. data/lib/countries/data/subdivisions/EE.yaml +78 -2
  289. data/lib/countries/data/subdivisions/EH.yaml +12 -12
  290. data/lib/countries/data/subdivisions/ES.yaml +17 -17
  291. data/lib/countries/data/subdivisions/FI.yaml +16 -16
  292. data/lib/countries/data/subdivisions/FJ.yaml +14 -14
  293. data/lib/countries/data/subdivisions/GB.yaml +21 -20
  294. data/lib/countries/data/subdivisions/GH.yaml +7 -7
  295. data/lib/countries/data/subdivisions/GL.yaml +6 -6
  296. data/lib/countries/data/subdivisions/GN.yaml +7 -7
  297. data/lib/countries/data/subdivisions/GQ.yaml +1 -0
  298. data/lib/countries/data/subdivisions/GR.yaml +1 -1
  299. data/lib/countries/data/subdivisions/GW.yaml +3 -3
  300. data/lib/countries/data/subdivisions/HT.yaml +1 -1
  301. data/lib/countries/data/subdivisions/ID.yaml +41 -41
  302. data/lib/countries/data/subdivisions/IE.yaml +1 -2
  303. data/lib/countries/data/subdivisions/IN.yaml +4 -3
  304. data/lib/countries/data/subdivisions/IQ.yaml +1 -1
  305. data/lib/countries/data/subdivisions/IR.yaml +2 -1
  306. data/lib/countries/data/subdivisions/IS.yaml +72 -0
  307. data/lib/countries/data/subdivisions/IT.yaml +7 -8
  308. data/lib/countries/data/subdivisions/KE.yaml +391 -503
  309. data/lib/countries/data/subdivisions/KG.yaml +1 -1
  310. data/lib/countries/data/subdivisions/KH.yaml +1 -1
  311. data/lib/countries/data/subdivisions/KN.yaml +2 -2
  312. data/lib/countries/data/subdivisions/KP.yaml +12 -12
  313. data/lib/countries/data/subdivisions/KR.yaml +1 -1
  314. data/lib/countries/data/subdivisions/KZ.yaml +1 -1
  315. data/lib/countries/data/subdivisions/LA.yaml +1 -1
  316. data/lib/countries/data/subdivisions/LB.yaml +2 -2
  317. data/lib/countries/data/subdivisions/LC.yaml +10 -10
  318. data/lib/countries/data/subdivisions/LK.yaml +9 -9
  319. data/lib/countries/data/subdivisions/LR.yaml +2 -2
  320. data/lib/countries/data/subdivisions/LT.yaml +60 -60
  321. data/lib/countries/data/subdivisions/LU.yaml +1 -1
  322. data/lib/countries/data/subdivisions/LV.yaml +6 -0
  323. data/lib/countries/data/subdivisions/MA.yaml +35 -35
  324. data/lib/countries/data/subdivisions/MC.yaml +17 -17
  325. data/lib/countries/data/subdivisions/MD.yaml +740 -740
  326. data/lib/countries/data/subdivisions/ME.yaml +3 -3
  327. data/lib/countries/data/subdivisions/MH.yaml +2 -2
  328. data/lib/countries/data/subdivisions/MK.yaml +3501 -5809
  329. data/lib/countries/data/subdivisions/ML.yaml +2 -2
  330. data/lib/countries/data/subdivisions/MM.yaml +1 -1
  331. data/lib/countries/data/subdivisions/MR.yaml +3 -3
  332. data/lib/countries/data/subdivisions/MV.yaml +8 -8
  333. data/lib/countries/data/subdivisions/MW.yaml +4 -4
  334. data/lib/countries/data/subdivisions/MX.yaml +1 -1
  335. data/lib/countries/data/subdivisions/NL.yaml +6 -6
  336. data/lib/countries/data/subdivisions/NO.yaml +1 -0
  337. data/lib/countries/data/subdivisions/NP.yaml +12 -12
  338. data/lib/countries/data/subdivisions/NZ.yaml +1 -1
  339. data/lib/countries/data/subdivisions/OM.yaml +6 -6
  340. data/lib/countries/data/subdivisions/PG.yaml +3 -3
  341. data/lib/countries/data/subdivisions/PH.yaml +16 -16
  342. data/lib/countries/data/subdivisions/PK.yaml +2 -2
  343. data/lib/countries/data/subdivisions/PS.yaml +16 -16
  344. data/lib/countries/data/subdivisions/QA.yaml +2 -2
  345. data/lib/countries/data/subdivisions/RS.yaml +2 -2
  346. data/lib/countries/data/subdivisions/SC.yaml +4 -2
  347. data/lib/countries/data/subdivisions/SG.yaml +39 -109
  348. data/lib/countries/data/subdivisions/SH.yaml +1 -1
  349. data/lib/countries/data/subdivisions/SI.yaml +19 -19
  350. data/lib/countries/data/subdivisions/SJ.yaml +14 -14
  351. data/lib/countries/data/subdivisions/SL.yaml +1 -1
  352. data/lib/countries/data/subdivisions/SN.yaml +3 -3
  353. data/lib/countries/data/subdivisions/SS.yaml +10 -10
  354. data/lib/countries/data/subdivisions/ST.yaml +6 -0
  355. data/lib/countries/data/subdivisions/TD.yaml +6 -6
  356. data/lib/countries/data/subdivisions/TH.yaml +1 -1
  357. data/lib/countries/data/subdivisions/TJ.yaml +2 -2
  358. data/lib/countries/data/subdivisions/TK.yaml +21 -21
  359. data/lib/countries/data/subdivisions/TM.yaml +1 -1
  360. data/lib/countries/data/subdivisions/TT.yaml +2 -2
  361. data/lib/countries/data/subdivisions/TV.yaml +1 -1
  362. data/lib/countries/data/subdivisions/TW.yaml +3 -17
  363. data/lib/countries/data/subdivisions/TZ.yaml +5 -5
  364. data/lib/countries/data/subdivisions/UG.yaml +59 -52
  365. data/lib/countries/data/subdivisions/UM.yaml +0 -10
  366. data/lib/countries/data/subdivisions/US.yaml +0 -42
  367. data/lib/countries/data/subdivisions/WF.yaml +3 -13
  368. data/lib/countries/data/subdivisions/YE.yaml +3 -3
  369. data/lib/countries/data/subdivisions/ZA.yaml +2 -2
  370. data/lib/countries/data/subdivisions/ZM.yaml +1 -1
  371. data/lib/countries/data/translation_corrections.yaml +20 -14
  372. data/lib/countries/data.rb +5 -1
  373. data/lib/countries/global.rb +13 -3
  374. data/lib/countries/mongoid.rb +3 -0
  375. data/lib/countries/sources/cldr/downloader.rb +3 -0
  376. data/lib/countries/sources/cldr/subdivision.rb +1 -0
  377. data/lib/countries/sources/cldr/subdivision_updater.rb +1 -0
  378. data/lib/countries/sources/local/cached_loader.rb +2 -0
  379. data/lib/countries/sources/local/subdivision.rb +1 -0
  380. data/lib/countries/structure.rb +2 -5
  381. data/lib/countries/tasks/geocoding.rake +1 -1
  382. data/lib/countries/timezones.rb +4 -2
  383. data/lib/countries/translations.rb +2 -3
  384. data/lib/countries/version.rb +1 -1
  385. data/spec/country_spec.rb +60 -56
  386. data/spec/data_spec.rb +9 -9
  387. metadata +5 -36
  388. data/lib/countries/data/subdivisions/AS.yaml +0 -85
  389. data/lib/countries/data/subdivisions/AW.yaml +0 -9
  390. data/lib/countries/data/subdivisions/AX.yaml +0 -51
  391. data/lib/countries/data/subdivisions/BL.yaml +0 -11
  392. data/lib/countries/data/subdivisions/CP.yaml +0 -4
  393. data/lib/countries/data/subdivisions/CW.yaml +0 -9
  394. data/lib/countries/data/subdivisions/FO.yaml +0 -85
  395. data/lib/countries/data/subdivisions/GF.yaml +0 -11
  396. data/lib/countries/data/subdivisions/GG.yaml +0 -155
  397. data/lib/countries/data/subdivisions/GP.yaml +0 -11
  398. data/lib/countries/data/subdivisions/GU.yaml +0 -275
  399. data/lib/countries/data/subdivisions/HK.yaml +0 -267
  400. data/lib/countries/data/subdivisions/IC.yaml +0 -4
  401. data/lib/countries/data/subdivisions/IM.yaml +0 -337
  402. data/lib/countries/data/subdivisions/JE.yaml +0 -169
  403. data/lib/countries/data/subdivisions/KY.yaml +0 -85
  404. data/lib/countries/data/subdivisions/MF.yaml +0 -9
  405. data/lib/countries/data/subdivisions/MO.yaml +0 -9
  406. data/lib/countries/data/subdivisions/MP.yaml +0 -71
  407. data/lib/countries/data/subdivisions/MQ.yaml +0 -11
  408. data/lib/countries/data/subdivisions/MS.yaml +0 -43
  409. data/lib/countries/data/subdivisions/NC.yaml +0 -57
  410. data/lib/countries/data/subdivisions/PF.yaml +0 -81
  411. data/lib/countries/data/subdivisions/PM.yaml +0 -39
  412. data/lib/countries/data/subdivisions/PR.yaml +0 -1107
  413. data/lib/countries/data/subdivisions/RE.yaml +0 -11
  414. data/lib/countries/data/subdivisions/SX.yaml +0 -9
  415. data/lib/countries/data/subdivisions/TA.yaml +0 -4
  416. data/lib/countries/data/subdivisions/TF.yaml +0 -67
  417. data/lib/countries/data/subdivisions/VI.yaml +0 -57
  418. data/lib/countries/data/subdivisions/YT.yaml +0 -247
@@ -559,7 +559,7 @@ BKO:
559
559
  yo_BJ: Bamako
560
560
  comments:
561
561
  '9':
562
- name:
562
+ name: Région de Ménaka
563
563
  code:
564
564
  unofficial_names:
565
565
  geo:
@@ -570,7 +570,7 @@ BKO:
570
570
  fi: Ménakan alue
571
571
  comments:
572
572
  '10':
573
- name:
573
+ name: Région de Taoudénit
574
574
  code:
575
575
  unofficial_names:
576
576
  geo:
@@ -855,7 +855,7 @@
855
855
  'no': Shan
856
856
  comments:
857
857
  '18':
858
- name:
858
+ name: နေပြည်တော် ပြည်ထောင်စုနယ်မြေ
859
859
  code:
860
860
  unofficial_names:
861
861
  geo:
@@ -687,7 +687,7 @@ NKC:
687
687
  ccp: "\U0001111A\U0001112F\U00011120\U0001112E\U00011107\U00011134\U0001110C\U0001112E\U00011116\U00011134"
688
688
  comments:
689
689
  '13':
690
- name:
690
+ name: Nouakchott Ouest
691
691
  code:
692
692
  unofficial_names:
693
693
  geo:
@@ -706,7 +706,7 @@ NKC:
706
706
  fr: Nouakchott-Ouest
707
707
  comments:
708
708
  '14':
709
- name:
709
+ name: نواكشوط الشمالية
710
710
  code:
711
711
  unofficial_names:
712
712
  geo:
@@ -727,7 +727,7 @@ NKC:
727
727
  fr: Nouakchott-Nord
728
728
  comments:
729
729
  '15':
730
- name:
730
+ name: نواكشوط الجنوبية
731
731
  code:
732
732
  unofficial_names:
733
733
  geo:
@@ -1184,7 +1184,7 @@ X1~:
1184
1184
  en: Alif Dhaal
1185
1185
  comments:
1186
1186
  '00':
1187
- name:
1187
+ name: Alif Dhaal
1188
1188
  code:
1189
1189
  unofficial_names:
1190
1190
  geo:
@@ -1238,7 +1238,7 @@ X1~:
1238
1238
  'no': Alif Dhaal Atoll
1239
1239
  comments:
1240
1240
  CE:
1241
- name:
1241
+ name: Central Province
1242
1242
  code:
1243
1243
  unofficial_names:
1244
1244
  geo:
@@ -1255,7 +1255,7 @@ CE:
1255
1255
  \U0001111B\U00011133\U00011122\U0001112E\U0001111E\U00011128\U0001111A\U00011134\U0001110C\U00011134"
1256
1256
  comments:
1257
1257
  NC:
1258
- name:
1258
+ name: North Central Province
1259
1259
  code:
1260
1260
  unofficial_names:
1261
1261
  geo:
@@ -1273,7 +1273,7 @@ NC:
1273
1273
  \U0001111B\U00011133\U00011122\U0001112E\U0001111E\U00011128\U0001111A\U00011134\U0001110C\U00011134"
1274
1274
  comments:
1275
1275
  'NO':
1276
- name:
1276
+ name: North Province
1277
1277
  code:
1278
1278
  unofficial_names:
1279
1279
  geo:
@@ -1290,7 +1290,7 @@ NC:
1290
1290
  \U0001111B\U00011133\U00011122\U00011127\U0001112E\U0001111E\U00011128\U0001111A\U00011134\U0001110C\U00011134"
1291
1291
  comments:
1292
1292
  SC:
1293
- name:
1293
+ name: South Central Province
1294
1294
  code:
1295
1295
  unofficial_names:
1296
1296
  geo:
@@ -1307,7 +1307,7 @@ SC:
1307
1307
  \U0001111B\U00011133\U00011122\U0001112E\U0001111E\U00011128\U0001111A\U00011134\U0001110C\U00011134"
1308
1308
  comments:
1309
1309
  SU:
1310
- name:
1310
+ name: South Province
1311
1311
  code:
1312
1312
  unofficial_names:
1313
1313
  geo:
@@ -1324,7 +1324,7 @@ SU:
1324
1324
  ccp: "\U00011118\U00011127\U0001110A\U00011128\U0001111A\U00011134 \U0001111B\U00011133\U00011122\U0001112E\U0001111E\U00011128\U0001111A\U00011134\U0001110C\U00011134"
1325
1325
  comments:
1326
1326
  UN:
1327
- name:
1327
+ name: Upper North Province
1328
1328
  code:
1329
1329
  unofficial_names:
1330
1330
  geo:
@@ -1342,7 +1342,7 @@ UN:
1342
1342
  \U0001111B\U00011133\U00011122\U0001112E\U0001111E\U00011128\U0001111A\U00011134\U0001110C\U00011134"
1343
1343
  comments:
1344
1344
  US:
1345
- name:
1345
+ name: Upper South Province
1346
1346
  code:
1347
1347
  unofficial_names:
1348
1348
  geo:
@@ -1508,7 +1508,7 @@ ZO:
1508
1508
  'no': Zomba
1509
1509
  comments:
1510
1510
  NE:
1511
- name:
1511
+ name: Neno
1512
1512
  code:
1513
1513
  unofficial_names:
1514
1514
  geo:
@@ -1564,7 +1564,7 @@ NE:
1564
1564
  'no': Neno
1565
1565
  comments:
1566
1566
  C:
1567
- name:
1567
+ name: Central
1568
1568
  code:
1569
1569
  unofficial_names:
1570
1570
  geo:
@@ -1610,7 +1610,7 @@ C:
1610
1610
  'no': Central
1611
1611
  comments:
1612
1612
  N:
1613
- name:
1613
+ name: Northern
1614
1614
  code:
1615
1615
  unofficial_names:
1616
1616
  geo:
@@ -1655,7 +1655,7 @@ N:
1655
1655
  'no': Northern
1656
1656
  comments:
1657
1657
  S:
1658
- name:
1658
+ name: Southern
1659
1659
  code:
1660
1660
  unofficial_names:
1661
1661
  geo:
@@ -2464,7 +2464,7 @@ ZAC:
2464
2464
  'no': Zacatecas
2465
2465
  comments:
2466
2466
  DIF:
2467
- name:
2467
+ name: Mexico City
2468
2468
  code:
2469
2469
  unofficial_names:
2470
2470
  geo:
@@ -964,7 +964,7 @@ ZH:
964
964
  'no': Zuid-Holland
965
965
  comments:
966
966
  BQ1:
967
- name:
967
+ name: Bonaire
968
968
  code:
969
969
  unofficial_names:
970
970
  geo:
@@ -1043,7 +1043,7 @@ BQ1:
1043
1043
  yo_BJ: Bonaire
1044
1044
  comments:
1045
1045
  BQ2:
1046
- name:
1046
+ name: Saba
1047
1047
  code:
1048
1048
  unofficial_names:
1049
1049
  geo:
@@ -1112,7 +1112,7 @@ BQ2:
1112
1112
  'no': Saba
1113
1113
  comments:
1114
1114
  BQ3:
1115
- name:
1115
+ name: Sint Eustatius
1116
1116
  code:
1117
1117
  unofficial_names:
1118
1118
  geo:
@@ -1187,7 +1187,7 @@ BQ3:
1187
1187
  'no': Sint Eustatius
1188
1188
  comments:
1189
1189
  AW:
1190
- name:
1190
+ name: Aruba
1191
1191
  code:
1192
1192
  unofficial_names:
1193
1193
  geo:
@@ -1202,7 +1202,7 @@ AW:
1202
1202
  ccp: "\U00011103\U00011122\U0001112A\U0001111D"
1203
1203
  comments:
1204
1204
  CW:
1205
- name:
1205
+ name: Curaçao
1206
1206
  code:
1207
1207
  unofficial_names:
1208
1208
  geo:
@@ -1217,7 +1217,7 @@ CW:
1217
1217
  ccp: "\U00011107\U00011128\U00011105\U0001112A\U00011122\U00011107\U00011103\U0001112E"
1218
1218
  comments:
1219
1219
  SX:
1220
- name:
1220
+ name: Sint Maarten
1221
1221
  code:
1222
1222
  unofficial_names:
1223
1223
  geo:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  NO-03:
2
3
  name: Oslo
3
4
  code:
@@ -748,7 +748,7 @@ SE:
748
748
  'no': Seti
749
749
  comments:
750
750
  '1':
751
- name:
751
+ name: मध्यमाञ्चल विकास क्षेत्र
752
752
  code:
753
753
  unofficial_names:
754
754
  geo:
@@ -789,7 +789,7 @@ SE:
789
789
  hy: Կենտրոնական շրջան
790
790
  comments:
791
791
  '2':
792
- name:
792
+ name: मध्य-पश्चिमाञ्चल विकास क्षेत्र
793
793
  code:
794
794
  unofficial_names:
795
795
  geo:
@@ -826,7 +826,7 @@ SE:
826
826
  \U0001111B\U00011127\U0001110C\U00011134\U00011125\U00011128\U0001111F\U0001111A\U00011134\U0001110C\U00011127\U00011123\U00011134"
827
827
  comments:
828
828
  '3':
829
- name:
829
+ name: पश्चिमाञ्चल विकास क्षेत्र
830
830
  code:
831
831
  unofficial_names:
832
832
  geo:
@@ -867,7 +867,7 @@ SE:
867
867
  ca: Regió Occidental
868
868
  comments:
869
869
  '4':
870
- name:
870
+ name: पूर्वाञ्चल विकास क्षेत्र
871
871
  code:
872
872
  unofficial_names:
873
873
  geo:
@@ -906,7 +906,7 @@ SE:
906
906
  ca: Regió de Desenvolupament Est
907
907
  comments:
908
908
  '5':
909
- name:
909
+ name: सुदूर-पश्चिमाञ्चल विकास क्षेत्र
910
910
  code:
911
911
  unofficial_names:
912
912
  geo:
@@ -942,7 +942,7 @@ SE:
942
942
  ccp: "\U00011125\U0001112A\U00011118\U0001112A\U00011122\U00011134 \U0001111B\U00011127\U0001110C\U00011134\U00011125\U00011128\U0001111F\U0001111A\U00011134\U0001110C\U00011127\U00011123\U00011134"
943
943
  comments:
944
944
  P1:
945
- name:
945
+ name: Province 1
946
946
  code:
947
947
  unofficial_names:
948
948
  geo:
@@ -950,7 +950,7 @@ P1:
950
950
  en: Province 1
951
951
  comments:
952
952
  P2:
953
- name:
953
+ name: Province 2
954
954
  code:
955
955
  unofficial_names:
956
956
  geo:
@@ -958,7 +958,7 @@ P2:
958
958
  en: Province 2
959
959
  comments:
960
960
  P3:
961
- name:
961
+ name: Province 3
962
962
  code:
963
963
  unofficial_names:
964
964
  geo:
@@ -966,7 +966,7 @@ P3:
966
966
  en: Province 3
967
967
  comments:
968
968
  P4:
969
- name:
969
+ name: Gandaki²
970
970
  code:
971
971
  unofficial_names:
972
972
  geo:
@@ -980,7 +980,7 @@ P4:
980
980
  en: Gandaki²
981
981
  comments:
982
982
  P5:
983
- name:
983
+ name: Province 5
984
984
  code:
985
985
  unofficial_names:
986
986
  geo:
@@ -988,7 +988,7 @@ P5:
988
988
  en: Province 5
989
989
  comments:
990
990
  P6:
991
- name:
991
+ name: Karnali²
992
992
  code:
993
993
  unofficial_names:
994
994
  geo:
@@ -1002,7 +1002,7 @@ P6:
1002
1002
  en: Karnali²
1003
1003
  comments:
1004
1004
  P7:
1005
- name:
1005
+ name: Province 7
1006
1006
  code:
1007
1007
  unofficial_names:
1008
1008
  geo:
@@ -375,7 +375,7 @@ MBH:
375
375
  max_latitude: -40.66335100000001
376
376
  max_longitude: 174.3922804
377
377
  translations:
378
- en: Marl
378
+ en: Marlborough
379
379
  ar: إقليم مارلبورو
380
380
  bg: Марлборо
381
381
  bn: মার্লবোরো অঞ্চল
@@ -353,7 +353,7 @@ ZA:
353
353
  'no': Ad Dhahirah
354
354
  comments:
355
355
  BJ:
356
- name:
356
+ name: محافظة جنوب الباطنة
357
357
  code:
358
358
  unofficial_names:
359
359
  geo:
@@ -406,7 +406,7 @@ BJ:
406
406
  'no': Sør-Al Batinah
407
407
  comments:
408
408
  BS:
409
- name:
409
+ name: محافظة شمال الباطنة
410
410
  code:
411
411
  unofficial_names:
412
412
  geo:
@@ -438,7 +438,7 @@ BS:
438
438
  'no': Nord-Al Batinah
439
439
  comments:
440
440
  BU:
441
- name:
441
+ name: محافظة البريمي
442
442
  code:
443
443
  unofficial_names:
444
444
  geo:
@@ -494,7 +494,7 @@ BU:
494
494
  'no': Al Buraimi
495
495
  comments:
496
496
  SJ:
497
- name:
497
+ name: محافظة جنوب الشرقية
498
498
  code:
499
499
  unofficial_names:
500
500
  geo:
@@ -549,7 +549,7 @@ SJ:
549
549
  'no': Sør-Ash Sharqiyah
550
550
  comments:
551
551
  SS:
552
- name:
552
+ name: محافظة شمال الشرقية
553
553
  code:
554
554
  unofficial_names:
555
555
  geo:
@@ -603,7 +603,7 @@ SS:
603
603
  'no': Nord-Ash Sharqiyah
604
604
  comments:
605
605
  ZU:
606
- name:
606
+ name: محافظة ظفار
607
607
  code:
608
608
  unofficial_names:
609
609
  geo:
@@ -1145,7 +1145,7 @@ WPD:
1145
1145
  fi: Western Province
1146
1146
  comments:
1147
1147
  NSB:
1148
- name:
1148
+ name: Bougainville
1149
1149
  code:
1150
1150
  unofficial_names:
1151
1151
  geo:
@@ -1203,7 +1203,7 @@ NSB:
1203
1203
  'no': Bougainville
1204
1204
  comments:
1205
1205
  HLA:
1206
- name:
1206
+ name: Hela
1207
1207
  code:
1208
1208
  unofficial_names:
1209
1209
  geo:
@@ -1237,7 +1237,7 @@ HLA:
1237
1237
  et: Hela provints
1238
1238
  comments:
1239
1239
  JWK:
1240
- name:
1240
+ name: Jiwaka
1241
1241
  code:
1242
1242
  unofficial_names:
1243
1243
  geo:
@@ -4521,7 +4521,7 @@ ZSI:
4521
4521
  'no': Metro Manila
4522
4522
  comments:
4523
4523
  '41':
4524
- name:
4524
+ name: Mimaropa
4525
4525
  code:
4526
4526
  unofficial_names:
4527
4527
  geo:
@@ -4565,7 +4565,7 @@ ZSI:
4565
4565
  'no': MIMAROPA
4566
4566
  comments:
4567
4567
  '14':
4568
- name:
4568
+ name: Muslim Mindanao
4569
4569
  code:
4570
4570
  unofficial_names:
4571
4571
  geo:
@@ -4620,7 +4620,7 @@ ZSI:
4620
4620
  'no': Autonomous Region in Muslim Mindanao
4621
4621
  comments:
4622
4622
  '08':
4623
- name:
4623
+ name: Eastern Visayas
4624
4624
  code:
4625
4625
  unofficial_names:
4626
4626
  geo:
@@ -4665,7 +4665,7 @@ ZSI:
4665
4665
  mk: Источни Висаи
4666
4666
  comments:
4667
4667
  '11':
4668
- name:
4668
+ name: Davao
4669
4669
  code:
4670
4670
  unofficial_names:
4671
4671
  geo:
@@ -4709,7 +4709,7 @@ ZSI:
4709
4709
  mk: Давао
4710
4710
  comments:
4711
4711
  '01':
4712
- name:
4712
+ name: Ilocos
4713
4713
  code:
4714
4714
  unofficial_names:
4715
4715
  geo:
@@ -4755,7 +4755,7 @@ ZSI:
4755
4755
  'no': Ilocos Region
4756
4756
  comments:
4757
4757
  '02':
4758
- name:
4758
+ name: Cagayan Valley
4759
4759
  code:
4760
4760
  unofficial_names:
4761
4761
  geo:
@@ -4802,7 +4802,7 @@ ZSI:
4802
4802
  'no': Cagayan Valley
4803
4803
  comments:
4804
4804
  '03':
4805
- name:
4805
+ name: Central Luzon
4806
4806
  code:
4807
4807
  unofficial_names:
4808
4808
  geo:
@@ -4848,7 +4848,7 @@ ZSI:
4848
4848
  'no': Central Luzon
4849
4849
  comments:
4850
4850
  '05':
4851
- name:
4851
+ name: Bicol
4852
4852
  code:
4853
4853
  unofficial_names:
4854
4854
  geo:
@@ -4892,7 +4892,7 @@ ZSI:
4892
4892
  'no': Bicol Region
4893
4893
  comments:
4894
4894
  '06':
4895
- name:
4895
+ name: Western Visayas
4896
4896
  code:
4897
4897
  unofficial_names:
4898
4898
  geo:
@@ -4940,7 +4940,7 @@ ZSI:
4940
4940
  'no': Western Visayas
4941
4941
  comments:
4942
4942
  '07':
4943
- name:
4943
+ name: Central Visayas
4944
4944
  code:
4945
4945
  unofficial_names:
4946
4946
  geo:
@@ -4987,7 +4987,7 @@ ZSI:
4987
4987
  mk: Централни Висаи
4988
4988
  comments:
4989
4989
  '09':
4990
- name:
4990
+ name: Zamboanga Peninsula
4991
4991
  code:
4992
4992
  unofficial_names:
4993
4993
  geo:
@@ -5036,7 +5036,7 @@ ZSI:
5036
5036
  'no': Zamboangahalvøya
5037
5037
  comments:
5038
5038
  '10':
5039
- name:
5039
+ name: Northern Mindanao
5040
5040
  code:
5041
5041
  unofficial_names:
5042
5042
  geo:
@@ -5080,7 +5080,7 @@ ZSI:
5080
5080
  'no': Northern Mindanao
5081
5081
  comments:
5082
5082
  '12':
5083
- name:
5083
+ name: Soccsksargen
5084
5084
  code:
5085
5085
  unofficial_names:
5086
5086
  geo:
@@ -5121,7 +5121,7 @@ ZSI:
5121
5121
  mk: Сокксксархен
5122
5122
  comments:
5123
5123
  '13':
5124
- name:
5124
+ name: Caraga
5125
5125
  code:
5126
5126
  unofficial_names:
5127
5127
  geo:
@@ -5164,7 +5164,7 @@ ZSI:
5164
5164
  'no': Caraga
5165
5165
  comments:
5166
5166
  '15':
5167
- name:
5167
+ name: Cordillera Administrative
5168
5168
  code:
5169
5169
  unofficial_names:
5170
5170
  geo:
@@ -5209,7 +5209,7 @@ ZSI:
5209
5209
  'no': Cordillera Administrative Region
5210
5210
  comments:
5211
5211
  '40':
5212
- name:
5212
+ name: Calabarzon
5213
5213
  code:
5214
5214
  unofficial_names:
5215
5215
  geo:
@@ -446,7 +446,7 @@ TA:
446
446
  'no': Pakistans føderalt administrerte stammeområder
447
447
  comments:
448
448
  GB:
449
- name:
449
+ name: Gilgit-Baltistan
450
450
  code:
451
451
  unofficial_names:
452
452
  geo:
@@ -515,7 +515,7 @@ GB:
515
515
  'no': Gilgit-Baltistan
516
516
  comments:
517
517
  KP:
518
- name:
518
+ name: Khyber Pakhtunkhwa
519
519
  code:
520
520
  unofficial_names:
521
521
  geo: