countries 4.1.1 → 4.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (403) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/tests.yml +2 -0
  3. data/CHANGELOG.md +73 -4
  4. data/README.markdown +43 -37
  5. data/Rakefile +23 -31
  6. data/countries.gemspec +1 -1
  7. data/lib/countries/cache/countries.json +1 -1
  8. data/lib/countries/cache/locales/ab.json +1 -1
  9. data/lib/countries/cache/locales/af.json +1 -1
  10. data/lib/countries/cache/locales/ak.json +1 -1
  11. data/lib/countries/cache/locales/am.json +1 -1
  12. data/lib/countries/cache/locales/an.json +1 -1
  13. data/lib/countries/cache/locales/as.json +1 -1
  14. data/lib/countries/cache/locales/ay.json +1 -1
  15. data/lib/countries/cache/locales/az.json +1 -1
  16. data/lib/countries/cache/locales/ba.json +1 -1
  17. data/lib/countries/cache/locales/bg.json +1 -1
  18. data/lib/countries/cache/locales/bi.json +1 -1
  19. data/lib/countries/cache/locales/br.json +1 -1
  20. data/lib/countries/cache/locales/bs.json +1 -1
  21. data/lib/countries/cache/locales/ca.json +1 -1
  22. data/lib/countries/cache/locales/ce.json +1 -1
  23. data/lib/countries/cache/locales/ch.json +1 -1
  24. data/lib/countries/cache/locales/cv.json +1 -1
  25. data/lib/countries/cache/locales/de.json +1 -1
  26. data/lib/countries/cache/locales/dv.json +1 -1
  27. data/lib/countries/cache/locales/dz.json +1 -1
  28. data/lib/countries/cache/locales/ee.json +1 -1
  29. data/lib/countries/cache/locales/en.json +1 -1
  30. data/lib/countries/cache/locales/eo.json +1 -1
  31. data/lib/countries/cache/locales/es.json +1 -1
  32. data/lib/countries/cache/locales/et.json +1 -1
  33. data/lib/countries/cache/locales/ff.json +1 -1
  34. data/lib/countries/cache/locales/fi.json +1 -1
  35. data/lib/countries/cache/locales/fo.json +1 -1
  36. data/lib/countries/cache/locales/fr.json +1 -1
  37. data/lib/countries/cache/locales/fy.json +1 -1
  38. data/lib/countries/cache/locales/ga.json +1 -1
  39. data/lib/countries/cache/locales/gl.json +1 -1
  40. data/lib/countries/cache/locales/gn.json +1 -1
  41. data/lib/countries/cache/locales/gu.json +1 -1
  42. data/lib/countries/cache/locales/gv.json +1 -1
  43. data/lib/countries/cache/locales/ha.json +1 -1
  44. data/lib/countries/cache/locales/he.json +1 -1
  45. data/lib/countries/cache/locales/hi.json +1 -1
  46. data/lib/countries/cache/locales/hr.json +1 -1
  47. data/lib/countries/cache/locales/ht.json +1 -1
  48. data/lib/countries/cache/locales/hy.json +1 -1
  49. data/lib/countries/cache/locales/io.json +1 -1
  50. data/lib/countries/cache/locales/is.json +1 -1
  51. data/lib/countries/cache/locales/iu.json +1 -1
  52. data/lib/countries/cache/locales/ja.json +1 -1
  53. data/lib/countries/cache/locales/ka.json +1 -1
  54. data/lib/countries/cache/locales/ki.json +1 -1
  55. data/lib/countries/cache/locales/kk.json +1 -1
  56. data/lib/countries/cache/locales/kl.json +1 -1
  57. data/lib/countries/cache/locales/km.json +1 -1
  58. data/lib/countries/cache/locales/kn.json +1 -1
  59. data/lib/countries/cache/locales/kv.json +1 -1
  60. data/lib/countries/cache/locales/kw.json +1 -1
  61. data/lib/countries/cache/locales/ky.json +1 -1
  62. data/lib/countries/cache/locales/lo.json +1 -1
  63. data/lib/countries/cache/locales/lt.json +1 -1
  64. data/lib/countries/cache/locales/lv.json +1 -1
  65. data/lib/countries/cache/locales/mi.json +1 -1
  66. data/lib/countries/cache/locales/mk.json +1 -1
  67. data/lib/countries/cache/locales/ml.json +1 -1
  68. data/lib/countries/cache/locales/mn.json +1 -1
  69. data/lib/countries/cache/locales/ms.json +1 -1
  70. data/lib/countries/cache/locales/mt.json +1 -1
  71. data/lib/countries/cache/locales/my.json +1 -1
  72. data/lib/countries/cache/locales/na.json +1 -1
  73. data/lib/countries/cache/locales/nb.json +1 -1
  74. data/lib/countries/cache/locales/ne.json +1 -1
  75. data/lib/countries/cache/locales/nl.json +1 -1
  76. data/lib/countries/cache/locales/nn.json +1 -1
  77. data/lib/countries/cache/locales/nv.json +1 -1
  78. data/lib/countries/cache/locales/oc.json +1 -1
  79. data/lib/countries/cache/locales/pi.json +1 -1
  80. data/lib/countries/cache/locales/ps.json +1 -1
  81. data/lib/countries/cache/locales/pt-br.json +1 -1
  82. data/lib/countries/cache/locales/ro.json +1 -1
  83. data/lib/countries/cache/locales/ru.json +1 -1
  84. data/lib/countries/cache/locales/rw.json +1 -1
  85. data/lib/countries/cache/locales/sc.json +1 -1
  86. data/lib/countries/cache/locales/sd.json +1 -1
  87. data/lib/countries/cache/locales/si.json +1 -1
  88. data/lib/countries/cache/locales/sk.json +1 -1
  89. data/lib/countries/cache/locales/sl.json +1 -1
  90. data/lib/countries/cache/locales/so.json +1 -1
  91. data/lib/countries/cache/locales/sr.json +1 -1
  92. data/lib/countries/cache/locales/sv.json +1 -1
  93. data/lib/countries/cache/locales/sw.json +1 -1
  94. data/lib/countries/cache/locales/ta.json +1 -1
  95. data/lib/countries/cache/locales/te.json +1 -1
  96. data/lib/countries/cache/locales/th.json +1 -1
  97. data/lib/countries/cache/locales/ti.json +1 -1
  98. data/lib/countries/cache/locales/tk.json +1 -1
  99. data/lib/countries/cache/locales/tl.json +1 -1
  100. data/lib/countries/cache/locales/tr.json +1 -1
  101. data/lib/countries/cache/locales/tt.json +1 -1
  102. data/lib/countries/cache/locales/ur.json +1 -1
  103. data/lib/countries/cache/locales/uz.json +1 -1
  104. data/lib/countries/cache/locales/ve.json +1 -1
  105. data/lib/countries/cache/locales/vi.json +1 -1
  106. data/lib/countries/cache/locales/wa.json +1 -1
  107. data/lib/countries/cache/locales/wo.json +1 -1
  108. data/lib/countries/cache/locales/xh.json +1 -1
  109. data/lib/countries/cache/locales/yo.json +1 -1
  110. data/lib/countries/cache/locales/zh-cn.json +1 -1
  111. data/lib/countries/cache/locales/zh.json +1 -1
  112. data/lib/countries/cache/locales/zu.json +1 -1
  113. data/lib/countries/configuration.rb +13 -0
  114. data/lib/countries/country/class_methods.rb +19 -6
  115. data/lib/countries/country/currency_methods.rb +4 -1
  116. data/lib/countries/country/emoji.rb +3 -0
  117. data/lib/countries/country.rb +147 -7
  118. data/lib/countries/data/countries/AD.yaml +28 -29
  119. data/lib/countries/data/countries/AE.yaml +32 -33
  120. data/lib/countries/data/countries/AF.yaml +32 -33
  121. data/lib/countries/data/countries/AG.yaml +28 -29
  122. data/lib/countries/data/countries/AI.yaml +27 -28
  123. data/lib/countries/data/countries/AL.yaml +28 -29
  124. data/lib/countries/data/countries/AM.yaml +30 -31
  125. data/lib/countries/data/countries/AO.yaml +25 -26
  126. data/lib/countries/data/countries/AQ.yaml +24 -25
  127. data/lib/countries/data/countries/AR.yaml +30 -31
  128. data/lib/countries/data/countries/AS.yaml +31 -32
  129. data/lib/countries/data/countries/AT.yaml +36 -37
  130. data/lib/countries/data/countries/AU.yaml +33 -34
  131. data/lib/countries/data/countries/AW.yaml +25 -26
  132. data/lib/countries/data/countries/AX.yaml +27 -28
  133. data/lib/countries/data/countries/AZ.yaml +30 -31
  134. data/lib/countries/data/countries/BA.yaml +32 -33
  135. data/lib/countries/data/countries/BB.yaml +28 -29
  136. data/lib/countries/data/countries/BD.yaml +27 -28
  137. data/lib/countries/data/countries/BE.yaml +41 -42
  138. data/lib/countries/data/countries/BF.yaml +27 -28
  139. data/lib/countries/data/countries/BG.yaml +36 -37
  140. data/lib/countries/data/countries/BH.yaml +28 -29
  141. data/lib/countries/data/countries/BI.yaml +27 -28
  142. data/lib/countries/data/countries/BJ.yaml +26 -27
  143. data/lib/countries/data/countries/BL.yaml +25 -26
  144. data/lib/countries/data/countries/BM.yaml +29 -30
  145. data/lib/countries/data/countries/BN.yaml +26 -27
  146. data/lib/countries/data/countries/BO.yaml +31 -32
  147. data/lib/countries/data/countries/BQ.yaml +28 -29
  148. data/lib/countries/data/countries/BR.yaml +35 -36
  149. data/lib/countries/data/countries/BS.yaml +27 -28
  150. data/lib/countries/data/countries/BT.yaml +28 -29
  151. data/lib/countries/data/countries/BV.yaml +23 -24
  152. data/lib/countries/data/countries/BW.yaml +27 -28
  153. data/lib/countries/data/countries/BY.yaml +30 -31
  154. data/lib/countries/data/countries/BZ.yaml +28 -29
  155. data/lib/countries/data/countries/CA.yaml +30 -31
  156. data/lib/countries/data/countries/CC.yaml +28 -29
  157. data/lib/countries/data/countries/CD.yaml +35 -36
  158. data/lib/countries/data/countries/CF.yaml +29 -30
  159. data/lib/countries/data/countries/CG.yaml +29 -30
  160. data/lib/countries/data/countries/CH.yaml +40 -41
  161. data/lib/countries/data/countries/CI.yaml +27 -28
  162. data/lib/countries/data/countries/CK.yaml +27 -28
  163. data/lib/countries/data/countries/CL.yaml +32 -33
  164. data/lib/countries/data/countries/CM.yaml +29 -30
  165. data/lib/countries/data/countries/CN.yaml +28 -29
  166. data/lib/countries/data/countries/CO.yaml +28 -29
  167. data/lib/countries/data/countries/CR.yaml +26 -27
  168. data/lib/countries/data/countries/CU.yaml +27 -28
  169. data/lib/countries/data/countries/CV.yaml +28 -29
  170. data/lib/countries/data/countries/CW.yaml +25 -26
  171. data/lib/countries/data/countries/CX.yaml +30 -31
  172. data/lib/countries/data/countries/CY.yaml +40 -41
  173. data/lib/countries/data/countries/CZ.yaml +38 -39
  174. data/lib/countries/data/countries/DE.yaml +36 -37
  175. data/lib/countries/data/countries/DJ.yaml +29 -30
  176. data/lib/countries/data/countries/DK.yaml +35 -36
  177. data/lib/countries/data/countries/DM.yaml +26 -27
  178. data/lib/countries/data/countries/DO.yaml +28 -29
  179. data/lib/countries/data/countries/DZ.yaml +28 -29
  180. data/lib/countries/data/countries/EC.yaml +28 -29
  181. data/lib/countries/data/countries/EE.yaml +35 -36
  182. data/lib/countries/data/countries/EG.yaml +28 -29
  183. data/lib/countries/data/countries/EH.yaml +30 -31
  184. data/lib/countries/data/countries/ER.yaml +31 -32
  185. data/lib/countries/data/countries/ES.yaml +36 -37
  186. data/lib/countries/data/countries/ET.yaml +28 -29
  187. data/lib/countries/data/countries/FI.yaml +38 -39
  188. data/lib/countries/data/countries/FJ.yaml +33 -34
  189. data/lib/countries/data/countries/FK.yaml +29 -30
  190. data/lib/countries/data/countries/FM.yaml +28 -29
  191. data/lib/countries/data/countries/FO.yaml +28 -29
  192. data/lib/countries/data/countries/FR.yaml +37 -38
  193. data/lib/countries/data/countries/GA.yaml +27 -28
  194. data/lib/countries/data/countries/GB.yaml +39 -38
  195. data/lib/countries/data/countries/GD.yaml +26 -27
  196. data/lib/countries/data/countries/GE.yaml +28 -29
  197. data/lib/countries/data/countries/GF.yaml +29 -30
  198. data/lib/countries/data/countries/GG.yaml +30 -31
  199. data/lib/countries/data/countries/GH.yaml +27 -28
  200. data/lib/countries/data/countries/GI.yaml +26 -27
  201. data/lib/countries/data/countries/GL.yaml +29 -30
  202. data/lib/countries/data/countries/GM.yaml +25 -26
  203. data/lib/countries/data/countries/GN.yaml +30 -31
  204. data/lib/countries/data/countries/GP.yaml +27 -28
  205. data/lib/countries/data/countries/GQ.yaml +29 -30
  206. data/lib/countries/data/countries/GR.yaml +37 -38
  207. data/lib/countries/data/countries/GS.yaml +27 -28
  208. data/lib/countries/data/countries/GT.yaml +26 -27
  209. data/lib/countries/data/countries/GU.yaml +31 -32
  210. data/lib/countries/data/countries/GW.yaml +28 -29
  211. data/lib/countries/data/countries/GY.yaml +26 -27
  212. data/lib/countries/data/countries/HK.yaml +28 -29
  213. data/lib/countries/data/countries/HM.yaml +27 -28
  214. data/lib/countries/data/countries/HN.yaml +27 -28
  215. data/lib/countries/data/countries/HR.yaml +37 -38
  216. data/lib/countries/data/countries/HT.yaml +29 -30
  217. data/lib/countries/data/countries/HU.yaml +37 -38
  218. data/lib/countries/data/countries/ID.yaml +28 -29
  219. data/lib/countries/data/countries/IE.yaml +39 -40
  220. data/lib/countries/data/countries/IL.yaml +35 -31
  221. data/lib/countries/data/countries/IM.yaml +29 -30
  222. data/lib/countries/data/countries/IN.yaml +30 -31
  223. data/lib/countries/data/countries/IO.yaml +26 -27
  224. data/lib/countries/data/countries/IQ.yaml +28 -29
  225. data/lib/countries/data/countries/IR.yaml +28 -29
  226. data/lib/countries/data/countries/IS.yaml +35 -36
  227. data/lib/countries/data/countries/IT.yaml +36 -37
  228. data/lib/countries/data/countries/JE.yaml +26 -27
  229. data/lib/countries/data/countries/JM.yaml +28 -29
  230. data/lib/countries/data/countries/JO.yaml +28 -29
  231. data/lib/countries/data/countries/JP.yaml +28 -29
  232. data/lib/countries/data/countries/KE.yaml +29 -30
  233. data/lib/countries/data/countries/KG.yaml +30 -31
  234. data/lib/countries/data/countries/KH.yaml +28 -29
  235. data/lib/countries/data/countries/KI.yaml +25 -26
  236. data/lib/countries/data/countries/KM.yaml +29 -30
  237. data/lib/countries/data/countries/KN.yaml +29 -29
  238. data/lib/countries/data/countries/KP.yaml +27 -28
  239. data/lib/countries/data/countries/KR.yaml +28 -29
  240. data/lib/countries/data/countries/KW.yaml +28 -29
  241. data/lib/countries/data/countries/KY.yaml +29 -30
  242. data/lib/countries/data/countries/KZ.yaml +30 -31
  243. data/lib/countries/data/countries/LA.yaml +27 -28
  244. data/lib/countries/data/countries/LB.yaml +30 -31
  245. data/lib/countries/data/countries/LC.yaml +28 -29
  246. data/lib/countries/data/countries/LI.yaml +27 -28
  247. data/lib/countries/data/countries/LK.yaml +28 -29
  248. data/lib/countries/data/countries/LR.yaml +28 -29
  249. data/lib/countries/data/countries/LS.yaml +28 -29
  250. data/lib/countries/data/countries/LT.yaml +37 -38
  251. data/lib/countries/data/countries/LU.yaml +39 -40
  252. data/lib/countries/data/countries/LV.yaml +36 -37
  253. data/lib/countries/data/countries/LY.yaml +27 -28
  254. data/lib/countries/data/countries/MA.yaml +28 -29
  255. data/lib/countries/data/countries/MC.yaml +28 -29
  256. data/lib/countries/data/countries/MD.yaml +28 -29
  257. data/lib/countries/data/countries/ME.yaml +33 -34
  258. data/lib/countries/data/countries/MF.yaml +29 -30
  259. data/lib/countries/data/countries/MG.yaml +30 -31
  260. data/lib/countries/data/countries/MH.yaml +30 -31
  261. data/lib/countries/data/countries/MK.yaml +28 -29
  262. data/lib/countries/data/countries/ML.yaml +25 -26
  263. data/lib/countries/data/countries/MM.yaml +27 -28
  264. data/lib/countries/data/countries/MN.yaml +28 -29
  265. data/lib/countries/data/countries/MO.yaml +28 -29
  266. data/lib/countries/data/countries/MP.yaml +31 -32
  267. data/lib/countries/data/countries/MQ.yaml +27 -28
  268. data/lib/countries/data/countries/MR.yaml +29 -30
  269. data/lib/countries/data/countries/MS.yaml +26 -27
  270. data/lib/countries/data/countries/MT.yaml +36 -37
  271. data/lib/countries/data/countries/MU.yaml +28 -29
  272. data/lib/countries/data/countries/MV.yaml +28 -29
  273. data/lib/countries/data/countries/MW.yaml +27 -28
  274. data/lib/countries/data/countries/MX.yaml +33 -34
  275. data/lib/countries/data/countries/MY.yaml +30 -31
  276. data/lib/countries/data/countries/MZ.yaml +28 -29
  277. data/lib/countries/data/countries/NA.yaml +30 -31
  278. data/lib/countries/data/countries/NC.yaml +29 -30
  279. data/lib/countries/data/countries/NE.yaml +27 -28
  280. data/lib/countries/data/countries/NF.yaml +29 -30
  281. data/lib/countries/data/countries/NG.yaml +33 -34
  282. data/lib/countries/data/countries/NI.yaml +26 -27
  283. data/lib/countries/data/countries/NL.yaml +36 -37
  284. data/lib/countries/data/countries/NO.yaml +36 -37
  285. data/lib/countries/data/countries/NP.yaml +32 -33
  286. data/lib/countries/data/countries/NR.yaml +27 -28
  287. data/lib/countries/data/countries/NU.yaml +25 -26
  288. data/lib/countries/data/countries/NZ.yaml +34 -35
  289. data/lib/countries/data/countries/OM.yaml +28 -29
  290. data/lib/countries/data/countries/PA.yaml +26 -27
  291. data/lib/countries/data/countries/PE.yaml +28 -29
  292. data/lib/countries/data/countries/PF.yaml +29 -30
  293. data/lib/countries/data/countries/PG.yaml +28 -29
  294. data/lib/countries/data/countries/PH.yaml +35 -36
  295. data/lib/countries/data/countries/PK.yaml +30 -31
  296. data/lib/countries/data/countries/PL.yaml +36 -37
  297. data/lib/countries/data/countries/PM.yaml +29 -30
  298. data/lib/countries/data/countries/PN.yaml +27 -28
  299. data/lib/countries/data/countries/PR.yaml +28 -29
  300. data/lib/countries/data/countries/PS.yaml +31 -32
  301. data/lib/countries/data/countries/PT.yaml +33 -34
  302. data/lib/countries/data/countries/PW.yaml +26 -27
  303. data/lib/countries/data/countries/PY.yaml +28 -29
  304. data/lib/countries/data/countries/QA.yaml +27 -28
  305. data/lib/countries/data/countries/RE.yaml +28 -29
  306. data/lib/countries/data/countries/RO.yaml +37 -38
  307. data/lib/countries/data/countries/RS.yaml +28 -29
  308. data/lib/countries/data/countries/RU.yaml +28 -29
  309. data/lib/countries/data/countries/RW.yaml +31 -32
  310. data/lib/countries/data/countries/SA.yaml +33 -29
  311. data/lib/countries/data/countries/SB.yaml +27 -28
  312. data/lib/countries/data/countries/SC.yaml +28 -29
  313. data/lib/countries/data/countries/SD.yaml +30 -31
  314. data/lib/countries/data/countries/SE.yaml +37 -38
  315. data/lib/countries/data/countries/SG.yaml +32 -33
  316. data/lib/countries/data/countries/SH.yaml +29 -30
  317. data/lib/countries/data/countries/SI.yaml +36 -37
  318. data/lib/countries/data/countries/SJ.yaml +29 -30
  319. data/lib/countries/data/countries/SK.yaml +36 -37
  320. data/lib/countries/data/countries/SL.yaml +25 -26
  321. data/lib/countries/data/countries/SM.yaml +28 -29
  322. data/lib/countries/data/countries/SN.yaml +27 -28
  323. data/lib/countries/data/countries/SO.yaml +30 -31
  324. data/lib/countries/data/countries/SR.yaml +26 -27
  325. data/lib/countries/data/countries/SS.yaml +29 -30
  326. data/lib/countries/data/countries/ST.yaml +27 -28
  327. data/lib/countries/data/countries/SV.yaml +27 -28
  328. data/lib/countries/data/countries/SX.yaml +28 -29
  329. data/lib/countries/data/countries/SY.yaml +27 -28
  330. data/lib/countries/data/countries/SZ.yaml +30 -31
  331. data/lib/countries/data/countries/TC.yaml +30 -31
  332. data/lib/countries/data/countries/TD.yaml +29 -30
  333. data/lib/countries/data/countries/TF.yaml +28 -29
  334. data/lib/countries/data/countries/TG.yaml +25 -26
  335. data/lib/countries/data/countries/TH.yaml +34 -35
  336. data/lib/countries/data/countries/TJ.yaml +30 -31
  337. data/lib/countries/data/countries/TK.yaml +27 -28
  338. data/lib/countries/data/countries/TL.yaml +27 -28
  339. data/lib/countries/data/countries/TM.yaml +30 -31
  340. data/lib/countries/data/countries/TN.yaml +30 -31
  341. data/lib/countries/data/countries/TO.yaml +29 -30
  342. data/lib/countries/data/countries/TR.yaml +28 -29
  343. data/lib/countries/data/countries/TT.yaml +28 -29
  344. data/lib/countries/data/countries/TV.yaml +25 -26
  345. data/lib/countries/data/countries/TW.yaml +28 -29
  346. data/lib/countries/data/countries/TZ.yaml +30 -31
  347. data/lib/countries/data/countries/UA.yaml +34 -35
  348. data/lib/countries/data/countries/UG.yaml +28 -29
  349. data/lib/countries/data/countries/UM.yaml +29 -30
  350. data/lib/countries/data/countries/US.yaml +29 -29
  351. data/lib/countries/data/countries/UY.yaml +27 -28
  352. data/lib/countries/data/countries/UZ.yaml +30 -31
  353. data/lib/countries/data/countries/VA.yaml +31 -32
  354. data/lib/countries/data/countries/VC.yaml +29 -30
  355. data/lib/countries/data/countries/VE.yaml +26 -27
  356. data/lib/countries/data/countries/VG.yaml +29 -30
  357. data/lib/countries/data/countries/VI.yaml +28 -29
  358. data/lib/countries/data/countries/VN.yaml +28 -29
  359. data/lib/countries/data/countries/VU.yaml +31 -32
  360. data/lib/countries/data/countries/WF.yaml +29 -30
  361. data/lib/countries/data/countries/WS.yaml +28 -29
  362. data/lib/countries/data/countries/YE.yaml +27 -28
  363. data/lib/countries/data/countries/YT.yaml +26 -27
  364. data/lib/countries/data/countries/ZA.yaml +39 -40
  365. data/lib/countries/data/countries/ZM.yaml +28 -29
  366. data/lib/countries/data/countries/ZW.yaml +31 -32
  367. data/lib/countries/data/subdivisions/CZ.yaml +1045 -3736
  368. data/lib/countries/data/subdivisions/DE.yaml +16 -16
  369. data/lib/countries/data/subdivisions/DK.yaml +65 -287
  370. data/lib/countries/data/subdivisions/EE.yaml +96 -88
  371. data/lib/countries/data/subdivisions/FI.yaml +102 -499
  372. data/lib/countries/data/subdivisions/FR.yaml +584 -977
  373. data/lib/countries/data/subdivisions/GR.yaml +117 -988
  374. data/lib/countries/data/subdivisions/HU.yaml +62 -62
  375. data/lib/countries/data/subdivisions/IE.yaml +483 -482
  376. data/lib/countries/data/subdivisions/IT.yaml +1251 -1839
  377. data/lib/countries/data/subdivisions/KE.yaml +391 -503
  378. data/lib/countries/data/subdivisions/LU.yaml +194 -243
  379. data/lib/countries/data/subdivisions/LV.yaml +147 -5139
  380. data/lib/countries/data/subdivisions/MK.yaml +3501 -5809
  381. data/lib/countries/data/subdivisions/NZ.yaml +67 -111
  382. data/lib/countries/data/subdivisions/PL.yaml +210 -1208
  383. data/lib/countries/data/subdivisions/SG.yaml +39 -109
  384. data/lib/countries/data/subdivisions/US.yaml +0 -42
  385. data/lib/countries/data/translation_corrections.yaml +20 -12
  386. data/lib/countries/data.rb +5 -1
  387. data/lib/countries/global.rb +13 -3
  388. data/lib/countries/mongoid.rb +3 -0
  389. data/lib/countries/sources/cldr/downloader.rb +3 -0
  390. data/lib/countries/sources/cldr/subdivision.rb +1 -0
  391. data/lib/countries/sources/cldr/subdivision_updater.rb +1 -0
  392. data/lib/countries/sources/local/cached_loader.rb +2 -0
  393. data/lib/countries/sources/local/subdivision.rb +1 -0
  394. data/lib/countries/structure.rb +2 -5
  395. data/lib/countries/tasks/geocoding.rake +1 -1
  396. data/lib/countries/timezones.rb +4 -2
  397. data/lib/countries/translations.rb +2 -3
  398. data/lib/countries/version.rb +1 -1
  399. data/spec/country_spec.rb +60 -56
  400. data/spec/data_spec.rb +9 -9
  401. metadata +5 -7
  402. data/lib/countries/data/subdivisions/FO.yaml +0 -85
  403. data/lib/countries/data/subdivisions/KY.yaml +0 -85
