countries 4.1.1 → 4.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (526) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/tests.yml +2 -0
  3. data/CHANGELOG.md +97 -5
  4. data/LICENSE +3 -1
  5. data/README.markdown +55 -50
  6. data/Rakefile +25 -31
  7. data/countries.gemspec +5 -5
  8. data/lib/countries/cache/countries.json +1 -1
  9. data/lib/countries/cache/locales/ab.json +1 -1
  10. data/lib/countries/cache/locales/af.json +1 -1
  11. data/lib/countries/cache/locales/ak.json +1 -1
  12. data/lib/countries/cache/locales/am.json +1 -1
  13. data/lib/countries/cache/locales/an.json +1 -1
  14. data/lib/countries/cache/locales/as.json +1 -1
  15. data/lib/countries/cache/locales/ay.json +1 -1
  16. data/lib/countries/cache/locales/az.json +1 -1
  17. data/lib/countries/cache/locales/ba.json +1 -1
  18. data/lib/countries/cache/locales/bg.json +1 -1
  19. data/lib/countries/cache/locales/bi.json +1 -1
  20. data/lib/countries/cache/locales/br.json +1 -1
  21. data/lib/countries/cache/locales/bs.json +1 -1
  22. data/lib/countries/cache/locales/ca.json +1 -1
  23. data/lib/countries/cache/locales/ce.json +1 -1
  24. data/lib/countries/cache/locales/ch.json +1 -1
  25. data/lib/countries/cache/locales/cv.json +1 -1
  26. data/lib/countries/cache/locales/de.json +1 -1
  27. data/lib/countries/cache/locales/dv.json +1 -1
  28. data/lib/countries/cache/locales/dz.json +1 -1
  29. data/lib/countries/cache/locales/ee.json +1 -1
  30. data/lib/countries/cache/locales/en.json +1 -1
  31. data/lib/countries/cache/locales/eo.json +1 -1
  32. data/lib/countries/cache/locales/es.json +1 -1
  33. data/lib/countries/cache/locales/et.json +1 -1
  34. data/lib/countries/cache/locales/ff.json +1 -1
  35. data/lib/countries/cache/locales/fi.json +1 -1
  36. data/lib/countries/cache/locales/fo.json +1 -1
  37. data/lib/countries/cache/locales/fr.json +1 -1
  38. data/lib/countries/cache/locales/fy.json +1 -1
  39. data/lib/countries/cache/locales/ga.json +1 -1
  40. data/lib/countries/cache/locales/gl.json +1 -1
  41. data/lib/countries/cache/locales/gn.json +1 -1
  42. data/lib/countries/cache/locales/gu.json +1 -1
  43. data/lib/countries/cache/locales/gv.json +1 -1
  44. data/lib/countries/cache/locales/ha.json +1 -1
  45. data/lib/countries/cache/locales/he.json +1 -1
  46. data/lib/countries/cache/locales/hi.json +1 -1
  47. data/lib/countries/cache/locales/hr.json +1 -1
  48. data/lib/countries/cache/locales/ht.json +1 -1
  49. data/lib/countries/cache/locales/hy.json +1 -1
  50. data/lib/countries/cache/locales/io.json +1 -1
  51. data/lib/countries/cache/locales/is.json +1 -1
  52. data/lib/countries/cache/locales/iu.json +1 -1
  53. data/lib/countries/cache/locales/ja.json +1 -1
  54. data/lib/countries/cache/locales/ka.json +1 -1
  55. data/lib/countries/cache/locales/ki.json +1 -1
  56. data/lib/countries/cache/locales/kk.json +1 -1
  57. data/lib/countries/cache/locales/kl.json +1 -1
  58. data/lib/countries/cache/locales/km.json +1 -1
  59. data/lib/countries/cache/locales/kn.json +1 -1
  60. data/lib/countries/cache/locales/kv.json +1 -1
  61. data/lib/countries/cache/locales/kw.json +1 -1
  62. data/lib/countries/cache/locales/ky.json +1 -1
  63. data/lib/countries/cache/locales/lo.json +1 -1
  64. data/lib/countries/cache/locales/lt.json +1 -1
  65. data/lib/countries/cache/locales/lv.json +1 -1
  66. data/lib/countries/cache/locales/mi.json +1 -1
  67. data/lib/countries/cache/locales/mk.json +1 -1
  68. data/lib/countries/cache/locales/ml.json +1 -1
  69. data/lib/countries/cache/locales/mn.json +1 -1
  70. data/lib/countries/cache/locales/ms.json +1 -1
  71. data/lib/countries/cache/locales/mt.json +1 -1
  72. data/lib/countries/cache/locales/my.json +1 -1
  73. data/lib/countries/cache/locales/na.json +1 -1
  74. data/lib/countries/cache/locales/nb.json +1 -1
  75. data/lib/countries/cache/locales/ne.json +1 -1
  76. data/lib/countries/cache/locales/nl.json +1 -1
  77. data/lib/countries/cache/locales/nn.json +1 -1
  78. data/lib/countries/cache/locales/nv.json +1 -1
  79. data/lib/countries/cache/locales/oc.json +1 -1
  80. data/lib/countries/cache/locales/pi.json +1 -1
  81. data/lib/countries/cache/locales/ps.json +1 -1
  82. data/lib/countries/cache/locales/pt-br.json +1 -1
  83. data/lib/countries/cache/locales/ro.json +1 -1
  84. data/lib/countries/cache/locales/ru.json +1 -1
  85. data/lib/countries/cache/locales/rw.json +1 -1
  86. data/lib/countries/cache/locales/sc.json +1 -1
  87. data/lib/countries/cache/locales/sd.json +1 -1
  88. data/lib/countries/cache/locales/si.json +1 -1
  89. data/lib/countries/cache/locales/sk.json +1 -1
  90. data/lib/countries/cache/locales/sl.json +1 -1
  91. data/lib/countries/cache/locales/so.json +1 -1
  92. data/lib/countries/cache/locales/sr.json +1 -1
  93. data/lib/countries/cache/locales/sv.json +1 -1
  94. data/lib/countries/cache/locales/sw.json +1 -1
  95. data/lib/countries/cache/locales/ta.json +1 -1
  96. data/lib/countries/cache/locales/te.json +1 -1
  97. data/lib/countries/cache/locales/th.json +1 -1
  98. data/lib/countries/cache/locales/ti.json +1 -1
  99. data/lib/countries/cache/locales/tk.json +1 -1
  100. data/lib/countries/cache/locales/tl.json +1 -1
  101. data/lib/countries/cache/locales/tr.json +1 -1
  102. data/lib/countries/cache/locales/tt.json +1 -1
  103. data/lib/countries/cache/locales/ur.json +1 -1
  104. data/lib/countries/cache/locales/uz.json +1 -1
  105. data/lib/countries/cache/locales/ve.json +1 -1
  106. data/lib/countries/cache/locales/vi.json +1 -1
  107. data/lib/countries/cache/locales/wa.json +1 -1
  108. data/lib/countries/cache/locales/wo.json +1 -1
  109. data/lib/countries/cache/locales/xh.json +1 -1
  110. data/lib/countries/cache/locales/yo.json +1 -1
  111. data/lib/countries/cache/locales/zh-cn.json +1 -1
  112. data/lib/countries/cache/locales/zh.json +1 -1
  113. data/lib/countries/cache/locales/zu.json +1 -1
  114. data/lib/countries/configuration.rb +13 -0
  115. data/lib/countries/country/class_methods.rb +19 -6
  116. data/lib/countries/country/currency_methods.rb +4 -1
  117. data/lib/countries/country/emoji.rb +3 -0
  118. data/lib/countries/country.rb +147 -7
  119. data/lib/countries/data/countries/AD.yaml +28 -29
  120. data/lib/countries/data/countries/AE.yaml +32 -33
  121. data/lib/countries/data/countries/AF.yaml +32 -33
  122. data/lib/countries/data/countries/AG.yaml +28 -29
  123. data/lib/countries/data/countries/AI.yaml +27 -28
  124. data/lib/countries/data/countries/AL.yaml +28 -29
  125. data/lib/countries/data/countries/AM.yaml +30 -31
  126. data/lib/countries/data/countries/AO.yaml +25 -26
  127. data/lib/countries/data/countries/AQ.yaml +24 -25
  128. data/lib/countries/data/countries/AR.yaml +30 -31
  129. data/lib/countries/data/countries/AS.yaml +31 -32
  130. data/lib/countries/data/countries/AT.yaml +36 -37
  131. data/lib/countries/data/countries/AU.yaml +33 -34
  132. data/lib/countries/data/countries/AW.yaml +25 -26
  133. data/lib/countries/data/countries/AX.yaml +27 -28
  134. data/lib/countries/data/countries/AZ.yaml +30 -31
  135. data/lib/countries/data/countries/BA.yaml +32 -33
  136. data/lib/countries/data/countries/BB.yaml +28 -29
  137. data/lib/countries/data/countries/BD.yaml +27 -28
  138. data/lib/countries/data/countries/BE.yaml +41 -42
  139. data/lib/countries/data/countries/BF.yaml +27 -28
  140. data/lib/countries/data/countries/BG.yaml +36 -37
  141. data/lib/countries/data/countries/BH.yaml +28 -29
  142. data/lib/countries/data/countries/BI.yaml +27 -28
  143. data/lib/countries/data/countries/BJ.yaml +26 -27
  144. data/lib/countries/data/countries/BL.yaml +25 -26
  145. data/lib/countries/data/countries/BM.yaml +29 -30
  146. data/lib/countries/data/countries/BN.yaml +26 -27
  147. data/lib/countries/data/countries/BO.yaml +31 -32
  148. data/lib/countries/data/countries/BQ.yaml +28 -29
  149. data/lib/countries/data/countries/BR.yaml +35 -36
  150. data/lib/countries/data/countries/BS.yaml +27 -28
  151. data/lib/countries/data/countries/BT.yaml +28 -29
  152. data/lib/countries/data/countries/BV.yaml +23 -24
  153. data/lib/countries/data/countries/BW.yaml +27 -28
  154. data/lib/countries/data/countries/BY.yaml +30 -31
  155. data/lib/countries/data/countries/BZ.yaml +28 -29
  156. data/lib/countries/data/countries/CA.yaml +30 -31
  157. data/lib/countries/data/countries/CC.yaml +28 -29
  158. data/lib/countries/data/countries/CD.yaml +35 -36
  159. data/lib/countries/data/countries/CF.yaml +29 -30
  160. data/lib/countries/data/countries/CG.yaml +29 -30
  161. data/lib/countries/data/countries/CH.yaml +40 -41
  162. data/lib/countries/data/countries/CI.yaml +27 -28
  163. data/lib/countries/data/countries/CK.yaml +27 -28
  164. data/lib/countries/data/countries/CL.yaml +32 -33
  165. data/lib/countries/data/countries/CM.yaml +29 -30
  166. data/lib/countries/data/countries/CN.yaml +28 -29
  167. data/lib/countries/data/countries/CO.yaml +28 -29
  168. data/lib/countries/data/countries/CR.yaml +26 -27
  169. data/lib/countries/data/countries/CU.yaml +27 -28
  170. data/lib/countries/data/countries/CV.yaml +28 -29
  171. data/lib/countries/data/countries/CW.yaml +25 -26
  172. data/lib/countries/data/countries/CX.yaml +30 -31
  173. data/lib/countries/data/countries/CY.yaml +40 -41
  174. data/lib/countries/data/countries/CZ.yaml +38 -39
  175. data/lib/countries/data/countries/DE.yaml +36 -37
  176. data/lib/countries/data/countries/DJ.yaml +29 -30
  177. data/lib/countries/data/countries/DK.yaml +35 -36
  178. data/lib/countries/data/countries/DM.yaml +26 -27
  179. data/lib/countries/data/countries/DO.yaml +28 -29
  180. data/lib/countries/data/countries/DZ.yaml +28 -29
  181. data/lib/countries/data/countries/EC.yaml +28 -29
  182. data/lib/countries/data/countries/EE.yaml +35 -36
  183. data/lib/countries/data/countries/EG.yaml +28 -29
  184. data/lib/countries/data/countries/EH.yaml +30 -31
  185. data/lib/countries/data/countries/ER.yaml +31 -32
  186. data/lib/countries/data/countries/ES.yaml +36 -37
  187. data/lib/countries/data/countries/ET.yaml +28 -29
  188. data/lib/countries/data/countries/FI.yaml +38 -39
  189. data/lib/countries/data/countries/FJ.yaml +33 -34
  190. data/lib/countries/data/countries/FK.yaml +29 -30
  191. data/lib/countries/data/countries/FM.yaml +28 -29
  192. data/lib/countries/data/countries/FO.yaml +28 -29
  193. data/lib/countries/data/countries/FR.yaml +37 -38
  194. data/lib/countries/data/countries/GA.yaml +27 -28
  195. data/lib/countries/data/countries/GB.yaml +39 -38
  196. data/lib/countries/data/countries/GD.yaml +26 -27
  197. data/lib/countries/data/countries/GE.yaml +28 -29
  198. data/lib/countries/data/countries/GF.yaml +29 -30
  199. data/lib/countries/data/countries/GG.yaml +30 -31
  200. data/lib/countries/data/countries/GH.yaml +27 -28
  201. data/lib/countries/data/countries/GI.yaml +26 -27
  202. data/lib/countries/data/countries/GL.yaml +29 -30
  203. data/lib/countries/data/countries/GM.yaml +25 -26
  204. data/lib/countries/data/countries/GN.yaml +30 -31
  205. data/lib/countries/data/countries/GP.yaml +27 -28
  206. data/lib/countries/data/countries/GQ.yaml +29 -30
  207. data/lib/countries/data/countries/GR.yaml +37 -38
  208. data/lib/countries/data/countries/GS.yaml +27 -28
  209. data/lib/countries/data/countries/GT.yaml +26 -27
  210. data/lib/countries/data/countries/GU.yaml +31 -32
  211. data/lib/countries/data/countries/GW.yaml +28 -29
  212. data/lib/countries/data/countries/GY.yaml +26 -27
  213. data/lib/countries/data/countries/HK.yaml +28 -29
  214. data/lib/countries/data/countries/HM.yaml +27 -28
  215. data/lib/countries/data/countries/HN.yaml +27 -28
  216. data/lib/countries/data/countries/HR.yaml +37 -38
  217. data/lib/countries/data/countries/HT.yaml +29 -30
  218. data/lib/countries/data/countries/HU.yaml +37 -38
  219. data/lib/countries/data/countries/ID.yaml +28 -29
  220. data/lib/countries/data/countries/IE.yaml +39 -40
  221. data/lib/countries/data/countries/IL.yaml +35 -31
  222. data/lib/countries/data/countries/IM.yaml +29 -30
  223. data/lib/countries/data/countries/IN.yaml +30 -31
  224. data/lib/countries/data/countries/IO.yaml +26 -27
  225. data/lib/countries/data/countries/IQ.yaml +28 -29
  226. data/lib/countries/data/countries/IR.yaml +28 -29
  227. data/lib/countries/data/countries/IS.yaml +35 -36
  228. data/lib/countries/data/countries/IT.yaml +36 -37
  229. data/lib/countries/data/countries/JE.yaml +26 -27
  230. data/lib/countries/data/countries/JM.yaml +28 -29
  231. data/lib/countries/data/countries/JO.yaml +28 -29
  232. data/lib/countries/data/countries/JP.yaml +28 -29
  233. data/lib/countries/data/countries/KE.yaml +29 -30
  234. data/lib/countries/data/countries/KG.yaml +30 -31
  235. data/lib/countries/data/countries/KH.yaml +28 -29
  236. data/lib/countries/data/countries/KI.yaml +25 -26
  237. data/lib/countries/data/countries/KM.yaml +29 -30
  238. data/lib/countries/data/countries/KN.yaml +29 -29
  239. data/lib/countries/data/countries/KP.yaml +27 -28
  240. data/lib/countries/data/countries/KR.yaml +28 -29
  241. data/lib/countries/data/countries/KW.yaml +28 -29
  242. data/lib/countries/data/countries/KY.yaml +29 -30
  243. data/lib/countries/data/countries/KZ.yaml +30 -31
  244. data/lib/countries/data/countries/LA.yaml +27 -28
  245. data/lib/countries/data/countries/LB.yaml +30 -31
  246. data/lib/countries/data/countries/LC.yaml +28 -29
  247. data/lib/countries/data/countries/LI.yaml +27 -28
  248. data/lib/countries/data/countries/LK.yaml +28 -29
  249. data/lib/countries/data/countries/LR.yaml +28 -29
  250. data/lib/countries/data/countries/LS.yaml +28 -29
  251. data/lib/countries/data/countries/LT.yaml +37 -38
  252. data/lib/countries/data/countries/LU.yaml +39 -40
  253. data/lib/countries/data/countries/LV.yaml +36 -37
  254. data/lib/countries/data/countries/LY.yaml +27 -28
  255. data/lib/countries/data/countries/MA.yaml +28 -29
  256. data/lib/countries/data/countries/MC.yaml +28 -29
  257. data/lib/countries/data/countries/MD.yaml +28 -29
  258. data/lib/countries/data/countries/ME.yaml +33 -34
  259. data/lib/countries/data/countries/MF.yaml +29 -30
  260. data/lib/countries/data/countries/MG.yaml +30 -31
  261. data/lib/countries/data/countries/MH.yaml +30 -31
  262. data/lib/countries/data/countries/MK.yaml +28 -29
  263. data/lib/countries/data/countries/ML.yaml +25 -26
  264. data/lib/countries/data/countries/MM.yaml +27 -28
  265. data/lib/countries/data/countries/MN.yaml +28 -29
  266. data/lib/countries/data/countries/MO.yaml +28 -29
  267. data/lib/countries/data/countries/MP.yaml +31 -32
  268. data/lib/countries/data/countries/MQ.yaml +27 -28
  269. data/lib/countries/data/countries/MR.yaml +29 -30
  270. data/lib/countries/data/countries/MS.yaml +26 -27
  271. data/lib/countries/data/countries/MT.yaml +36 -37
  272. data/lib/countries/data/countries/MU.yaml +28 -29
  273. data/lib/countries/data/countries/MV.yaml +28 -29
  274. data/lib/countries/data/countries/MW.yaml +27 -28
  275. data/lib/countries/data/countries/MX.yaml +33 -34
  276. data/lib/countries/data/countries/MY.yaml +30 -31
  277. data/lib/countries/data/countries/MZ.yaml +28 -29
  278. data/lib/countries/data/countries/NA.yaml +30 -31
  279. data/lib/countries/data/countries/NC.yaml +29 -30
  280. data/lib/countries/data/countries/NE.yaml +27 -28
  281. data/lib/countries/data/countries/NF.yaml +29 -30
  282. data/lib/countries/data/countries/NG.yaml +33 -34
  283. data/lib/countries/data/countries/NI.yaml +26 -27
  284. data/lib/countries/data/countries/NL.yaml +36 -37
  285. data/lib/countries/data/countries/NO.yaml +36 -37
  286. data/lib/countries/data/countries/NP.yaml +32 -33
  287. data/lib/countries/data/countries/NR.yaml +27 -28
  288. data/lib/countries/data/countries/NU.yaml +25 -26
  289. data/lib/countries/data/countries/NZ.yaml +34 -35
  290. data/lib/countries/data/countries/OM.yaml +28 -29
  291. data/lib/countries/data/countries/PA.yaml +26 -27
  292. data/lib/countries/data/countries/PE.yaml +28 -29
  293. data/lib/countries/data/countries/PF.yaml +29 -30
  294. data/lib/countries/data/countries/PG.yaml +28 -29
  295. data/lib/countries/data/countries/PH.yaml +35 -36
  296. data/lib/countries/data/countries/PK.yaml +30 -31
  297. data/lib/countries/data/countries/PL.yaml +36 -37
  298. data/lib/countries/data/countries/PM.yaml +29 -30
  299. data/lib/countries/data/countries/PN.yaml +27 -28
  300. data/lib/countries/data/countries/PR.yaml +28 -29
  301. data/lib/countries/data/countries/PS.yaml +31 -32
  302. data/lib/countries/data/countries/PT.yaml +33 -34
  303. data/lib/countries/data/countries/PW.yaml +26 -27
  304. data/lib/countries/data/countries/PY.yaml +28 -29
  305. data/lib/countries/data/countries/QA.yaml +27 -28
  306. data/lib/countries/data/countries/RE.yaml +28 -29
  307. data/lib/countries/data/countries/RO.yaml +37 -38
  308. data/lib/countries/data/countries/RS.yaml +28 -29
  309. data/lib/countries/data/countries/RU.yaml +28 -29
  310. data/lib/countries/data/countries/RW.yaml +31 -32
  311. data/lib/countries/data/countries/SA.yaml +33 -29
  312. data/lib/countries/data/countries/SB.yaml +27 -28
  313. data/lib/countries/data/countries/SC.yaml +28 -29
  314. data/lib/countries/data/countries/SD.yaml +30 -31
  315. data/lib/countries/data/countries/SE.yaml +37 -38
  316. data/lib/countries/data/countries/SG.yaml +32 -33
  317. data/lib/countries/data/countries/SH.yaml +29 -30
  318. data/lib/countries/data/countries/SI.yaml +36 -37
  319. data/lib/countries/data/countries/SJ.yaml +29 -30
  320. data/lib/countries/data/countries/SK.yaml +36 -37
  321. data/lib/countries/data/countries/SL.yaml +25 -26
  322. data/lib/countries/data/countries/SM.yaml +28 -29
  323. data/lib/countries/data/countries/SN.yaml +27 -28
  324. data/lib/countries/data/countries/SO.yaml +30 -31
  325. data/lib/countries/data/countries/SR.yaml +26 -27
  326. data/lib/countries/data/countries/SS.yaml +29 -30
  327. data/lib/countries/data/countries/ST.yaml +27 -28
  328. data/lib/countries/data/countries/SV.yaml +27 -28
  329. data/lib/countries/data/countries/SX.yaml +28 -29
  330. data/lib/countries/data/countries/SY.yaml +27 -28
  331. data/lib/countries/data/countries/SZ.yaml +30 -31
  332. data/lib/countries/data/countries/TC.yaml +30 -31
  333. data/lib/countries/data/countries/TD.yaml +29 -30
  334. data/lib/countries/data/countries/TF.yaml +28 -29
  335. data/lib/countries/data/countries/TG.yaml +25 -26
  336. data/lib/countries/data/countries/TH.yaml +34 -35
  337. data/lib/countries/data/countries/TJ.yaml +30 -31
  338. data/lib/countries/data/countries/TK.yaml +27 -28
  339. data/lib/countries/data/countries/TL.yaml +27 -28
  340. data/lib/countries/data/countries/TM.yaml +30 -31
  341. data/lib/countries/data/countries/TN.yaml +30 -31
  342. data/lib/countries/data/countries/TO.yaml +29 -30
  343. data/lib/countries/data/countries/TR.yaml +28 -29
  344. data/lib/countries/data/countries/TT.yaml +28 -29
  345. data/lib/countries/data/countries/TV.yaml +25 -26
  346. data/lib/countries/data/countries/TW.yaml +28 -29
  347. data/lib/countries/data/countries/TZ.yaml +30 -31
  348. data/lib/countries/data/countries/UA.yaml +34 -35
  349. data/lib/countries/data/countries/UG.yaml +28 -29
  350. data/lib/countries/data/countries/UM.yaml +29 -30
  351. data/lib/countries/data/countries/US.yaml +29 -29
  352. data/lib/countries/data/countries/UY.yaml +27 -28
  353. data/lib/countries/data/countries/UZ.yaml +30 -31
  354. data/lib/countries/data/countries/VA.yaml +31 -32
  355. data/lib/countries/data/countries/VC.yaml +29 -30
  356. data/lib/countries/data/countries/VE.yaml +26 -27
  357. data/lib/countries/data/countries/VG.yaml +29 -30
  358. data/lib/countries/data/countries/VI.yaml +28 -29
  359. data/lib/countries/data/countries/VN.yaml +28 -29
  360. data/lib/countries/data/countries/VU.yaml +31 -32
  361. data/lib/countries/data/countries/WF.yaml +29 -30
  362. data/lib/countries/data/countries/WS.yaml +28 -29
  363. data/lib/countries/data/countries/YE.yaml +27 -28
  364. data/lib/countries/data/countries/YT.yaml +26 -27
  365. data/lib/countries/data/countries/ZA.yaml +39 -40
  366. data/lib/countries/data/countries/ZM.yaml +28 -29
  367. data/lib/countries/data/countries/ZW.yaml +31 -32
  368. data/lib/countries/data/subdivisions/AD.yaml +21 -21
  369. data/lib/countries/data/subdivisions/AF.yaml +2 -2
  370. data/lib/countries/data/subdivisions/AG.yaml +1 -1
  371. data/lib/countries/data/subdivisions/AI.yaml +98 -98
  372. data/lib/countries/data/subdivisions/AL.yaml +82 -626
  373. data/lib/countries/data/subdivisions/AZ.yaml +5 -5
  374. data/lib/countries/data/subdivisions/BA.yaml +11 -11
  375. data/lib/countries/data/subdivisions/BD.yaml +8 -8
  376. data/lib/countries/data/subdivisions/BE.yaml +2 -2
  377. data/lib/countries/data/subdivisions/BF.yaml +13 -13
  378. data/lib/countries/data/subdivisions/BI.yaml +3 -3
  379. data/lib/countries/data/subdivisions/BM.yaml +77 -77
  380. data/lib/countries/data/subdivisions/BS.yaml +22 -22
  381. data/lib/countries/data/subdivisions/BW.yaml +7 -7
  382. data/lib/countries/data/subdivisions/BY.yaml +1 -1
  383. data/lib/countries/data/subdivisions/CD.yaml +19 -19
  384. data/lib/countries/data/subdivisions/CG.yaml +1 -1
  385. data/lib/countries/data/subdivisions/CI.yaml +14 -14
  386. data/lib/countries/data/subdivisions/CK.yaml +77 -77
  387. data/lib/countries/data/subdivisions/CN.yaml +0 -107
  388. data/lib/countries/data/subdivisions/CV.yaml +9 -9
  389. data/lib/countries/data/subdivisions/CZ.yaml +1045 -3736
  390. data/lib/countries/data/subdivisions/DE.yaml +16 -16
  391. data/lib/countries/data/subdivisions/DK.yaml +65 -286
  392. data/lib/countries/data/subdivisions/DO.yaml +11 -11
  393. data/lib/countries/data/subdivisions/EE.yaml +172 -88
  394. data/lib/countries/data/subdivisions/EH.yaml +12 -12
  395. data/lib/countries/data/subdivisions/ES.yaml +17 -17
  396. data/lib/countries/data/subdivisions/FI.yaml +101 -498
  397. data/lib/countries/data/subdivisions/FJ.yaml +14 -14
  398. data/lib/countries/data/subdivisions/FR.yaml +584 -977
  399. data/lib/countries/data/subdivisions/GB.yaml +21 -20
  400. data/lib/countries/data/subdivisions/GH.yaml +7 -7
  401. data/lib/countries/data/subdivisions/GL.yaml +6 -6
  402. data/lib/countries/data/subdivisions/GN.yaml +7 -7
  403. data/lib/countries/data/subdivisions/GQ.yaml +1 -0
  404. data/lib/countries/data/subdivisions/GR.yaml +117 -988
  405. data/lib/countries/data/subdivisions/GW.yaml +3 -3
  406. data/lib/countries/data/subdivisions/HT.yaml +1 -1
  407. data/lib/countries/data/subdivisions/HU.yaml +62 -62
  408. data/lib/countries/data/subdivisions/ID.yaml +41 -41
  409. data/lib/countries/data/subdivisions/IE.yaml +483 -483
  410. data/lib/countries/data/subdivisions/IN.yaml +4 -3
  411. data/lib/countries/data/subdivisions/IQ.yaml +1 -1
  412. data/lib/countries/data/subdivisions/IR.yaml +2 -1
  413. data/lib/countries/data/subdivisions/IS.yaml +72 -0
  414. data/lib/countries/data/subdivisions/IT.yaml +1250 -1839
  415. data/lib/countries/data/subdivisions/KE.yaml +391 -503
  416. data/lib/countries/data/subdivisions/KG.yaml +1 -1
  417. data/lib/countries/data/subdivisions/KH.yaml +1 -1
  418. data/lib/countries/data/subdivisions/KN.yaml +2 -2
  419. data/lib/countries/data/subdivisions/KP.yaml +12 -12
  420. data/lib/countries/data/subdivisions/KR.yaml +1 -1
  421. data/lib/countries/data/subdivisions/KZ.yaml +1 -1
  422. data/lib/countries/data/subdivisions/LA.yaml +1 -1
  423. data/lib/countries/data/subdivisions/LB.yaml +2 -2
  424. data/lib/countries/data/subdivisions/LC.yaml +10 -10
  425. data/lib/countries/data/subdivisions/LK.yaml +9 -9
  426. data/lib/countries/data/subdivisions/LR.yaml +2 -2
  427. data/lib/countries/data/subdivisions/LT.yaml +60 -60
  428. data/lib/countries/data/subdivisions/LU.yaml +194 -243
  429. data/lib/countries/data/subdivisions/LV.yaml +147 -5139
  430. data/lib/countries/data/subdivisions/MA.yaml +35 -35
  431. data/lib/countries/data/subdivisions/MC.yaml +17 -17
  432. data/lib/countries/data/subdivisions/MD.yaml +740 -740
  433. data/lib/countries/data/subdivisions/ME.yaml +3 -3
  434. data/lib/countries/data/subdivisions/MH.yaml +2 -2
  435. data/lib/countries/data/subdivisions/MK.yaml +3501 -5809
  436. data/lib/countries/data/subdivisions/ML.yaml +2 -2
  437. data/lib/countries/data/subdivisions/MM.yaml +1 -1
  438. data/lib/countries/data/subdivisions/MR.yaml +3 -3
  439. data/lib/countries/data/subdivisions/MV.yaml +8 -8
  440. data/lib/countries/data/subdivisions/MW.yaml +4 -4
  441. data/lib/countries/data/subdivisions/MX.yaml +1 -1
  442. data/lib/countries/data/subdivisions/NL.yaml +6 -6
  443. data/lib/countries/data/subdivisions/NO.yaml +1 -0
  444. data/lib/countries/data/subdivisions/NP.yaml +12 -12
  445. data/lib/countries/data/subdivisions/NZ.yaml +68 -112
  446. data/lib/countries/data/subdivisions/OM.yaml +6 -6
  447. data/lib/countries/data/subdivisions/PG.yaml +3 -3
  448. data/lib/countries/data/subdivisions/PH.yaml +16 -16
  449. data/lib/countries/data/subdivisions/PK.yaml +2 -2
  450. data/lib/countries/data/subdivisions/PL.yaml +210 -1208
  451. data/lib/countries/data/subdivisions/PS.yaml +16 -16
  452. data/lib/countries/data/subdivisions/QA.yaml +2 -2
  453. data/lib/countries/data/subdivisions/RS.yaml +2 -2
  454. data/lib/countries/data/subdivisions/SC.yaml +4 -2
  455. data/lib/countries/data/subdivisions/SG.yaml +39 -109
  456. data/lib/countries/data/subdivisions/SH.yaml +1 -1
  457. data/lib/countries/data/subdivisions/SI.yaml +19 -19
  458. data/lib/countries/data/subdivisions/SJ.yaml +14 -14
  459. data/lib/countries/data/subdivisions/SL.yaml +1 -1
  460. data/lib/countries/data/subdivisions/SN.yaml +3 -3
  461. data/lib/countries/data/subdivisions/SS.yaml +10 -10
  462. data/lib/countries/data/subdivisions/ST.yaml +6 -0
  463. data/lib/countries/data/subdivisions/TD.yaml +6 -6
  464. data/lib/countries/data/subdivisions/TH.yaml +1 -1
  465. data/lib/countries/data/subdivisions/TJ.yaml +2 -2
  466. data/lib/countries/data/subdivisions/TK.yaml +21 -21
  467. data/lib/countries/data/subdivisions/TM.yaml +1 -1
  468. data/lib/countries/data/subdivisions/TT.yaml +2 -2
  469. data/lib/countries/data/subdivisions/TV.yaml +1 -1
  470. data/lib/countries/data/subdivisions/TW.yaml +3 -17
  471. data/lib/countries/data/subdivisions/TZ.yaml +5 -5
  472. data/lib/countries/data/subdivisions/UG.yaml +59 -52
  473. data/lib/countries/data/subdivisions/UM.yaml +0 -10
  474. data/lib/countries/data/subdivisions/US.yaml +0 -42
  475. data/lib/countries/data/subdivisions/WF.yaml +3 -13
  476. data/lib/countries/data/subdivisions/YE.yaml +3 -3
  477. data/lib/countries/data/subdivisions/ZA.yaml +2 -2
  478. data/lib/countries/data/subdivisions/ZM.yaml +1 -1
  479. data/lib/countries/data/translation_corrections.yaml +20 -12
  480. data/lib/countries/data.rb +5 -1
  481. data/lib/countries/global.rb +13 -3
  482. data/lib/countries/mongoid.rb +3 -0
  483. data/lib/countries/sources/cldr/downloader.rb +3 -0
  484. data/lib/countries/sources/cldr/subdivision.rb +1 -0
  485. data/lib/countries/sources/cldr/subdivision_updater.rb +1 -0
  486. data/lib/countries/sources/local/cached_loader.rb +2 -0
  487. data/lib/countries/sources/local/subdivision.rb +1 -0
  488. data/lib/countries/structure.rb +2 -5
  489. data/lib/countries/tasks/geocoding.rake +1 -1
  490. data/lib/countries/timezones.rb +4 -2
  491. data/lib/countries/translations.rb +2 -3
  492. data/lib/countries/version.rb +1 -1
  493. data/spec/country_spec.rb +60 -56
  494. data/spec/data_spec.rb +9 -9
  495. metadata +7 -38
  496. data/lib/countries/data/subdivisions/AS.yaml +0 -85
  497. data/lib/countries/data/subdivisions/AW.yaml +0 -9
  498. data/lib/countries/data/subdivisions/AX.yaml +0 -51
  499. data/lib/countries/data/subdivisions/BL.yaml +0 -11
  500. data/lib/countries/data/subdivisions/CP.yaml +0 -4
  501. data/lib/countries/data/subdivisions/CW.yaml +0 -9
  502. data/lib/countries/data/subdivisions/FO.yaml +0 -85
  503. data/lib/countries/data/subdivisions/GF.yaml +0 -11
  504. data/lib/countries/data/subdivisions/GG.yaml +0 -155
  505. data/lib/countries/data/subdivisions/GP.yaml +0 -11
  506. data/lib/countries/data/subdivisions/GU.yaml +0 -275
  507. data/lib/countries/data/subdivisions/HK.yaml +0 -267
  508. data/lib/countries/data/subdivisions/IC.yaml +0 -4
  509. data/lib/countries/data/subdivisions/IM.yaml +0 -337
  510. data/lib/countries/data/subdivisions/JE.yaml +0 -169
  511. data/lib/countries/data/subdivisions/KY.yaml +0 -85
  512. data/lib/countries/data/subdivisions/MF.yaml +0 -9
  513. data/lib/countries/data/subdivisions/MO.yaml +0 -9
  514. data/lib/countries/data/subdivisions/MP.yaml +0 -71
  515. data/lib/countries/data/subdivisions/MQ.yaml +0 -11
  516. data/lib/countries/data/subdivisions/MS.yaml +0 -43
  517. data/lib/countries/data/subdivisions/NC.yaml +0 -57
  518. data/lib/countries/data/subdivisions/PF.yaml +0 -81
  519. data/lib/countries/data/subdivisions/PM.yaml +0 -39
  520. data/lib/countries/data/subdivisions/PR.yaml +0 -1107
  521. data/lib/countries/data/subdivisions/RE.yaml +0 -11
  522. data/lib/countries/data/subdivisions/SX.yaml +0 -9
  523. data/lib/countries/data/subdivisions/TA.yaml +0 -4
  524. data/lib/countries/data/subdivisions/TF.yaml +0 -67
  525. data/lib/countries/data/subdivisions/VI.yaml +0 -57
  526. data/lib/countries/data/subdivisions/YT.yaml +0 -247
