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
@@ -33,7 +33,7 @@ FR:
|
|
33
33
|
- 5.5
|
34
34
|
- 10
|
35
35
|
super_reduced: 2.1
|
36
|
-
parking:
|
36
|
+
parking:
|
37
37
|
postal_code: true
|
38
38
|
postal_code_format: "\\d{2} ?\\d{3}"
|
39
39
|
unofficial_names:
|
@@ -54,14 +54,14 @@ FR:
|
|
54
54
|
longitude_dec: '2.3382623195648193'
|
55
55
|
max_latitude: 51.1241999
|
56
56
|
max_longitude: 9.6624999
|
57
|
-
min_latitude: 41.
|
57
|
+
min_latitude: 41.31433
|
58
58
|
min_longitude: -5.5591
|
59
59
|
bounds:
|
60
60
|
northeast:
|
61
61
|
lat: 51.1241999
|
62
62
|
lng: 9.6624999
|
63
63
|
southwest:
|
64
|
-
lat: 41.
|
64
|
+
lat: 41.31433
|
65
65
|
lng: -5.5591
|
66
66
|
currency_code: EUR
|
67
67
|
start_of_week: monday
|
@@ -36,14 +36,14 @@ GE:
|
|
36
36
|
latitude_dec: '42.3207845'
|
37
37
|
longitude: 43.35689199999999
|
38
38
|
longitude_dec: '43.3713615'
|
39
|
-
max_latitude: 43.
|
40
|
-
max_longitude: 46.
|
39
|
+
max_latitude: 43.5866269
|
40
|
+
max_longitude: 46.7361189
|
41
41
|
min_latitude: 41.054942
|
42
42
|
min_longitude: 39.9792001
|
43
43
|
bounds:
|
44
44
|
northeast:
|
45
|
-
lat: 43.
|
46
|
-
lng: 46.
|
45
|
+
lat: 43.5866269
|
46
|
+
lng: 46.7361189
|
47
47
|
southwest:
|
48
48
|
lat: 41.054942
|
49
49
|
lng: 39.9792001
|
@@ -33,20 +33,20 @@ GG:
|
|
33
33
|
- en
|
34
34
|
- fr
|
35
35
|
geo:
|
36
|
-
latitude: 49.
|
36
|
+
latitude: 49.4481982
|
37
37
|
latitude_dec: '49.72008514404297'
|
38
|
-
longitude: -2.
|
38
|
+
longitude: -2.58949
|
39
39
|
longitude_dec: "-2.1999685764312744"
|
40
|
-
max_latitude: 49.
|
41
|
-
max_longitude: -2.
|
42
|
-
min_latitude: 49.
|
43
|
-
min_longitude: -2.
|
40
|
+
max_latitude: 49.5094108
|
41
|
+
max_longitude: -2.5016885
|
42
|
+
min_latitude: 49.4167199
|
43
|
+
min_longitude: -2.6745361
|
44
44
|
bounds:
|
45
45
|
northeast:
|
46
|
-
lat: 49.
|
47
|
-
lng: -2.
|
46
|
+
lat: 49.5094108
|
47
|
+
lng: -2.5016885
|
48
48
|
southwest:
|
49
|
-
lat: 49.
|
50
|
-
lng: -2.
|
49
|
+
lat: 49.4167199
|
50
|
+
lng: -2.6745361
|
51
51
|
currency_code: GBP
|
52
52
|
start_of_week: monday
|
@@ -35,16 +35,16 @@ GH:
|
|
35
35
|
latitude_dec: '7.921330451965332'
|
36
36
|
longitude: -1.023194
|
37
37
|
longitude_dec: "-1.2043862342834473"
|
38
|
-
max_latitude: 11.
|
38
|
+
max_latitude: 11.1750308
|
39
39
|
max_longitude: 1.199972
|
40
40
|
min_latitude: 4.6339001
|
41
|
-
min_longitude: -3.
|
41
|
+
min_longitude: -3.2607859
|
42
42
|
bounds:
|
43
43
|
northeast:
|
44
|
-
lat: 11.
|
44
|
+
lat: 11.1750308
|
45
45
|
lng: 1.199972
|
46
46
|
southwest:
|
47
47
|
lat: 4.6339001
|
48
|
-
lng: -3.
|
48
|
+
lng: -3.2607859
|
49
49
|
currency_code: GHS
|
50
50
|
start_of_week: monday
|
@@ -33,13 +33,13 @@ GI:
|
|
33
33
|
latitude_dec: '36.135841369628906'
|
34
34
|
longitude: -5.353585
|
35
35
|
longitude_dec: "-5.349248886108398"
|
36
|
-
max_latitude: 36.
|
36
|
+
max_latitude: 36.1551186
|
37
37
|
max_longitude: -5.334499999999999
|
38
38
|
min_latitude: 36.1038999
|
39
39
|
min_longitude: -5.3721
|
40
40
|
bounds:
|
41
41
|
northeast:
|
42
|
-
lat: 36.
|
42
|
+
lat: 36.1551186
|
43
43
|
lng: -5.334499999999999
|
44
44
|
southwest:
|
45
45
|
lat: 36.1038999
|
@@ -41,16 +41,16 @@ GL:
|
|
41
41
|
latitude_dec: '74.34954833984375'
|
42
42
|
longitude: -42.604303
|
43
43
|
longitude_dec: "-41.08988952636719"
|
44
|
-
max_latitude: 83.
|
45
|
-
max_longitude: -8.
|
44
|
+
max_latitude: 83.9702561
|
45
|
+
max_longitude: -8.2617199
|
46
46
|
min_latitude: 58.26329
|
47
|
-
min_longitude: -73.
|
47
|
+
min_longitude: -73.8281196
|
48
48
|
bounds:
|
49
49
|
northeast:
|
50
|
-
lat: 83.
|
51
|
-
lng: -8.
|
50
|
+
lat: 83.9702561
|
51
|
+
lng: -8.2617199
|
52
52
|
southwest:
|
53
53
|
lat: 58.26329
|
54
|
-
lng: -73.
|
54
|
+
lng: -73.8281196
|
55
55
|
currency_code: DKK
|
56
56
|
start_of_week: monday
|
@@ -32,14 +32,14 @@ GM:
|
|
32
32
|
latitude_dec: '13.440265655517578'
|
33
33
|
longitude: -15.310139
|
34
34
|
longitude_dec: "-15.490884780883789"
|
35
|
-
max_latitude: 13.
|
36
|
-
max_longitude: -13.
|
35
|
+
max_latitude: 13.825058
|
36
|
+
max_longitude: -13.7913862
|
37
37
|
min_latitude: 13.0098999
|
38
38
|
min_longitude: -16.9464001
|
39
39
|
bounds:
|
40
40
|
northeast:
|
41
|
-
lat: 13.
|
42
|
-
lng: -13.
|
41
|
+
lat: 13.825058
|
42
|
+
lng: -13.7913862
|
43
43
|
southwest:
|
44
44
|
lat: 13.0098999
|
45
45
|
lng: -16.9464001
|
@@ -37,13 +37,13 @@ GN:
|
|
37
37
|
latitude_dec: '10.429302215576172'
|
38
38
|
longitude: -9.696645
|
39
39
|
longitude_dec: "-10.98954963684082"
|
40
|
-
max_latitude: 12.
|
40
|
+
max_latitude: 12.6748616
|
41
41
|
max_longitude: -7.637853
|
42
42
|
min_latitude: 7.190909099999999
|
43
43
|
min_longitude: -15.282
|
44
44
|
bounds:
|
45
45
|
northeast:
|
46
|
-
lat: 12.
|
46
|
+
lat: 12.6748616
|
47
47
|
lng: -7.637853
|
48
48
|
southwest:
|
49
49
|
lat: 7.190909099999999
|
@@ -35,13 +35,13 @@ GS:
|
|
35
35
|
longitude: -36.587909
|
36
36
|
longitude_dec: "-36.354618072509766"
|
37
37
|
max_latitude: -53.8525267
|
38
|
-
max_longitude: -25.
|
38
|
+
max_longitude: -25.4663085
|
39
39
|
min_latitude: -59.91097600000001
|
40
40
|
min_longitude: -38.4301758
|
41
41
|
bounds:
|
42
42
|
northeast:
|
43
43
|
lat: -53.8525267
|
44
|
-
lng: -25.
|
44
|
+
lng: -25.4663085
|
45
45
|
southwest:
|
46
46
|
lat: -59.91097600000001
|
47
47
|
lng: -38.4301758
|
@@ -33,13 +33,13 @@ GT:
|
|
33
33
|
latitude_dec: '15.670565605163574'
|
34
34
|
longitude: -90.23075899999999
|
35
35
|
longitude_dec: "-90.3486557006836"
|
36
|
-
max_latitude: 17.
|
36
|
+
max_latitude: 17.815697
|
37
37
|
max_longitude: -88.1982001
|
38
38
|
min_latitude: 13.63
|
39
39
|
min_longitude: -92.2714
|
40
40
|
bounds:
|
41
41
|
northeast:
|
42
|
-
lat: 17.
|
42
|
+
lat: 17.815697
|
43
43
|
lng: -88.1982001
|
44
44
|
southwest:
|
45
45
|
lat: 13.63
|
@@ -36,17 +36,17 @@ HK:
|
|
36
36
|
- en
|
37
37
|
- zh
|
38
38
|
geo:
|
39
|
-
latitude: 22.
|
39
|
+
latitude: 22.3193039
|
40
40
|
latitude_dec: '22.336156845092773'
|
41
|
-
longitude: 114.
|
41
|
+
longitude: 114.1693611
|
42
42
|
longitude_dec: '114.18696594238281'
|
43
|
-
max_latitude: 22.
|
43
|
+
max_latitude: 22.5619469
|
44
44
|
max_longitude: 114.4294999
|
45
45
|
min_latitude: 22.1435
|
46
46
|
min_longitude: 113.8259001
|
47
47
|
bounds:
|
48
48
|
northeast:
|
49
|
-
lat: 22.
|
49
|
+
lat: 22.5619469
|
50
50
|
lng: 114.4294999
|
51
51
|
southwest:
|
52
52
|
lat: 22.1435
|
@@ -36,14 +36,14 @@ HN:
|
|
36
36
|
longitude_dec: "-86.2647705078125"
|
37
37
|
max_latitude: 17.4677999
|
38
38
|
max_longitude: -83.0621001
|
39
|
-
min_latitude: 12.
|
39
|
+
min_latitude: 12.9808201
|
40
40
|
min_longitude: -89.3564822
|
41
41
|
bounds:
|
42
42
|
northeast:
|
43
43
|
lat: 17.4677999
|
44
44
|
lng: -83.0621001
|
45
45
|
southwest:
|
46
|
-
lat: 12.
|
46
|
+
lat: 12.9808201
|
47
47
|
lng: -89.3564822
|
48
48
|
currency_code: HNL
|
49
49
|
start_of_week: monday
|
@@ -31,8 +31,8 @@ HR:
|
|
31
31
|
reduced:
|
32
32
|
- 5
|
33
33
|
- 13
|
34
|
-
super_reduced:
|
35
|
-
parking:
|
34
|
+
super_reduced:
|
35
|
+
parking:
|
36
36
|
postal_code: true
|
37
37
|
postal_code_format: "\\d{5}"
|
38
38
|
unofficial_names:
|
@@ -50,7 +50,7 @@ HR:
|
|
50
50
|
geo:
|
51
51
|
latitude: 45.1
|
52
52
|
latitude_dec: '45.444305419921875'
|
53
|
-
longitude: 15.
|
53
|
+
longitude: 15.2000001
|
54
54
|
longitude_dec: '15.734503746032715'
|
55
55
|
max_latitude: 46.5549857
|
56
56
|
max_longitude: 19.4480523
|
@@ -33,8 +33,8 @@ HU:
|
|
33
33
|
reduced:
|
34
34
|
- 5
|
35
35
|
- 18
|
36
|
-
super_reduced:
|
37
|
-
parking:
|
36
|
+
super_reduced:
|
37
|
+
parking:
|
38
38
|
postal_code: true
|
39
39
|
postal_code_format: "\\d{4}"
|
40
40
|
unofficial_names:
|
@@ -51,18 +51,18 @@ HU:
|
|
51
51
|
geo:
|
52
52
|
latitude: 47.162494
|
53
53
|
latitude_dec: '47.165733337402344'
|
54
|
-
longitude: 19.
|
54
|
+
longitude: 19.5033041
|
55
55
|
longitude_dec: '19.416574478149414'
|
56
56
|
max_latitude: 48.585234
|
57
|
-
max_longitude: 22.
|
57
|
+
max_longitude: 22.8965438
|
58
58
|
min_latitude: 45.7370889
|
59
|
-
min_longitude: 16.
|
59
|
+
min_longitude: 16.1133078
|
60
60
|
bounds:
|
61
61
|
northeast:
|
62
62
|
lat: 48.585234
|
63
|
-
lng: 22.
|
63
|
+
lng: 22.8965438
|
64
64
|
southwest:
|
65
65
|
lat: 45.7370889
|
66
|
-
lng: 16.
|
66
|
+
lng: 16.1133078
|
67
67
|
currency_code: HUF
|
68
68
|
start_of_week: monday
|
@@ -49,20 +49,20 @@ IE:
|
|
49
49
|
- en
|
50
50
|
- ga
|
51
51
|
geo:
|
52
|
-
latitude: 53.
|
52
|
+
latitude: 53.1423672
|
53
53
|
latitude_dec: '53.1827278137207'
|
54
|
-
longitude: -
|
54
|
+
longitude: -7.692053599999999
|
55
55
|
longitude_dec: "-8.196102142333984"
|
56
|
-
max_latitude: 55.
|
57
|
-
max_longitude: -5.
|
58
|
-
min_latitude: 51.
|
59
|
-
min_longitude: -10.
|
56
|
+
max_latitude: 55.38294149999999
|
57
|
+
max_longitude: -5.431909999999999
|
58
|
+
min_latitude: 51.4475448
|
59
|
+
min_longitude: -10.4800237
|
60
60
|
bounds:
|
61
61
|
northeast:
|
62
|
-
lat: 55.
|
63
|
-
lng: -5.
|
62
|
+
lat: 55.38294149999999
|
63
|
+
lng: -5.431909999999999
|
64
64
|
southwest:
|
65
|
-
lat: 51.
|
66
|
-
lng: -10.
|
65
|
+
lat: 51.4475448
|
66
|
+
lng: -10.4800237
|
67
67
|
currency_code: EUR
|
68
68
|
start_of_week: monday
|
@@ -36,16 +36,16 @@ IM:
|
|
36
36
|
latitude_dec: '54.22451400756836'
|
37
37
|
longitude: -4.548056
|
38
38
|
longitude_dec: "-4.562133312225342"
|
39
|
-
max_latitude: 54.
|
40
|
-
max_longitude: -4.
|
41
|
-
min_latitude: 54.
|
42
|
-
min_longitude: -4.
|
39
|
+
max_latitude: 54.4369363
|
40
|
+
max_longitude: -4.270618199999999
|
41
|
+
min_latitude: 54.0186764
|
42
|
+
min_longitude: -4.8736609
|
43
43
|
bounds:
|
44
44
|
northeast:
|
45
|
-
lat: 54.
|
46
|
-
lng: -4.
|
45
|
+
lat: 54.4369363
|
46
|
+
lng: -4.270618199999999
|
47
47
|
southwest:
|
48
|
-
lat: 54.
|
49
|
-
lng: -4.
|
48
|
+
lat: 54.0186764
|
49
|
+
lng: -4.8736609
|
50
50
|
currency_code: IMP
|
51
51
|
start_of_week: monday
|
@@ -43,13 +43,13 @@ IN:
|
|
43
43
|
latitude_dec: '23.4060115814209'
|
44
44
|
longitude: 78.96288
|
45
45
|
longitude_dec: '79.45809173583984'
|
46
|
-
max_latitude: 35.
|
46
|
+
max_latitude: 35.513327
|
47
47
|
max_longitude: 97.39535869999999
|
48
48
|
min_latitude: 6.4626999
|
49
49
|
min_longitude: 68.1097
|
50
50
|
bounds:
|
51
51
|
northeast:
|
52
|
-
lat: 35.
|
52
|
+
lat: 35.513327
|
53
53
|
lng: 97.39535869999999
|
54
54
|
southwest:
|
55
55
|
lat: 6.4626999
|
@@ -29,9 +29,9 @@ IO:
|
|
29
29
|
languages_spoken:
|
30
30
|
- en
|
31
31
|
geo:
|
32
|
-
latitude: -
|
32
|
+
latitude: -6.343194
|
33
33
|
latitude_dec: "-6.196269989013672"
|
34
|
-
longitude:
|
34
|
+
longitude: 71.876519
|
35
35
|
longitude_dec: '71.34793090820312'
|
36
36
|
max_latitude: -5.1401857
|
37
37
|
max_longitude: 72.5880433
|
@@ -40,13 +40,13 @@ IQ:
|
|
40
40
|
max_latitude: 37.380645
|
41
41
|
max_longitude: 48.6350999
|
42
42
|
min_latitude: 29.0612079
|
43
|
-
min_longitude: 38.
|
43
|
+
min_longitude: 38.7936741
|
44
44
|
bounds:
|
45
45
|
northeast:
|
46
46
|
lat: 37.380645
|
47
47
|
lng: 48.6350999
|
48
48
|
southwest:
|
49
49
|
lat: 29.0612079
|
50
|
-
lng: 38.
|
50
|
+
lng: 38.7936741
|
51
51
|
currency_code: IQD
|
52
52
|
start_of_week: sunday
|
@@ -31,8 +31,8 @@ IS:
|
|
31
31
|
standard: 24
|
32
32
|
reduced:
|
33
33
|
- 11
|
34
|
-
super_reduced:
|
35
|
-
parking:
|
34
|
+
super_reduced:
|
35
|
+
parking:
|
36
36
|
postal_code: true
|
37
37
|
postal_code_format: "\\d{3}"
|
38
38
|
unofficial_names:
|
@@ -54,13 +54,13 @@ IS:
|
|
54
54
|
max_latitude: 67.2466
|
55
55
|
max_longitude: -12.2388001
|
56
56
|
min_latitude: 62.4819
|
57
|
-
min_longitude: -26.
|
57
|
+
min_longitude: -26.2572999
|
58
58
|
bounds:
|
59
59
|
northeast:
|
60
60
|
lat: 67.2466
|
61
61
|
lng: -12.2388001
|
62
62
|
southwest:
|
63
63
|
lat: 62.4819
|
64
|
-
lng: -26.
|
64
|
+
lng: -26.2572999
|
65
65
|
currency_code: ISK
|
66
66
|
start_of_week: monday
|