@@ -2,7 +2,9 @@
2
2
  '37':
3
3
  name: Harjumaa
4
4
  code:
5
- unofficial_names: Harjumaa
5
+ unofficial_names:
6
+ - Harjumaa
7
+ - Harju
6
8
  geo:
7
9
  latitude: 59.33342390000001
8
10
  longitude: 25.2466973
@@ -11,15 +13,19 @@
11
13
  max_latitude: 59.68570260000001
12
14
  max_longitude: 25.9551028
13
15
  translations:
14
- en: Harju
16
+ 'no': Harju
15
17
  ar: مقاطعة هاريو
16
18
  bg: Харю
17
19
  bn: হার্জু কাউন্টি
20
+ bs: Okrug Harjumaa
18
21
  ca: Comtat de Harju
22
+ ccp: "\U00011126\U00011122\U00011134\U0001110E\U0001112A"
23
+ ceb: Harjumaa
19
24
  cs: Harjumaa
20
25
  da: Harjumaa
21
26
  de: Kreis Harju
22
27
  el: Επαρχία Χάργιου
28
+ en: Harju County
23
29
  es: Condado de Harju
24
30
  et: Harju maakond
25
31
  eu: Harju konderria
@@ -41,6 +47,7 @@
41
47
  ko: 하리우 주