@@ -4254,7 +4254,7 @@
4254
4254
  'no': Kiruhura
4255
4255
  comments:
4256
4256
  '117':
4257
- name:
4257
+ name: Buikwe
4258
4258
  code:
4259
4259
  unofficial_names:
4260
4260
  geo:
@@ -4306,7 +4306,7 @@
4306
4306
  'no': Buikwe
4307
4307
  comments:
4308
4308
  '118':
4309
- name:
4309
+ name: Bukomansibi
4310
4310
  code:
4311
4311
  unofficial_names:
4312
4312
  geo:
@@ -4358,7 +4358,7 @@
4358
4358
  'no': Bukomansimbi
4359
4359
  comments:
4360
4360
  '119':
4361
- name:
4361
+ name: Butambala
4362
4362
  code:
4363
4363
  unofficial_names:
4364
4364
  geo:
@@ -4410,7 +4410,7 @@
4410
4410
  'no': Butambala
4411
4411
  comments:
4412
4412
  '120':
4413
- name:
4413
+ name: Buvuma
4414
4414
  code:
4415
4415
  unofficial_names:
4416
4416
  geo:
@@ -4462,7 +4462,7 @@
4462
4462
  'no': Buvuma
4463
4463
  comments:
4464
4464
  '121':
4465
- name:
4465
+ name: Gomba
4466
4466
  code:
