countries 4.1.1 → 4.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/tests.yml +2 -0
- data/CHANGELOG.md +97 -5
- data/LICENSE +3 -1
- data/README.markdown +55 -50
- data/Rakefile +25 -31
- data/countries.gemspec +5 -5
- data/lib/countries/cache/countries.json +1 -1
- data/lib/countries/cache/locales/ab.json +1 -1
- data/lib/countries/cache/locales/af.json +1 -1
- data/lib/countries/cache/locales/ak.json +1 -1
- data/lib/countries/cache/locales/am.json +1 -1
- data/lib/countries/cache/locales/an.json +1 -1
- data/lib/countries/cache/locales/as.json +1 -1
- data/lib/countries/cache/locales/ay.json +1 -1
- data/lib/countries/cache/locales/az.json +1 -1
- data/lib/countries/cache/locales/ba.json +1 -1
- data/lib/countries/cache/locales/bg.json +1 -1
- data/lib/countries/cache/locales/bi.json +1 -1
- data/lib/countries/cache/locales/br.json +1 -1
- data/lib/countries/cache/locales/bs.json +1 -1
- data/lib/countries/cache/locales/ca.json +1 -1
- data/lib/countries/cache/locales/ce.json +1 -1
- data/lib/countries/cache/locales/ch.json +1 -1
- data/lib/countries/cache/locales/cv.json +1 -1
- data/lib/countries/cache/locales/de.json +1 -1
- data/lib/countries/cache/locales/dv.json +1 -1
- data/lib/countries/cache/locales/dz.json +1 -1
- data/lib/countries/cache/locales/ee.json +1 -1
- data/lib/countries/cache/locales/en.json +1 -1
- data/lib/countries/cache/locales/eo.json +1 -1
- data/lib/countries/cache/locales/es.json +1 -1
- data/lib/countries/cache/locales/et.json +1 -1
- data/lib/countries/cache/locales/ff.json +1 -1
- data/lib/countries/cache/locales/fi.json +1 -1
- data/lib/countries/cache/locales/fo.json +1 -1
- data/lib/countries/cache/locales/fr.json +1 -1
- data/lib/countries/cache/locales/fy.json +1 -1
- data/lib/countries/cache/locales/ga.json +1 -1
- data/lib/countries/cache/locales/gl.json +1 -1
- data/lib/countries/cache/locales/gn.json +1 -1
- data/lib/countries/cache/locales/gu.json +1 -1
- data/lib/countries/cache/locales/gv.json +1 -1
- data/lib/countries/cache/locales/ha.json +1 -1
- data/lib/countries/cache/locales/he.json +1 -1
- data/lib/countries/cache/locales/hi.json +1 -1
- data/lib/countries/cache/locales/hr.json +1 -1
- data/lib/countries/cache/locales/ht.json +1 -1
- data/lib/countries/cache/locales/hy.json +1 -1
- data/lib/countries/cache/locales/io.json +1 -1
- data/lib/countries/cache/locales/is.json +1 -1
- data/lib/countries/cache/locales/iu.json +1 -1
- data/lib/countries/cache/locales/ja.json +1 -1
- data/lib/countries/cache/locales/ka.json +1 -1
- data/lib/countries/cache/locales/ki.json +1 -1
- data/lib/countries/cache/locales/kk.json +1 -1
- data/lib/countries/cache/locales/kl.json +1 -1
- data/lib/countries/cache/locales/km.json +1 -1
- data/lib/countries/cache/locales/kn.json +1 -1
- data/lib/countries/cache/locales/kv.json +1 -1
- data/lib/countries/cache/locales/kw.json +1 -1
- data/lib/countries/cache/locales/ky.json +1 -1
- data/lib/countries/cache/locales/lo.json +1 -1
- data/lib/countries/cache/locales/lt.json +1 -1
- data/lib/countries/cache/locales/lv.json +1 -1
- data/lib/countries/cache/locales/mi.json +1 -1
- data/lib/countries/cache/locales/mk.json +1 -1
- data/lib/countries/cache/locales/ml.json +1 -1
- data/lib/countries/cache/locales/mn.json +1 -1
- data/lib/countries/cache/locales/ms.json +1 -1
- data/lib/countries/cache/locales/mt.json +1 -1
- data/lib/countries/cache/locales/my.json +1 -1
- data/lib/countries/cache/locales/na.json +1 -1
- data/lib/countries/cache/locales/nb.json +1 -1
- data/lib/countries/cache/locales/ne.json +1 -1
- data/lib/countries/cache/locales/nl.json +1 -1
- data/lib/countries/cache/locales/nn.json +1 -1
- data/lib/countries/cache/locales/nv.json +1 -1
- data/lib/countries/cache/locales/oc.json +1 -1
- data/lib/countries/cache/locales/pi.json +1 -1
- data/lib/countries/cache/locales/ps.json +1 -1
- data/lib/countries/cache/locales/pt-br.json +1 -1
- data/lib/countries/cache/locales/ro.json +1 -1
- data/lib/countries/cache/locales/ru.json +1 -1
- data/lib/countries/cache/locales/rw.json +1 -1
- data/lib/countries/cache/locales/sc.json +1 -1
- data/lib/countries/cache/locales/sd.json +1 -1
- data/lib/countries/cache/locales/si.json +1 -1
- data/lib/countries/cache/locales/sk.json +1 -1
- data/lib/countries/cache/locales/sl.json +1 -1
- data/lib/countries/cache/locales/so.json +1 -1
- data/lib/countries/cache/locales/sr.json +1 -1
- data/lib/countries/cache/locales/sv.json +1 -1
- data/lib/countries/cache/locales/sw.json +1 -1
- data/lib/countries/cache/locales/ta.json +1 -1
- data/lib/countries/cache/locales/te.json +1 -1
- data/lib/countries/cache/locales/th.json +1 -1
- data/lib/countries/cache/locales/ti.json +1 -1
- data/lib/countries/cache/locales/tk.json +1 -1
- data/lib/countries/cache/locales/tl.json +1 -1
- data/lib/countries/cache/locales/tr.json +1 -1
- data/lib/countries/cache/locales/tt.json +1 -1
- data/lib/countries/cache/locales/ur.json +1 -1
- data/lib/countries/cache/locales/uz.json +1 -1
- data/lib/countries/cache/locales/ve.json +1 -1
- data/lib/countries/cache/locales/vi.json +1 -1
- data/lib/countries/cache/locales/wa.json +1 -1
- data/lib/countries/cache/locales/wo.json +1 -1
- data/lib/countries/cache/locales/xh.json +1 -1
- data/lib/countries/cache/locales/yo.json +1 -1
- data/lib/countries/cache/locales/zh-cn.json +1 -1
- data/lib/countries/cache/locales/zh.json +1 -1
- data/lib/countries/cache/locales/zu.json +1 -1
- data/lib/countries/configuration.rb +13 -0
- data/lib/countries/country/class_methods.rb +19 -6
- data/lib/countries/country/currency_methods.rb +4 -1
- data/lib/countries/country/emoji.rb +3 -0
- data/lib/countries/country.rb +147 -7
- data/lib/countries/data/countries/AD.yaml +28 -29
- data/lib/countries/data/countries/AE.yaml +32 -33
- data/lib/countries/data/countries/AF.yaml +32 -33
- data/lib/countries/data/countries/AG.yaml +28 -29
- data/lib/countries/data/countries/AI.yaml +27 -28
- data/lib/countries/data/countries/AL.yaml +28 -29
- data/lib/countries/data/countries/AM.yaml +30 -31
- data/lib/countries/data/countries/AO.yaml +25 -26
- data/lib/countries/data/countries/AQ.yaml +24 -25
- data/lib/countries/data/countries/AR.yaml +30 -31
- data/lib/countries/data/countries/AS.yaml +31 -32
- data/lib/countries/data/countries/AT.yaml +36 -37
- data/lib/countries/data/countries/AU.yaml +33 -34
- data/lib/countries/data/countries/AW.yaml +25 -26
- data/lib/countries/data/countries/AX.yaml +27 -28
- data/lib/countries/data/countries/AZ.yaml +30 -31
- data/lib/countries/data/countries/BA.yaml +32 -33
- data/lib/countries/data/countries/BB.yaml +28 -29
- data/lib/countries/data/countries/BD.yaml +27 -28
- data/lib/countries/data/countries/BE.yaml +41 -42
- data/lib/countries/data/countries/BF.yaml +27 -28
- data/lib/countries/data/countries/BG.yaml +36 -37
- data/lib/countries/data/countries/BH.yaml +28 -29
- data/lib/countries/data/countries/BI.yaml +27 -28
- data/lib/countries/data/countries/BJ.yaml +26 -27
- data/lib/countries/data/countries/BL.yaml +25 -26
- data/lib/countries/data/countries/BM.yaml +29 -30
- data/lib/countries/data/countries/BN.yaml +26 -27
- data/lib/countries/data/countries/BO.yaml +31 -32
- data/lib/countries/data/countries/BQ.yaml +28 -29
- data/lib/countries/data/countries/BR.yaml +35 -36
- data/lib/countries/data/countries/BS.yaml +27 -28
- data/lib/countries/data/countries/BT.yaml +28 -29
- data/lib/countries/data/countries/BV.yaml +23 -24
- data/lib/countries/data/countries/BW.yaml +27 -28
- data/lib/countries/data/countries/BY.yaml +30 -31
- data/lib/countries/data/countries/BZ.yaml +28 -29
- data/lib/countries/data/countries/CA.yaml +30 -31
- data/lib/countries/data/countries/CC.yaml +28 -29
- data/lib/countries/data/countries/CD.yaml +35 -36
- data/lib/countries/data/countries/CF.yaml +29 -30
- data/lib/countries/data/countries/CG.yaml +29 -30
- data/lib/countries/data/countries/CH.yaml +40 -41
- data/lib/countries/data/countries/CI.yaml +27 -28
- data/lib/countries/data/countries/CK.yaml +27 -28
- data/lib/countries/data/countries/CL.yaml +32 -33
- data/lib/countries/data/countries/CM.yaml +29 -30
- data/lib/countries/data/countries/CN.yaml +28 -29
- data/lib/countries/data/countries/CO.yaml +28 -29
- data/lib/countries/data/countries/CR.yaml +26 -27
- data/lib/countries/data/countries/CU.yaml +27 -28
- data/lib/countries/data/countries/CV.yaml +28 -29
- data/lib/countries/data/countries/CW.yaml +25 -26
- data/lib/countries/data/countries/CX.yaml +30 -31
- data/lib/countries/data/countries/CY.yaml +40 -41
- data/lib/countries/data/countries/CZ.yaml +38 -39
- data/lib/countries/data/countries/DE.yaml +36 -37
- data/lib/countries/data/countries/DJ.yaml +29 -30
- data/lib/countries/data/countries/DK.yaml +35 -36
- data/lib/countries/data/countries/DM.yaml +26 -27
- data/lib/countries/data/countries/DO.yaml +28 -29
- data/lib/countries/data/countries/DZ.yaml +28 -29
- data/lib/countries/data/countries/EC.yaml +28 -29
- data/lib/countries/data/countries/EE.yaml +35 -36
- data/lib/countries/data/countries/EG.yaml +28 -29
- data/lib/countries/data/countries/EH.yaml +30 -31
- data/lib/countries/data/countries/ER.yaml +31 -32
- data/lib/countries/data/countries/ES.yaml +36 -37
- data/lib/countries/data/countries/ET.yaml +28 -29
- data/lib/countries/data/countries/FI.yaml +38 -39
- data/lib/countries/data/countries/FJ.yaml +33 -34
- data/lib/countries/data/countries/FK.yaml +29 -30
- data/lib/countries/data/countries/FM.yaml +28 -29
- data/lib/countries/data/countries/FO.yaml +28 -29
- data/lib/countries/data/countries/FR.yaml +37 -38
- data/lib/countries/data/countries/GA.yaml +27 -28
- data/lib/countries/data/countries/GB.yaml +39 -38
- data/lib/countries/data/countries/GD.yaml +26 -27
- data/lib/countries/data/countries/GE.yaml +28 -29
- data/lib/countries/data/countries/GF.yaml +29 -30
- data/lib/countries/data/countries/GG.yaml +30 -31
- data/lib/countries/data/countries/GH.yaml +27 -28
- data/lib/countries/data/countries/GI.yaml +26 -27
- data/lib/countries/data/countries/GL.yaml +29 -30
- data/lib/countries/data/countries/GM.yaml +25 -26
- data/lib/countries/data/countries/GN.yaml +30 -31
- data/lib/countries/data/countries/GP.yaml +27 -28
- data/lib/countries/data/countries/GQ.yaml +29 -30
- data/lib/countries/data/countries/GR.yaml +37 -38
- data/lib/countries/data/countries/GS.yaml +27 -28
- data/lib/countries/data/countries/GT.yaml +26 -27
- data/lib/countries/data/countries/GU.yaml +31 -32
- data/lib/countries/data/countries/GW.yaml +28 -29
- data/lib/countries/data/countries/GY.yaml +26 -27
- data/lib/countries/data/countries/HK.yaml +28 -29
- data/lib/countries/data/countries/HM.yaml +27 -28
- data/lib/countries/data/countries/HN.yaml +27 -28
- data/lib/countries/data/countries/HR.yaml +37 -38
- data/lib/countries/data/countries/HT.yaml +29 -30
- data/lib/countries/data/countries/HU.yaml +37 -38
- data/lib/countries/data/countries/ID.yaml +28 -29
- data/lib/countries/data/countries/IE.yaml +39 -40
- data/lib/countries/data/countries/IL.yaml +35 -31
- data/lib/countries/data/countries/IM.yaml +29 -30
- data/lib/countries/data/countries/IN.yaml +30 -31
- data/lib/countries/data/countries/IO.yaml +26 -27
- data/lib/countries/data/countries/IQ.yaml +28 -29
- data/lib/countries/data/countries/IR.yaml +28 -29
- data/lib/countries/data/countries/IS.yaml +35 -36
- data/lib/countries/data/countries/IT.yaml +36 -37
- data/lib/countries/data/countries/JE.yaml +26 -27
- data/lib/countries/data/countries/JM.yaml +28 -29
- data/lib/countries/data/countries/JO.yaml +28 -29
- data/lib/countries/data/countries/JP.yaml +28 -29
- data/lib/countries/data/countries/KE.yaml +29 -30
- data/lib/countries/data/countries/KG.yaml +30 -31
- data/lib/countries/data/countries/KH.yaml +28 -29
- data/lib/countries/data/countries/KI.yaml +25 -26
- data/lib/countries/data/countries/KM.yaml +29 -30
- data/lib/countries/data/countries/KN.yaml +29 -29
- data/lib/countries/data/countries/KP.yaml +27 -28
- data/lib/countries/data/countries/KR.yaml +28 -29
- data/lib/countries/data/countries/KW.yaml +28 -29
- data/lib/countries/data/countries/KY.yaml +29 -30
- data/lib/countries/data/countries/KZ.yaml +30 -31
- data/lib/countries/data/countries/LA.yaml +27 -28
- data/lib/countries/data/countries/LB.yaml +30 -31
- data/lib/countries/data/countries/LC.yaml +28 -29
- data/lib/countries/data/countries/LI.yaml +27 -28
- data/lib/countries/data/countries/LK.yaml +28 -29
- data/lib/countries/data/countries/LR.yaml +28 -29
- data/lib/countries/data/countries/LS.yaml +28 -29
- data/lib/countries/data/countries/LT.yaml +37 -38
- data/lib/countries/data/countries/LU.yaml +39 -40
- data/lib/countries/data/countries/LV.yaml +36 -37
- data/lib/countries/data/countries/LY.yaml +27 -28
- data/lib/countries/data/countries/MA.yaml +28 -29
- data/lib/countries/data/countries/MC.yaml +28 -29
- data/lib/countries/data/countries/MD.yaml +28 -29
- data/lib/countries/data/countries/ME.yaml +33 -34
- data/lib/countries/data/countries/MF.yaml +29 -30
- data/lib/countries/data/countries/MG.yaml +30 -31
- data/lib/countries/data/countries/MH.yaml +30 -31
- data/lib/countries/data/countries/MK.yaml +28 -29
- data/lib/countries/data/countries/ML.yaml +25 -26
- data/lib/countries/data/countries/MM.yaml +27 -28
- data/lib/countries/data/countries/MN.yaml +28 -29
- data/lib/countries/data/countries/MO.yaml +28 -29
- data/lib/countries/data/countries/MP.yaml +31 -32
- data/lib/countries/data/countries/MQ.yaml +27 -28
- data/lib/countries/data/countries/MR.yaml +29 -30
- data/lib/countries/data/countries/MS.yaml +26 -27
- data/lib/countries/data/countries/MT.yaml +36 -37
- data/lib/countries/data/countries/MU.yaml +28 -29
- data/lib/countries/data/countries/MV.yaml +28 -29
- data/lib/countries/data/countries/MW.yaml +27 -28
- data/lib/countries/data/countries/MX.yaml +33 -34
- data/lib/countries/data/countries/MY.yaml +30 -31
- data/lib/countries/data/countries/MZ.yaml +28 -29
- data/lib/countries/data/countries/NA.yaml +30 -31
- data/lib/countries/data/countries/NC.yaml +29 -30
- data/lib/countries/data/countries/NE.yaml +27 -28
- data/lib/countries/data/countries/NF.yaml +29 -30
- data/lib/countries/data/countries/NG.yaml +33 -34
- data/lib/countries/data/countries/NI.yaml +26 -27
- data/lib/countries/data/countries/NL.yaml +36 -37
- data/lib/countries/data/countries/NO.yaml +36 -37
- data/lib/countries/data/countries/NP.yaml +32 -33
- data/lib/countries/data/countries/NR.yaml +27 -28
- data/lib/countries/data/countries/NU.yaml +25 -26
- data/lib/countries/data/countries/NZ.yaml +34 -35
- data/lib/countries/data/countries/OM.yaml +28 -29
- data/lib/countries/data/countries/PA.yaml +26 -27
- data/lib/countries/data/countries/PE.yaml +28 -29
- data/lib/countries/data/countries/PF.yaml +29 -30
- data/lib/countries/data/countries/PG.yaml +28 -29
- data/lib/countries/data/countries/PH.yaml +35 -36
- data/lib/countries/data/countries/PK.yaml +30 -31
- data/lib/countries/data/countries/PL.yaml +36 -37
- data/lib/countries/data/countries/PM.yaml +29 -30
- data/lib/countries/data/countries/PN.yaml +27 -28
- data/lib/countries/data/countries/PR.yaml +28 -29
- data/lib/countries/data/countries/PS.yaml +31 -32
- data/lib/countries/data/countries/PT.yaml +33 -34
- data/lib/countries/data/countries/PW.yaml +26 -27
- data/lib/countries/data/countries/PY.yaml +28 -29
- data/lib/countries/data/countries/QA.yaml +27 -28
- data/lib/countries/data/countries/RE.yaml +28 -29
- data/lib/countries/data/countries/RO.yaml +37 -38
- data/lib/countries/data/countries/RS.yaml +28 -29
- data/lib/countries/data/countries/RU.yaml +28 -29
- data/lib/countries/data/countries/RW.yaml +31 -32
- data/lib/countries/data/countries/SA.yaml +33 -29
- data/lib/countries/data/countries/SB.yaml +27 -28
- data/lib/countries/data/countries/SC.yaml +28 -29
- data/lib/countries/data/countries/SD.yaml +30 -31
- data/lib/countries/data/countries/SE.yaml +37 -38
- data/lib/countries/data/countries/SG.yaml +32 -33
- data/lib/countries/data/countries/SH.yaml +29 -30
- data/lib/countries/data/countries/SI.yaml +36 -37
- data/lib/countries/data/countries/SJ.yaml +29 -30
- data/lib/countries/data/countries/SK.yaml +36 -37
- data/lib/countries/data/countries/SL.yaml +25 -26
- data/lib/countries/data/countries/SM.yaml +28 -29
- data/lib/countries/data/countries/SN.yaml +27 -28
- data/lib/countries/data/countries/SO.yaml +30 -31
- data/lib/countries/data/countries/SR.yaml +26 -27
- data/lib/countries/data/countries/SS.yaml +29 -30
- data/lib/countries/data/countries/ST.yaml +27 -28
- data/lib/countries/data/countries/SV.yaml +27 -28
- data/lib/countries/data/countries/SX.yaml +28 -29
- data/lib/countries/data/countries/SY.yaml +27 -28
- data/lib/countries/data/countries/SZ.yaml +30 -31
- data/lib/countries/data/countries/TC.yaml +30 -31
- data/lib/countries/data/countries/TD.yaml +29 -30
- data/lib/countries/data/countries/TF.yaml +28 -29
- data/lib/countries/data/countries/TG.yaml +25 -26
- data/lib/countries/data/countries/TH.yaml +34 -35
- data/lib/countries/data/countries/TJ.yaml +30 -31
- data/lib/countries/data/countries/TK.yaml +27 -28
- data/lib/countries/data/countries/TL.yaml +27 -28
- data/lib/countries/data/countries/TM.yaml +30 -31
- data/lib/countries/data/countries/TN.yaml +30 -31
- data/lib/countries/data/countries/TO.yaml +29 -30
- data/lib/countries/data/countries/TR.yaml +28 -29
- data/lib/countries/data/countries/TT.yaml +28 -29
- data/lib/countries/data/countries/TV.yaml +25 -26
- data/lib/countries/data/countries/TW.yaml +28 -29
- data/lib/countries/data/countries/TZ.yaml +30 -31
- data/lib/countries/data/countries/UA.yaml +34 -35
- data/lib/countries/data/countries/UG.yaml +28 -29
- data/lib/countries/data/countries/UM.yaml +29 -30
- data/lib/countries/data/countries/US.yaml +29 -29
- data/lib/countries/data/countries/UY.yaml +27 -28
- data/lib/countries/data/countries/UZ.yaml +30 -31
- data/lib/countries/data/countries/VA.yaml +31 -32
- data/lib/countries/data/countries/VC.yaml +29 -30
- data/lib/countries/data/countries/VE.yaml +26 -27
- data/lib/countries/data/countries/VG.yaml +29 -30
- data/lib/countries/data/countries/VI.yaml +28 -29
- data/lib/countries/data/countries/VN.yaml +28 -29
- data/lib/countries/data/countries/VU.yaml +31 -32
- data/lib/countries/data/countries/WF.yaml +29 -30
- data/lib/countries/data/countries/WS.yaml +28 -29
- data/lib/countries/data/countries/YE.yaml +27 -28
- data/lib/countries/data/countries/YT.yaml +26 -27
- data/lib/countries/data/countries/ZA.yaml +39 -40
- data/lib/countries/data/countries/ZM.yaml +28 -29
- data/lib/countries/data/countries/ZW.yaml +31 -32
- data/lib/countries/data/subdivisions/AD.yaml +21 -21
- data/lib/countries/data/subdivisions/AF.yaml +2 -2
- data/lib/countries/data/subdivisions/AG.yaml +1 -1
- data/lib/countries/data/subdivisions/AI.yaml +98 -98
- data/lib/countries/data/subdivisions/AL.yaml +82 -626
- data/lib/countries/data/subdivisions/AZ.yaml +5 -5
- data/lib/countries/data/subdivisions/BA.yaml +11 -11
- data/lib/countries/data/subdivisions/BD.yaml +8 -8
- data/lib/countries/data/subdivisions/BE.yaml +2 -2
- data/lib/countries/data/subdivisions/BF.yaml +13 -13
- data/lib/countries/data/subdivisions/BI.yaml +3 -3
- data/lib/countries/data/subdivisions/BM.yaml +77 -77
- data/lib/countries/data/subdivisions/BS.yaml +22 -22
- data/lib/countries/data/subdivisions/BW.yaml +7 -7
- data/lib/countries/data/subdivisions/BY.yaml +1 -1
- data/lib/countries/data/subdivisions/CD.yaml +19 -19
- data/lib/countries/data/subdivisions/CG.yaml +1 -1
- data/lib/countries/data/subdivisions/CI.yaml +14 -14
- data/lib/countries/data/subdivisions/CK.yaml +77 -77
- data/lib/countries/data/subdivisions/CN.yaml +0 -107
- data/lib/countries/data/subdivisions/CV.yaml +9 -9
- data/lib/countries/data/subdivisions/CZ.yaml +1045 -3736
- data/lib/countries/data/subdivisions/DE.yaml +16 -16
- data/lib/countries/data/subdivisions/DK.yaml +65 -286
- data/lib/countries/data/subdivisions/DO.yaml +11 -11
- data/lib/countries/data/subdivisions/EE.yaml +172 -88
- data/lib/countries/data/subdivisions/EH.yaml +12 -12
- data/lib/countries/data/subdivisions/ES.yaml +17 -17
- data/lib/countries/data/subdivisions/FI.yaml +101 -498
- data/lib/countries/data/subdivisions/FJ.yaml +14 -14
- data/lib/countries/data/subdivisions/FR.yaml +584 -977
- data/lib/countries/data/subdivisions/GB.yaml +21 -20
- data/lib/countries/data/subdivisions/GH.yaml +7 -7
- data/lib/countries/data/subdivisions/GL.yaml +6 -6
- data/lib/countries/data/subdivisions/GN.yaml +7 -7
- data/lib/countries/data/subdivisions/GQ.yaml +1 -0
- data/lib/countries/data/subdivisions/GR.yaml +117 -988
- data/lib/countries/data/subdivisions/GW.yaml +3 -3
- data/lib/countries/data/subdivisions/HT.yaml +1 -1
- data/lib/countries/data/subdivisions/HU.yaml +62 -62
- data/lib/countries/data/subdivisions/ID.yaml +41 -41
- data/lib/countries/data/subdivisions/IE.yaml +483 -483
- data/lib/countries/data/subdivisions/IN.yaml +4 -3
- data/lib/countries/data/subdivisions/IQ.yaml +1 -1
- data/lib/countries/data/subdivisions/IR.yaml +2 -1
- data/lib/countries/data/subdivisions/IS.yaml +72 -0
- data/lib/countries/data/subdivisions/IT.yaml +1250 -1839
- data/lib/countries/data/subdivisions/KE.yaml +391 -503
- data/lib/countries/data/subdivisions/KG.yaml +1 -1
- data/lib/countries/data/subdivisions/KH.yaml +1 -1
- data/lib/countries/data/subdivisions/KN.yaml +2 -2
- data/lib/countries/data/subdivisions/KP.yaml +12 -12
- data/lib/countries/data/subdivisions/KR.yaml +1 -1
- data/lib/countries/data/subdivisions/KZ.yaml +1 -1
- data/lib/countries/data/subdivisions/LA.yaml +1 -1
- data/lib/countries/data/subdivisions/LB.yaml +2 -2
- data/lib/countries/data/subdivisions/LC.yaml +10 -10
- data/lib/countries/data/subdivisions/LK.yaml +9 -9
- data/lib/countries/data/subdivisions/LR.yaml +2 -2
- data/lib/countries/data/subdivisions/LT.yaml +60 -60
- data/lib/countries/data/subdivisions/LU.yaml +194 -243
- data/lib/countries/data/subdivisions/LV.yaml +147 -5139
- data/lib/countries/data/subdivisions/MA.yaml +35 -35
- data/lib/countries/data/subdivisions/MC.yaml +17 -17
- data/lib/countries/data/subdivisions/MD.yaml +740 -740
- data/lib/countries/data/subdivisions/ME.yaml +3 -3
- data/lib/countries/data/subdivisions/MH.yaml +2 -2
- data/lib/countries/data/subdivisions/MK.yaml +3501 -5809
- data/lib/countries/data/subdivisions/ML.yaml +2 -2
- data/lib/countries/data/subdivisions/MM.yaml +1 -1
- data/lib/countries/data/subdivisions/MR.yaml +3 -3
- data/lib/countries/data/subdivisions/MV.yaml +8 -8
- data/lib/countries/data/subdivisions/MW.yaml +4 -4
- data/lib/countries/data/subdivisions/MX.yaml +1 -1
- data/lib/countries/data/subdivisions/NL.yaml +6 -6
- data/lib/countries/data/subdivisions/NO.yaml +1 -0
- data/lib/countries/data/subdivisions/NP.yaml +12 -12
- data/lib/countries/data/subdivisions/NZ.yaml +68 -112
- data/lib/countries/data/subdivisions/OM.yaml +6 -6
- data/lib/countries/data/subdivisions/PG.yaml +3 -3
- data/lib/countries/data/subdivisions/PH.yaml +16 -16
- data/lib/countries/data/subdivisions/PK.yaml +2 -2
- data/lib/countries/data/subdivisions/PL.yaml +210 -1208
- data/lib/countries/data/subdivisions/PS.yaml +16 -16
- data/lib/countries/data/subdivisions/QA.yaml +2 -2
- data/lib/countries/data/subdivisions/RS.yaml +2 -2
- data/lib/countries/data/subdivisions/SC.yaml +4 -2
- data/lib/countries/data/subdivisions/SG.yaml +39 -109
- data/lib/countries/data/subdivisions/SH.yaml +1 -1
- data/lib/countries/data/subdivisions/SI.yaml +19 -19
- data/lib/countries/data/subdivisions/SJ.yaml +14 -14
- data/lib/countries/data/subdivisions/SL.yaml +1 -1
- data/lib/countries/data/subdivisions/SN.yaml +3 -3
- data/lib/countries/data/subdivisions/SS.yaml +10 -10
- data/lib/countries/data/subdivisions/ST.yaml +6 -0
- data/lib/countries/data/subdivisions/TD.yaml +6 -6
- data/lib/countries/data/subdivisions/TH.yaml +1 -1
- data/lib/countries/data/subdivisions/TJ.yaml +2 -2
- data/lib/countries/data/subdivisions/TK.yaml +21 -21
- data/lib/countries/data/subdivisions/TM.yaml +1 -1
- data/lib/countries/data/subdivisions/TT.yaml +2 -2
- data/lib/countries/data/subdivisions/TV.yaml +1 -1
- data/lib/countries/data/subdivisions/TW.yaml +3 -17
- data/lib/countries/data/subdivisions/TZ.yaml +5 -5
- data/lib/countries/data/subdivisions/UG.yaml +59 -52
- data/lib/countries/data/subdivisions/UM.yaml +0 -10
- data/lib/countries/data/subdivisions/US.yaml +0 -42
- data/lib/countries/data/subdivisions/WF.yaml +3 -13
- data/lib/countries/data/subdivisions/YE.yaml +3 -3
- data/lib/countries/data/subdivisions/ZA.yaml +2 -2
- data/lib/countries/data/subdivisions/ZM.yaml +1 -1
- data/lib/countries/data/translation_corrections.yaml +20 -12
- data/lib/countries/data.rb +5 -1
- data/lib/countries/global.rb +13 -3
- data/lib/countries/mongoid.rb +3 -0
- data/lib/countries/sources/cldr/downloader.rb +3 -0
- data/lib/countries/sources/cldr/subdivision.rb +1 -0
- data/lib/countries/sources/cldr/subdivision_updater.rb +1 -0
- data/lib/countries/sources/local/cached_loader.rb +2 -0
- data/lib/countries/sources/local/subdivision.rb +1 -0
- data/lib/countries/structure.rb +2 -5
- data/lib/countries/tasks/geocoding.rake +1 -1
- data/lib/countries/timezones.rb +4 -2
- data/lib/countries/translations.rb +2 -3
- data/lib/countries/version.rb +1 -1
- data/spec/country_spec.rb +60 -56
- data/spec/data_spec.rb +9 -9
- metadata +7 -38
- data/lib/countries/data/subdivisions/AS.yaml +0 -85
- data/lib/countries/data/subdivisions/AW.yaml +0 -9
- data/lib/countries/data/subdivisions/AX.yaml +0 -51
- data/lib/countries/data/subdivisions/BL.yaml +0 -11
- data/lib/countries/data/subdivisions/CP.yaml +0 -4
- data/lib/countries/data/subdivisions/CW.yaml +0 -9
- data/lib/countries/data/subdivisions/FO.yaml +0 -85
- data/lib/countries/data/subdivisions/GF.yaml +0 -11
- data/lib/countries/data/subdivisions/GG.yaml +0 -155
- data/lib/countries/data/subdivisions/GP.yaml +0 -11
- data/lib/countries/data/subdivisions/GU.yaml +0 -275
- data/lib/countries/data/subdivisions/HK.yaml +0 -267
- data/lib/countries/data/subdivisions/IC.yaml +0 -4
- data/lib/countries/data/subdivisions/IM.yaml +0 -337
- data/lib/countries/data/subdivisions/JE.yaml +0 -169
- data/lib/countries/data/subdivisions/KY.yaml +0 -85
- data/lib/countries/data/subdivisions/MF.yaml +0 -9
- data/lib/countries/data/subdivisions/MO.yaml +0 -9
- data/lib/countries/data/subdivisions/MP.yaml +0 -71
- data/lib/countries/data/subdivisions/MQ.yaml +0 -11
- data/lib/countries/data/subdivisions/MS.yaml +0 -43
- data/lib/countries/data/subdivisions/NC.yaml +0 -57
- data/lib/countries/data/subdivisions/PF.yaml +0 -81
- data/lib/countries/data/subdivisions/PM.yaml +0 -39
- data/lib/countries/data/subdivisions/PR.yaml +0 -1107
- data/lib/countries/data/subdivisions/RE.yaml +0 -11
- data/lib/countries/data/subdivisions/SX.yaml +0 -9
- data/lib/countries/data/subdivisions/TA.yaml +0 -4
- data/lib/countries/data/subdivisions/TF.yaml +0 -67
- data/lib/countries/data/subdivisions/VI.yaml +0 -57
- 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
|
@@ -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:
|
@@ -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
|
-
|
25
|
-
|
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
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
+
zh:
|
45
|
+
KH: '柬埔寨'
|
46
|
+
zh_cn:
|
47
|
+
KH: '柬埔寨'
|
48
|
+
nb:
|
49
|
+
US: USA
|
50
|
+
nn:
|
51
|
+
US: USA
|
data/lib/countries/data.rb
CHANGED
@@ -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 = {}
|