42
48
  lt: Harju apskritis
43
49
  lv: Harju apriņķis
50
+ mk: Харју
44
51
  mr: हरजू काउंटी
45
52
  ms: County Harju
46
53
  nb: Harju
@@ -51,6 +58,7 @@
51
58
  ru: Харьюмаа
52
59
  si: හර්ජු ප්‍රාන්තය
53
60
  sk: Harju maakond
61
+ sr_Latn: Harju
54
62
  sr: Харју
55
63
  sv: Harju län
56
64
  ta: அர்ஜு கவுண்டி
@@ -61,13 +69,6 @@
61
69
  ur: ہاریو کاؤنٹی
62
70
  vi: Harju
63
71
  zh: 哈留縣
64
- ceb: Harjumaa
65
- sr_Latn: Harju
66
- ccp: "\U00011126\U00011122\U00011134\U0001110E\U0001112A"
67
- ga: Harjumaa
68
- bs: Okrug Harjumaa
69
- mk: Харју
70
- 'no': Harju
71
72
  comments:
72
73
  '39':
73
74
  name: Hiiumaa
@@ -75,6 +76,8 @@
75
76
  unofficial_names:
76
77
  - Dagden
77
78
  - Dagö
79
+ - Hiiu
80
+ - Hiiumaa
78
81
  geo:
79
82
  latitude: 58.9239553
80
83
  longitude: 22.5919468
@@ -83,22 +86,27 @@
83
86
  max_latitude: 59.09294079999999
84
87
  max_longitude: 23.1801319
85
88
  translations:
86
- en: Hiiu
89
+ 'no': Hiiu
87
90
  ar: مقاطعة هيو
88
91
  be: Павет Хійу
89
92
  bg: Хииу
90
93
  bn: হিউ কাউন্টি
94
+ bs: Okrug Hiiumaa
91
95
  ca: Comtat de Hiiu
96
+ ccp: "\U00011126\U00011128\U00011105\U0001112A"
97
+ ceb: Hiiumaa
92
98
  cs: Hiiumaa
93
99
  da: Hiiu County
94
100
  de: Kreis Hiiu
95
101
  el: Επαρχία Χιίου
102
+ en: Hiiu County
96
103
  es: Condado de Hiiu
97
104
  et: Hiiu maakond
98
105
  eu: Hiiu konderria
99
106
  fa: شهرستان هیو
100
107
  fi: Hiidenmaa
101
108
  fr: Comté de Hiiu
109
+ ga: Hiiumaa
102
110
  gl: Condado de Hiiu
103
111
  gu: હીઉ કાઉન્ટી
104
112
  he: היו