4467
4467
  unofficial_names:
4468
4468
  geo:
@@ -4515,7 +4515,7 @@
4515
4515
  'no': Gomba
4516
4516
  comments:
4517
4517
  '122':
4518
- name:
4518
+ name: Kalungu
4519
4519
  code:
4520
4520
  unofficial_names:
4521
4521
  geo:
@@ -4567,7 +4567,7 @@
4567
4567
  'no': Kalungu
4568
4568
  comments:
4569
4569
  '123':
4570
- name:
4570
+ name: Kyankwanzi
4571
4571
  code:
4572
4572
  unofficial_names:
4573
4573
  geo:
@@ -4619,7 +4619,7 @@
4619
4619
  'no': Kyankwanzi
4620
4620
  comments:
4621
4621
  '124':
4622
- name:
4622
+ name: Lwengo
4623
4623
  code:
4624
4624
  unofficial_names:
4625
4625
  geo:
@@ -4671,7 +4671,7 @@
4671
4671
  'no': Lwengo
4672
4672
  comments:
4673
4673
  '225':
4674
- name:
4674
+ name: Bulambuli
4675
4675
  code:
4676
4676
  unofficial_names:
4677
4677
  geo:
@@ -4723,7 +4723,7 @@
4723
4723
  'no': Bulambuli
