countries 3.1.0 → 4.0.0
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 +37 -0
- data/.gitignore +1 -0
- data/CHANGELOG.md +28 -1
- data/Gemfile +5 -0
- data/README.markdown +30 -27
- data/Rakefile +5 -3
- data/countries.gemspec +8 -5
- data/lib/countries.rb +0 -1
- data/lib/countries/cache/countries.json +1 -1
- data/lib/countries/cache/locales/an.json +1 -1
- data/lib/countries/cache/locales/be.json +1 -1
- data/lib/countries/cache/locales/cv.json +1 -1
- data/lib/countries/cache/locales/he.json +1 -1
- data/lib/countries/cache/locales/hr.json +1 -1
- data/lib/countries/cache/locales/ru.json +1 -1
- data/lib/countries/cache/locales/sv.json +1 -1
- data/lib/countries/cache/locales/tr.json +1 -1
- data/lib/countries/country.rb +4 -0
- data/lib/countries/country/class_methods.rb +10 -3
- data/lib/countries/data.rb +48 -22
- data/lib/countries/data/countries/AL.yaml +2 -2
- data/lib/countries/data/countries/AM.yaml +2 -2
- data/lib/countries/data/countries/AO.yaml +10 -10
- data/lib/countries/data/countries/AQ.yaml +2 -2
- data/lib/countries/data/countries/AS.yaml +2 -2
- data/lib/countries/data/countries/AT.yaml +3 -3
- data/lib/countries/data/countries/BA.yaml +4 -4
- data/lib/countries/data/countries/BD.yaml +2 -2
- data/lib/countries/data/countries/BE.yaml +1 -1
- data/lib/countries/data/countries/BF.yaml +8 -8
- data/lib/countries/data/countries/BG.yaml +4 -4
- data/lib/countries/data/countries/BH.yaml +4 -4
- data/lib/countries/data/countries/BI.yaml +6 -6
- data/lib/countries/data/countries/BJ.yaml +2 -2
- data/lib/countries/data/countries/BR.yaml +4 -4
- data/lib/countries/data/countries/BT.yaml +6 -6
- data/lib/countries/data/countries/BV.yaml +10 -10
- data/lib/countries/data/countries/BW.yaml +4 -4
- data/lib/countries/data/countries/CC.yaml +2 -2
- data/lib/countries/data/countries/CF.yaml +2 -2
- data/lib/countries/data/countries/CG.yaml +2 -2
- data/lib/countries/data/countries/CH.yaml +3 -3
- data/lib/countries/data/countries/CI.yaml +2 -2
- data/lib/countries/data/countries/CL.yaml +2 -2
- data/lib/countries/data/countries/CN.yaml +4 -4
- data/lib/countries/data/countries/CO.yaml +4 -4
- data/lib/countries/data/countries/CR.yaml +2 -2
- data/lib/countries/data/countries/CV.yaml +2 -2
- data/lib/countries/data/countries/CY.yaml +2 -2
- data/lib/countries/data/countries/CZ.yaml +2 -2
- data/lib/countries/data/countries/DE.yaml +2 -2
- data/lib/countries/data/countries/DJ.yaml +6 -6
- data/lib/countries/data/countries/DK.yaml +2 -2
- data/lib/countries/data/countries/DZ.yaml +6 -6
- data/lib/countries/data/countries/EC.yaml +4 -4
- data/lib/countries/data/countries/EE.yaml +3 -3
- data/lib/countries/data/countries/ES.yaml +1 -1
- data/lib/countries/data/countries/FI.yaml +5 -5
- data/lib/countries/data/countries/FK.yaml +2 -2
- data/lib/countries/data/countries/FM.yaml +2 -2
- data/lib/countries/data/countries/FO.yaml +5 -5
- data/lib/countries/data/countries/FR.yaml +3 -3
- data/lib/countries/data/countries/GE.yaml +4 -4
- data/lib/countries/data/countries/GG.yaml +10 -10
- data/lib/countries/data/countries/GH.yaml +4 -4
- data/lib/countries/data/countries/GI.yaml +2 -2
- data/lib/countries/data/countries/GL.yaml +6 -6
- data/lib/countries/data/countries/GM.yaml +4 -4
- data/lib/countries/data/countries/GN.yaml +2 -2
- data/lib/countries/data/countries/GR.yaml +2 -2
- data/lib/countries/data/countries/GS.yaml +2 -2
- data/lib/countries/data/countries/GT.yaml +2 -2
- data/lib/countries/data/countries/HK.yaml +4 -4
- data/lib/countries/data/countries/HN.yaml +2 -2
- data/lib/countries/data/countries/HR.yaml +3 -3
- data/lib/countries/data/countries/HU.yaml +7 -7
- data/lib/countries/data/countries/IE.yaml +10 -10
- data/lib/countries/data/countries/IM.yaml +8 -8
- data/lib/countries/data/countries/IN.yaml +2 -2
- data/lib/countries/data/countries/IO.yaml +2 -2
- data/lib/countries/data/countries/IQ.yaml +2 -2
- data/lib/countries/data/countries/IS.yaml +4 -4
- data/lib/countries/data/countries/IT.yaml +1 -1
- data/lib/countries/data/countries/JO.yaml +2 -2
- data/lib/countries/data/countries/KE.yaml +2 -2
- data/lib/countries/data/countries/KG.yaml +2 -2
- data/lib/countries/data/countries/KI.yaml +6 -6
- data/lib/countries/data/countries/KP.yaml +3 -2
- data/lib/countries/data/countries/KZ.yaml +2 -2
- data/lib/countries/data/countries/LA.yaml +6 -6
- data/lib/countries/data/countries/LT.yaml +6 -6
- data/lib/countries/data/countries/LV.yaml +4 -4
- data/lib/countries/data/countries/MA.yaml +4 -4
- data/lib/countries/data/countries/MD.yaml +8 -8
- data/lib/countries/data/countries/ME.yaml +2 -2
- data/lib/countries/data/countries/MH.yaml +2 -2
- data/lib/countries/data/countries/MK.yaml +2 -2
- data/lib/countries/data/countries/ML.yaml +4 -4
- data/lib/countries/data/countries/MN.yaml +8 -8
- data/lib/countries/data/countries/MR.yaml +2 -2
- data/lib/countries/data/countries/MT.yaml +2 -2
- data/lib/countries/data/countries/MV.yaml +2 -2
- data/lib/countries/data/countries/MW.yaml +2 -2
- data/lib/countries/data/countries/MX.yaml +2 -2
- data/lib/countries/data/countries/MY.yaml +2 -2
- data/lib/countries/data/countries/NA.yaml +4 -4
- data/lib/countries/data/countries/NE.yaml +4 -4
- data/lib/countries/data/countries/NI.yaml +2 -2
- data/lib/countries/data/countries/NL.yaml +2 -2
- data/lib/countries/data/countries/NO.yaml +4 -4
- data/lib/countries/data/countries/NP.yaml +6 -6
- data/lib/countries/data/countries/OM.yaml +2 -2
- data/lib/countries/data/countries/PA.yaml +2 -2
- data/lib/countries/data/countries/PE.yaml +4 -4
- data/lib/countries/data/countries/PF.yaml +4 -4
- data/lib/countries/data/countries/PH.yaml +2 -2
- data/lib/countries/data/countries/PK.yaml +4 -4
- data/lib/countries/data/countries/PL.yaml +4 -4
- data/lib/countries/data/countries/PR.yaml +8 -8
- data/lib/countries/data/countries/PT.yaml +5 -5
- data/lib/countries/data/countries/PY.yaml +2 -2
- data/lib/countries/data/countries/QA.yaml +2 -2
- data/lib/countries/data/countries/RO.yaml +6 -6
- data/lib/countries/data/countries/RU.yaml +2 -2
- data/lib/countries/data/countries/RW.yaml +2 -2
- data/lib/countries/data/countries/SA.yaml +2 -2
- data/lib/countries/data/countries/SC.yaml +2 -2
- data/lib/countries/data/countries/SD.yaml +2 -2
- data/lib/countries/data/countries/SE.yaml +4 -4
- data/lib/countries/data/countries/SH.yaml +4 -4
- data/lib/countries/data/countries/SI.yaml +4 -4
- data/lib/countries/data/countries/SJ.yaml +5 -5
- data/lib/countries/data/countries/SK.yaml +6 -6
- data/lib/countries/data/countries/SL.yaml +2 -2
- data/lib/countries/data/countries/SN.yaml +4 -4
- data/lib/countries/data/countries/TF.yaml +5 -5
- data/lib/countries/data/countries/TG.yaml +6 -6
- data/lib/countries/data/countries/TV.yaml +2 -2
- data/lib/countries/data/countries/TZ.yaml +2 -2
- data/lib/countries/data/countries/UA.yaml +5 -5
- data/lib/countries/data/countries/UG.yaml +4 -4
- data/lib/countries/data/countries/UY.yaml +2 -2
- data/lib/countries/data/countries/VC.yaml +2 -2
- data/lib/countries/data/countries/VE.yaml +2 -2
- data/lib/countries/data/countries/VN.yaml +4 -4
- data/lib/countries/data/countries/WS.yaml +2 -2
- data/lib/countries/data/countries/ZA.yaml +2 -2
- data/lib/countries/data/countries/ZM.yaml +4 -4
- data/lib/countries/data/countries/ZW.yaml +4 -4
- data/lib/countries/data/subdivisions/AD.yaml +35 -28
- data/lib/countries/data/subdivisions/AE.yaml +142 -63
- data/lib/countries/data/subdivisions/AF.yaml +569 -298
- data/lib/countries/data/subdivisions/AG.yaml +141 -68
- data/lib/countries/data/subdivisions/AI.yaml +139 -125
- data/lib/countries/data/subdivisions/AL.yaml +472 -156
- data/lib/countries/data/subdivisions/AM.yaml +235 -99
- data/lib/countries/data/subdivisions/AO.yaml +344 -162
- data/lib/countries/data/subdivisions/AR.yaml +447 -210
- data/lib/countries/data/subdivisions/AS.yaml +64 -45
- data/lib/countries/data/subdivisions/AT.yaml +200 -81
- data/lib/countries/data/subdivisions/AU.yaml +211 -72
- data/lib/countries/data/subdivisions/AW.yaml +9 -0
- data/lib/countries/data/subdivisions/AX.yaml +38 -27
- data/lib/countries/data/subdivisions/AZ.yaml +1547 -666
- data/lib/countries/data/subdivisions/BA.yaml +198 -28
- data/lib/countries/data/subdivisions/BB.yaml +187 -99
- data/lib/countries/data/subdivisions/BD.yaml +1246 -585
- data/lib/countries/data/subdivisions/BE.yaml +276 -100
- data/lib/countries/data/subdivisions/BF.yaml +987 -418
- data/lib/countries/data/subdivisions/BG.yaml +599 -246
- data/lib/countries/data/subdivisions/BH.yaml +73 -40
- data/lib/countries/data/subdivisions/BI.yaml +299 -141
- data/lib/countries/data/subdivisions/BJ.yaml +214 -108
- data/lib/countries/data/subdivisions/BL.yaml +11 -0
- data/lib/countries/data/subdivisions/BM.yaml +110 -99
- data/lib/countries/data/subdivisions/BN.yaml +63 -36
- data/lib/countries/data/subdivisions/BO.yaml +157 -81
- data/lib/countries/data/subdivisions/BQ.yaml +61 -26
- data/lib/countries/data/subdivisions/BR.yaml +663 -243
- data/lib/countries/data/subdivisions/BS.yaml +637 -151
- data/lib/countries/data/subdivisions/BT.yaml +346 -180
- data/lib/countries/data/subdivisions/BW.yaml +291 -87
- data/lib/countries/data/subdivisions/BY.yaml +140 -59
- data/lib/countries/data/subdivisions/BZ.yaml +97 -54
- data/lib/countries/data/subdivisions/CA.yaml +356 -118
- data/lib/countries/data/subdivisions/CD.yaml +453 -97
- data/lib/countries/data/subdivisions/CF.yaml +289 -153
- data/lib/countries/data/subdivisions/CG.yaml +214 -98
- data/lib/countries/data/subdivisions/CH.yaml +593 -234
- data/lib/countries/data/subdivisions/CI.yaml +443 -90
- data/lib/countries/data/subdivisions/CK.yaml +110 -99
- data/lib/countries/data/subdivisions/CL.yaml +262 -148
- data/lib/countries/data/subdivisions/CM.yaml +186 -90
- data/lib/countries/data/subdivisions/CO.yaml +610 -297
- data/lib/countries/data/subdivisions/CP.yaml +4 -0
- data/lib/countries/data/subdivisions/CR.yaml +119 -63
- data/lib/countries/data/subdivisions/CU.yaml +269 -144
- data/lib/countries/data/subdivisions/CV.yaml +416 -151
- data/lib/countries/data/subdivisions/CW.yaml +9 -0
- data/lib/countries/data/subdivisions/CY.yaml +102 -54
- data/lib/countries/data/subdivisions/CZ.yaml +2543 -197
- data/lib/countries/data/subdivisions/DE.yaml +450 -144
- data/lib/countries/data/subdivisions/DJ.yaml +108 -54
- data/lib/countries/data/subdivisions/DK.yaml +194 -109
- data/lib/countries/data/subdivisions/DM.yaml +159 -90
- data/lib/countries/data/subdivisions/DO.yaml +671 -289
- data/lib/countries/data/subdivisions/DZ.yaml +812 -435
- data/lib/countries/data/subdivisions/EC.yaml +390 -215
- data/lib/countries/data/subdivisions/EE.yaml +273 -135
- data/lib/countries/data/subdivisions/EG.yaml +472 -243
- data/lib/countries/data/subdivisions/EH.yaml +24 -16
- data/lib/countries/data/subdivisions/ER.yaml +109 -54
- data/lib/countries/data/subdivisions/ES.yaml +1804 -620
- data/lib/countries/data/subdivisions/ET.yaml +204 -99
- data/lib/countries/data/subdivisions/FI.yaml +408 -43
- data/lib/countries/data/subdivisions/FJ.yaml +312 -58
- data/lib/countries/data/subdivisions/FM.yaml +64 -36
- data/lib/countries/data/subdivisions/FO.yaml +60 -54
- data/lib/countries/data/subdivisions/FR.yaml +2790 -982
- data/lib/countries/data/subdivisions/GA.yaml +159 -81
- data/lib/countries/data/subdivisions/GB.yaml +4958 -1973
- data/lib/countries/data/subdivisions/GD.yaml +114 -63
- data/lib/countries/data/subdivisions/GE.yaml +236 -108
- data/lib/countries/data/subdivisions/GF.yaml +11 -0
- data/lib/countries/data/subdivisions/GG.yaml +110 -99
- data/lib/countries/data/subdivisions/GH.yaml +254 -88
- data/lib/countries/data/subdivisions/GL.yaml +87 -4
- data/lib/countries/data/subdivisions/GM.yaml +122 -54
- data/lib/countries/data/subdivisions/GN.yaml +706 -312
- data/lib/countries/data/subdivisions/GP.yaml +11 -0
- data/lib/countries/data/subdivisions/GQ.yaml +141 -81
- data/lib/countries/data/subdivisions/GR.yaml +642 -226
- data/lib/countries/data/subdivisions/GT.yaml +351 -198
- data/lib/countries/data/subdivisions/GU.yaml +198 -171
- data/lib/countries/data/subdivisions/GW.yaml +189 -79
- data/lib/countries/data/subdivisions/GY.yaml +163 -90
- data/lib/countries/data/subdivisions/HK.yaml +194 -162
- data/lib/countries/data/subdivisions/HN.yaml +275 -162
- data/lib/countries/data/subdivisions/HR.yaml +428 -189
- data/lib/countries/data/subdivisions/HT.yaml +178 -81
- data/lib/countries/data/subdivisions/HU.yaml +792 -381
- data/lib/countries/data/subdivisions/IC.yaml +4 -0
- data/lib/countries/data/subdivisions/ID.yaml +2303 -1868
- data/lib/countries/data/subdivisions/IE.yaml +665 -304
- data/lib/countries/data/subdivisions/IL.yaml +114 -54
- data/lib/countries/data/subdivisions/IM.yaml +240 -216
- data/lib/countries/data/subdivisions/IN.yaml +972 -337
- data/lib/countries/data/subdivisions/IQ.yaml +316 -157
- data/lib/countries/data/subdivisions/IR.yaml +591 -268
- data/lib/countries/data/subdivisions/IS.yaml +158 -76
- data/lib/countries/data/subdivisions/IT.yaml +2686 -1009
- data/lib/countries/data/subdivisions/JE.yaml +120 -108
- data/lib/countries/data/subdivisions/JM.yaml +243 -126
- data/lib/countries/data/subdivisions/JO.yaml +182 -97
- data/lib/countries/data/subdivisions/JP.yaml +950 -425
- data/lib/countries/data/subdivisions/KE.yaml +800 -79
- data/lib/countries/data/subdivisions/KG.yaml +186 -72
- data/lib/countries/data/subdivisions/KH.yaml +436 -216
- data/lib/countries/data/subdivisions/KI.yaml +57 -27
- data/lib/countries/data/subdivisions/KM.yaml +49 -27
- data/lib/countries/data/subdivisions/KN.yaml +307 -127
- data/lib/countries/data/subdivisions/KP.yaml +361 -67
- data/lib/countries/data/subdivisions/KR.yaml +376 -134
- data/lib/countries/data/subdivisions/KW.yaml +88 -54
- data/lib/countries/data/subdivisions/KY.yaml +36 -24
- data/lib/countries/data/subdivisions/KZ.yaml +360 -151
- data/lib/countries/data/subdivisions/LA.yaml +296 -157
- data/lib/countries/data/subdivisions/LB.yaml +130 -49
- data/lib/countries/data/subdivisions/LC.yaml +167 -10
- data/lib/countries/data/subdivisions/LI.yaml +154 -68
- data/lib/countries/data/subdivisions/LK.yaml +556 -233
- data/lib/countries/data/subdivisions/LR.yaml +253 -126
- data/lib/countries/data/subdivisions/LS.yaml +149 -90
- data/lib/countries/data/subdivisions/LT.yaml +1090 -149
- data/lib/countries/data/subdivisions/LU.yaml +198 -27
- data/lib/countries/data/subdivisions/LV.yaml +2332 -277
- data/lib/countries/data/subdivisions/LY.yaml +341 -184
- data/lib/countries/data/subdivisions/MA.yaml +1487 -562
- data/lib/countries/data/subdivisions/MC.yaml +265 -17
- data/lib/countries/data/subdivisions/MD.yaml +633 -127
- data/lib/countries/data/subdivisions/ME.yaml +429 -190
- data/lib/countries/data/subdivisions/MF.yaml +9 -0
- data/lib/countries/data/subdivisions/MG.yaml +93 -54
- data/lib/countries/data/subdivisions/MH.yaml +429 -213
- data/lib/countries/data/subdivisions/MK.yaml +3083 -425
- data/lib/countries/data/subdivisions/ML.yaml +185 -80
- data/lib/countries/data/subdivisions/MM.yaml +274 -126
- data/lib/countries/data/subdivisions/MN.yaml +420 -198
- data/lib/countries/data/subdivisions/MO.yaml +9 -0
- data/lib/countries/data/subdivisions/MP.yaml +54 -36
- data/lib/countries/data/subdivisions/MQ.yaml +11 -0
- data/lib/countries/data/subdivisions/MR.yaml +249 -115
- data/lib/countries/data/subdivisions/MS.yaml +30 -27
- data/lib/countries/data/subdivisions/MT.yaml +1059 -612
- data/lib/countries/data/subdivisions/MU.yaml +314 -147
- data/lib/countries/data/subdivisions/MV.yaml +466 -192
- data/lib/countries/data/subdivisions/MW.yaml +536 -246
- data/lib/countries/data/subdivisions/MX.yaml +707 -288
- data/lib/countries/data/subdivisions/MY.yaml +334 -144
- data/lib/countries/data/subdivisions/MZ.yaml +188 -93
- data/lib/countries/data/subdivisions/NA.yaml +221 -120
- data/lib/countries/data/subdivisions/NC.yaml +44 -27
- data/lib/countries/data/subdivisions/NE.yaml +161 -72
- data/lib/countries/data/subdivisions/NG.yaml +833 -333
- data/lib/countries/data/subdivisions/NI.yaml +260 -153
- data/lib/countries/data/subdivisions/NL.yaml +382 -113
- data/lib/countries/data/subdivisions/NO.yaml +596 -102
- data/lib/countries/data/subdivisions/NP.yaml +389 -130
- data/lib/countries/data/subdivisions/NR.yaml +260 -126
- data/lib/countries/data/subdivisions/NZ.yaml +322 -151
- data/lib/countries/data/subdivisions/OM.yaml +205 -66
- data/lib/countries/data/subdivisions/PA.yaml +204 -113
- data/lib/countries/data/subdivisions/PE.yaml +418 -234
- data/lib/countries/data/subdivisions/PF.yaml +60 -45
- data/lib/countries/data/subdivisions/PG.yaml +383 -177
- data/lib/countries/data/subdivisions/PH.yaml +1867 -767
- data/lib/countries/data/subdivisions/PK.yaml +185 -63
- data/lib/countries/data/subdivisions/PL.yaml +1161 -143
- data/lib/countries/data/subdivisions/PM.yaml +30 -18
- data/lib/countries/data/subdivisions/PR.yaml +1107 -0
- data/lib/countries/data/subdivisions/PS.yaml +265 -16
- data/lib/countries/data/subdivisions/PT.yaml +341 -180
- data/lib/countries/data/subdivisions/PW.yaml +265 -144
- data/lib/countries/data/subdivisions/PY.yaml +321 -162
- data/lib/countries/data/subdivisions/QA.yaml +165 -71
- data/lib/countries/data/subdivisions/RE.yaml +11 -0
- data/lib/countries/data/subdivisions/RO.yaml +731 -381
- data/lib/countries/data/subdivisions/RS.yaml +582 -261
- data/lib/countries/data/subdivisions/RU.yaml +1873 -750
- data/lib/countries/data/subdivisions/RW.yaml +100 -45
- data/lib/countries/data/subdivisions/SA.yaml +234 -117
- data/lib/countries/data/subdivisions/SB.yaml +169 -90
- data/lib/countries/data/subdivisions/SC.yaml +457 -208
- data/lib/countries/data/subdivisions/SD.yaml +142 -18
- data/lib/countries/data/subdivisions/SE.yaml +435 -258
- data/lib/countries/data/subdivisions/SG.yaml +117 -25
- data/lib/countries/data/subdivisions/SH.yaml +68 -18
- data/lib/countries/data/subdivisions/SI.yaml +3605 -1760
- data/lib/countries/data/subdivisions/SJ.yaml +20 -18
- data/lib/countries/data/subdivisions/SK.yaml +129 -72
- data/lib/countries/data/subdivisions/SL.yaml +80 -35
- data/lib/countries/data/subdivisions/SM.yaml +158 -81
- data/lib/countries/data/subdivisions/SN.yaml +232 -101
- data/lib/countries/data/subdivisions/SO.yaml +313 -161
- data/lib/countries/data/subdivisions/SR.yaml +158 -90
- data/lib/countries/data/subdivisions/SS.yaml +196 -10
- data/lib/countries/data/subdivisions/ST.yaml +30 -18
- data/lib/countries/data/subdivisions/SV.yaml +233 -126
- data/lib/countries/data/subdivisions/SX.yaml +9 -0
- data/lib/countries/data/subdivisions/SY.yaml +219 -124
- data/lib/countries/data/subdivisions/SZ.yaml +64 -35
- data/lib/countries/data/subdivisions/TA.yaml +4 -0
- data/lib/countries/data/subdivisions/TD.yaml +408 -161
- data/lib/countries/data/subdivisions/TF.yaml +34 -16
- data/lib/countries/data/subdivisions/TG.yaml +75 -45
- data/lib/countries/data/subdivisions/TH.yaml +1449 -694
- data/lib/countries/data/subdivisions/TJ.yaml +98 -28
- data/lib/countries/data/subdivisions/TK.yaml +30 -27
- data/lib/countries/data/subdivisions/TL.yaml +209 -117
- data/lib/countries/data/subdivisions/TM.yaml +116 -45
- data/lib/countries/data/subdivisions/TN.yaml +412 -216
- data/lib/countries/data/subdivisions/TO.yaml +76 -45
- data/lib/countries/data/subdivisions/TR.yaml +1818 -730
- data/lib/countries/data/subdivisions/TT.yaml +296 -131
- data/lib/countries/data/subdivisions/TV.yaml +130 -64
- data/lib/countries/data/subdivisions/TW.yaml +481 -187
- data/lib/countries/data/subdivisions/TZ.yaml +635 -237
- data/lib/countries/data/subdivisions/UA.yaml +504 -243
- data/lib/countries/data/subdivisions/UG.yaml +2237 -752
- data/lib/countries/data/subdivisions/UM.yaml +216 -80
- data/lib/countries/data/subdivisions/US.yaml +1570 -495
- data/lib/countries/data/subdivisions/UY.yaml +364 -170
- data/lib/countries/data/subdivisions/UZ.yaml +288 -127
- data/lib/countries/data/subdivisions/VC.yaml +96 -53
- data/lib/countries/data/subdivisions/VE.yaml +456 -225
- data/lib/countries/data/subdivisions/VI.yaml +44 -27
- data/lib/countries/data/subdivisions/VN.yaml +3583 -2980
- data/lib/countries/data/subdivisions/VU.yaml +98 -54
- data/lib/countries/data/subdivisions/WF.yaml +73 -3
- data/lib/countries/data/subdivisions/WS.yaml +200 -99
- data/lib/countries/data/subdivisions/YE.yaml +376 -173
- data/lib/countries/data/subdivisions/YT.yaml +178 -153
- data/lib/countries/data/subdivisions/ZA.yaml +230 -81
- data/lib/countries/data/subdivisions/ZM.yaml +156 -81
- data/lib/countries/data/subdivisions/ZW.yaml +153 -83
- data/lib/countries/data/translation_corrections.yaml +4 -1
- data/lib/countries/sources/cldr/downloader.rb +12 -13
- data/lib/countries/tasks/geocoding.rake +9 -16
- data/lib/countries/version.rb +1 -1
- data/spec/country_spec.rb +37 -0
- data/spec/data_spec.rb +4 -4
- data/spec/thread_safety_spec.rb +46 -0
- metadata +33 -25
- data/.travis.yml +0 -15
@@ -1,6 +1,15 @@
|
|
1
1
|
---
|
2
|
-
BG:
|
2
|
+
BG:
|
3
|
+
name: Bong
|
4
|
+
code:
|
3
5
|
unofficial_names: Bong
|
6
|
+
geo:
|
7
|
+
latitude: 6.829501899999999
|
8
|
+
longitude: -9.367308399999999
|
9
|
+
min_latitude: 6.397581
|
10
|
+
min_longitude: -10.4769088
|
11
|
+
max_latitude: 7.430014999999999
|
12
|
+
max_longitude: -9.094152
|
4
13
|
translations:
|
5
14
|
en: Bong
|
6
15
|
ar: مقاطعة بونغ
|
@@ -41,16 +50,23 @@ BG:
|
|
41
50
|
ur: بونگ کاؤنٹی
|
42
51
|
vi: Hạt Bong
|
43
52
|
zh: 邦县
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
name:
|
52
|
-
|
53
|
+
lv: Bongas grāfiste
|
54
|
+
ceb: Bong County
|
55
|
+
fa: شهرستان بونگ
|
56
|
+
ccp: "\U0001111D\U00011127\U00011101"
|
57
|
+
ka: ბონგის საგრაფო
|
58
|
+
comments:
|
59
|
+
BM:
|
60
|
+
name: Bomi
|
61
|
+
code:
|
53
62
|
unofficial_names: Bomi
|
63
|
+
geo:
|
64
|
+
latitude: 6.7562926
|
65
|
+
longitude: -10.8451467
|
66
|
+
min_latitude: 6.479747
|
67
|
+
min_longitude: -11.0814981
|
68
|
+
max_latitude: 6.970269
|
69
|
+
max_longitude: -10.4870661
|
54
70
|
translations:
|
55
71
|
en: Bomi
|
56
72
|
ar: مقاطعة بومي
|
@@ -93,16 +109,23 @@ BM:
|
|
93
109
|
uk: Бомі
|
94
110
|
ur: بومی کاؤنٹی
|
95
111
|
vi: Hạt Bomi
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
name:
|
104
|
-
|
112
|
+
ceb: Bomi County
|
113
|
+
zh: 伯米县
|
114
|
+
fa: شهرستان بومی
|
115
|
+
ccp: "\U0001111D\U0001112E\U0001111F\U00011128"
|
116
|
+
ka: ბომის საგრაფო
|
117
|
+
comments:
|
118
|
+
CM:
|
119
|
+
name: Grand Cape Mount
|
120
|
+
code:
|
105
121
|
unofficial_names: Grand Cape Mount
|
122
|
+
geo:
|
123
|
+
latitude: 7.0467758
|
124
|
+
longitude: -11.0711758
|
125
|
+
min_latitude: 6.577183
|
126
|
+
min_longitude: -11.486138
|
127
|
+
max_latitude: 7.527846999999999
|
128
|
+
max_longitude: -10.5165701
|
106
129
|
translations:
|
107
130
|
en: Grand Cape Mount
|
108
131
|
ar: مقاطعة غراند كيب ماونت
|
@@ -142,16 +165,24 @@ CM:
|
|
142
165
|
uk: Гранд-Кейп-Маунт
|
143
166
|
ur: گرینڈ کیپ ماؤنٹ کاؤنٹی
|
144
167
|
vi: Hạt Grand Cape Mount
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
168
|
+
lv: Grandkeipmauntas grāfiste
|
169
|
+
ceb: Grand Cape Mount County
|
170
|
+
zh: 大角山县
|
171
|
+
fa: شهرستان گرند کیپ مانت
|
172
|
+
ccp: "\U00011109\U00011133\U00011122\U0001111A\U00011133\U00011113\U00011134 \U00011107\U00011133\U00011120\U0001111B\U00011134
|
173
|
+
\U0001111F\U00011105\U0001112A\U0001111A\U00011133\U00011111\U00011134"
|
174
|
+
comments:
|
175
|
+
GB:
|
176
|
+
name: Grand Bassa
|
177
|
+
code:
|
154
178
|
unofficial_names: Grand Bassa
|
179
|
+
geo:
|
180
|
+
latitude: 6.2308452
|
181
|
+
longitude: -9.8124935
|
182
|
+
min_latitude: 5.5731877
|
183
|
+
min_longitude: -10.3763649
|
184
|
+
max_latitude: 6.7131769
|
185
|
+
max_longitude: -9.0244939
|
155
186
|
translations:
|
156
187
|
en: Grand Bassa
|
157
188
|
ar: مقاطعة غراند باسا
|
@@ -191,17 +222,24 @@ GB:
|
|
191
222
|
uk: Гранд-Баса
|
192
223
|
ur: گرینڈ باسا کاؤنٹی
|
193
224
|
vi: Hạt Grand Bassa
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
name: Grand
|
202
|
-
|
225
|
+
lv: Grandbasas grāfiste
|
226
|
+
ceb: Grand Bassa County
|
227
|
+
zh: 大巴萨县
|
228
|
+
fa: شهرستان گرند باسا
|
229
|
+
ccp: "\U00011109\U00011133\U00011122\U0001111A\U00011133\U00011113\U00011134 \U0001111D\U00011125"
|
230
|
+
comments:
|
231
|
+
GG:
|
232
|
+
name: Grand Gedeh
|
233
|
+
code:
|
203
234
|
unofficial_names:
|
204
235
|
- Grand Gedah
|
236
|
+
geo:
|
237
|
+
latitude: 5.9222078
|
238
|
+
longitude: -8.2212979
|
239
|
+
min_latitude: 5.514285
|
240
|
+
min_longitude: -9.0887029
|
241
|
+
max_latitude: 6.505594899999999
|
242
|
+
max_longitude: -7.371477899999999
|
205
243
|
translations:
|
206
244
|
en: Grand Gedeh
|
207
245
|
ar: مقاطعة غراند غيده
|
@@ -241,16 +279,23 @@ GG:
|
|
241
279
|
uk: Гранд-Геде
|
242
280
|
ur: گرینڈ گیدیہ کاؤنٹی
|
243
281
|
vi: Hạt Grand Gedeh
|
282
|
+
lv: Grandgedes grāfiste
|
283
|
+
ceb: Grand Gedeh County
|
284
|
+
zh: 大各德县
|
285
|
+
fa: شهرستان گرند گدهی
|
286
|
+
ccp: "\U00011109\U00011133\U00011122\U0001111A\U00011133\U00011113\U00011134 \U00011109\U00011113\U0001112C\U00011126\U00011134"
|
287
|
+
comments:
|
288
|
+
GK:
|
289
|
+
name: Grand Kru
|
290
|
+
code:
|
291
|
+
unofficial_names: Grand Kru
|
244
292
|
geo:
|
245
|
-
latitude:
|
293
|
+
latitude: 4.7613862
|
246
294
|
longitude: -8.2212979
|
247
|
-
min_latitude:
|
248
|
-
min_longitude: -
|
249
|
-
max_latitude:
|
250
|
-
max_longitude: -7.
|
251
|
-
name: Grand Gedeh
|
252
|
-
GK:
|
253
|
-
unofficial_names: Grand Kru
|
295
|
+
min_latitude: 4.434164
|
296
|
+
min_longitude: -8.6776371
|
297
|
+
max_latitude: 5.233399899999999
|
298
|
+
max_longitude: -7.759545999999999
|
254
299
|
translations:
|
255
300
|
en: Grand Kru
|
256
301
|
ar: مقاطعة غراند كرو
|
@@ -290,16 +335,23 @@ GK:
|
|
290
335
|
uk: Гранд-Кру
|
291
336
|
ur: گرینڈ کرو کاؤنٹی
|
292
337
|
vi: Hạt Grand Kru
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
name:
|
301
|
-
|
338
|
+
lv: Grandkru grāfiste
|
339
|
+
ceb: Grand Kru County
|
340
|
+
zh: 大克鲁县
|
341
|
+
fa: شهرستان گرند کرو
|
342
|
+
ccp: "\U00011109\U00011133\U00011122\U0001111A\U00011133\U00011113\U00011134 \U00011107\U00011133\U00011122\U0001112A"
|
343
|
+
comments:
|
344
|
+
LO:
|
345
|
+
name: Lofa
|
346
|
+
code:
|
302
347
|
unofficial_names: Lofa
|
348
|
+
geo:
|
349
|
+
latitude: 8.191118399999999
|
350
|
+
longitude: -9.7232673
|
351
|
+
min_latitude: 7.178834999999999
|
352
|
+
min_longitude: -10.606035
|
353
|
+
max_latitude: 8.551791099999999
|
354
|
+
max_longitude: -9.343918
|
303
355
|
translations:
|
304
356
|
en: Lofa
|
305
357
|
ar: مقاطعة لوفا
|
@@ -339,16 +391,23 @@ LO:
|
|
339
391
|
uk: Лофа
|
340
392
|
ur: لوفا کاؤنٹی
|
341
393
|
vi: Hạt Lofa
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
name:
|
350
|
-
|
394
|
+
lv: Lofas grāfiste
|
395
|
+
ceb: Lofa County
|
396
|
+
zh: 洛法县
|
397
|
+
fa: شهرستان لوفا
|
398
|
+
ccp: "\U00011123\U0001112E\U0001111C"
|
399
|
+
comments:
|
400
|
+
MG:
|
401
|
+
name: Margibi
|
402
|
+
code:
|
351
403
|
unofficial_names: Margibi
|
404
|
+
geo:
|
405
|
+
latitude: 6.5151875
|
406
|
+
longitude: -10.3048897
|
407
|
+
min_latitude: 6.138984300000001
|
408
|
+
min_longitude: -10.647893
|
409
|
+
max_latitude: 6.8118709
|
410
|
+
max_longitude: -9.722209
|
352
411
|
translations:
|
353
412
|
en: Margibi
|
354
413
|
ar: مقاطعة مارجيبي
|
@@ -388,16 +447,23 @@ MG:
|
|
388
447
|
uk: Маргібі
|
389
448
|
ur: مارگیبی کاؤنٹی
|
390
449
|
vi: Hạt Margibi
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
name:
|
399
|
-
|
450
|
+
lv: Margibi grāfiste
|
451
|
+
ceb: Margibi County
|
452
|
+
zh: 马及比县
|
453
|
+
fa: شهرستان مارجیبای
|
454
|
+
ccp: "\U0001111F\U00011122\U00011134\U0001110E\U00011128\U0001111D\U00011128"
|
455
|
+
comments:
|
456
|
+
MO:
|
457
|
+
name: Montserrado
|
458
|
+
code:
|
400
459
|
unofficial_names: Montserrado
|
460
|
+
geo:
|
461
|
+
latitude: 6.5525815
|
462
|
+
longitude: -10.5296115
|
463
|
+
min_latitude: 6.220479999999999
|
464
|
+
min_longitude: -10.9532799
|
465
|
+
max_latitude: 6.8513641
|
466
|
+
max_longitude: -10.3692761
|
401
467
|
translations:
|
402
468
|
en: Montserrado
|
403
469
|
ar: مقاطعة مونتسرادو
|
@@ -437,16 +503,23 @@ MO:
|
|
437
503
|
uk: Монтсеррадо
|
438
504
|
ur: مونٹسیراڈا کاؤنٹی
|
439
505
|
vi: Montserrado
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
name:
|
448
|
-
|
506
|
+
lv: Montserado grāfiste
|
507
|
+
ceb: Montserrado County
|
508
|
+
zh: 蒙特塞拉多县
|
509
|
+
fa: شهرستان مانتسرادو
|
510
|
+
ccp: "\U0001111F\U00011127\U0001111A\U00011134\U0001110C\U00011133\U00011111\U00011122\U00011134\U00011122\U00011113\U0001112E"
|
511
|
+
comments:
|
512
|
+
MY:
|
513
|
+
name: Maryland
|
514
|
+
code:
|
449
515
|
unofficial_names: Maryland
|
516
|
+
geo:
|
517
|
+
latitude: 4.7258878
|
518
|
+
longitude: -7.741670300000001
|
519
|
+
min_latitude: 4.3541994
|
520
|
+
min_longitude: -8.0795251
|
521
|
+
max_latitude: 5.130764999999999
|
522
|
+
max_longitude: -7.5213661
|
450
523
|
translations:
|
451
524
|
en: Maryland
|
452
525
|
ar: مقاطعة ماريلاند
|
@@ -486,16 +559,23 @@ MY:
|
|
486
559
|
uk: Меріленд
|
487
560
|
ur: میری لینڈ کاؤنٹی، لائبیریا
|
488
561
|
vi: Hạt Maryland
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
name:
|
497
|
-
|
562
|
+
lv: Merilendas grāfiste
|
563
|
+
ceb: Maryland County
|
564
|
+
zh: 馬里蘭縣
|
565
|
+
fa: شهرستان مریلند
|
566
|
+
ccp: "\U0001111F\U0001112C\U00011122\U00011128\U00011123\U00011133\U00011120\U0001111A\U00011133\U00011113\U00011134"
|
567
|
+
comments:
|
568
|
+
NI:
|
569
|
+
name: Nimba
|
570
|
+
code:
|
498
571
|
unofficial_names: Nimba
|
572
|
+
geo:
|
573
|
+
latitude: 6.8427612
|
574
|
+
longitude: -8.6600586
|
575
|
+
min_latitude: 5.823793999999999
|
576
|
+
min_longitude: -9.2169951
|
577
|
+
max_latitude: 7.696163100000001
|
578
|
+
max_longitude: -8.27361
|
499
579
|
translations:
|
500
580
|
en: Nimba
|
501
581
|
ar: مقاطعة نيمبا
|
@@ -535,16 +615,23 @@ NI:
|
|
535
615
|
uk: Німба
|
536
616
|
ur: نمبا کاؤنٹی
|
537
617
|
vi: Nimba
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
name:
|
546
|
-
|
618
|
+
lv: Nimba
|
619
|
+
ceb: Nimba County
|
620
|
+
zh: 寧巴縣
|
621
|
+
fa: شهرستان نیمبا
|
622
|
+
ccp: "\U0001111A\U0001111F\U00011134\U0001111D"
|
623
|
+
comments:
|
624
|
+
RI:
|
625
|
+
name: Rivercess
|
626
|
+
code:
|
547
627
|
unofficial_names: Rivercess
|
628
|
+
geo:
|
629
|
+
latitude: 5.902532799999999
|
630
|
+
longitude: -9.456155
|
631
|
+
min_latitude: 5.269763
|
632
|
+
min_longitude: -9.733108999999999
|
633
|
+
max_latitude: 6.378757
|
634
|
+
max_longitude: -9.058736
|
548
635
|
translations:
|
549
636
|
en: Rivercess
|
550
637
|
ar: مقاطعة ريفرسيس
|
@@ -583,16 +670,23 @@ RI:
|
|
583
670
|
uk: Рівер-Сесс (графство)
|
584
671
|
ur: ریویرکیس کاؤنٹی
|
585
672
|
vi: Hạt Rivercess
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
name:
|
594
|
-
|
673
|
+
lv: Riversesas grāfiste
|
674
|
+
ceb: River Cess County
|
675
|
+
zh: 里弗塞斯縣
|
676
|
+
fa: شهرستان ریورسس
|
677
|
+
ccp: "\U00011122\U00011128\U0001111E\U00011122\U00011134\U00011125\U0001112C\U0001110C\U00011134"
|
678
|
+
comments:
|
679
|
+
SI:
|
680
|
+
name: Sinoe
|
681
|
+
code:
|
595
682
|
unofficial_names: Sinoe
|
683
|
+
geo:
|
684
|
+
latitude: 5.49871
|
685
|
+
longitude: -8.6600586
|
686
|
+
min_latitude: 4.804354
|
687
|
+
min_longitude: -9.4184888
|
688
|
+
max_latitude: 5.844906
|
689
|
+
max_longitude: -8.2341789
|
596
690
|
translations:
|
597
691
|
en: Sinoe
|
598
692
|
ar: مقاطعة سينو
|
@@ -632,18 +726,16 @@ SI:
|
|
632
726
|
uk: Сіное
|
633
727
|
ur: سینؤ کاؤنٹی
|
634
728
|
vi: Hạt Sinoe
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
name:
|
643
|
-
|
729
|
+
lv: Sinoe grāfiste
|
730
|
+
ceb: Sinoe County
|
731
|
+
zh: 錫諾縣
|
732
|
+
fa: شهرستان ساینو
|
733
|
+
ccp: "\U00011125\U00011128\U0001111A\U0001112E\U00011120\U00011128"
|
734
|
+
comments:
|
735
|
+
X1~:
|
736
|
+
name: Gbarpolu
|
737
|
+
code:
|
644
738
|
unofficial_names: Gbarpolu
|
645
|
-
translations:
|
646
|
-
en: Gbarpolu
|
647
739
|
geo:
|
648
740
|
latitude: 7.495263700000001
|
649
741
|
longitude: -10.0807298
|
@@ -651,11 +743,13 @@ X1~:
|
|
651
743
|
min_longitude: -10.9533111
|
652
744
|
max_latitude: 7.998692
|
653
745
|
max_longitude: -9.636509
|
654
|
-
name: Gbarpolu
|
655
|
-
X2~:
|
656
|
-
unofficial_names: River Gee
|
657
746
|
translations:
|
658
|
-
en:
|
747
|
+
en: Gbarpolu
|
748
|
+
comments:
|
749
|
+
X2~:
|
750
|
+
name: River Gee
|
751
|
+
code:
|
752
|
+
unofficial_names: River Gee
|
659
753
|
geo:
|
660
754
|
latitude: 5.2604894
|
661
755
|
longitude: -7.872159999999999
|
@@ -663,8 +757,20 @@ X2~:
|
|
663
757
|
min_longitude: -8.328244999999999
|
664
758
|
max_latitude: 5.6097129
|
665
759
|
max_longitude: -7.365113
|
666
|
-
|
667
|
-
|
760
|
+
translations:
|
761
|
+
en: River Gee
|
762
|
+
comments:
|
763
|
+
GP:
|
764
|
+
name:
|
765
|
+
code:
|
766
|
+
unofficial_names:
|
767
|
+
geo:
|
768
|
+
latitude:
|
769
|
+
longitude:
|
770
|
+
min_latitude:
|
771
|
+
min_longitude:
|
772
|
+
max_latitude:
|
773
|
+
max_longitude:
|
668
774
|
translations:
|
669
775
|
ar: مقاطعة غباربولو
|
670
776
|
be: Гбарпалу
|
@@ -704,7 +810,23 @@ GP:
|
|
704
810
|
uk: Гбарполу
|
705
811
|
ur: گبارپولو کاؤنٹی
|
706
812
|
vi: Hạt Gbarpolu
|
707
|
-
|
813
|
+
lv: Gbarpolu grāfiste
|
814
|
+
ceb: Gbarpolu County
|
815
|
+
zh: 巴波卢县
|
816
|
+
fa: شهرستان گبارپولو
|
817
|
+
ccp: "\U0001111D\U00011122\U00011134\U0001111B\U0001112E\U00011123"
|
818
|
+
comments:
|
819
|
+
RG:
|
820
|
+
name:
|
821
|
+
code:
|
822
|
+
unofficial_names:
|
823
|
+
geo:
|
824
|
+
latitude:
|
825
|
+
longitude:
|
826
|
+
min_latitude:
|
827
|
+
min_longitude:
|
828
|
+
max_latitude:
|
829
|
+
max_longitude:
|
708
830
|
translations:
|
709
831
|
ar: مقاطعة ريفر جي
|
710
832
|
be: Рывер-Гі
|
@@ -745,3 +867,8 @@ RG:
|
|
745
867
|
uk: Рівер-Гі
|
746
868
|
ur: دریائے جی کاؤنٹی
|
747
869
|
vi: Hạt River Gee
|
870
|
+
ceb: River Gee County
|
871
|
+
zh: 吉河县
|
872
|
+
fa: شهرستان ریور جی
|
873
|
+
ccp: "\U00011122\U00011128\U0001111E\U00011122\U00011134 \U00011109\U00011128"
|
874
|
+
comments:
|