@@ -114,6 +122,7 @@
114
122
  ko: 히우 주
115
123
  lt: Hyju apskritis
116
124
  lv: Hījumā apriņķis
125
+ mk: Хују
117
126
  mr: हायियू काउंटी
118
127
  ms: County Hiiu
119
128
  nb: Hiiu
@@ -123,6 +132,7 @@
123
132
  ro: Regiunea Hiiu
124
133
  ru: Хийумаа
125
134
  si: හියු ප්‍රාන්තය
135
+ sr_Latn: Hiju
126
136
  sr: Хију
127
137
  sv: Hiiu län
128
138
  ta: ஹியு கவுண்டி
@@ -132,19 +142,15 @@
132
142
  uk: Хіюмаа
133
143
  ur: ہییو کاؤنٹی
134
144
  vi: Hiiu
135
- ceb: Hiiumaa
136
- sr_Latn: Hiju
137
145
  zh: 希尤縣
138
- ccp: "\U00011126\U00011128\U00011105\U0001112A"
139
- ga: Hiiumaa
140
- bs: Okrug Hiiumaa
141
- mk: Хују
142
- 'no': Hiiu
143
146
  comments:
144
- '44':
147
+ '45':
145
148
  name: Ida-Virumaa
146
149
  code:
147
- unofficial_names: Ida-Virumaa
150
+ unofficial_names:
151
+ - Ida-Virumaa
152
+ - Ida-Viru
153
+ - И́да-Ви́руский уезд
148
154
  geo:
149
155
  latitude: 59.25926629999999
150
156
  longitude: 27.4136535
@@ -153,7 +159,6 @@
153
159
  max_latitude: 59.5005651
154
160
  max_longitude: 28.2090051
155
161
  translations:
156
- en: Ida-Viru
157
162
  ar: مقاطعة إيدا فيرو
158
163
  be: павет Іда-Віру
159
164
  bg: Ида-Виру
@@ -163,6 +168,7 @@
163
168
  da: Ida-Virumaa
164
169
  de: Kreis Ida-Viru
165
170
  el: Επαρχία Ίντα-Βίρου
171
+ en: Ida-Viru County
166
172
  es: Condado de Ida-Viru
167
173
  et: Ida-Viru maakond
168
174
  eu: Ida-Viru konderria
@@ -190,7 +196,7 @@
190
196
  pl: Ida-Virumaa
191
197
  pt: Ida-Virumaa
192
198
  ro: Regiunea Ida-Viru
193
- ru: Восточная Эстония
199
+ ru: И́да-Ви́румаа
194
200
  si: ඉඩා-විරු ප්‍රාන්තය
195
201
  sr: Ида-Виру
196
202
  sv: Ida-Viru län
@@ -210,7 +216,7 @@
210
216
  mk: Ида-Виру
211
217
  'no': Ida-Viru
212
218
  comments:
213
- '49':
219
+ '50':
214
220
  name: Jõgevamaa
215
221
  code:
216
222
  unofficial_names:
@@ -223,7 +229,6 @@
223
229
  max_latitude: 58.96892199999999
224
230
  max_longitude: 27.1633907
225
231
  translations:
226
- en: Jõgeva
227
232
  ar: مقاطعة يوجيفا
228
233
  be: Павет Йыгева
229
234
  bg: Йъгева
@@ -233,6 +238,7 @@
233
238
  da: Jõgevamaa
234
239
  de: Kreis Jõgeva
235
240
  el: Επαρχία Γιογκέβα
241
+ en: Jõgeva County
236
242
  es: Condado de Jõgeva
237
243
  et: Jõgeva maakond
238
244
  fa: شهرستان یوگوا
@@ -280,10 +286,13 @@
280
286
  mk: Јигева
281
287
  'no': Jõgeva
282
288
  comments:
283
- '51':
289
+ '52':
284
290
  name: Järvamaa
285
291
  code:
286
- unofficial_names: Järvamaa
292
+ unofficial_names:
293
+ - Järvamaa
294
+ - Järva
295
+ - Jerwen
287
296
  geo:
288
297
  latitude: 58.8866713
289
298
  longitude: 25.5000625
@@ -292,7 +301,6 @@
292
301
  max_latitude: 59.2696539
293
302
  max_longitude: 26.1688011
294
303
  translations:
295
- en: Järva
296
304
  ar: مقاطعة يارفا
297
305
  be: Павет Ярва
298
306
  bg: Ярва
@@ -302,6 +310,7 @@
302
310
  da: Järvamaa
303
311
  de: Kreis Järva
304
312
  el: Επαρχία Γιέρβα
313
+ en: Järva County
305
314
  es: Condado de Järva
306
315
  et: Järva maakond
307
316
  eu: Järva konderria
@@ -321,6 +330,7 @@
321
330
  ka: იარვამაა
322
331
  kn: ಜಾರ್ವಾ ಕೌಂಟಿ
323
332
  ko: 얘르바 주
333
+ la: Jervia
324
334
  lt: Jervos apskritis
325
335
  lv: Jervas apriņķis
326
336
  mr: ज्वाला काउंटी
@@ -350,10 +360,14 @@
350
360
  mk: Јерва
351
361
  'no': Järva
352
362
  comments:
353
- '57':
363
+ '56':
354
364
  name: Läänemaa
355
365
  code:
356
- unofficial_names: Läänemaa
366
+ unofficial_names:
367
+ - Läänemaa
368
+ - Lääne
369
+ - Wiek
370
+ - Wieck
357
371
  geo:
358
372
  latitude: 58.89071850000001
359
373
  longitude: 23.7925806
@@ -362,7 +376,6 @@
362
376
  max_latitude: 59.304363
363
377
  max_longitude: 24.1925961
364
378
  translations:
365
- en: Lääne
366
379
  ar: مقاطعة لانا