4724
4724
  comments:
4725
4725
  '226':
4726
- name:
4726
+ name: Buyende
4727
4727
  code:
4728
4728
  unofficial_names:
4729
4729
  geo:
@@ -4775,7 +4775,7 @@
4775
4775
  'no': Buyende
4776
4776
  comments:
4777
4777
  '227':
4778
- name:
4778
+ name: Kibuku
4779
4779
  code:
4780
4780
  unofficial_names:
4781
4781
  geo:
@@ -4827,7 +4827,7 @@
4827
4827
  'no': Kibuku
4828
4828
  comments:
4829
4829
  '228':
4830
- name:
4830
+ name: Kween
4831
4831
  code:
4832
4832
  unofficial_names:
4833
4833
  geo:
@@ -4879,7 +4879,7 @@
4879
4879
  'no': Kween
4880
4880
  comments:
4881
4881
  '229':
4882
- name:
4882
+ name: Luuka
4883
4883
  code:
4884
4884
  unofficial_names:
4885
4885
  geo:
@@ -4931,7 +4931,7 @@
4931
4931
  'no': Luuka
4932
4932
  comments:
4933
4933
  '230':
4934
- name:
4934
+ name: Namayingo
4935
4935
  code:
4936
4936
  unofficial_names:
4937
4937
  geo:
@@ -4983,7 +4983,7 @@
4983
4983
  'no': Namayingo
4984
4984
  comments:
4985
4985
  '231':
4986
- name:
4986
+ name: Ngora
4987
4987
  code:
4988
4988
  unofficial_names:
4989
4989
  geo:
@@ -5035,7 +5035,7 @@
5035
5035
  'no': Ngora
5036
5036
  comments:
5037
5037
  '232':
5038
- name:
5038
+ name: Serere
5039
5039
  code:
5040
5040
  unofficial_names:
5041
5041
  geo:
@@ -5087,7 +5087,7 @@
5087
5087
  'no': Serere
5088
5088
  comments:
5089
5089
  '322':
5090
- name:
5090
+ name: Agago
5091
5091
  code:
5092
5092
  unofficial_names:
5093
5093
  geo:
@@ -5138,7 +5138,7 @@
5138
5138
  'no': Agago
5139
5139
  comments:
5140
5140
  '323':
5141
- name:
5141
+ name: Alebtong
5142
5142
  code:
5143
5143
  unofficial_names:
5144
5144
  geo:
@@ -5190,7 +5190,7 @@
5190
5190
  'no': Alebtong
5191
5191
  comments:
5192
5192
  '324':
5193
- name:
5193
+ name: Amudat
5194
5194
  code:
5195
5195
  unofficial_names:
5196
5196
  geo:
@@ -5242,7 +5242,7 @@
5242
5242
  'no': Amudat
5243
5243
  comments:
5244
5244
  '325':
5245
- name:
5245
+ name: Kole
5246
5246
  code:
5247
5247
  unofficial_names:
5248
5248
  geo:
@@ -5293,7 +5293,7 @@
5293
5293
  'no': Kole
5294
5294
  comments:
5295
5295
  '326':
5296
- name:
5296
+ name: Lamwo
5297
5297
  code:
5298
5298
  unofficial_names:
5299
5299
  geo:
@@ -5344,7 +5344,7 @@
5344
5344
  'no': Lamwo
5345
5345
  comments:
5346
5346
  '327':
5347
- name:
5347
+ name: Napak
5348
5348
  code:
5349
5349
  unofficial_names:
5350
5350
  geo:
@@ -5396,7 +5396,7 @@
5396
5396
  'no': Napak
5397
5397
  comments:
5398
5398
  '328':
5399
- name:
5399
+ name: Nwoya
5400
5400
  code:
5401
5401
  unofficial_names:
5402
5402
  geo:
@@ -5448,7 +5448,7 @@
5448
5448
  'no': Nwoya
5449
5449
  comments:
5450
5450
  '329':
5451
- name:
5451
+ name: Otuke
5452
5452
  code:
5453
5453
  unofficial_names:
5454
5454
  geo:
@@ -5500,7 +5500,7 @@
5500
5500
  'no': Otuke
5501
5501
  comments:
5502
5502
  '330':
5503
- name:
5503
+ name: Zombo²
5504
5504
  code:
5505
5505
  unofficial_names:
5506
5506
  geo:
@@ -5552,7 +5552,7 @@
5552
5552
  'no': Zombo
5553
5553
  comments:
5554
5554
  '420':
5555
- name:
5555
+ name: Buhweju
5556
5556
  code:
5557
5557
  unofficial_names:
5558
5558
  geo:
@@ -5603,7 +5603,7 @@
5603
5603
  'no': Buhweju
5604
5604
  comments:
5605
5605
  '421':
5606
- name:
5606
+ name: Kiryandongo
5607
5607
  code:
5608
5608
  unofficial_names:
5609
5609
  geo:
@@ -5654,7 +5654,7 @@
5654
5654
  'no': Kiryandongo
5655
5655
  comments:
5656
5656
  '422':
5657
- name:
5657
+ name: Kyegegwa
5658
5658
  code:
5659
5659
  unofficial_names:
5660
5660
  geo:
@@ -5705,7 +5705,7 @@
5705
5705
  'no': Kyegegwa
5706
5706
  comments:
5707
5707
  '423':
5708
- name:
5708
+ name: Mitooma
5709
5709
  code:
5710
5710
  unofficial_names:
5711
5711
  geo:
