countries 1.1.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -2
- data/CHANGELOG.md +4 -0
- data/README.markdown +17 -2
- data/Rakefile +2 -2
- data/countries.gemspec +2 -2
- data/lib/countries.rb +1 -1
- data/lib/{cache → countries/cache}/countries +0 -0
- data/lib/countries/country.rb +13 -9
- data/lib/countries/data.rb +3 -3
- data/lib/{data → countries/data}/countries.yaml +0 -0
- data/lib/{data → countries/data}/countries/AD.yaml +0 -0
- data/lib/{data → countries/data}/countries/AE.yaml +0 -0
- data/lib/{data → countries/data}/countries/AF.yaml +0 -0
- data/lib/{data → countries/data}/countries/AG.yaml +0 -0
- data/lib/{data → countries/data}/countries/AI.yaml +0 -0
- data/lib/{data → countries/data}/countries/AL.yaml +0 -0
- data/lib/{data → countries/data}/countries/AM.yaml +0 -0
- data/lib/{data → countries/data}/countries/AN.yaml +0 -0
- data/lib/{data → countries/data}/countries/AO.yaml +0 -0
- data/lib/{data → countries/data}/countries/AQ.yaml +2 -2
- data/lib/{data → countries/data}/countries/AR.yaml +0 -0
- data/lib/{data → countries/data}/countries/AS.yaml +0 -0
- data/lib/{data → countries/data}/countries/AT.yaml +0 -0
- data/lib/{data → countries/data}/countries/AU.yaml +0 -0
- data/lib/{data → countries/data}/countries/AW.yaml +0 -0
- data/lib/{data → countries/data}/countries/AX.yaml +4 -4
- data/lib/{data → countries/data}/countries/AZ.yaml +0 -0
- data/lib/{data → countries/data}/countries/BA.yaml +0 -0
- data/lib/{data → countries/data}/countries/BB.yaml +0 -0
- data/lib/{data → countries/data}/countries/BD.yaml +0 -0
- data/lib/{data → countries/data}/countries/BE.yaml +0 -0
- data/lib/{data → countries/data}/countries/BF.yaml +0 -0
- data/lib/{data → countries/data}/countries/BG.yaml +0 -0
- data/lib/{data → countries/data}/countries/BH.yaml +0 -0
- data/lib/{data → countries/data}/countries/BI.yaml +0 -0
- data/lib/{data → countries/data}/countries/BJ.yaml +0 -0
- data/lib/{data → countries/data}/countries/BL.yaml +0 -0
- data/lib/{data → countries/data}/countries/BM.yaml +0 -0
- data/lib/{data → countries/data}/countries/BN.yaml +0 -0
- data/lib/{data → countries/data}/countries/BO.yaml +1 -1
- data/lib/{data → countries/data}/countries/BQ.yaml +0 -0
- data/lib/{data → countries/data}/countries/BR.yaml +0 -0
- data/lib/{data → countries/data}/countries/BS.yaml +0 -0
- data/lib/{data → countries/data}/countries/BT.yaml +0 -0
- data/lib/{data → countries/data}/countries/BV.yaml +0 -0
- data/lib/{data → countries/data}/countries/BW.yaml +0 -0
- data/lib/{data → countries/data}/countries/BY.yaml +0 -0
- data/lib/{data → countries/data}/countries/BZ.yaml +0 -0
- data/lib/{data → countries/data}/countries/CA.yaml +0 -0
- data/lib/{data → countries/data}/countries/CC.yaml +0 -0
- data/lib/{data → countries/data}/countries/CD.yaml +1 -1
- data/lib/{data → countries/data}/countries/CF.yaml +0 -0
- data/lib/{data → countries/data}/countries/CG.yaml +0 -0
- data/lib/{data → countries/data}/countries/CH.yaml +0 -0
- data/lib/{data → countries/data}/countries/CI.yaml +0 -0
- data/lib/{data → countries/data}/countries/CK.yaml +0 -0
- data/lib/{data → countries/data}/countries/CL.yaml +0 -0
- data/lib/{data → countries/data}/countries/CM.yaml +0 -0
- data/lib/{data → countries/data}/countries/CN.yaml +0 -0
- data/lib/{data → countries/data}/countries/CO.yaml +0 -0
- data/lib/{data → countries/data}/countries/CR.yaml +0 -0
- data/lib/{data → countries/data}/countries/CU.yaml +0 -0
- data/lib/{data → countries/data}/countries/CV.yaml +0 -0
- data/lib/{data → countries/data}/countries/CW.yaml +0 -0
- data/lib/{data → countries/data}/countries/CX.yaml +0 -0
- data/lib/{data → countries/data}/countries/CY.yaml +0 -0
- data/lib/{data → countries/data}/countries/CZ.yaml +0 -0
- data/lib/{data → countries/data}/countries/DE.yaml +0 -0
- data/lib/{data → countries/data}/countries/DJ.yaml +0 -0
- data/lib/{data → countries/data}/countries/DK.yaml +0 -0
- data/lib/{data → countries/data}/countries/DM.yaml +0 -0
- data/lib/{data → countries/data}/countries/DO.yaml +0 -0
- data/lib/{data → countries/data}/countries/DZ.yaml +0 -0
- data/lib/{data → countries/data}/countries/EC.yaml +0 -0
- data/lib/{data → countries/data}/countries/EE.yaml +0 -0
- data/lib/{data → countries/data}/countries/EG.yaml +0 -0
- data/lib/{data → countries/data}/countries/EH.yaml +0 -0
- data/lib/{data → countries/data}/countries/ER.yaml +0 -0
- data/lib/{data → countries/data}/countries/ES.yaml +0 -0
- data/lib/{data → countries/data}/countries/ET.yaml +0 -0
- data/lib/{data → countries/data}/countries/FI.yaml +0 -0
- data/lib/{data → countries/data}/countries/FJ.yaml +0 -0
- data/lib/{data → countries/data}/countries/FK.yaml +0 -0
- data/lib/{data → countries/data}/countries/FM.yaml +0 -0
- data/lib/{data → countries/data}/countries/FO.yaml +0 -0
- data/lib/{data → countries/data}/countries/FR.yaml +0 -0
- data/lib/{data → countries/data}/countries/GA.yaml +0 -0
- data/lib/{data → countries/data}/countries/GB.yaml +0 -0
- data/lib/{data → countries/data}/countries/GD.yaml +0 -0
- data/lib/{data → countries/data}/countries/GE.yaml +0 -0
- data/lib/{data → countries/data}/countries/GF.yaml +0 -0
- data/lib/{data → countries/data}/countries/GG.yaml +0 -0
- data/lib/{data → countries/data}/countries/GH.yaml +0 -0
- data/lib/{data → countries/data}/countries/GI.yaml +0 -0
- data/lib/{data → countries/data}/countries/GL.yaml +0 -0
- data/lib/{data → countries/data}/countries/GM.yaml +0 -0
- data/lib/{data → countries/data}/countries/GN.yaml +0 -0
- data/lib/{data → countries/data}/countries/GP.yaml +0 -0
- data/lib/{data → countries/data}/countries/GQ.yaml +1 -1
- data/lib/{data → countries/data}/countries/GR.yaml +0 -0
- data/lib/{data → countries/data}/countries/GS.yaml +2 -2
- data/lib/{data → countries/data}/countries/GT.yaml +0 -0
- data/lib/{data → countries/data}/countries/GU.yaml +0 -0
- data/lib/{data → countries/data}/countries/GW.yaml +0 -0
- data/lib/{data → countries/data}/countries/GY.yaml +0 -0
- data/lib/{data → countries/data}/countries/HK.yaml +0 -0
- data/lib/{data → countries/data}/countries/HM.yaml +0 -0
- data/lib/{data → countries/data}/countries/HN.yaml +0 -0
- data/lib/{data → countries/data}/countries/HR.yaml +0 -0
- data/lib/{data → countries/data}/countries/HT.yaml +0 -0
- data/lib/{data → countries/data}/countries/HU.yaml +0 -0
- data/lib/{data → countries/data}/countries/ID.yaml +0 -0
- data/lib/{data → countries/data}/countries/IE.yaml +0 -0
- data/lib/{data → countries/data}/countries/IL.yaml +0 -0
- data/lib/{data → countries/data}/countries/IM.yaml +0 -0
- data/lib/{data → countries/data}/countries/IN.yaml +0 -0
- data/lib/{data → countries/data}/countries/IO.yaml +0 -0
- data/lib/{data → countries/data}/countries/IQ.yaml +0 -0
- data/lib/{data → countries/data}/countries/IR.yaml +0 -0
- data/lib/{data → countries/data}/countries/IS.yaml +0 -0
- data/lib/{data → countries/data}/countries/IT.yaml +1 -0
- data/lib/{data → countries/data}/countries/JE.yaml +0 -0
- data/lib/{data → countries/data}/countries/JM.yaml +0 -0
- data/lib/{data → countries/data}/countries/JO.yaml +0 -0
- data/lib/{data → countries/data}/countries/JP.yaml +0 -0
- data/lib/{data → countries/data}/countries/KE.yaml +0 -0
- data/lib/{data → countries/data}/countries/KG.yaml +0 -0
- data/lib/{data → countries/data}/countries/KH.yaml +0 -0
- data/lib/{data → countries/data}/countries/KI.yaml +0 -0
- data/lib/{data → countries/data}/countries/KM.yaml +0 -0
- data/lib/{data → countries/data}/countries/KN.yaml +0 -0
- data/lib/{data → countries/data}/countries/KP.yaml +0 -0
- data/lib/{data → countries/data}/countries/KR.yaml +0 -0
- data/lib/{data → countries/data}/countries/KW.yaml +0 -0
- data/lib/{data → countries/data}/countries/KY.yaml +0 -0
- data/lib/{data → countries/data}/countries/KZ.yaml +0 -0
- data/lib/{data → countries/data}/countries/LA.yaml +0 -0
- data/lib/{data → countries/data}/countries/LB.yaml +0 -0
- data/lib/{data → countries/data}/countries/LC.yaml +0 -0
- data/lib/{data → countries/data}/countries/LI.yaml +0 -0
- data/lib/{data → countries/data}/countries/LK.yaml +0 -0
- data/lib/{data → countries/data}/countries/LR.yaml +0 -0
- data/lib/{data → countries/data}/countries/LS.yaml +0 -0
- data/lib/{data → countries/data}/countries/LT.yaml +0 -0
- data/lib/{data → countries/data}/countries/LU.yaml +0 -0
- data/lib/{data → countries/data}/countries/LV.yaml +0 -0
- data/lib/{data → countries/data}/countries/LY.yaml +0 -0
- data/lib/{data → countries/data}/countries/MA.yaml +0 -0
- data/lib/{data → countries/data}/countries/MC.yaml +0 -0
- data/lib/{data → countries/data}/countries/MD.yaml +0 -0
- data/lib/{data → countries/data}/countries/ME.yaml +0 -0
- data/lib/{data → countries/data}/countries/MF.yaml +0 -0
- data/lib/{data → countries/data}/countries/MG.yaml +1 -1
- data/lib/{data → countries/data}/countries/MH.yaml +0 -0
- data/lib/{data → countries/data}/countries/MK.yaml +0 -0
- data/lib/{data → countries/data}/countries/ML.yaml +0 -0
- data/lib/{data → countries/data}/countries/MM.yaml +0 -0
- data/lib/{data → countries/data}/countries/MN.yaml +0 -0
- data/lib/{data → countries/data}/countries/MO.yaml +2 -2
- data/lib/{data → countries/data}/countries/MP.yaml +0 -0
- data/lib/{data → countries/data}/countries/MQ.yaml +0 -0
- data/lib/{data → countries/data}/countries/MR.yaml +0 -0
- data/lib/{data → countries/data}/countries/MS.yaml +0 -0
- data/lib/{data → countries/data}/countries/MT.yaml +0 -0
- data/lib/{data → countries/data}/countries/MU.yaml +0 -0
- data/lib/{data → countries/data}/countries/MV.yaml +0 -0
- data/lib/{data → countries/data}/countries/MW.yaml +0 -0
- data/lib/{data → countries/data}/countries/MX.yaml +0 -0
- data/lib/{data → countries/data}/countries/MY.yaml +0 -0
- data/lib/{data → countries/data}/countries/MZ.yaml +0 -0
- data/lib/{data → countries/data}/countries/NA.yaml +0 -0
- data/lib/{data → countries/data}/countries/NC.yaml +0 -0
- data/lib/{data → countries/data}/countries/NE.yaml +0 -0
- data/lib/{data → countries/data}/countries/NF.yaml +0 -0
- data/lib/{data → countries/data}/countries/NG.yaml +0 -0
- data/lib/{data → countries/data}/countries/NI.yaml +0 -0
- data/lib/{data → countries/data}/countries/NL.yaml +0 -0
- data/lib/{data → countries/data}/countries/NO.yaml +0 -0
- data/lib/{data → countries/data}/countries/NP.yaml +0 -0
- data/lib/{data → countries/data}/countries/NR.yaml +0 -0
- data/lib/{data → countries/data}/countries/NU.yaml +2 -2
- data/lib/{data → countries/data}/countries/NZ.yaml +0 -0
- data/lib/{data → countries/data}/countries/OM.yaml +0 -0
- data/lib/{data → countries/data}/countries/PA.yaml +0 -0
- data/lib/{data → countries/data}/countries/PE.yaml +0 -0
- data/lib/{data → countries/data}/countries/PF.yaml +0 -0
- data/lib/{data → countries/data}/countries/PG.yaml +0 -0
- data/lib/{data → countries/data}/countries/PH.yaml +0 -0
- data/lib/{data → countries/data}/countries/PK.yaml +0 -0
- data/lib/{data → countries/data}/countries/PL.yaml +0 -0
- data/lib/{data → countries/data}/countries/PM.yaml +0 -0
- data/lib/{data → countries/data}/countries/PN.yaml +0 -0
- data/lib/{data → countries/data}/countries/PR.yaml +0 -0
- data/lib/{data → countries/data}/countries/PS.yaml +3 -2
- data/lib/{data → countries/data}/countries/PT.yaml +0 -0
- data/lib/{data → countries/data}/countries/PW.yaml +0 -0
- data/lib/{data → countries/data}/countries/PY.yaml +0 -0
- data/lib/{data → countries/data}/countries/QA.yaml +0 -0
- data/lib/{data → countries/data}/countries/RE.yaml +0 -0
- data/lib/{data → countries/data}/countries/RO.yaml +0 -0
- data/lib/{data → countries/data}/countries/RS.yaml +0 -0
- data/lib/{data → countries/data}/countries/RU.yaml +0 -0
- data/lib/{data → countries/data}/countries/RW.yaml +0 -0
- data/lib/{data → countries/data}/countries/SA.yaml +0 -0
- data/lib/{data → countries/data}/countries/SB.yaml +0 -0
- data/lib/{data → countries/data}/countries/SC.yaml +0 -0
- data/lib/{data → countries/data}/countries/SD.yaml +0 -0
- data/lib/{data → countries/data}/countries/SE.yaml +0 -0
- data/lib/{data → countries/data}/countries/SG.yaml +0 -0
- data/lib/{data → countries/data}/countries/SH.yaml +0 -0
- data/lib/{data → countries/data}/countries/SI.yaml +0 -0
- data/lib/{data → countries/data}/countries/SJ.yaml +0 -0
- data/lib/{data → countries/data}/countries/SK.yaml +0 -0
- data/lib/{data → countries/data}/countries/SL.yaml +0 -0
- data/lib/{data → countries/data}/countries/SM.yaml +0 -0
- data/lib/{data → countries/data}/countries/SN.yaml +0 -0
- data/lib/{data → countries/data}/countries/SO.yaml +0 -0
- data/lib/{data → countries/data}/countries/SR.yaml +0 -0
- data/lib/{data → countries/data}/countries/SS.yaml +0 -0
- data/lib/{data → countries/data}/countries/ST.yaml +0 -0
- data/lib/{data → countries/data}/countries/SV.yaml +0 -0
- data/lib/{data → countries/data}/countries/SX.yaml +0 -0
- data/lib/{data → countries/data}/countries/SY.yaml +0 -0
- data/lib/{data → countries/data}/countries/SZ.yaml +0 -0
- data/lib/{data → countries/data}/countries/TC.yaml +0 -0
- data/lib/{data → countries/data}/countries/TD.yaml +0 -0
- data/lib/{data → countries/data}/countries/TF.yaml +0 -0
- data/lib/{data → countries/data}/countries/TG.yaml +0 -0
- data/lib/{data → countries/data}/countries/TH.yaml +0 -0
- data/lib/{data → countries/data}/countries/TJ.yaml +0 -0
- data/lib/{data → countries/data}/countries/TK.yaml +0 -0
- data/lib/{data → countries/data}/countries/TL.yaml +0 -0
- data/lib/{data → countries/data}/countries/TM.yaml +0 -0
- data/lib/{data → countries/data}/countries/TN.yaml +0 -0
- data/lib/{data → countries/data}/countries/TO.yaml +0 -0
- data/lib/{data → countries/data}/countries/TR.yaml +0 -0
- data/lib/{data → countries/data}/countries/TT.yaml +0 -0
- data/lib/{data → countries/data}/countries/TV.yaml +0 -0
- data/lib/{data → countries/data}/countries/TW.yaml +0 -0
- data/lib/{data → countries/data}/countries/TZ.yaml +0 -0
- data/lib/{data → countries/data}/countries/UA.yaml +0 -0
- data/lib/{data → countries/data}/countries/UG.yaml +0 -0
- data/lib/{data → countries/data}/countries/UM.yaml +0 -0
- data/lib/{data → countries/data}/countries/US.yaml +0 -0
- data/lib/{data → countries/data}/countries/UY.yaml +0 -0
- data/lib/{data → countries/data}/countries/UZ.yaml +0 -0
- data/lib/{data → countries/data}/countries/VA.yaml +0 -0
- data/lib/{data → countries/data}/countries/VC.yaml +0 -0
- data/lib/{data → countries/data}/countries/VE.yaml +0 -0
- data/lib/{data → countries/data}/countries/VG.yaml +0 -0
- data/lib/{data → countries/data}/countries/VI.yaml +0 -0
- data/lib/{data → countries/data}/countries/VN.yaml +0 -0
- data/lib/{data → countries/data}/countries/VU.yaml +1 -1
- data/lib/{data → countries/data}/countries/WF.yaml +0 -0
- data/lib/{data → countries/data}/countries/WS.yaml +0 -0
- data/lib/{data → countries/data}/countries/YE.yaml +0 -0
- data/lib/{data → countries/data}/countries/YT.yaml +0 -0
- data/lib/{data → countries/data}/countries/ZA.yaml +0 -0
- data/lib/{data → countries/data}/countries/ZM.yaml +0 -0
- data/lib/{data → countries/data}/countries/ZW.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/AD.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/AE.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/AF.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/AG.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/AL.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/AM.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/AO.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/AR.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/AT.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/AU.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/AZ.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/BA.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/BB.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/BD.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/BE.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/BF.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/BG.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/BH.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/BI.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/BJ.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/BN.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/BO.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/BQ.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/BR.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/BS.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/BT.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/BW.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/BY.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/BZ.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/CA.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/CD.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/CF.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/CG.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/CH.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/CI.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/CL.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/CM.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/CN.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/CO.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/CR.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/CU.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/CV.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/CY.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/CZ.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/DE.yaml +1 -0
- data/lib/{data → countries/data}/subdivisions/DJ.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/DK.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/DM.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/DO.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/DZ.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/EC.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/EE.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/EG.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/EH.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/ER.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/ES.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/ET.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/FI.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/FJ.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/FM.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/FR.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/GA.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/GB.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/GD.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/GE.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/GH.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/GM.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/GN.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/GQ.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/GR.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/GT.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/GW.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/GY.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/HN.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/HR.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/HT.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/HU.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/ID.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/IE.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/IL.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/IN.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/IQ.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/IR.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/IS.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/IT.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/JM.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/JO.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/JP.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/KE.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/KG.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/KH.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/KI.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/KM.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/KN.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/KP.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/KR.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/KW.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/KZ.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/Ky.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/LA.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/LB.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/LI.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/LK.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/LR.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/LS.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/LT.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/LU.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/LV.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/LY.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/MA.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/MD.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/ME.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/MG.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/MH.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/MK.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/ML.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/MM.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/MN.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/MR.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/MT.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/MU.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/MV.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/MW.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/MX.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/MY.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/MZ.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/NA.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/NE.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/NG.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/NI.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/NL.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/NO.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/NP.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/NR.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/NZ.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/OM.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/PA.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/PE.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/PG.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/PH.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/PK.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/PL.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/PT.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/PW.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/PY.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/QA.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/RO.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/RS.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/RU.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/RW.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/SA.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/SB.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/SC.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/SD.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/SE.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/SG.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/SH.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/SI.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/SK.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/SL.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/SM.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/SN.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/SO.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/SR.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/ST.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/SV.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/SY.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/SZ.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/TD.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/TF.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/TG.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/TH.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/TL.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/TM.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/TN.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/TO.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/TR.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/TT.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/TV.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/TW.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/TZ.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/Tj.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/UA.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/UG.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/UM.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/US.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/UY.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/UZ.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/VC.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/VE.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/VN.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/VU.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/WS.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/YE.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/ZA.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/ZM.yaml +0 -0
- data/lib/{data → countries/data}/subdivisions/ZW.yaml +0 -0
- data/lib/{data → countries/data}/translation_corrections.yaml +0 -0
- data/lib/countries/global.rb +7 -0
- data/lib/{iso3166.rb → countries/iso3166.rb} +0 -1
- data/lib/countries/mongoid.rb +0 -2
- data/lib/countries/version.rb +1 -1
- data/spec/country_spec.rb +13 -2
- data/spec/mongoid_spec.rb +0 -2
- data/spec/spec_helper.rb +1 -1
- metadata +456 -455
- data/.document +0 -5
- data/lib/global.rb +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 615f8b882b8aefd4336426a94b54e832a6e4d81f
|
4
|
+
data.tar.gz: a911e2ce784df6ebefa016e000c7df6f62f784c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2bdd3c7eb450016b8a00ccb890ff1a1290df0265afc8a00d2f54656fc9d656cc81de5eb879275b167e77500574f2c8c8374a0ee3b8066f4c182e7e8f6e2e956
|
7
|
+
data.tar.gz: 12c948c3f07d05150b121995a95c904e239c71c5ad245fa0904734ebaab4593e08dccd4ac40e9c605c7a289bbdd929fa32de29ffb4728a697e47ee0049b89e59
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
4
4
|
|
5
|
+
## 1.2.0
|
6
|
+
- Cleaning up Global Load Path @rposborne
|
7
|
+
- Add MOP as the currency for Macao @kriskhaira
|
8
|
+
|
5
9
|
## 1.1.0
|
6
10
|
- Adding compare operation to country @guilleart
|
7
11
|
- Content Updates @rposbone
|
data/README.markdown
CHANGED
@@ -3,7 +3,7 @@ Countries
|
|
3
3
|
|
4
4
|
Countries is a collection of all sorts of useful information for every country in the ISO 3166 standard. It contains info for the following standards ISO3166-1(countries), ISO3166-2(states/subdivisions), ISO4217(currency) and E.164(phone numbers). I will add any country based data I can get access to. I hope this to be a repository for all country based information.
|
5
5
|
|
6
|
-
[![Build Status](https://travis-ci.org/hexorx/countries.
|
6
|
+
[![Build Status](https://travis-ci.org/hexorx/countries.svg)](https://travis-ci.org/hexorx/countries) [![Dependency Status](https://gemnasium.com/hexorx/countries.svg)](https://gemnasium.com/hexorx/countries) [![Code Climate](https://codeclimate.com/github/hexorx/countries.svg)](https://codeclimate.com/github/hexorx/countries) [![Waffle.io Issues in Ready](https://badge.waffle.io/hexorx/countries.svg)](http://waffle.io/hexorx/countries)
|
7
7
|
|
8
8
|
Installation
|
9
9
|
------------
|
@@ -20,8 +20,18 @@ Or you can install via bundler Gemfile if you are using Rails 3:
|
|
20
20
|
|
21
21
|
Or you can install via bundler Gemfile with a Country Helper class:
|
22
22
|
|
23
|
+
gem 'countries', :require => 'countries/global'
|
24
|
+
|
25
|
+
Upgrading to 1.2.0
|
26
|
+
-----------
|
27
|
+
|
23
28
|
gem 'countries', :require => 'global'
|
24
29
|
|
30
|
+
has become
|
31
|
+
|
32
|
+
gem 'countries', :require => 'countries/global'
|
33
|
+
|
34
|
+
|
25
35
|
Basic Usage
|
26
36
|
-----------
|
27
37
|
|
@@ -62,6 +72,11 @@ Country Info
|
|
62
72
|
c.name #=> "United States"
|
63
73
|
c.names #=> ["United States of America", "Vereinigte Staaten von Amerika", "États-Unis", "Estados Unidos"]
|
64
74
|
|
75
|
+
# Get the names for a country translated to its local languages
|
76
|
+
c = Country[:BE]
|
77
|
+
c.local_names #=> ["België", "Belgique", "Belgien"]
|
78
|
+
c.local_name #=> "België"
|
79
|
+
|
65
80
|
# Get a specific translation
|
66
81
|
c.translation('de') #=> 'Vereinigte Staaten von Amerika'
|
67
82
|
c.translations['fr'] #=> "États-Unis"
|
@@ -186,7 +201,7 @@ Any additions should be directed upstream to (pkg-isocodes)[http://anonscm.debia
|
|
186
201
|
New Bugs can be filed upstream here https://alioth.debian.org/projects/pkg-iso-codes/
|
187
202
|
|
188
203
|
Any corrections can be applied in translations_corrections.yaml these will be injected during
|
189
|
-
the next ```rake
|
204
|
+
the next ```rake update_cache```
|
190
205
|
|
191
206
|
* Fork the project.
|
192
207
|
* Make your feature addition or bug fix.
|
data/Rakefile
CHANGED
@@ -62,7 +62,7 @@ task :update_cache do
|
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
65
|
-
File.open(File.join(File.dirname(__FILE__), 'lib', 'cache',
|
65
|
+
File.open(File.join(File.dirname(__FILE__), 'lib', 'cache', 'countries'), 'wb') { |f| f.write(Marshal.dump(data)) }
|
66
66
|
end
|
67
67
|
|
68
68
|
require 'geocoder'
|
@@ -93,7 +93,7 @@ task :fetch_subdivisions do
|
|
93
93
|
|
94
94
|
# Handle special geocoding cases where Google defaults to well known
|
95
95
|
# cities, instead of the states.
|
96
|
-
if
|
96
|
+
if c.alpha2 == 'US' && %w(NY WA OK).include?(code)
|
97
97
|
location = "#{data['name']} State, United States"
|
98
98
|
end
|
99
99
|
|
data/countries.gemspec
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
require File.expand_path('../lib/countries/version', __FILE__)
|
3
3
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
|
-
gem.authors = ['Josh Robinson', 'Joe Corcoran']
|
6
|
-
gem.email = ['hexorx@gmail.com']
|
5
|
+
gem.authors = ['Josh Robinson', 'Joe Corcoran', 'Russell Osborne']
|
6
|
+
gem.email = ['hexorx@gmail.com', 'russell@burningpony.com']
|
7
7
|
gem.description = 'All sorts of useful information about every country packaged as pretty little country objects. It includes data from ISO 3166'
|
8
8
|
gem.summary = 'Gives you a country object full of all sorts of useful information.'
|
9
9
|
gem.homepage = 'http://github.com/hexorx/countries'
|
data/lib/countries.rb
CHANGED
File without changes
|
data/lib/countries/country.rb
CHANGED
@@ -66,7 +66,7 @@ class ISO3166::Country
|
|
66
66
|
end
|
67
67
|
|
68
68
|
def <=>(other)
|
69
|
-
|
69
|
+
to_s <=> other.to_s
|
70
70
|
end
|
71
71
|
|
72
72
|
def currency
|
@@ -78,13 +78,13 @@ class ISO3166::Country
|
|
78
78
|
end
|
79
79
|
|
80
80
|
def subdivisions
|
81
|
-
@subdivisions ||= subdivisions? ? YAML.load_file(File.join(File.dirname(__FILE__), '
|
81
|
+
@subdivisions ||= subdivisions? ? YAML.load_file(File.join(File.dirname(__FILE__), 'data', 'subdivisions', "#{alpha2}.yaml")) : {}
|
82
82
|
end
|
83
83
|
|
84
84
|
alias_method :states, :subdivisions
|
85
85
|
|
86
86
|
def subdivisions?
|
87
|
-
File.exist?(File.join(File.dirname(__FILE__), '
|
87
|
+
File.exist?(File.join(File.dirname(__FILE__), 'data', 'subdivisions', "#{alpha2}.yaml"))
|
88
88
|
end
|
89
89
|
|
90
90
|
def in_eu?
|
@@ -99,13 +99,17 @@ class ISO3166::Country
|
|
99
99
|
@data['translations'][locale.downcase]
|
100
100
|
end
|
101
101
|
|
102
|
-
|
102
|
+
def local_names
|
103
|
+
@local_names ||= languages.map { |language| translations[language] }
|
104
|
+
end
|
105
|
+
|
106
|
+
def local_name
|
107
|
+
@local_name ||= local_names.first
|
108
|
+
end
|
103
109
|
|
104
110
|
class << self
|
105
111
|
def new(country_data)
|
106
|
-
if country_data.is_a?(Hash) || codes.include?(country_data.to_s.upcase)
|
107
|
-
super
|
108
|
-
end
|
112
|
+
super if country_data.is_a?(Hash) || codes.include?(country_data.to_s.upcase)
|
109
113
|
end
|
110
114
|
|
111
115
|
def codes
|
@@ -113,7 +117,7 @@ class ISO3166::Country
|
|
113
117
|
end
|
114
118
|
|
115
119
|
def all(&blk)
|
116
|
-
blk ||= proc {|
|
120
|
+
blk ||= proc { |_alpha2, d| ISO3166::Country.new(d) }
|
117
121
|
Setup.data.map(&blk)
|
118
122
|
end
|
119
123
|
|
@@ -125,7 +129,7 @@ class ISO3166::Country
|
|
125
129
|
|
126
130
|
def all_names_with_codes(locale = 'en')
|
127
131
|
ISO3166::Country.all.map do |c|
|
128
|
-
[(c.translation(locale) || c.name
|
132
|
+
[(c.translation(locale) || c.name).html_safe, c.alpha2]
|
129
133
|
end.sort_by { |d| d[0] }
|
130
134
|
end
|
131
135
|
|
data/lib/countries/data.rb
CHANGED
@@ -9,11 +9,11 @@ module ISO3166
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def call
|
12
|
-
|
12
|
+
@@cache[@alpha2]
|
13
13
|
end
|
14
14
|
|
15
15
|
def self.codes
|
16
|
-
@@codes ||= Data.load_yaml(['data', 'countries.yaml']).freeze
|
16
|
+
@@codes ||= Data.load_yaml(['countries', 'data', 'countries.yaml']).freeze
|
17
17
|
end
|
18
18
|
|
19
19
|
private
|
@@ -27,7 +27,7 @@ module ISO3166
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def self.load_cache
|
30
|
-
@@cache ||= Marshal.load(File.binread(datafile_path %w(cache countries )))
|
30
|
+
@@cache ||= Marshal.load(File.binread(datafile_path %w(countries cache countries )))
|
31
31
|
end
|
32
32
|
end
|
33
33
|
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -4,10 +4,10 @@ AX:
|
|
4
4
|
alpha2: AX
|
5
5
|
alpha3: ALA
|
6
6
|
country_code: '358'
|
7
|
-
currency:
|
7
|
+
currency: EUR
|
8
8
|
international_prefix: ''
|
9
|
-
ioc:
|
10
|
-
gec:
|
9
|
+
ioc:
|
10
|
+
gec:
|
11
11
|
latitude: ''
|
12
12
|
longitude: ''
|
13
13
|
name: "Åland Islands"
|
@@ -23,7 +23,7 @@ AX:
|
|
23
23
|
region: Europe
|
24
24
|
subregion: Northern Europe
|
25
25
|
world_region: EMEA
|
26
|
-
un_locode:
|
26
|
+
un_locode:
|
27
27
|
languages:
|
28
28
|
- sv
|
29
29
|
nationality: Swedish
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|