367
380
  be: Павет Ляэнэ
368
381
  bg: Ляяне
@@ -372,6 +385,7 @@
372
385
  da: Läänemaa
373
386
  de: Kreis Lääne
374
387
  el: Επαρχία Λέενε
388
+ en: Lääne County
375
389
  es: Condado de Lääne
376
390
  et: Lääne maakond
377
391
  fa: شهرستان لنه
@@ -390,6 +404,7 @@
390
404
  ka: ლიაენემაა
391
405
  kn: ಲಾನ್ ಕೌಂಟಿ
392
406
  ko: 래네 주
407
+ la: Rotalia
393
408
  lt: Lenės apskritis
394
409
  lv: Lēnes apriņķis
395
410
  mr: लोन काउंटी
@@ -419,10 +434,12 @@
419
434
  mk: Лене
420
435
  'no': Lääne
421
436
  comments:
422
- '59':
437
+ '60':
423
438
  name: Lääne-Virumaa
424
439
  code:
425
- unofficial_names: Lääne-Virumaa
440
+ unofficial_names:
441
+ - Lääne-Virumaa
442
+ - Lääne-Viru
426
443
  geo:
427
444
  latitude: 59.30188159999999
428
445
  longitude: 26.3280312
@@ -431,7 +448,6 @@
431
448
  max_latitude: 59.822016
432
449
  max_longitude: 26.9527359
433
450
  translations:
434
- en: Lääne-Viru
435
451
  ar: مقاطعة لين-فيرو
436
452
  be: Павет Ляэнэ-Віру
437
453
  bg: Ляяне-Виру
@@ -441,6 +457,7 @@
441
457
  da: Lääne-Virumaa
442
458
  de: Kreis Lääne-Viru
443
459
  el: Επαρχία Λέενε-Βίρου
460
+ en: Lääne-Viru County
444
461
  es: Condado de Lääne-Viru
445
462
  et: Lääne-Viru maakond
446
463
  fa: شهرستان لنه-ویرو
@@ -487,11 +504,12 @@
487
504
  mk: Лене-Виру
488
505
  'no': Lääne-Viru
489
506
  comments:
490
- '65':
507
+ '64':
491
508
  name: Põlvamaa
492
509
  code:
493
510
  unofficial_names:
494
511
  - Polvamaa
512
+ - Põlva County
495
513
  geo:
496
514
  latitude: 58.11606219999999
497
515
  longitude: 27.2066395
@@ -500,7 +518,6 @@
500
518
  max_latitude: 58.2682399
501
519
  max_longitude: 27.8189979
502
520
  translations:
503
- en: Põlva
504
521
  ar: مقاطعة بولفا
505
522
  be: Павет Пылва
506
523
  bg: Пълва
@@ -510,6 +527,7 @@
510
527
  da: Põlvamaa
511
528
  de: Kreis Põlva
512
529
  el: Επαρχία Πόλβα
530
+ en: Põlva County
513
531
  es: Condado de Põlva
514
532
  et: Põlva maakond
515
533
  fa: شهرستان پولوا
@@ -557,10 +575,12 @@
557
575
  mk: Пилва
558
576
  'no': Põlva
559
577
  comments:
560
- '67':
578
+ '68':
561
579
  name: Pärnumaa
562
580
  code:
563
- unofficial_names: Pärnumaa
581
+ unofficial_names:
582
+ - Pärnumaa
583
+ - Pärnu
564
584
  geo:
565
585
  latitude: 58.46634429999999
566
586
  longitude: 24.69612
@@ -569,7 +589,6 @@
569
589
  max_latitude: 58.7569807
570
590
  max_longitude: 25.3071801
571
591
  translations:
572
- en: Pärnu
573
592
  ar: مقاطعة بارنو
574
593
  be: Павет Пярну
575
594
  bg: Пярну
@@ -577,8 +596,9 @@
577
596
  ca: Comtat de Pärnu
578
597
  cs: Pärnumaa
579
598
  da: Pärnumaa
580
- de: Kreis Pärnu
599
+ de: Kreis Pernau
581
600
  el: Επαρχία Πάρνου
601
+ en: Pärnu County
582
602
  es: Condado de Pärnu
583
603
  et: Pärnu maakond
584
604
  eu: Pärnu konderria
@@ -628,10 +648,12 @@
628
648
  mk: Перну
629
649
  'no': Pärnu
630
650
  comments:
631
- '70':
651
+ '71':
632
652
  name: Raplamaa
633
653
  code:
634
- unofficial_names: Raplamaa
654
+ unofficial_names:
655
+ - Raplamaa
656
+ - Rapla
635
657
  geo:
636
658
  latitude: 58.8492625
637
659
  longitude: 24.7346568
@@ -640,7 +662,6 @@
640
662
  max_latitude: 59.22798409999999
641
663
  max_longitude: 25.3339442
642
664
  translations:
643
- en: Rapla
644
665
  ar: مقاطعة رابلا
645
666
  az: Raplamaa
646
667
  be: Павет Рапла
@@ -651,6 +672,7 @@
651
672
  da: Raplamaa
652
673
  de: Kreis Rapla
653
674
  el: Επαρχία Ράπλα
675
+ en: Rapla County
654
676
  es: Condado de Rapla
655
677
  et: Rapla maakond
656
678
  fa: شهرستان رپلا
@@ -704,6 +726,7 @@
704
726
  unofficial_names:
705
727
  - Saare
706
728
  - Ösel
729
+ - Oesel
707
730
  geo:
708
731
  latitude: 58.4849721
709
732
  longitude: 22.6136407
@@ -712,14 +735,14 @@
712
735
  max_latitude: 58.64212449999999
713
736
  max_longitude: 23.328579
714
737
  translations:
715
- en: Saare
716
738
  be: Павет Саарэ
717
739
  bg: Сааре
718
740
  ca: Comtat de Saare
719
741
  cs: Saaremaa
720
742
  da: Saare maakond
721
- de: Kreis Saare
743
+ de: Kreis Ösel
722
744
  el: Επαρχία Σάαρε
745
+ en: Saare County
723
746
  es: Condado de Saare
724
747
  et: Saare maakond
725
748
  fa: شهرستان ساره
@@ -735,6 +758,7 @@
735
758
  ja: サーレ県