@@ -5756,7 +5756,7 @@
5756
5756
  'no': Mitooma
5757
5757
  comments:
5758
5758
  '424':
5759
- name:
5759
+ name: Ntoroko
5760
5760
  code:
5761
5761
  unofficial_names:
5762
5762
  geo:
@@ -5807,7 +5807,7 @@
5807
5807
  'no': Ntoroko
5808
5808
  comments:
5809
5809
  '425':
5810
- name:
5810
+ name: Rubirizi
5811
5811
  code:
5812
5812
  unofficial_names:
5813
5813
  geo:
@@ -5858,7 +5858,7 @@
5858
5858
  'no': Rubirizi
5859
5859
  comments:
5860
5860
  '426':
5861
- name:
5861
+ name: Sheema
5862
5862
  code:
5863
5863
  unofficial_names:
5864
5864
  geo:
@@ -5909,7 +5909,7 @@
5909
5909
  'no': Sheema
5910
5910
  comments:
5911
5911
  C:
5912
- name:
5912
+ name: Central
5913
5913
  code:
5914
5914
  unofficial_names:
5915
5915
  geo:
@@ -5948,7 +5948,7 @@ C:
5948
5948
  'no': Central
5949
5949
  comments:
5950
5950
  E:
5951
- name:
5951
+ name: Eastern
5952
5952
  code:
5953
5953
  unofficial_names:
5954
5954
  geo:
@@ -5984,7 +5984,7 @@ E:
5984
5984
  'no': Eastern
5985
5985
  comments:
5986
5986
  N:
5987
- name:
5987
+ name: Northern
5988
5988
  code:
5989
5989
  unofficial_names:
5990
5990
  geo:
@@ -6017,7 +6017,7 @@ N:
6017
6017
  'no': Northern
6018
6018
  comments:
6019
6019
  W:
6020
- name:
6020
+ name: Western
6021
6021
  code:
6022
6022
  unofficial_names:
6023
6023
  geo:
@@ -6051,7 +6051,7 @@ W:
6051
6051
  'no': Western
6052
6052
  comments:
6053
6053
  '331':
6054
- name:
6054
+ name: Zombo
6055
6055
  code:
6056
6056
  unofficial_names:
6057
6057
  geo:
@@ -6067,7 +6067,7 @@ W:
6067
6067
  ccp: "\U0001110E\U0001112E\U0001111F\U00011134\U0001111D\U0001112A"
6068
6068
  comments:
6069
6069
  '125':
6070
- name:
6070
+ name: Kyotera
6071
6071
  code:
6072
6072
  unofficial_names:
6073
6073
  geo:
@@ -6082,7 +6082,7 @@ W:
6082
6082
  en: Kyotera
6083
6083
  comments:
6084
6084
  '233':
6085
- name:
6085
+ name: Butebo
6086
6086
  code:
6087
6087
  unofficial_names:
6088
6088
  geo:
@@ -6097,7 +6097,7 @@ W:
6097
6097
  en: Butebo
6098
6098
  comments:
6099
6099
  '234':
6100
- name:
6100
+ name: Namisindwa
6101
6101
  code:
6102
6102
  unofficial_names:
6103
6103
  geo:
@@ -6112,7 +6112,7 @@ W:
6112
6112
  en: Namisindwa
6113
6113
  comments:
6114
6114
  '332':
6115
- name:
6115
+ name: Pakwach
6116
6116
  code:
6117
6117
  unofficial_names:
6118
6118
  geo:
@@ -6127,7 +6127,7 @@ W:
6127
6127
  en: Pakwach
6128
6128
  comments:
6129
6129
  '427':
6130
- name:
6130
+ name: Kagadi
6131
6131
  code:
6132
6132
  unofficial_names:
6133
6133
  geo:
@@ -6142,7 +6142,7 @@ W:
6142
6142
  en: Kagadi
6143
6143
  comments:
6144
6144
  '428':
6145
- name:
6145
+ name: Kakumiro
6146
6146
  code:
6147
6147
  unofficial_names:
6148
6148
  geo:
@@ -6157,7 +6157,7 @@ W:
6157
6157
  en: Kakumiro
6158
6158
  comments:
6159
6159
  '429':
6160
- name:
6160
+ name: Rubanda
6161
6161
  code:
6162
6162
  unofficial_names:
6163
6163
  geo:
@@ -6172,7 +6172,7 @@ W:
6172
6172
  en: Rubanda
6173
6173
  comments:
6174
6174
  '430':
6175
- name:
6175
+ name: Bunyangabu
6176
6176
  code:
6177
6177
  unofficial_names:
6178
6178
  geo:
@@ -6187,7 +6187,7 @@ W:
6187
6187
  en: Bunyangabu
6188
6188
  comments:
6189
6189
  '431':
6190
- name:
6190
+ name: Rukiga
6191
6191
  code:
6192
6192
  unofficial_names:
6193
6193
  geo:
@@ -6202,7 +6202,7 @@ W:
6202
6202
  en: Rukiga
6203
6203
  comments:
6204
6204
  '126':
6205
- name:
6205
+ name: Kasanda
6206
6206
  code:
6207
6207
  unofficial_names:
6208
6208
  geo:
@@ -6216,7 +6216,7 @@ W:
6216
6216
  en: Kasanda
6217
6217
  comments:
6218
6218
  '235':
6219
- name:
6219
+ name: Bugweri
6220
6220
  code:
6221
6221
  unofficial_names:
6222
6222
  geo:
@@ -6230,7 +6230,7 @@ W:
6230
6230
  en: Bugweri
6231
6231
  comments:
6232
6232
  '236':
6233
- name:
6233
+ name: Kapelebyong
6234
6234
  code:
6235
6235
  unofficial_names:
6236
6236
  geo:
@@ -6244,7 +6244,7 @@ W:
6244
6244
  en: Kapelebyong
6245
6245
  comments:
6246
6246
  '333':
6247
- name:
6247
+ name: Kwania
6248
6248
  code:
6249
6249
  unofficial_names:
6250
6250
  geo:
@@ -6258,7 +6258,7 @@ W:
6258
6258
  en: Kwania
6259
6259
  comments:
6260
6260
  '334':
6261
- name:
6261
+ name: Nabilatuk
6262
6262
  code:
6263
6263
  unofficial_names:
6264
6264
  geo:
@@ -6268,7 +6268,7 @@ W:
6268
6268
  en: Nabilatuk
6269
6269
  comments:
6270
6270
  '432':
6271
- name:
6271
+ name: Kikuube
6272
6272
  code:
6273
6273
  unofficial_names:
6274
6274
  geo:
@@ -6284,21 +6284,28 @@ W:
6284
6284
  '237':
6285
6285
  translations:
6286
6286
  en: Kalaki
6287
+ name: Kalaki
6287
6288
  '335':
6288
6289
  translations:
6289
6290
  en: Karenga
6291
+ name: Karenga
6290
6292
  '336':
6291
6293
  translations:
6292
6294
  en: Madi-Okollo
6295
+ name: Madi-Okollo
6293
6296
  '337':
6294
6297
  translations:
6295
6298
  en: Obongi
6299
+ name: Obongi
6296
6300
  '433':
6297
6301
  translations:
6298
6302
  en: Kazo
6303
+ name: Kazo
6299
6304
  '434':
6300
6305
  translations:
6301
6306
  en: Kitagwenda
6307
+ name: Kitagwenda
6302
6308
  '435':
6303
6309
  translations:
6304
6310
  en: Rwampara
6311
+ name: Rwampara
@@ -727,13 +727,3 @@
727
727
  mk: Палмирски Атол
