countries 1.2.2 → 4.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/tests.yml +39 -0
- data/.gitignore +4 -1
- data/.rubocop.yml +1 -0
- data/.rubocop_todo.yml +52 -0
- data/CHANGELOG.md +570 -1
- data/Gemfile +7 -0
- data/LICENSE +3 -1
- data/README.markdown +261 -136
- data/Rakefile +44 -74
- data/bin/console +14 -0
- data/countries.gemspec +15 -9
- data/lib/countries/cache/countries.json +1 -0
- data/lib/countries/cache/locales/ab.json +1 -0
- data/lib/countries/cache/locales/af.json +1 -0
- data/lib/countries/cache/locales/ak.json +1 -0
- data/lib/countries/cache/locales/am.json +1 -0
- data/lib/countries/cache/locales/an.json +1 -0
- data/lib/countries/cache/locales/ar.json +1 -0
- data/lib/countries/cache/locales/as.json +1 -0
- data/lib/countries/cache/locales/ay.json +1 -0
- data/lib/countries/cache/locales/az.json +1 -0
- data/lib/countries/cache/locales/ba.json +1 -0
- data/lib/countries/cache/locales/be.json +1 -0
- data/lib/countries/cache/locales/bg.json +1 -0
- data/lib/countries/cache/locales/bi.json +1 -0
- data/lib/countries/cache/locales/bn-in.json +1 -0
- data/lib/countries/cache/locales/bn.json +1 -0
- data/lib/countries/cache/locales/br.json +1 -0
- data/lib/countries/cache/locales/bs.json +1 -0
- data/lib/countries/cache/locales/ca.json +1 -0
- data/lib/countries/cache/locales/ce.json +1 -0
- data/lib/countries/cache/locales/ch.json +1 -0
- data/lib/countries/cache/locales/cs.json +1 -0
- data/lib/countries/cache/locales/cv.json +1 -0
- data/lib/countries/cache/locales/cy.json +1 -0
- data/lib/countries/cache/locales/da.json +1 -0
- data/lib/countries/cache/locales/de.json +1 -0
- data/lib/countries/cache/locales/dv.json +1 -0
- data/lib/countries/cache/locales/dz.json +1 -0
- data/lib/countries/cache/locales/ee.json +1 -0
- data/lib/countries/cache/locales/el.json +1 -0
- data/lib/countries/cache/locales/en.json +1 -0
- data/lib/countries/cache/locales/eo.json +1 -0
- data/lib/countries/cache/locales/es.json +1 -0
- data/lib/countries/cache/locales/et.json +1 -0
- data/lib/countries/cache/locales/eu.json +1 -0
- data/lib/countries/cache/locales/fa.json +1 -0
- data/lib/countries/cache/locales/ff.json +1 -0
- data/lib/countries/cache/locales/fi.json +1 -0
- data/lib/countries/cache/locales/fo.json +1 -0
- data/lib/countries/cache/locales/fr.json +1 -0
- data/lib/countries/cache/locales/fy.json +1 -0
- data/lib/countries/cache/locales/ga.json +1 -0
- data/lib/countries/cache/locales/gl.json +1 -0
- data/lib/countries/cache/locales/gn.json +1 -0
- data/lib/countries/cache/locales/gu.json +1 -0
- data/lib/countries/cache/locales/gv.json +1 -0
- data/lib/countries/cache/locales/ha.json +1 -0
- data/lib/countries/cache/locales/he.json +1 -0
- data/lib/countries/cache/locales/hi.json +1 -0
- data/lib/countries/cache/locales/hr.json +1 -0
- data/lib/countries/cache/locales/ht.json +1 -0
- data/lib/countries/cache/locales/hu.json +1 -0
- data/lib/countries/cache/locales/hy.json +1 -0
- data/lib/countries/cache/locales/ia.json +1 -0
- data/lib/countries/cache/locales/id.json +1 -0
- data/lib/countries/cache/locales/io.json +1 -0
- data/lib/countries/cache/locales/is.json +1 -0
- data/lib/countries/cache/locales/it.json +1 -0
- data/lib/countries/cache/locales/iu.json +1 -0
- data/lib/countries/cache/locales/ja.json +1 -0
- data/lib/countries/cache/locales/ka.json +1 -0
- data/lib/countries/cache/locales/ki.json +1 -0
- data/lib/countries/cache/locales/kk.json +1 -0
- data/lib/countries/cache/locales/kl.json +1 -0
- data/lib/countries/cache/locales/km.json +1 -0
- data/lib/countries/cache/locales/kn.json +1 -0
- data/lib/countries/cache/locales/ko.json +1 -0
- data/lib/countries/cache/locales/ku.json +1 -0
- data/lib/countries/cache/locales/kv.json +1 -0
- data/lib/countries/cache/locales/kw.json +1 -0
- data/lib/countries/cache/locales/ky.json +1 -0
- data/lib/countries/cache/locales/lo.json +1 -0
- data/lib/countries/cache/locales/lt.json +1 -0
- data/lib/countries/cache/locales/lv.json +1 -0
- data/lib/countries/cache/locales/mi.json +1 -0
- data/lib/countries/cache/locales/mk.json +1 -0
- data/lib/countries/cache/locales/ml.json +1 -0
- data/lib/countries/cache/locales/mn.json +1 -0
- data/lib/countries/cache/locales/mr.json +1 -0
- data/lib/countries/cache/locales/ms.json +1 -0
- data/lib/countries/cache/locales/mt.json +1 -0
- data/lib/countries/cache/locales/my.json +1 -0
- data/lib/countries/cache/locales/na.json +1 -0
- data/lib/countries/cache/locales/nb.json +1 -0
- data/lib/countries/cache/locales/ne.json +1 -0
- data/lib/countries/cache/locales/nl.json +1 -0
- data/lib/countries/cache/locales/nn.json +1 -0
- data/lib/countries/cache/locales/nv.json +1 -0
- data/lib/countries/cache/locales/oc.json +1 -0
- data/lib/countries/cache/locales/or.json +1 -0
- data/lib/countries/cache/locales/pa.json +1 -0
- data/lib/countries/cache/locales/pi.json +1 -0
- data/lib/countries/cache/locales/pl.json +1 -0
- data/lib/countries/cache/locales/ps.json +1 -0
- data/lib/countries/cache/locales/pt-br.json +1 -0
- data/lib/countries/cache/locales/pt.json +1 -0
- data/lib/countries/cache/locales/ro.json +1 -0
- data/lib/countries/cache/locales/ru.json +1 -0
- data/lib/countries/cache/locales/rw.json +1 -0
- data/lib/countries/cache/locales/sc.json +1 -0
- data/lib/countries/cache/locales/sd.json +1 -0
- data/lib/countries/cache/locales/si.json +1 -0
- data/lib/countries/cache/locales/sk.json +1 -0
- data/lib/countries/cache/locales/sl.json +1 -0
- data/lib/countries/cache/locales/so.json +1 -0
- data/lib/countries/cache/locales/sq.json +1 -0
- data/lib/countries/cache/locales/sr.json +1 -0
- data/lib/countries/cache/locales/sv.json +1 -0
- data/lib/countries/cache/locales/sw.json +1 -0
- data/lib/countries/cache/locales/ta.json +1 -0
- data/lib/countries/cache/locales/te.json +1 -0
- data/lib/countries/cache/locales/tg.json +1 -0
- data/lib/countries/cache/locales/th.json +1 -0
- data/lib/countries/cache/locales/ti.json +1 -0
- data/lib/countries/cache/locales/tk.json +1 -0
- data/lib/countries/cache/locales/tl.json +1 -0
- data/lib/countries/cache/locales/tr.json +1 -0
- data/lib/countries/cache/locales/tt.json +1 -0
- data/lib/countries/cache/locales/ug.json +1 -0
- data/lib/countries/cache/locales/uk.json +1 -0
- data/lib/countries/cache/locales/ur.json +1 -0
- data/lib/countries/cache/locales/uz.json +1 -0
- data/lib/countries/cache/locales/ve.json +1 -0
- data/lib/countries/cache/locales/vi.json +1 -0
- data/lib/countries/cache/locales/wa.json +1 -0
- data/lib/countries/cache/locales/wo.json +1 -0
- data/lib/countries/cache/locales/xh.json +1 -0
- data/lib/countries/cache/locales/yo.json +1 -0
- data/lib/countries/cache/locales/zh-cn.json +1 -0
- data/lib/countries/cache/locales/zh-hk.json +1 -0
- data/lib/countries/cache/locales/zh-tw.json +1 -0
- data/lib/countries/cache/locales/zh.json +1 -0
- data/lib/countries/cache/locales/zu.json +1 -0
- data/lib/countries/configuration.rb +57 -0
- data/lib/countries/country/class_methods.rb +196 -0
- data/lib/countries/country/currency_methods.rb +13 -0
- data/lib/countries/country/emoji.rb +42 -0
- data/lib/countries/country.rb +214 -158
- data/lib/countries/data/countries/AD.yaml +32 -21
- data/lib/countries/data/countries/AE.yaml +40 -25
- data/lib/countries/data/countries/AF.yaml +36 -23
- data/lib/countries/data/countries/AG.yaml +36 -25
- data/lib/countries/data/countries/AI.yaml +33 -21
- data/lib/countries/data/countries/AL.yaml +35 -24
- data/lib/countries/data/countries/AM.yaml +36 -24
- data/lib/countries/data/countries/AO.yaml +30 -20
- data/lib/countries/data/countries/AQ.yaml +31 -22
- data/lib/countries/data/countries/AR.yaml +36 -24
- data/lib/countries/data/countries/AS.yaml +38 -25
- data/lib/countries/data/countries/AT.yaml +37 -25
- data/lib/countries/data/countries/AU.yaml +39 -23
- data/lib/countries/data/countries/AW.yaml +30 -20
- data/lib/countries/data/countries/AX.yaml +33 -22
- data/lib/countries/data/countries/AZ.yaml +37 -25
- data/lib/countries/data/countries/BA.yaml +40 -27
- data/lib/countries/data/countries/BB.yaml +33 -21
- data/lib/countries/data/countries/BD.yaml +32 -21
- data/lib/countries/data/countries/BE.yaml +42 -28
- data/lib/countries/data/countries/BF.yaml +32 -21
- data/lib/countries/data/countries/BG.yaml +38 -26
- data/lib/countries/data/countries/BH.yaml +35 -24
- data/lib/countries/data/countries/BI.yaml +32 -21
- data/lib/countries/data/countries/BJ.yaml +31 -21
- data/lib/countries/data/countries/BL.yaml +33 -22
- data/lib/countries/data/countries/BM.yaml +34 -22
- data/lib/countries/data/countries/BN.yaml +32 -21
- data/lib/countries/data/countries/BO.yaml +37 -25
- data/lib/countries/data/countries/BQ.yaml +33 -22
- data/lib/countries/data/countries/BR.yaml +42 -24
- data/lib/countries/data/countries/BS.yaml +32 -21
- data/lib/countries/data/countries/BT.yaml +33 -22
- data/lib/countries/data/countries/BV.yaml +32 -23
- data/lib/countries/data/countries/BW.yaml +32 -21
- data/lib/countries/data/countries/BY.yaml +38 -26
- data/lib/countries/data/countries/BZ.yaml +34 -23
- data/lib/countries/data/countries/CA.yaml +35 -23
- data/lib/countries/data/countries/CC.yaml +34 -23
- data/lib/countries/data/countries/CD.yaml +44 -28
- data/lib/countries/data/countries/CF.yaml +36 -25
- data/lib/countries/data/countries/CG.yaml +35 -23
- data/lib/countries/data/countries/CH.yaml +47 -26
- data/lib/countries/data/countries/CI.yaml +35 -24
- data/lib/countries/data/countries/CK.yaml +34 -24
- data/lib/countries/data/countries/CL.yaml +37 -21
- data/lib/countries/data/countries/CM.yaml +36 -25
- data/lib/countries/data/countries/CN.yaml +32 -21
- data/lib/countries/data/countries/CO.yaml +33 -22
- data/lib/countries/data/countries/CR.yaml +31 -20
- data/lib/countries/data/countries/CU.yaml +32 -21
- data/lib/countries/data/countries/CV.yaml +35 -24
- data/lib/countries/data/countries/CW.yaml +31 -21
- data/lib/countries/data/countries/CX.yaml +38 -25
- data/lib/countries/data/countries/CY.yaml +42 -28
- data/lib/countries/data/countries/CZ.yaml +42 -28
- data/lib/countries/data/countries/DE.yaml +39 -27
- data/lib/countries/data/countries/DJ.yaml +34 -23
- data/lib/countries/data/countries/DK.yaml +39 -27
- data/lib/countries/data/countries/DM.yaml +31 -20
- data/lib/countries/data/countries/DO.yaml +35 -24
- data/lib/countries/data/countries/DZ.yaml +36 -25
- data/lib/countries/data/countries/EC.yaml +32 -21
- data/lib/countries/data/countries/EE.yaml +37 -26
- data/lib/countries/data/countries/EG.yaml +36 -25
- data/lib/countries/data/countries/EH.yaml +38 -26
- data/lib/countries/data/countries/ER.yaml +36 -24
- data/lib/countries/data/countries/ES.yaml +38 -26
- data/lib/countries/data/countries/ET.yaml +35 -24
- data/lib/countries/data/countries/FI.yaml +40 -27
- data/lib/countries/data/countries/FJ.yaml +38 -25
- data/lib/countries/data/countries/FK.yaml +36 -25
- data/lib/countries/data/countries/FM.yaml +34 -23
- data/lib/countries/data/countries/FO.yaml +35 -24
- data/lib/countries/data/countries/FR.yaml +38 -26
- data/lib/countries/data/countries/GA.yaml +32 -22
- data/lib/countries/data/countries/GB.yaml +46 -28
- data/lib/countries/data/countries/GD.yaml +31 -20
- data/lib/countries/data/countries/GE.yaml +34 -23
- data/lib/countries/data/countries/GF.yaml +35 -23
- data/lib/countries/data/countries/GG.yaml +38 -26
- data/lib/countries/data/countries/GH.yaml +30 -20
- data/lib/countries/data/countries/GI.yaml +32 -21
- data/lib/countries/data/countries/GL.yaml +35 -24
- data/lib/countries/data/countries/GM.yaml +30 -20
- data/lib/countries/data/countries/GN.yaml +35 -23
- data/lib/countries/data/countries/GP.yaml +33 -22
- data/lib/countries/data/countries/GQ.yaml +36 -25
- data/lib/countries/data/countries/GR.yaml +41 -29
- data/lib/countries/data/countries/GS.yaml +34 -22
- data/lib/countries/data/countries/GT.yaml +31 -20
- data/lib/countries/data/countries/GU.yaml +36 -22
- data/lib/countries/data/countries/GW.yaml +34 -22
- data/lib/countries/data/countries/GY.yaml +30 -20
- data/lib/countries/data/countries/HK.yaml +33 -22
- data/lib/countries/data/countries/HM.yaml +35 -24
- data/lib/countries/data/countries/HN.yaml +31 -20
- data/lib/countries/data/countries/HR.yaml +40 -28
- data/lib/countries/data/countries/HT.yaml +34 -22
- data/lib/countries/data/countries/HU.yaml +39 -27
- data/lib/countries/data/countries/ID.yaml +34 -23
- data/lib/countries/data/countries/IE.yaml +39 -26
- data/lib/countries/data/countries/IL.yaml +39 -22
- data/lib/countries/data/countries/IM.yaml +37 -25
- data/lib/countries/data/countries/IN.yaml +35 -23
- data/lib/countries/data/countries/IO.yaml +35 -24
- data/lib/countries/data/countries/IQ.yaml +33 -22
- data/lib/countries/data/countries/IR.yaml +34 -23
- data/lib/countries/data/countries/IS.yaml +42 -24
- data/lib/countries/data/countries/IT.yaml +38 -26
- data/lib/countries/data/countries/JE.yaml +34 -22
- data/lib/countries/data/countries/JM.yaml +33 -22
- data/lib/countries/data/countries/JO.yaml +36 -25
- data/lib/countries/data/countries/JP.yaml +33 -22
- data/lib/countries/data/countries/KE.yaml +34 -22
- data/lib/countries/data/countries/KG.yaml +38 -26
- data/lib/countries/data/countries/KH.yaml +35 -24
- data/lib/countries/data/countries/KI.yaml +30 -20
- data/lib/countries/data/countries/KM.yaml +35 -24
- data/lib/countries/data/countries/KN.yaml +38 -25
- data/lib/countries/data/countries/KP.yaml +37 -26
- data/lib/countries/data/countries/KR.yaml +37 -26
- data/lib/countries/data/countries/KW.yaml +34 -23
- data/lib/countries/data/countries/KY.yaml +36 -24
- data/lib/countries/data/countries/KZ.yaml +36 -24
- data/lib/countries/data/countries/LA.yaml +32 -21
- data/lib/countries/data/countries/LB.yaml +37 -25
- data/lib/countries/data/countries/LC.yaml +35 -22
- data/lib/countries/data/countries/LI.yaml +32 -20
- data/lib/countries/data/countries/LK.yaml +33 -21
- data/lib/countries/data/countries/LR.yaml +31 -20
- data/lib/countries/data/countries/LS.yaml +33 -21
- data/lib/countries/data/countries/LT.yaml +41 -28
- data/lib/countries/data/countries/LU.yaml +39 -25
- data/lib/countries/data/countries/LV.yaml +45 -27
- data/lib/countries/data/countries/LY.yaml +36 -26
- data/lib/countries/data/countries/MA.yaml +35 -24
- data/lib/countries/data/countries/MC.yaml +32 -21
- data/lib/countries/data/countries/MD.yaml +36 -25
- data/lib/countries/data/countries/ME.yaml +38 -24
- data/lib/countries/data/countries/MF.yaml +37 -24
- data/lib/countries/data/countries/MG.yaml +35 -23
- data/lib/countries/data/countries/MH.yaml +37 -25
- data/lib/countries/data/countries/MK.yaml +37 -25
- data/lib/countries/data/countries/ML.yaml +30 -20
- data/lib/countries/data/countries/MM.yaml +31 -20
- data/lib/countries/data/countries/MN.yaml +34 -23
- data/lib/countries/data/countries/MO.yaml +33 -22
- data/lib/countries/data/countries/MP.yaml +38 -26
- data/lib/countries/data/countries/MQ.yaml +33 -22
- data/lib/countries/data/countries/MR.yaml +36 -25
- data/lib/countries/data/countries/MS.yaml +32 -21
- data/lib/countries/data/countries/MT.yaml +38 -25
- data/lib/countries/data/countries/MU.yaml +33 -22
- data/lib/countries/data/countries/MV.yaml +34 -23
- data/lib/countries/data/countries/MW.yaml +32 -21
- data/lib/countries/data/countries/MX.yaml +39 -23
- data/lib/countries/data/countries/MY.yaml +36 -24
- data/lib/countries/data/countries/MZ.yaml +32 -21
- data/lib/countries/data/countries/NA.yaml +35 -23
- data/lib/countries/data/countries/NC.yaml +36 -25
- data/lib/countries/data/countries/NE.yaml +32 -21
- data/lib/countries/data/countries/NF.yaml +36 -25
- data/lib/countries/data/countries/NG.yaml +39 -23
- data/lib/countries/data/countries/NI.yaml +31 -20
- data/lib/countries/data/countries/NL.yaml +41 -28
- data/lib/countries/data/countries/NO.yaml +43 -25
- data/lib/countries/data/countries/NP.yaml +43 -22
- data/lib/countries/data/countries/NR.yaml +32 -21
- data/lib/countries/data/countries/NU.yaml +30 -20
- data/lib/countries/data/countries/NZ.yaml +41 -24
- data/lib/countries/data/countries/OM.yaml +33 -22
- data/lib/countries/data/countries/PA.yaml +31 -21
- data/lib/countries/data/countries/PE.yaml +33 -22
- data/lib/countries/data/countries/PF.yaml +36 -25
- data/lib/countries/data/countries/PG.yaml +35 -24
- data/lib/countries/data/countries/PH.yaml +41 -24
- data/lib/countries/data/countries/PK.yaml +34 -22
- data/lib/countries/data/countries/PL.yaml +38 -26
- data/lib/countries/data/countries/PM.yaml +36 -25
- data/lib/countries/data/countries/PN.yaml +35 -23
- data/lib/countries/data/countries/PR.yaml +33 -21
- data/lib/countries/data/countries/PS.yaml +41 -28
- data/lib/countries/data/countries/PT.yaml +34 -22
- data/lib/countries/data/countries/PW.yaml +31 -20
- data/lib/countries/data/countries/PY.yaml +33 -21
- data/lib/countries/data/countries/QA.yaml +32 -22
- data/lib/countries/data/countries/RE.yaml +34 -23
- data/lib/countries/data/countries/RO.yaml +40 -28
- data/lib/countries/data/countries/RS.yaml +34 -23
- data/lib/countries/data/countries/RU.yaml +37 -26
- data/lib/countries/data/countries/RW.yaml +35 -23
- data/lib/countries/data/countries/SA.yaml +42 -25
- data/lib/countries/data/countries/SB.yaml +35 -25
- data/lib/countries/data/countries/SC.yaml +33 -22
- data/lib/countries/data/countries/SD.yaml +37 -25
- data/lib/countries/data/countries/SE.yaml +39 -27
- data/lib/countries/data/countries/SG.yaml +38 -25
- data/lib/countries/data/countries/SH.yaml +37 -25
- data/lib/countries/data/countries/SI.yaml +39 -27
- data/lib/countries/data/countries/SJ.yaml +36 -25
- data/lib/countries/data/countries/SK.yaml +39 -27
- data/lib/countries/data/countries/SL.yaml +30 -20
- data/lib/countries/data/countries/SM.yaml +32 -21
- data/lib/countries/data/countries/SN.yaml +32 -21
- data/lib/countries/data/countries/SO.yaml +35 -23
- data/lib/countries/data/countries/SR.yaml +31 -21
- data/lib/countries/data/countries/SS.yaml +35 -23
- data/lib/countries/data/countries/ST.yaml +34 -24
- data/lib/countries/data/countries/SV.yaml +32 -21
- data/lib/countries/data/countries/SX.yaml +34 -22
- data/lib/countries/data/countries/SY.yaml +36 -26
- data/lib/countries/data/countries/SZ.yaml +35 -23
- data/lib/countries/data/countries/TC.yaml +38 -25
- data/lib/countries/data/countries/TD.yaml +36 -25
- data/lib/countries/data/countries/TF.yaml +39 -28
- data/lib/countries/data/countries/TG.yaml +30 -20
- data/lib/countries/data/countries/TH.yaml +39 -22
- data/lib/countries/data/countries/TJ.yaml +37 -25
- data/lib/countries/data/countries/TK.yaml +33 -23
- data/lib/countries/data/countries/TL.yaml +34 -24
- data/lib/countries/data/countries/TM.yaml +35 -23
- data/lib/countries/data/countries/TN.yaml +38 -26
- data/lib/countries/data/countries/TO.yaml +32 -21
- data/lib/countries/data/countries/TR.yaml +35 -24
- data/lib/countries/data/countries/TT.yaml +35 -24
- data/lib/countries/data/countries/TV.yaml +30 -20
- data/lib/countries/data/countries/TW.yaml +33 -22
- data/lib/countries/data/countries/TZ.yaml +36 -24
- data/lib/countries/data/countries/UA.yaml +42 -25
- data/lib/countries/data/countries/UG.yaml +33 -22
- data/lib/countries/data/countries/UM.yaml +37 -26
- data/lib/countries/data/countries/US.yaml +37 -24
- data/lib/countries/data/countries/UY.yaml +31 -20
- data/lib/countries/data/countries/UZ.yaml +37 -25
- data/lib/countries/data/countries/VA.yaml +39 -27
- data/lib/countries/data/countries/VC.yaml +38 -24
- data/lib/countries/data/countries/VE.yaml +31 -20
- data/lib/countries/data/countries/VG.yaml +38 -26
- data/lib/countries/data/countries/VI.yaml +37 -25
- data/lib/countries/data/countries/VN.yaml +38 -21
- data/lib/countries/data/countries/VU.yaml +34 -22
- data/lib/countries/data/countries/WF.yaml +36 -25
- data/lib/countries/data/countries/WS.yaml +32 -21
- data/lib/countries/data/countries/YE.yaml +33 -23
- data/lib/countries/data/countries/YT.yaml +32 -21
- data/lib/countries/data/countries/ZA.yaml +52 -32
- data/lib/countries/data/countries/ZM.yaml +33 -22
- data/lib/countries/data/countries/ZW.yaml +36 -24
- data/lib/countries/data/subdivisions/AD.yaml +85 -50
- data/lib/countries/data/subdivisions/AE.yaml +513 -55
- data/lib/countries/data/subdivisions/AF.yaml +2239 -234
- data/lib/countries/data/subdivisions/AG.yaml +451 -57
- data/lib/countries/data/subdivisions/AI.yaml +197 -0
- data/lib/countries/data/subdivisions/AL.yaml +746 -316
- data/lib/countries/data/subdivisions/AM.yaml +788 -68
- data/lib/countries/data/subdivisions/AO.yaml +1145 -126
- data/lib/countries/data/subdivisions/AR.yaml +1668 -168
- data/lib/countries/data/subdivisions/AT.yaml +714 -63
- data/lib/countries/data/subdivisions/AU.yaml +673 -56
- data/lib/countries/data/subdivisions/AZ.yaml +4508 -536
- data/lib/countries/data/subdivisions/BA.yaml +359 -14
- data/lib/countries/data/subdivisions/BB.yaml +589 -79
- data/lib/countries/data/subdivisions/BD.yaml +2593 -400
- data/lib/countries/data/subdivisions/BE.yaml +943 -77
- data/lib/countries/data/subdivisions/BF.yaml +2917 -311
- data/lib/countries/data/subdivisions/BG.yaml +1965 -199
- data/lib/countries/data/subdivisions/BH.yaml +184 -31
- data/lib/countries/data/subdivisions/BI.yaml +982 -112
- data/lib/countries/data/subdivisions/BJ.yaml +691 -84
- data/lib/countries/data/subdivisions/BM.yaml +155 -0
- data/lib/countries/data/subdivisions/BN.yaml +225 -24
- data/lib/countries/data/subdivisions/BO.yaml +561 -63
- data/lib/countries/data/subdivisions/BQ.yaml +217 -21
- data/lib/countries/data/subdivisions/BR.yaml +2154 -185
- data/lib/countries/data/subdivisions/BS.yaml +1821 -143
- data/lib/countries/data/subdivisions/BT.yaml +1087 -140
- data/lib/countries/data/subdivisions/BW.yaml +923 -63
- data/lib/countries/data/subdivisions/BY.yaml +528 -31
- data/lib/countries/data/subdivisions/BZ.yaml +309 -42
- data/lib/countries/data/subdivisions/CA.yaml +1105 -92
- data/lib/countries/data/subdivisions/CD.yaml +1187 -78
- data/lib/countries/data/subdivisions/CF.yaml +961 -119
- data/lib/countries/data/subdivisions/CG.yaml +640 -77
- data/lib/countries/data/subdivisions/CH.yaml +1946 -182
- data/lib/countries/data/subdivisions/CI.yaml +859 -125
- data/lib/countries/data/subdivisions/CK.yaml +155 -0
- data/lib/countries/data/subdivisions/CL.yaml +968 -105
- data/lib/countries/data/subdivisions/CM.yaml +582 -70
- data/lib/countries/data/subdivisions/CN.yaml +2618 -274
- data/lib/countries/data/subdivisions/CO.yaml +2102 -227
- data/lib/countries/data/subdivisions/CR.yaml +393 -49
- data/lib/countries/data/subdivisions/CU.yaml +926 -119
- data/lib/countries/data/subdivisions/CV.yaml +1198 -119
- data/lib/countries/data/subdivisions/CY.yaml +328 -42
- data/lib/countries/data/subdivisions/CZ.yaml +2892 -129
- data/lib/countries/data/subdivisions/DE.yaml +1420 -112
- data/lib/countries/data/subdivisions/DJ.yaml +375 -42
- data/lib/countries/data/subdivisions/DK.yaml +344 -180
- data/lib/countries/data/subdivisions/DM.yaml +512 -72
- data/lib/countries/data/subdivisions/DO.yaml +1763 -219
- data/lib/countries/data/subdivisions/DZ.yaml +2869 -334
- data/lib/countries/data/subdivisions/EC.yaml +1348 -168
- data/lib/countries/data/subdivisions/EE.yaml +1368 -118
- data/lib/countries/data/subdivisions/EG.yaml +1628 -190
- data/lib/countries/data/subdivisions/EH.yaml +48 -28
- data/lib/countries/data/subdivisions/ER.yaml +348 -42
- data/lib/countries/data/subdivisions/ES.yaml +4875 -375
- data/lib/countries/data/subdivisions/ET.yaml +735 -77
- data/lib/countries/data/subdivisions/FI.yaml +890 -36
- data/lib/countries/data/subdivisions/FJ.yaml +720 -35
- data/lib/countries/data/subdivisions/FM.yaml +202 -24
- data/lib/countries/data/subdivisions/FR.yaml +8250 -684
- data/lib/countries/data/subdivisions/GA.yaml +526 -63
- data/lib/countries/data/subdivisions/GB.yaml +12522 -1516
- data/lib/countries/data/subdivisions/GD.yaml +354 -49
- data/lib/countries/data/subdivisions/GE.yaml +833 -85
- data/lib/countries/data/subdivisions/GH.yaml +658 -70
- data/lib/countries/data/subdivisions/GL.yaml +262 -0
- data/lib/countries/data/subdivisions/GM.yaml +381 -42
- data/lib/countries/data/subdivisions/GN.yaml +1919 -234
- data/lib/countries/data/subdivisions/GQ.yaml +459 -59
- data/lib/countries/data/subdivisions/GR.yaml +871 -527
- data/lib/countries/data/subdivisions/GT.yaml +1270 -150
- data/lib/countries/data/subdivisions/GW.yaml +563 -59
- data/lib/countries/data/subdivisions/GY.yaml +498 -70
- data/lib/countries/data/subdivisions/HN.yaml +1019 -126
- data/lib/countries/data/subdivisions/HR.yaml +1419 -151
- data/lib/countries/data/subdivisions/HT.yaml +525 -63
- data/lib/countries/data/subdivisions/HU.yaml +2949 -302
- data/lib/countries/data/subdivisions/ID.yaml +2679 -243
- data/lib/countries/data/subdivisions/IE.yaml +2027 -177
- data/lib/countries/data/subdivisions/IL.yaml +376 -42
- data/lib/countries/data/subdivisions/IN.yaml +3110 -252
- data/lib/countries/data/subdivisions/IQ.yaml +1105 -126
- data/lib/countries/data/subdivisions/IR.yaml +2092 -215
- data/lib/countries/data/subdivisions/IS.yaml +830 -59
- data/lib/countries/data/subdivisions/IT.yaml +8525 -790
- data/lib/countries/data/subdivisions/JM.yaml +732 -100
- data/lib/countries/data/subdivisions/JO.yaml +662 -48
- data/lib/countries/data/subdivisions/JP.yaml +3562 -327
- data/lib/countries/data/subdivisions/KE.yaml +1449 -56
- data/lib/countries/data/subdivisions/KG.yaml +624 -57
- data/lib/countries/data/subdivisions/KH.yaml +1332 -147
- data/lib/countries/data/subdivisions/KI.yaml +163 -17
- data/lib/countries/data/subdivisions/KM.yaml +189 -21
- data/lib/countries/data/subdivisions/KN.yaml +835 -100
- data/lib/countries/data/subdivisions/KP.yaml +922 -80
- data/lib/countries/data/subdivisions/KR.yaml +1225 -88
- data/lib/countries/data/subdivisions/KW.yaml +280 -42
- data/lib/countries/data/subdivisions/KZ.yaml +1213 -122
- data/lib/countries/data/subdivisions/LA.yaml +947 -120
- data/lib/countries/data/subdivisions/LB.yaml +386 -22
- data/lib/countries/data/subdivisions/LC.yaml +470 -0
- data/lib/countries/data/subdivisions/LI.yaml +557 -39
- data/lib/countries/data/subdivisions/LK.yaml +1546 -175
- data/lib/countries/data/subdivisions/LR.yaml +857 -105
- data/lib/countries/data/subdivisions/LS.yaml +529 -70
- data/lib/countries/data/subdivisions/LT.yaml +2616 -71
- data/lib/countries/data/subdivisions/LU.yaml +490 -24
- data/lib/countries/data/subdivisions/LV.yaml +2501 -178
- data/lib/countries/data/subdivisions/LY.yaml +1188 -262
- data/lib/countries/data/subdivisions/MA.yaml +3375 -437
- data/lib/countries/data/subdivisions/MC.yaml +484 -0
- data/lib/countries/data/subdivisions/MD.yaml +2240 -71
- data/lib/countries/data/subdivisions/ME.yaml +1136 -151
- data/lib/countries/data/subdivisions/MG.yaml +253 -42
- data/lib/countries/data/subdivisions/MH.yaml +995 -151
- data/lib/countries/data/subdivisions/MK.yaml +3964 -752
- data/lib/countries/data/subdivisions/ML.yaml +569 -63
- data/lib/countries/data/subdivisions/MM.yaml +849 -98
- data/lib/countries/data/subdivisions/MN.yaml +1389 -160
- data/lib/countries/data/subdivisions/MR.yaml +702 -94
- data/lib/countries/data/subdivisions/MT.yaml +3726 -478
- data/lib/countries/data/subdivisions/MU.yaml +923 -115
- data/lib/countries/data/subdivisions/MV.yaml +1219 -148
- data/lib/countries/data/subdivisions/MW.yaml +1646 -189
- data/lib/countries/data/subdivisions/MX.yaml +2414 -222
- data/lib/countries/data/subdivisions/MY.yaml +1071 -114
- data/lib/countries/data/subdivisions/MZ.yaml +665 -77
- data/lib/countries/data/subdivisions/NA.yaml +736 -98
- data/lib/countries/data/subdivisions/NE.yaml +475 -56
- data/lib/countries/data/subdivisions/NG.yaml +2370 -259
- data/lib/countries/data/subdivisions/NI.yaml +952 -119
- data/lib/countries/data/subdivisions/NL.yaml +1205 -84
- data/lib/countries/data/subdivisions/NO.yaml +856 -164
- data/lib/countries/data/subdivisions/NP.yaml +982 -90
- data/lib/countries/data/subdivisions/NR.yaml +827 -100
- data/lib/countries/data/subdivisions/NZ.yaml +946 -122
- data/lib/countries/data/subdivisions/OM.yaml +633 -63
- data/lib/countries/data/subdivisions/PA.yaml +708 -69
- data/lib/countries/data/subdivisions/PE.yaml +1489 -179
- data/lib/countries/data/subdivisions/PG.yaml +1211 -140
- data/lib/countries/data/subdivisions/PH.yaml +5089 -572
- data/lib/countries/data/subdivisions/PK.yaml +566 -56
- data/lib/countries/data/subdivisions/PL.yaml +1042 -150
- data/lib/countries/data/subdivisions/PS.yaml +747 -0
- data/lib/countries/data/subdivisions/PT.yaml +1124 -145
- data/lib/countries/data/subdivisions/PW.yaml +832 -108
- data/lib/countries/data/subdivisions/PY.yaml +1045 -127
- data/lib/countries/data/subdivisions/QA.yaml +469 -64
- data/lib/countries/data/subdivisions/RO.yaml +2746 -294
- data/lib/countries/data/subdivisions/RS.yaml +1786 -195
- data/lib/countries/data/subdivisions/RU.yaml +6570 -655
- data/lib/countries/data/subdivisions/RW.yaml +327 -35
- data/lib/countries/data/subdivisions/SA.yaml +768 -102
- data/lib/countries/data/subdivisions/SB.yaml +550 -70
- data/lib/countries/data/subdivisions/SC.yaml +1286 -163
- data/lib/countries/data/subdivisions/SD.yaml +1002 -254
- data/lib/countries/data/subdivisions/SE.yaml +1416 -149
- data/lib/countries/data/subdivisions/SG.yaml +108 -31
- data/lib/countries/data/subdivisions/SH.yaml +197 -21
- data/lib/countries/data/subdivisions/SI.yaml +10997 -1403
- data/lib/countries/data/subdivisions/SJ.yaml +29 -0
- data/lib/countries/data/subdivisions/SK.yaml +533 -57
- data/lib/countries/data/subdivisions/SL.yaml +231 -28
- data/lib/countries/data/subdivisions/SM.yaml +577 -65
- data/lib/countries/data/subdivisions/SN.yaml +761 -77
- data/lib/countries/data/subdivisions/SO.yaml +914 -126
- data/lib/countries/data/subdivisions/SR.yaml +512 -70
- data/lib/countries/data/subdivisions/SS.yaml +624 -0
- data/lib/countries/data/subdivisions/ST.yaml +73 -14
- data/lib/countries/data/subdivisions/SV.yaml +747 -98
- data/lib/countries/data/subdivisions/SY.yaml +806 -91
- data/lib/countries/data/subdivisions/SZ.yaml +217 -28
- data/lib/countries/data/subdivisions/TD.yaml +1242 -126
- data/lib/countries/data/subdivisions/TG.yaml +264 -35
- data/lib/countries/data/subdivisions/TH.yaml +4535 -539
- data/lib/countries/data/subdivisions/TJ.yaml +356 -0
- data/lib/countries/data/subdivisions/TK.yaml +43 -0
- data/lib/countries/data/subdivisions/TL.yaml +682 -91
- data/lib/countries/data/subdivisions/TM.yaml +390 -46
- data/lib/countries/data/subdivisions/TN.yaml +1301 -168
- data/lib/countries/data/subdivisions/TO.yaml +260 -36
- data/lib/countries/data/subdivisions/TR.yaml +5858 -624
- data/lib/countries/data/subdivisions/TT.yaml +865 -112
- data/lib/countries/data/subdivisions/TV.yaml +382 -44
- data/lib/countries/data/subdivisions/TW.yaml +1281 -145
- data/lib/countries/data/subdivisions/TZ.yaml +1868 -184
- data/lib/countries/data/subdivisions/UA.yaml +1988 -192
- data/lib/countries/data/subdivisions/UG.yaml +6150 -544
- data/lib/countries/data/subdivisions/UM.yaml +710 -59
- data/lib/countries/data/subdivisions/US.yaml +4789 -404
- data/lib/countries/data/subdivisions/UY.yaml +1163 -112
- data/lib/countries/data/subdivisions/UZ.yaml +902 -99
- data/lib/countries/data/subdivisions/VC.yaml +289 -38
- data/lib/countries/data/subdivisions/VE.yaml +1559 -175
- data/lib/countries/data/subdivisions/VN.yaml +3799 -550
- data/lib/countries/data/subdivisions/VU.yaml +333 -43
- data/lib/countries/data/subdivisions/WF.yaml +201 -0
- data/lib/countries/data/subdivisions/WS.yaml +587 -77
- data/lib/countries/data/subdivisions/YE.yaml +1262 -135
- data/lib/countries/data/subdivisions/ZA.yaml +712 -63
- data/lib/countries/data/subdivisions/ZM.yaml +568 -65
- data/lib/countries/data/subdivisions/ZW.yaml +520 -70
- data/lib/countries/data/translation_corrections.yaml +38 -1
- data/lib/countries/data.rb +161 -16
- data/lib/countries/global.rb +13 -3
- data/lib/countries/iso3166.rb +9 -2
- data/lib/countries/kwarg_struct.rb +12 -0
- data/lib/countries/mongoid.rb +25 -22
- data/lib/countries/setup.rb +7 -7
- data/lib/countries/sources/cldr/downloader.rb +37 -0
- data/lib/countries/sources/cldr/subdivision.rb +35 -0
- data/lib/countries/sources/cldr/subdivision_updater.rb +35 -0
- data/lib/countries/sources/local/cached_loader.rb +29 -0
- data/lib/countries/sources/local/subdivision.rb +33 -0
- data/lib/countries/sources.rb +6 -0
- data/lib/countries/structure.rb +72 -0
- data/lib/countries/subdivision.rb +10 -0
- data/lib/countries/tasks/geocoding.rake +97 -0
- data/lib/countries/tasks/postal_codes.rake +48 -0
- data/lib/countries/timezones.rb +13 -0
- data/lib/countries/translations.rb +11 -0
- data/lib/countries/version.rb +1 -1
- data/lib/countries.rb +2 -0
- data/spec/00_global_spec.rb +56 -0
- data/spec/configuration_spec.rb +54 -0
- data/spec/country_spec.rb +473 -87
- data/spec/data_spec.rb +181 -0
- data/spec/mongoid_spec.rb +2 -2
- data/spec/perf_spec.rb +74 -0
- data/spec/spec_helper.rb +12 -0
- data/spec/subdivision_spec.rb +32 -0
- data/spec/thread_safety_spec.rb +46 -0
- data/spec/timezone_spec.rb +32 -0
- metadata +206 -30
- data/.travis.yml +0 -6
- data/lib/countries/cache/countries +0 -0
- data/lib/countries/data/countries/AN.yaml +0 -42
- data/lib/countries/data/countries.yaml +0 -251
- data/lib/countries/data/subdivisions/Ky.yaml +0 -55
- data/lib/countries/data/subdivisions/TF.yaml +0 -27
- data/lib/countries/data/subdivisions/Tj.yaml +0 -38
- data/spec/setup_spec.rb +0 -14
metadata
CHANGED
@@ -1,16 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: countries
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Robinson
|
8
8
|
- Joe Corcoran
|
9
9
|
- Russell Osborne
|
10
|
-
|
10
|
+
- Pedro Moreira
|
11
|
+
autorequire:
|
11
12
|
bindir: bin
|
12
13
|
cert_chain: []
|
13
|
-
date:
|
14
|
+
date: 2022-03-24 00:00:00.000000000 Z
|
14
15
|
dependencies:
|
15
16
|
- !ruby/object:Gem::Dependency
|
16
17
|
name: i18n_data
|
@@ -18,28 +19,28 @@ dependencies:
|
|
18
19
|
requirements:
|
19
20
|
- - "~>"
|
20
21
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.
|
22
|
+
version: 0.16.0
|
22
23
|
type: :runtime
|
23
24
|
prerelease: false
|
24
25
|
version_requirements: !ruby/object:Gem::Requirement
|
25
26
|
requirements:
|
26
27
|
- - "~>"
|
27
28
|
- !ruby/object:Gem::Version
|
28
|
-
version: 0.
|
29
|
+
version: 0.16.0
|
29
30
|
- !ruby/object:Gem::Dependency
|
30
|
-
name:
|
31
|
+
name: sixarm_ruby_unaccent
|
31
32
|
requirement: !ruby/object:Gem::Requirement
|
32
33
|
requirements:
|
33
34
|
- - "~>"
|
34
35
|
- !ruby/object:Gem::Version
|
35
|
-
version:
|
36
|
+
version: '1.1'
|
36
37
|
type: :runtime
|
37
38
|
prerelease: false
|
38
39
|
version_requirements: !ruby/object:Gem::Requirement
|
39
40
|
requirements:
|
40
41
|
- - "~>"
|
41
42
|
- !ruby/object:Gem::Version
|
42
|
-
version:
|
43
|
+
version: '1.1'
|
43
44
|
- !ruby/object:Gem::Dependency
|
44
45
|
name: rspec
|
45
46
|
requirement: !ruby/object:Gem::Requirement
|
@@ -55,7 +56,7 @@ dependencies:
|
|
55
56
|
- !ruby/object:Gem::Version
|
56
57
|
version: '3'
|
57
58
|
- !ruby/object:Gem::Dependency
|
58
|
-
name:
|
59
|
+
name: activesupport
|
59
60
|
requirement: !ruby/object:Gem::Requirement
|
60
61
|
requirements:
|
61
62
|
- - ">="
|
@@ -69,42 +70,181 @@ dependencies:
|
|
69
70
|
- !ruby/object:Gem::Version
|
70
71
|
version: '3'
|
71
72
|
- !ruby/object:Gem::Dependency
|
72
|
-
name:
|
73
|
+
name: nokogiri
|
73
74
|
requirement: !ruby/object:Gem::Requirement
|
74
75
|
requirements:
|
75
76
|
- - ">="
|
76
77
|
- !ruby/object:Gem::Version
|
77
|
-
version: '
|
78
|
+
version: '1.8'
|
78
79
|
type: :development
|
79
80
|
prerelease: false
|
80
81
|
version_requirements: !ruby/object:Gem::Requirement
|
81
82
|
requirements:
|
82
83
|
- - ">="
|
83
84
|
- !ruby/object:Gem::Version
|
84
|
-
version: '
|
85
|
+
version: '1.8'
|
85
86
|
description: All sorts of useful information about every country packaged as pretty
|
86
87
|
little country objects. It includes data from ISO 3166
|
87
88
|
email:
|
88
89
|
- hexorx@gmail.com
|
89
90
|
- russell@burningpony.com
|
91
|
+
- pedro@codecreations.tech
|
90
92
|
executables: []
|
91
93
|
extensions: []
|
92
94
|
extra_rdoc_files: []
|
93
95
|
files:
|
96
|
+
- ".github/workflows/tests.yml"
|
94
97
|
- ".gitignore"
|
95
98
|
- ".rspec"
|
96
|
-
- ".
|
99
|
+
- ".rubocop.yml"
|
100
|
+
- ".rubocop_todo.yml"
|
97
101
|
- CHANGELOG.md
|
98
102
|
- Gemfile
|
99
103
|
- LICENSE
|
100
104
|
- README.markdown
|
101
105
|
- Rakefile
|
106
|
+
- bin/console
|
102
107
|
- countries.gemspec
|
103
108
|
- lib/countries.rb
|
104
|
-
- lib/countries/cache/countries
|
109
|
+
- lib/countries/cache/countries.json
|
110
|
+
- lib/countries/cache/locales/ab.json
|
111
|
+
- lib/countries/cache/locales/af.json
|
112
|
+
- lib/countries/cache/locales/ak.json
|
113
|
+
- lib/countries/cache/locales/am.json
|
114
|
+
- lib/countries/cache/locales/an.json
|
115
|
+
- lib/countries/cache/locales/ar.json
|
116
|
+
- lib/countries/cache/locales/as.json
|
117
|
+
- lib/countries/cache/locales/ay.json
|
118
|
+
- lib/countries/cache/locales/az.json
|
119
|
+
- lib/countries/cache/locales/ba.json
|
120
|
+
- lib/countries/cache/locales/be.json
|
121
|
+
- lib/countries/cache/locales/bg.json
|
122
|
+
- lib/countries/cache/locales/bi.json
|
123
|
+
- lib/countries/cache/locales/bn-in.json
|
124
|
+
- lib/countries/cache/locales/bn.json
|
125
|
+
- lib/countries/cache/locales/br.json
|
126
|
+
- lib/countries/cache/locales/bs.json
|
127
|
+
- lib/countries/cache/locales/ca.json
|
128
|
+
- lib/countries/cache/locales/ce.json
|
129
|
+
- lib/countries/cache/locales/ch.json
|
130
|
+
- lib/countries/cache/locales/cs.json
|
131
|
+
- lib/countries/cache/locales/cv.json
|
132
|
+
- lib/countries/cache/locales/cy.json
|
133
|
+
- lib/countries/cache/locales/da.json
|
134
|
+
- lib/countries/cache/locales/de.json
|
135
|
+
- lib/countries/cache/locales/dv.json
|
136
|
+
- lib/countries/cache/locales/dz.json
|
137
|
+
- lib/countries/cache/locales/ee.json
|
138
|
+
- lib/countries/cache/locales/el.json
|
139
|
+
- lib/countries/cache/locales/en.json
|
140
|
+
- lib/countries/cache/locales/eo.json
|
141
|
+
- lib/countries/cache/locales/es.json
|
142
|
+
- lib/countries/cache/locales/et.json
|
143
|
+
- lib/countries/cache/locales/eu.json
|
144
|
+
- lib/countries/cache/locales/fa.json
|
145
|
+
- lib/countries/cache/locales/ff.json
|
146
|
+
- lib/countries/cache/locales/fi.json
|
147
|
+
- lib/countries/cache/locales/fo.json
|
148
|
+
- lib/countries/cache/locales/fr.json
|
149
|
+
- lib/countries/cache/locales/fy.json
|
150
|
+
- lib/countries/cache/locales/ga.json
|
151
|
+
- lib/countries/cache/locales/gl.json
|
152
|
+
- lib/countries/cache/locales/gn.json
|
153
|
+
- lib/countries/cache/locales/gu.json
|
154
|
+
- lib/countries/cache/locales/gv.json
|
155
|
+
- lib/countries/cache/locales/ha.json
|
156
|
+
- lib/countries/cache/locales/he.json
|
157
|
+
- lib/countries/cache/locales/hi.json
|
158
|
+
- lib/countries/cache/locales/hr.json
|
159
|
+
- lib/countries/cache/locales/ht.json
|
160
|
+
- lib/countries/cache/locales/hu.json
|
161
|
+
- lib/countries/cache/locales/hy.json
|
162
|
+
- lib/countries/cache/locales/ia.json
|
163
|
+
- lib/countries/cache/locales/id.json
|
164
|
+
- lib/countries/cache/locales/io.json
|
165
|
+
- lib/countries/cache/locales/is.json
|
166
|
+
- lib/countries/cache/locales/it.json
|
167
|
+
- lib/countries/cache/locales/iu.json
|
168
|
+
- lib/countries/cache/locales/ja.json
|
169
|
+
- lib/countries/cache/locales/ka.json
|
170
|
+
- lib/countries/cache/locales/ki.json
|
171
|
+
- lib/countries/cache/locales/kk.json
|
172
|
+
- lib/countries/cache/locales/kl.json
|
173
|
+
- lib/countries/cache/locales/km.json
|
174
|
+
- lib/countries/cache/locales/kn.json
|
175
|
+
- lib/countries/cache/locales/ko.json
|
176
|
+
- lib/countries/cache/locales/ku.json
|
177
|
+
- lib/countries/cache/locales/kv.json
|
178
|
+
- lib/countries/cache/locales/kw.json
|
179
|
+
- lib/countries/cache/locales/ky.json
|
180
|
+
- lib/countries/cache/locales/lo.json
|
181
|
+
- lib/countries/cache/locales/lt.json
|
182
|
+
- lib/countries/cache/locales/lv.json
|
183
|
+
- lib/countries/cache/locales/mi.json
|
184
|
+
- lib/countries/cache/locales/mk.json
|
185
|
+
- lib/countries/cache/locales/ml.json
|
186
|
+
- lib/countries/cache/locales/mn.json
|
187
|
+
- lib/countries/cache/locales/mr.json
|
188
|
+
- lib/countries/cache/locales/ms.json
|
189
|
+
- lib/countries/cache/locales/mt.json
|
190
|
+
- lib/countries/cache/locales/my.json
|
191
|
+
- lib/countries/cache/locales/na.json
|
192
|
+
- lib/countries/cache/locales/nb.json
|
193
|
+
- lib/countries/cache/locales/ne.json
|
194
|
+
- lib/countries/cache/locales/nl.json
|
195
|
+
- lib/countries/cache/locales/nn.json
|
196
|
+
- lib/countries/cache/locales/nv.json
|
197
|
+
- lib/countries/cache/locales/oc.json
|
198
|
+
- lib/countries/cache/locales/or.json
|
199
|
+
- lib/countries/cache/locales/pa.json
|
200
|
+
- lib/countries/cache/locales/pi.json
|
201
|
+
- lib/countries/cache/locales/pl.json
|
202
|
+
- lib/countries/cache/locales/ps.json
|
203
|
+
- lib/countries/cache/locales/pt-br.json
|
204
|
+
- lib/countries/cache/locales/pt.json
|
205
|
+
- lib/countries/cache/locales/ro.json
|
206
|
+
- lib/countries/cache/locales/ru.json
|
207
|
+
- lib/countries/cache/locales/rw.json
|
208
|
+
- lib/countries/cache/locales/sc.json
|
209
|
+
- lib/countries/cache/locales/sd.json
|
210
|
+
- lib/countries/cache/locales/si.json
|
211
|
+
- lib/countries/cache/locales/sk.json
|
212
|
+
- lib/countries/cache/locales/sl.json
|
213
|
+
- lib/countries/cache/locales/so.json
|
214
|
+
- lib/countries/cache/locales/sq.json
|
215
|
+
- lib/countries/cache/locales/sr.json
|
216
|
+
- lib/countries/cache/locales/sv.json
|
217
|
+
- lib/countries/cache/locales/sw.json
|
218
|
+
- lib/countries/cache/locales/ta.json
|
219
|
+
- lib/countries/cache/locales/te.json
|
220
|
+
- lib/countries/cache/locales/tg.json
|
221
|
+
- lib/countries/cache/locales/th.json
|
222
|
+
- lib/countries/cache/locales/ti.json
|
223
|
+
- lib/countries/cache/locales/tk.json
|
224
|
+
- lib/countries/cache/locales/tl.json
|
225
|
+
- lib/countries/cache/locales/tr.json
|
226
|
+
- lib/countries/cache/locales/tt.json
|
227
|
+
- lib/countries/cache/locales/ug.json
|
228
|
+
- lib/countries/cache/locales/uk.json
|
229
|
+
- lib/countries/cache/locales/ur.json
|
230
|
+
- lib/countries/cache/locales/uz.json
|
231
|
+
- lib/countries/cache/locales/ve.json
|
232
|
+
- lib/countries/cache/locales/vi.json
|
233
|
+
- lib/countries/cache/locales/wa.json
|
234
|
+
- lib/countries/cache/locales/wo.json
|
235
|
+
- lib/countries/cache/locales/xh.json
|
236
|
+
- lib/countries/cache/locales/yo.json
|
237
|
+
- lib/countries/cache/locales/zh-cn.json
|
238
|
+
- lib/countries/cache/locales/zh-hk.json
|
239
|
+
- lib/countries/cache/locales/zh-tw.json
|
240
|
+
- lib/countries/cache/locales/zh.json
|
241
|
+
- lib/countries/cache/locales/zu.json
|
242
|
+
- lib/countries/configuration.rb
|
105
243
|
- lib/countries/country.rb
|
244
|
+
- lib/countries/country/class_methods.rb
|
245
|
+
- lib/countries/country/currency_methods.rb
|
246
|
+
- lib/countries/country/emoji.rb
|
106
247
|
- lib/countries/data.rb
|
107
|
-
- lib/countries/data/countries.yaml
|
108
248
|
- lib/countries/data/countries/AD.yaml
|
109
249
|
- lib/countries/data/countries/AE.yaml
|
110
250
|
- lib/countries/data/countries/AF.yaml
|
@@ -112,7 +252,6 @@ files:
|
|
112
252
|
- lib/countries/data/countries/AI.yaml
|
113
253
|
- lib/countries/data/countries/AL.yaml
|
114
254
|
- lib/countries/data/countries/AM.yaml
|
115
|
-
- lib/countries/data/countries/AN.yaml
|
116
255
|
- lib/countries/data/countries/AO.yaml
|
117
256
|
- lib/countries/data/countries/AQ.yaml
|
118
257
|
- lib/countries/data/countries/AR.yaml
|
@@ -359,6 +498,7 @@ files:
|
|
359
498
|
- lib/countries/data/subdivisions/AE.yaml
|
360
499
|
- lib/countries/data/subdivisions/AF.yaml
|
361
500
|
- lib/countries/data/subdivisions/AG.yaml
|
501
|
+
- lib/countries/data/subdivisions/AI.yaml
|
362
502
|
- lib/countries/data/subdivisions/AL.yaml
|
363
503
|
- lib/countries/data/subdivisions/AM.yaml
|
364
504
|
- lib/countries/data/subdivisions/AO.yaml
|
@@ -375,6 +515,7 @@ files:
|
|
375
515
|
- lib/countries/data/subdivisions/BH.yaml
|
376
516
|
- lib/countries/data/subdivisions/BI.yaml
|
377
517
|
- lib/countries/data/subdivisions/BJ.yaml
|
518
|
+
- lib/countries/data/subdivisions/BM.yaml
|
378
519
|
- lib/countries/data/subdivisions/BN.yaml
|
379
520
|
- lib/countries/data/subdivisions/BO.yaml
|
380
521
|
- lib/countries/data/subdivisions/BQ.yaml
|
@@ -390,6 +531,7 @@ files:
|
|
390
531
|
- lib/countries/data/subdivisions/CG.yaml
|
391
532
|
- lib/countries/data/subdivisions/CH.yaml
|
392
533
|
- lib/countries/data/subdivisions/CI.yaml
|
534
|
+
- lib/countries/data/subdivisions/CK.yaml
|
393
535
|
- lib/countries/data/subdivisions/CL.yaml
|
394
536
|
- lib/countries/data/subdivisions/CM.yaml
|
395
537
|
- lib/countries/data/subdivisions/CN.yaml
|
@@ -421,6 +563,7 @@ files:
|
|
421
563
|
- lib/countries/data/subdivisions/GD.yaml
|
422
564
|
- lib/countries/data/subdivisions/GE.yaml
|
423
565
|
- lib/countries/data/subdivisions/GH.yaml
|
566
|
+
- lib/countries/data/subdivisions/GL.yaml
|
424
567
|
- lib/countries/data/subdivisions/GM.yaml
|
425
568
|
- lib/countries/data/subdivisions/GN.yaml
|
426
569
|
- lib/countries/data/subdivisions/GQ.yaml
|
@@ -453,9 +596,9 @@ files:
|
|
453
596
|
- lib/countries/data/subdivisions/KR.yaml
|
454
597
|
- lib/countries/data/subdivisions/KW.yaml
|
455
598
|
- lib/countries/data/subdivisions/KZ.yaml
|
456
|
-
- lib/countries/data/subdivisions/Ky.yaml
|
457
599
|
- lib/countries/data/subdivisions/LA.yaml
|
458
600
|
- lib/countries/data/subdivisions/LB.yaml
|
601
|
+
- lib/countries/data/subdivisions/LC.yaml
|
459
602
|
- lib/countries/data/subdivisions/LI.yaml
|
460
603
|
- lib/countries/data/subdivisions/LK.yaml
|
461
604
|
- lib/countries/data/subdivisions/LR.yaml
|
@@ -465,6 +608,7 @@ files:
|
|
465
608
|
- lib/countries/data/subdivisions/LV.yaml
|
466
609
|
- lib/countries/data/subdivisions/LY.yaml
|
467
610
|
- lib/countries/data/subdivisions/MA.yaml
|
611
|
+
- lib/countries/data/subdivisions/MC.yaml
|
468
612
|
- lib/countries/data/subdivisions/MD.yaml
|
469
613
|
- lib/countries/data/subdivisions/ME.yaml
|
470
614
|
- lib/countries/data/subdivisions/MG.yaml
|
@@ -497,6 +641,7 @@ files:
|
|
497
641
|
- lib/countries/data/subdivisions/PH.yaml
|
498
642
|
- lib/countries/data/subdivisions/PK.yaml
|
499
643
|
- lib/countries/data/subdivisions/PL.yaml
|
644
|
+
- lib/countries/data/subdivisions/PS.yaml
|
500
645
|
- lib/countries/data/subdivisions/PT.yaml
|
501
646
|
- lib/countries/data/subdivisions/PW.yaml
|
502
647
|
- lib/countries/data/subdivisions/PY.yaml
|
@@ -513,20 +658,23 @@ files:
|
|
513
658
|
- lib/countries/data/subdivisions/SG.yaml
|
514
659
|
- lib/countries/data/subdivisions/SH.yaml
|
515
660
|
- lib/countries/data/subdivisions/SI.yaml
|
661
|
+
- lib/countries/data/subdivisions/SJ.yaml
|
516
662
|
- lib/countries/data/subdivisions/SK.yaml
|
517
663
|
- lib/countries/data/subdivisions/SL.yaml
|
518
664
|
- lib/countries/data/subdivisions/SM.yaml
|
519
665
|
- lib/countries/data/subdivisions/SN.yaml
|
520
666
|
- lib/countries/data/subdivisions/SO.yaml
|
521
667
|
- lib/countries/data/subdivisions/SR.yaml
|
668
|
+
- lib/countries/data/subdivisions/SS.yaml
|
522
669
|
- lib/countries/data/subdivisions/ST.yaml
|
523
670
|
- lib/countries/data/subdivisions/SV.yaml
|
524
671
|
- lib/countries/data/subdivisions/SY.yaml
|
525
672
|
- lib/countries/data/subdivisions/SZ.yaml
|
526
673
|
- lib/countries/data/subdivisions/TD.yaml
|
527
|
-
- lib/countries/data/subdivisions/TF.yaml
|
528
674
|
- lib/countries/data/subdivisions/TG.yaml
|
529
675
|
- lib/countries/data/subdivisions/TH.yaml
|
676
|
+
- lib/countries/data/subdivisions/TJ.yaml
|
677
|
+
- lib/countries/data/subdivisions/TK.yaml
|
530
678
|
- lib/countries/data/subdivisions/TL.yaml
|
531
679
|
- lib/countries/data/subdivisions/TM.yaml
|
532
680
|
- lib/countries/data/subdivisions/TN.yaml
|
@@ -536,7 +684,6 @@ files:
|
|
536
684
|
- lib/countries/data/subdivisions/TV.yaml
|
537
685
|
- lib/countries/data/subdivisions/TW.yaml
|
538
686
|
- lib/countries/data/subdivisions/TZ.yaml
|
539
|
-
- lib/countries/data/subdivisions/Tj.yaml
|
540
687
|
- lib/countries/data/subdivisions/UA.yaml
|
541
688
|
- lib/countries/data/subdivisions/UG.yaml
|
542
689
|
- lib/countries/data/subdivisions/UM.yaml
|
@@ -547,6 +694,7 @@ files:
|
|
547
694
|
- lib/countries/data/subdivisions/VE.yaml
|
548
695
|
- lib/countries/data/subdivisions/VN.yaml
|
549
696
|
- lib/countries/data/subdivisions/VU.yaml
|
697
|
+
- lib/countries/data/subdivisions/WF.yaml
|
550
698
|
- lib/countries/data/subdivisions/WS.yaml
|
551
699
|
- lib/countries/data/subdivisions/YE.yaml
|
552
700
|
- lib/countries/data/subdivisions/ZA.yaml
|
@@ -555,17 +703,41 @@ files:
|
|
555
703
|
- lib/countries/data/translation_corrections.yaml
|
556
704
|
- lib/countries/global.rb
|
557
705
|
- lib/countries/iso3166.rb
|
706
|
+
- lib/countries/kwarg_struct.rb
|
558
707
|
- lib/countries/mongoid.rb
|
559
708
|
- lib/countries/setup.rb
|
709
|
+
- lib/countries/sources.rb
|
710
|
+
- lib/countries/sources/cldr/downloader.rb
|
711
|
+
- lib/countries/sources/cldr/subdivision.rb
|
712
|
+
- lib/countries/sources/cldr/subdivision_updater.rb
|
713
|
+
- lib/countries/sources/local/cached_loader.rb
|
714
|
+
- lib/countries/sources/local/subdivision.rb
|
715
|
+
- lib/countries/structure.rb
|
716
|
+
- lib/countries/subdivision.rb
|
717
|
+
- lib/countries/tasks/geocoding.rake
|
718
|
+
- lib/countries/tasks/postal_codes.rake
|
719
|
+
- lib/countries/timezones.rb
|
720
|
+
- lib/countries/translations.rb
|
560
721
|
- lib/countries/version.rb
|
722
|
+
- spec/00_global_spec.rb
|
723
|
+
- spec/configuration_spec.rb
|
561
724
|
- spec/country_spec.rb
|
725
|
+
- spec/data_spec.rb
|
562
726
|
- spec/mongoid_spec.rb
|
563
|
-
- spec/
|
727
|
+
- spec/perf_spec.rb
|
564
728
|
- spec/spec_helper.rb
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
729
|
+
- spec/subdivision_spec.rb
|
730
|
+
- spec/thread_safety_spec.rb
|
731
|
+
- spec/timezone_spec.rb
|
732
|
+
homepage: https://github.com/countries/countries
|
733
|
+
licenses:
|
734
|
+
- MIT
|
735
|
+
metadata:
|
736
|
+
bug_tracker_uri: https://github.com/countries/countries/issues
|
737
|
+
changelog_uri: https://github.com/countries/countries/blob/master/CHANGELOG.md
|
738
|
+
source_code_uri: https://github.com/countries/countries
|
739
|
+
wiki_uri: https://github.com/countries/countries/wiki
|
740
|
+
post_install_message:
|
569
741
|
rdoc_options: []
|
570
742
|
require_paths:
|
571
743
|
- lib
|
@@ -573,21 +745,25 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
573
745
|
requirements:
|
574
746
|
- - ">="
|
575
747
|
- !ruby/object:Gem::Version
|
576
|
-
version: '
|
748
|
+
version: '2.5'
|
577
749
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
578
750
|
requirements:
|
579
751
|
- - ">="
|
580
752
|
- !ruby/object:Gem::Version
|
581
753
|
version: '0'
|
582
754
|
requirements: []
|
583
|
-
|
584
|
-
|
585
|
-
signing_key:
|
755
|
+
rubygems_version: 3.3.3
|
756
|
+
signing_key:
|
586
757
|
specification_version: 4
|
587
758
|
summary: Gives you a country object full of all sorts of useful information.
|
588
759
|
test_files:
|
760
|
+
- spec/00_global_spec.rb
|
761
|
+
- spec/configuration_spec.rb
|
589
762
|
- spec/country_spec.rb
|
763
|
+
- spec/data_spec.rb
|
590
764
|
- spec/mongoid_spec.rb
|
591
|
-
- spec/
|
765
|
+
- spec/perf_spec.rb
|
592
766
|
- spec/spec_helper.rb
|
593
|
-
|
767
|
+
- spec/subdivision_spec.rb
|
768
|
+
- spec/thread_safety_spec.rb
|
769
|
+
- spec/timezone_spec.rb
|
data/.travis.yml
DELETED
Binary file
|
@@ -1,42 +0,0 @@
|
|
1
|
-
---
|
2
|
-
AN:
|
3
|
-
continent: North America
|
4
|
-
alpha2: AN
|
5
|
-
alpha3: ANT
|
6
|
-
country_code: '599'
|
7
|
-
currency: ANG
|
8
|
-
international_prefix: '00'
|
9
|
-
ioc: AHO
|
10
|
-
gec:
|
11
|
-
latitude: ''
|
12
|
-
longitude: ''
|
13
|
-
name: Netherlands Antilles
|
14
|
-
names:
|
15
|
-
- Netherlands Antilles
|
16
|
-
- Niederländische Antillen
|
17
|
-
- Antilles néerlandaises
|
18
|
-
- Antillas Holandesas
|
19
|
-
- "オランダ領アンティル"
|
20
|
-
- Nederlandse Antillen
|
21
|
-
national_destination_code_lengths:
|
22
|
-
- 2
|
23
|
-
national_number_lengths:
|
24
|
-
- 7
|
25
|
-
national_prefix: '0'
|
26
|
-
number: '530'
|
27
|
-
region: Americas
|
28
|
-
subregion: Caribbean
|
29
|
-
world_region: AMER
|
30
|
-
un_locode: AN
|
31
|
-
languages:
|
32
|
-
- nl
|
33
|
-
- en
|
34
|
-
nationality: Dutch
|
35
|
-
dissolved_on: '2010-10-10'
|
36
|
-
postal_code: false
|
37
|
-
min_longitude: "-69.166667"
|
38
|
-
min_latitude: '12.016667'
|
39
|
-
max_longitude: "-62.933333"
|
40
|
-
max_latitude: '18.05'
|
41
|
-
latitude_dec: '12.189866065979004'
|
42
|
-
longitude_dec: "-68.28852081298828"
|