736
759
  ka: საარემაა
737
760
  ko: 사레 주
761
+ la: Oesel
738
762
  lt: Sarės apskritis
739
763
  lv: Sāremā apriņķis
740
764
  ms: County Saare
@@ -758,10 +782,12 @@
758
782
  mk: Саре
759
783
  'no': Saare
760
784
  comments:
761
- '78':
785
+ '79':
762
786
  name: Tartumaa
763
787
  code:
764
- unofficial_names: Tartumaa
788
+ unofficial_names:
789
+ - Tartumaa
790
+ - Tartu
765
791
  geo:
766
792
  latitude: 58.40571279999999
767
793
  longitude: 26.8015761
@@ -770,7 +796,6 @@
770
796
  max_latitude: 58.682793
771
797
  max_longitude: 27.5323021
772
798
  translations:
773
- en: Tartu
774
799
  ar: مقاطعة تارتو
775
800
  be: павет Тарту
776
801
  bg: Тарту
@@ -778,8 +803,9 @@
778
803
  ca: Comtat de Tartu
779
804
  cs: Tartumaa
780
805
  da: Tartumaa
781
- de: Kreis Tartu
806
+ de: Kreis Dorpat
782
807
  el: Επαρχία Τάρτου
808
+ en: Tartu County
783
809
  es: Condado de Tartu
784
810
  et: Tartu maakond
785
811
  fa: شهرستان تارتو
@@ -828,10 +854,12 @@
828
854
  mk: Тарту
829
855
  'no': Tartu
830
856
  comments:
831
- '82':
857
+ '81':
832
858
  name: Valgamaa
833
859
  code:
834
- unofficial_names: Valgamaa
860
+ unofficial_names:
861
+ - Valgamaa
862
+ - Valga
835
863
  geo:
836
864
  latitude: 57.9103441
837
865
  longitude: 26.1601819
@@ -840,7 +868,6 @@
840
868
  max_latitude: 58.184323
841
869
  max_longitude: 26.6250823
842
870
  translations:
843
- en: Valga
844
871
  ar: مقاطعة فالغا
845
872
  be: Павет Валга
846
873
  bg: Валга
@@ -850,6 +877,7 @@
850
877
  da: Valgamaa
851
878
  de: Kreis Valga
852
879
  el: Επαρχία Βάλγκα
880
+ en: Valga County
853
881
  es: Condado de Valga
854
882
  et: Valga maakond
855
883
  fa: شهرستان والگا
@@ -900,7 +928,9 @@
900
928
  '84':
901
929
  name: Viljandimaa
902
930
  code:
903
- unofficial_names: Viljandimaa
931
+ unofficial_names:
932
+ - Viljandimaa
933
+ - Viljandi
904
934
  geo:
905
935
  latitude: 58.2821746
906
936
  longitude: 25.5752233
@@ -909,7 +939,6 @@
909
939
  max_latitude: 58.69011700000001
910
940
  max_longitude: 26.190842
911
941
  translations:
912
- en: Viljandi
913
942
  ar: مقاطعة فيلياندي
914
943
  be: Павет Вільяндзі
915
944
  bg: Вилянди
@@ -919,6 +948,7 @@
919
948
  da: Viljandimaa
920
949
  de: Kreis Viljandi
921
950
  el: Επαρχία Βιλγιάντι
951
+ en: Viljandi County
922
952
  es: Condado de Viljandi
923
953
  et: Viljandi maakond
924
954
  fa: شهرستان ویلیاندی
@@ -967,11 +997,12 @@
967
997
  mk: Вилјанди
968
998
  'no': Viljandi
969
999
  comments:
970
- '86':
1000
+ '87':
971
1001
  name: Võrumaa
972
1002
  code:
973
1003
  unofficial_names:
974
- - Vorumaa
1004
+ - Võrumaa
1005
+ - Võru
975
1006
  geo:
976
1007
  latitude: 57.80381070000001
977
1008
  longitude: 26.8524025
@@ -980,7 +1011,6 @@
980
1011
  max_latitude: 57.9571869
981
1012
  max_longitude: 27.554923
982
1013
  translations:
983
- en: Võru
984
1014
  ar: مقاطعة فورو
985
1015
  be: Павет Выру
986
1016
  bg: Въру
@@ -990,6 +1020,7 @@
990
1020
  da: Võrumaa
991
1021
  de: Kreis Võru
992
1022
  el: Επαρχία Βόρου
1023
+ en: Võru County
993
1024
  es: Condado de Võru
994
1025
  et: Võru maakond
995
1026
  fa: شهرستان وورو
@@ -1037,39 +1068,8 @@
1037
1068
  mk: Виру
1038
1069
  'no': Võru
1039
1070
  comments:
1040
- '45':
1041
- translations:
1042
- en: Ida-Virumaa
1043
- '50':
1044
- translations:
1045
- en: Jõgevamaa
1046
- '52':
1047
- translations:
1048
- en: Järvamaa
1049
- '56':
1050
- translations:
1051
- en: Läänemaa
1052
- '60':
1053
- translations:
1054
- en: Lääne-Virumaa
1055
- '64':
1056
- translations:
1057
- en: Põlvamaa
1058
- '68':
1059
- translations:
1060
- en: Pärnumaa
1061
- '71':
1062
- translations:
1063
- en: Raplamaa
1064
- '79':
1065
- translations:
1066
- en: Tartumaa
1067
- '81':
1068
- translations:
1069
- en: Valgamaa
1070
- '87':
1071
- translations:
1072
- en: Võrumaa
1071
+
1072
+
1073
1073
  '130':
1074
1074
  translations:
1075
1075
  en: Alutaguse
@@ -1302,8 +1302,16 @@
1302
1302
  translations:
1303
1303
  en: Võru
1304
1304
  '919':
1305
+ name: Võru
1305
1306
  translations:
1306
1307
  en: Võru
1307
1308
  '928':
1308
1309
  translations:
1309
1310
  en: Väike-Maarja
1311
+ geo:
1312
+ latitude: 57.80381070000001
1313
+ longitude: 26.8524025
1314
+ min_latitude: 57.50931600000001
1315
+ min_longitude: 26.3708779
1316
+ max_latitude: 57.9571869
1317
+ max_longitude: 27.554923