728
728
  'no': Palmyra Atoll
729
729
  comments:
730
- '':
731
- name:
732
- code:
733
- unofficial_names:
734
- geo:
735
- latitude: 3.1209046
736
- longitude: 101.6538414
737
- translations:
738
- en: U.S. Outlying Islands
739
- comments:
@@ -1,32 +1,4 @@
1
1
  ---
2
- AA:
3
- name: Armed Forces Americas
4
- code:
5
- unofficial_names: Armed Forces Americas
6
- geo:
7
- latitude: 33.8934985
8
- longitude: -117.2732567
9
- min_latitude: 33.8403275
10
- min_longitude: -117.2985014
11
- max_latitude: 33.9460679
12
- max_longitude: -117.2498013
13
- translations:
14
- en: Armed Forces Americas
15
- comments:
16
- AE:
17
- name: Armed Forces Europe
18
- code:
19
- unofficial_names: Armed Forces Europe
20
- geo:
21
- latitude: 59.90441850000001
22
- longitude: 10.7408094
23
- min_latitude:
24
- min_longitude:
25
- max_latitude:
26
- max_longitude:
27
- translations:
28
- en: Armed Forces Europe
29
- comments:
30
2
  AK:
31
3
  name: Alaska
32
4
  code:
@@ -223,20 +195,6 @@ AL:
223
195
  ha_NE: Alabama
224
196
  'no': Alabama
225
197
  comments:
226
- AP:
227
- name: Armed Forces Pacific
228
- code:
229
- unofficial_names: Armed Forces Pacific
230
- geo:
231
- latitude:
232
- longitude:
233
- min_latitude:
234
- min_longitude:
235
- max_latitude:
236
- max_longitude:
237
- translations:
238
- en: Armed Forces Pacific
239
- comments:
240
198
  AR:
241
199
  name: Arkansas
242
200
  code:
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  AL:
3
- name:
3
+ name: Alo
4
4
  code:
5
5
  unofficial_names:
6
6
  geo:
@@ -69,7 +69,7 @@ AL:
69
69
  'no': Alo
70
70
  comments:
71
71
  SG:
72
- name:
72
+ name: Sigave
73
73
  code:
74
74
  unofficial_names:
75
75
  geo:
@@ -135,7 +135,7 @@ SG:
135
135
  'no': Sigave
136
136
  comments:
137
137
  UV:
138
- name:
138
+ name: Uvea
139
139
  code:
140
140
  unofficial_names:
141
141
  geo:
@@ -199,13 +199,3 @@ UV:
199
199
  cs: Uvea
200
200
  'no': Uvea
201
201
  comments:
202
- '':
203
- name:
204
- code:
205
- unofficial_names:
206
- geo:
207
- latitude: 48.8360357
208
- longitude: 2.3960663
209
- translations:
210
- en: Wallis & Futuna
211
- comments:
@@ -1140,7 +1140,7 @@ TA:
1140
1140
  'no': Ta’izz
1141
1141
  comments:
1142
1142
  SA:
1143
- name:
1143
+ name: صنعاء
1144
1144
  code:
1145
1145
  unofficial_names:
1146
1146
  geo:
@@ -1233,7 +1233,7 @@ SA:
1233
1233
  yo_BJ: Sana’a
1234
1234
  comments:
1235
1235
  RA:
1236
- name:
1236
+ name: محافظة ريمة
1237
1237
  code:
1238
1238
  unofficial_names:
1239
1239
  geo:
@@ -1293,7 +1293,7 @@ RA:
1293
1293
  'no': Raymah
1294
1294
  comments:
1295
1295
  SU:
1296
- name:
1296
+ name: محافظة أرخبيل سقطرى
1297
1297
  code:
1298
1298
  unofficial_names:
1299
1299
  geo:
@@ -714,7 +714,7 @@ WC:
714
714
  yo_BJ: Western Cape
715
715
  comments:
716
716
  GP:
717
- name:
717
+ name: Gauteng
718
718
  code:
719
719
  unofficial_names:
720
720
  geo:
@@ -722,7 +722,7 @@ GP:
722
722
  en: Gauteng
723
723
  comments:
724
724
  KZN:
725
- name:
725
+ name: KwaZulu-Natal
726
726
  code:
727
727
  unofficial_names:
728
728
  geo:
@@ -532,7 +532,7 @@
532
532
  'no': Lusaka
533
533
  comments:
534
534
  '10':
535
- name:
535
+ name: Muchinga
536
536
  code:
537
537
  unofficial_names:
538
538
  geo:
@@ -10,8 +10,6 @@
10
10
  # alpha2: localized_name
11
11
  #
12
12
  ---
13
- oc:
14
- US: USA
15
13
  ar:
16
14
  PS: "فلسطين"
17
15
  SA: "السعودية"
@@ -21,23 +19,33 @@ ar:
21
19
  SY: "سوريا"
22
20
  BQ: "بونير، سينت أوستاتيوس وسابا"
23
21
  CW: "كوراساو"
24
- nn:
25
- PT: Portugal
26
- zh:
27
- KH: '柬埔寨'
28
- zh_cn:
29
- KH: '柬埔寨'
22
+ da:
23
+ CZ: 'Tjekkiet'
30
24
  fa:
31
25
  IR: "ایران"
32
26
  he:
33
27
  PS: "פלסטין, מדינת"
34
28
  VI: "איי הבתולה (ארה)"
29
+ jp:
30
+ ES: スペイン
35
31
  mk:
36
32
  MK: "Северна Македонија"
33
+ nn:
34
+ PT: Portugal
35
+ oc:
36
+ US: Estats Units
37
+ UM: Islas perifericas Menores dels Estats Units
38
+ MK: Macedònia del Nòrd
39
+ pt:
40
+ CZ: 'República Checa'
37
41
  sv:
38
42
  GB: "Storbritannien"
39
43
  RU: "Ryssland"
40
- pt:
41
- CZ: 'República Checa'
42
- da:
43
- CZ: 'Tjekkiet'
44
+ zh:
45
+ KH: '柬埔寨'
46
+ zh_cn:
47
+ KH: '柬埔寨'
48
+ nb:
49
+ US: USA
50
+ nn:
51
+ US: USA
@@ -1,5 +1,4 @@
1
1
  module ISO3166
2
- ##
3
2
  # Handles building the in memory store of countries data
4
3
  class Data
5
4
  @@cache_dir = [File.dirname(__FILE__), 'cache']
@@ -24,6 +23,9 @@ module ISO3166
24
23
  @@cache_dir = value
25
24
  end
26
25
 
26
+ # Registers a new Country with custom data.
27
+ # If you are overriding an existing country, this does not perform a deep merge so you will need to __bring in all data you wish to be available__.
28
+ # Overriding an existing country will also remove it from the internal management of translations.
27
29
  def register(data)
28
30
  alpha2 = data[:alpha2].upcase
29
31
  @@registered_data[alpha2] = deep_stringify_keys(data)
@@ -32,6 +34,7 @@ module ISO3166
32
34
  @@cache = cache.merge(@@registered_data)
33
35
  end
34
36
 
37
+ # Removes a country from the loaded data
35
38
  def unregister(alpha2)
36
39
  alpha2 = alpha2.to_s.upcase
37
40
  @@cache.delete(alpha2)
@@ -42,6 +45,7 @@ module ISO3166
42
45
  update_cache
43
46
  end
44
47
 
48
+ # Resets the loaded data and cache
45
49
  def reset
46
50
  @@cache = {}
47
51
  @@registered_data = {}