countries 4.2.3 → 5.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (520) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/codeql-analysis.yml +70 -0
  3. data/.github/workflows/tests.yml +3 -7
  4. data/.rubocop.yml +40 -1
  5. data/.rubocop_todo.yml +8 -41
  6. data/CHANGELOG.md +35 -2
  7. data/Gemfile +5 -3
  8. data/README.markdown +56 -62
  9. data/Rakefile +21 -45
  10. data/UPGRADE.md +39 -0
  11. data/bin/console +1 -0
  12. data/countries.gemspec +7 -6
  13. data/lib/countries/cache/countries.json +1 -1
  14. data/lib/countries/cache/locales/ab.json +1 -1
  15. data/lib/countries/cache/locales/af.json +1 -1
  16. data/lib/countries/cache/locales/ak.json +1 -1
  17. data/lib/countries/cache/locales/am.json +1 -1
  18. data/lib/countries/cache/locales/an.json +1 -1
  19. data/lib/countries/cache/locales/ar.json +1 -1
  20. data/lib/countries/cache/locales/as.json +1 -1
  21. data/lib/countries/cache/locales/ay.json +1 -1
  22. data/lib/countries/cache/locales/az.json +1 -1
  23. data/lib/countries/cache/locales/ba.json +1 -1
  24. data/lib/countries/cache/locales/be.json +1 -1
  25. data/lib/countries/cache/locales/bg.json +1 -1
  26. data/lib/countries/cache/locales/bi.json +1 -1
  27. data/lib/countries/cache/locales/bn-in.json +1 -1
  28. data/lib/countries/cache/locales/bn.json +1 -1
  29. data/lib/countries/cache/locales/br.json +1 -1
  30. data/lib/countries/cache/locales/bs.json +1 -1
  31. data/lib/countries/cache/locales/ca.json +1 -1
  32. data/lib/countries/cache/locales/ce.json +1 -1
  33. data/lib/countries/cache/locales/ch.json +1 -1
  34. data/lib/countries/cache/locales/cs.json +1 -1
  35. data/lib/countries/cache/locales/cv.json +1 -1
  36. data/lib/countries/cache/locales/cy.json +1 -1
  37. data/lib/countries/cache/locales/da.json +1 -1
  38. data/lib/countries/cache/locales/de.json +1 -1
  39. data/lib/countries/cache/locales/dv.json +1 -1
  40. data/lib/countries/cache/locales/dz.json +1 -1
  41. data/lib/countries/cache/locales/ee.json +1 -1
  42. data/lib/countries/cache/locales/el.json +1 -1
  43. data/lib/countries/cache/locales/en.json +1 -1
  44. data/lib/countries/cache/locales/eo.json +1 -1
  45. data/lib/countries/cache/locales/es.json +1 -1
  46. data/lib/countries/cache/locales/et.json +1 -1
  47. data/lib/countries/cache/locales/eu.json +1 -1
  48. data/lib/countries/cache/locales/fa.json +1 -1
  49. data/lib/countries/cache/locales/ff.json +1 -1
  50. data/lib/countries/cache/locales/fi.json +1 -1
  51. data/lib/countries/cache/locales/fo.json +1 -1
  52. data/lib/countries/cache/locales/fr.json +1 -1
  53. data/lib/countries/cache/locales/fy.json +1 -1
  54. data/lib/countries/cache/locales/ga.json +1 -1
  55. data/lib/countries/cache/locales/gl.json +1 -1
  56. data/lib/countries/cache/locales/gn.json +1 -1
  57. data/lib/countries/cache/locales/gu.json +1 -1
  58. data/lib/countries/cache/locales/gv.json +1 -1
  59. data/lib/countries/cache/locales/ha.json +1 -1
  60. data/lib/countries/cache/locales/he.json +1 -1
  61. data/lib/countries/cache/locales/hi.json +1 -1
  62. data/lib/countries/cache/locales/hr.json +1 -1
  63. data/lib/countries/cache/locales/ht.json +1 -1
  64. data/lib/countries/cache/locales/hu.json +1 -1
  65. data/lib/countries/cache/locales/hy.json +1 -1
  66. data/lib/countries/cache/locales/ia.json +1 -1
  67. data/lib/countries/cache/locales/id.json +1 -1
  68. data/lib/countries/cache/locales/io.json +1 -1
  69. data/lib/countries/cache/locales/is.json +1 -1
  70. data/lib/countries/cache/locales/it.json +1 -1
  71. data/lib/countries/cache/locales/iu.json +1 -1
  72. data/lib/countries/cache/locales/ja.json +1 -1
  73. data/lib/countries/cache/locales/ka.json +1 -1
  74. data/lib/countries/cache/locales/ki.json +1 -1
  75. data/lib/countries/cache/locales/kk.json +1 -1
  76. data/lib/countries/cache/locales/kl.json +1 -1
  77. data/lib/countries/cache/locales/km.json +1 -1
  78. data/lib/countries/cache/locales/kn.json +1 -1
  79. data/lib/countries/cache/locales/ko.json +1 -1
  80. data/lib/countries/cache/locales/kv.json +1 -1
  81. data/lib/countries/cache/locales/kw.json +1 -1
  82. data/lib/countries/cache/locales/ky.json +1 -1
  83. data/lib/countries/cache/locales/lo.json +1 -1
  84. data/lib/countries/cache/locales/lt.json +1 -1
  85. data/lib/countries/cache/locales/lv.json +1 -1
  86. data/lib/countries/cache/locales/mi.json +1 -1
  87. data/lib/countries/cache/locales/mk.json +1 -1
  88. data/lib/countries/cache/locales/ml.json +1 -1
  89. data/lib/countries/cache/locales/mn.json +1 -1
  90. data/lib/countries/cache/locales/mr.json +1 -1
  91. data/lib/countries/cache/locales/ms.json +1 -1
  92. data/lib/countries/cache/locales/mt.json +1 -1
  93. data/lib/countries/cache/locales/my.json +1 -1
  94. data/lib/countries/cache/locales/na.json +1 -1
  95. data/lib/countries/cache/locales/nb.json +1 -1
  96. data/lib/countries/cache/locales/ne.json +1 -1
  97. data/lib/countries/cache/locales/nl.json +1 -1
  98. data/lib/countries/cache/locales/nn.json +1 -1
  99. data/lib/countries/cache/locales/nv.json +1 -1
  100. data/lib/countries/cache/locales/oc.json +1 -1
  101. data/lib/countries/cache/locales/or.json +1 -1
  102. data/lib/countries/cache/locales/pa.json +1 -1
  103. data/lib/countries/cache/locales/pi.json +1 -1
  104. data/lib/countries/cache/locales/pl.json +1 -1
  105. data/lib/countries/cache/locales/ps.json +1 -1
  106. data/lib/countries/cache/locales/pt-br.json +1 -1
  107. data/lib/countries/cache/locales/pt.json +1 -1
  108. data/lib/countries/cache/locales/ro.json +1 -1
  109. data/lib/countries/cache/locales/ru.json +1 -1
  110. data/lib/countries/cache/locales/rw.json +1 -1
  111. data/lib/countries/cache/locales/sc.json +1 -1
  112. data/lib/countries/cache/locales/sd.json +1 -1
  113. data/lib/countries/cache/locales/si.json +1 -1
  114. data/lib/countries/cache/locales/sk.json +1 -1
  115. data/lib/countries/cache/locales/sl.json +1 -1
  116. data/lib/countries/cache/locales/so.json +1 -1
  117. data/lib/countries/cache/locales/sq.json +1 -1
  118. data/lib/countries/cache/locales/sr.json +1 -1
  119. data/lib/countries/cache/locales/sv.json +1 -1
  120. data/lib/countries/cache/locales/sw.json +1 -1
  121. data/lib/countries/cache/locales/ta.json +1 -1
  122. data/lib/countries/cache/locales/te.json +1 -1
  123. data/lib/countries/cache/locales/tg.json +1 -1
  124. data/lib/countries/cache/locales/th.json +1 -1
  125. data/lib/countries/cache/locales/ti.json +1 -1
  126. data/lib/countries/cache/locales/tk.json +1 -1
  127. data/lib/countries/cache/locales/tl.json +1 -1
  128. data/lib/countries/cache/locales/tr.json +1 -1
  129. data/lib/countries/cache/locales/tt.json +1 -1
  130. data/lib/countries/cache/locales/ug.json +1 -1
  131. data/lib/countries/cache/locales/uk.json +1 -1
  132. data/lib/countries/cache/locales/ur.json +1 -1
  133. data/lib/countries/cache/locales/uz.json +1 -1
  134. data/lib/countries/cache/locales/ve.json +1 -1
  135. data/lib/countries/cache/locales/vi.json +1 -1
  136. data/lib/countries/cache/locales/wa.json +1 -1
  137. data/lib/countries/cache/locales/wo.json +1 -1
  138. data/lib/countries/cache/locales/xh.json +1 -1
  139. data/lib/countries/cache/locales/yo.json +1 -1
  140. data/lib/countries/cache/locales/zh-cn.json +1 -1
  141. data/lib/countries/cache/locales/zh-hk.json +1 -1
  142. data/lib/countries/cache/locales/zh-tw.json +1 -1
  143. data/lib/countries/cache/locales/zu.json +1 -1
  144. data/lib/countries/configuration.rb +2 -0
  145. data/lib/countries/country/class_methods.rb +20 -103
  146. data/lib/countries/country/currency_methods.rb +2 -0
  147. data/lib/countries/country/emoji.rb +2 -3
  148. data/lib/countries/country/finder_methods.rb +81 -0
  149. data/lib/countries/country.rb +32 -43
  150. data/lib/countries/data/countries/KN.yaml +0 -1
  151. data/lib/countries/data/subdivisions/AD.yaml +14 -7
  152. data/lib/countries/data/subdivisions/AE.yaml +14 -7
  153. data/lib/countries/data/subdivisions/AF.yaml +196 -201
  154. data/lib/countries/data/subdivisions/AG.yaml +16 -22
  155. data/lib/countries/data/subdivisions/AL.yaml +24 -12
  156. data/lib/countries/data/subdivisions/AM.yaml +22 -11
  157. data/lib/countries/data/subdivisions/AO.yaml +36 -18
  158. data/lib/countries/data/subdivisions/AR.yaml +48 -24
  159. data/lib/countries/data/subdivisions/AT.yaml +18 -9
  160. data/lib/countries/data/subdivisions/AU.yaml +16 -8
  161. data/lib/countries/data/subdivisions/AZ.yaml +434 -412
  162. data/lib/countries/data/subdivisions/BA.yaml +75 -223
  163. data/lib/countries/data/subdivisions/BB.yaml +22 -11
  164. data/lib/countries/data/subdivisions/BD.yaml +188 -116
  165. data/lib/countries/data/subdivisions/BE.yaml +174 -161
  166. data/lib/countries/data/subdivisions/BF.yaml +2918 -2860
  167. data/lib/countries/data/subdivisions/BG.yaml +56 -28
  168. data/lib/countries/data/subdivisions/BH.yaml +8 -21
  169. data/lib/countries/data/subdivisions/BI.yaml +176 -157
  170. data/lib/countries/data/subdivisions/BJ.yaml +24 -12
  171. data/lib/countries/data/subdivisions/BN.yaml +8 -4
  172. data/lib/countries/data/subdivisions/BO.yaml +18 -9
  173. data/lib/countries/data/subdivisions/BQ.yaml +6 -3
  174. data/lib/countries/data/subdivisions/BR.yaml +54 -27
  175. data/lib/countries/data/subdivisions/BS.yaml +575 -697
  176. data/lib/countries/data/subdivisions/BT.yaml +40 -20
  177. data/lib/countries/data/subdivisions/BW.yaml +337 -321
  178. data/lib/countries/data/subdivisions/BY.yaml +106 -116
  179. data/lib/countries/data/subdivisions/BZ.yaml +12 -6
  180. data/lib/countries/data/subdivisions/CA.yaml +26 -13
  181. data/lib/countries/data/subdivisions/CD.yaml +488 -525
  182. data/lib/countries/data/subdivisions/CF.yaml +34 -17
  183. data/lib/countries/data/subdivisions/CG.yaml +40 -28
  184. data/lib/countries/data/subdivisions/CH.yaml +52 -26
  185. data/lib/countries/data/subdivisions/CI.yaml +244 -516
  186. data/lib/countries/data/subdivisions/CL.yaml +81 -65
  187. data/lib/countries/data/subdivisions/CM.yaml +20 -10
  188. data/lib/countries/data/subdivisions/CN.yaml +2152 -2084
  189. data/lib/countries/data/subdivisions/CO.yaml +66 -33
  190. data/lib/countries/data/subdivisions/CR.yaml +14 -7
  191. data/lib/countries/data/subdivisions/CU.yaml +32 -16
  192. data/lib/countries/data/subdivisions/CV.yaml +427 -401
  193. data/lib/countries/data/subdivisions/CY.yaml +12 -6
  194. data/lib/countries/data/subdivisions/CZ.yaml +1116 -85
  195. data/lib/countries/data/subdivisions/DE.yaml +32 -16
  196. data/lib/countries/data/subdivisions/DJ.yaml +12 -6
  197. data/lib/countries/data/subdivisions/DK.yaml +25 -17
  198. data/lib/countries/data/subdivisions/DM.yaml +20 -10
  199. data/lib/countries/data/subdivisions/DO.yaml +84 -42
  200. data/lib/countries/data/subdivisions/DZ.yaml +96 -48
  201. data/lib/countries/data/subdivisions/EC.yaml +158 -134
  202. data/lib/countries/data/subdivisions/EE.yaml +501 -334
  203. data/lib/countries/data/subdivisions/EG.yaml +54 -27
  204. data/lib/countries/data/subdivisions/ER.yaml +12 -6
  205. data/lib/countries/data/subdivisions/ES.yaml +1459 -1390
  206. data/lib/countries/data/subdivisions/ET.yaml +22 -11
  207. data/lib/countries/data/subdivisions/FI.yaml +185 -1
  208. data/lib/countries/data/subdivisions/FJ.yaml +443 -424
  209. data/lib/countries/data/subdivisions/FM.yaml +8 -4
  210. data/lib/countries/data/subdivisions/FR.yaml +438 -275
  211. data/lib/countries/data/subdivisions/GA.yaml +18 -9
  212. data/lib/countries/data/subdivisions/GB.yaml +1185 -1708
  213. data/lib/countries/data/subdivisions/GD.yaml +14 -7
  214. data/lib/countries/data/subdivisions/GE.yaml +24 -12
  215. data/lib/countries/data/subdivisions/GH.yaml +114 -155
  216. data/lib/countries/data/subdivisions/GL.yaml +24 -79
  217. data/lib/countries/data/subdivisions/GM.yaml +12 -6
  218. data/lib/countries/data/subdivisions/GN.yaml +444 -403
  219. data/lib/countries/data/subdivisions/GQ.yaml +24 -13
  220. data/lib/countries/data/subdivisions/GR.yaml +114 -73
  221. data/lib/countries/data/subdivisions/GT.yaml +44 -22
  222. data/lib/countries/data/subdivisions/GW.yaml +69 -57
  223. data/lib/countries/data/subdivisions/GY.yaml +20 -10
  224. data/lib/countries/data/subdivisions/HN.yaml +36 -18
  225. data/lib/countries/data/subdivisions/HR.yaml +42 -21
  226. data/lib/countries/data/subdivisions/HT.yaml +73 -63
  227. data/lib/countries/data/subdivisions/HU.yaml +106 -63
  228. data/lib/countries/data/subdivisions/ID.yaml +229 -188
  229. data/lib/countries/data/subdivisions/IE.yaml +128 -97
  230. data/lib/countries/data/subdivisions/IL.yaml +12 -6
  231. data/lib/countries/data/subdivisions/IN.yaml +245 -396
  232. data/lib/countries/data/subdivisions/IQ.yaml +111 -91
  233. data/lib/countries/data/subdivisions/IR.yaml +1463 -1451
  234. data/lib/countries/data/subdivisions/IS.yaml +160 -25
  235. data/lib/countries/data/subdivisions/IT.yaml +8740 -8292
  236. data/lib/countries/data/subdivisions/JM.yaml +28 -14
  237. data/lib/countries/data/subdivisions/JO.yaml +24 -12
  238. data/lib/countries/data/subdivisions/JP.yaml +94 -47
  239. data/lib/countries/data/subdivisions/KE.yaml +95 -48
  240. data/lib/countries/data/subdivisions/KG.yaml +95 -86
  241. data/lib/countries/data/subdivisions/KH.yaml +64 -39
  242. data/lib/countries/data/subdivisions/KI.yaml +6 -3
  243. data/lib/countries/data/subdivisions/KM.yaml +6 -3
  244. data/lib/countries/data/subdivisions/KN.yaml +32 -16
  245. data/lib/countries/data/subdivisions/KP.yaml +24 -227
  246. data/lib/countries/data/subdivisions/KR.yaml +34 -17
  247. data/lib/countries/data/subdivisions/KW.yaml +12 -6
  248. data/lib/countries/data/subdivisions/KZ.yaml +47 -102
  249. data/lib/countries/data/subdivisions/LA.yaml +36 -34
  250. data/lib/countries/data/subdivisions/LB.yaml +71 -63
  251. data/lib/countries/data/subdivisions/LC.yaml +116 -106
  252. data/lib/countries/data/subdivisions/LI.yaml +22 -11
  253. data/lib/countries/data/subdivisions/LK.yaml +445 -411
  254. data/lib/countries/data/subdivisions/LR.yaml +146 -129
  255. data/lib/countries/data/subdivisions/LS.yaml +20 -10
  256. data/lib/countries/data/subdivisions/LT.yaml +1706 -1636
  257. data/lib/countries/data/subdivisions/LU.yaml +24 -12
  258. data/lib/countries/data/subdivisions/LV.yaml +1623 -1577
  259. data/lib/countries/data/subdivisions/LY.yaml +44 -22
  260. data/lib/countries/data/subdivisions/MA.yaml +810 -1589
  261. data/lib/countries/data/subdivisions/MC.yaml +261 -244
  262. data/lib/countries/data/subdivisions/MD.yaml +74 -79
  263. data/lib/countries/data/subdivisions/ME.yaml +217 -195
  264. data/lib/countries/data/subdivisions/MG.yaml +12 -6
  265. data/lib/countries/data/subdivisions/MH.yaml +167 -140
  266. data/lib/countries/data/subdivisions/MK.yaml +160 -80
  267. data/lib/countries/data/subdivisions/ML.yaml +48 -37
  268. data/lib/countries/data/subdivisions/MM.yaml +30 -15
  269. data/lib/countries/data/subdivisions/MN.yaml +44 -22
  270. data/lib/countries/data/subdivisions/MR.yaml +30 -34
  271. data/lib/countries/data/subdivisions/MT.yaml +136 -68
  272. data/lib/countries/data/subdivisions/MU.yaml +24 -262
  273. data/lib/countries/data/subdivisions/MV.yaml +161 -254
  274. data/lib/countries/data/subdivisions/MW.yaml +250 -219
  275. data/lib/countries/data/subdivisions/MX.yaml +67 -47
  276. data/lib/countries/data/subdivisions/MY.yaml +32 -16
  277. data/lib/countries/data/subdivisions/MZ.yaml +22 -11
  278. data/lib/countries/data/subdivisions/NA.yaml +58 -44
  279. data/lib/countries/data/subdivisions/NE.yaml +16 -8
  280. data/lib/countries/data/subdivisions/NG.yaml +74 -37
  281. data/lib/countries/data/subdivisions/NI.yaml +34 -17
  282. data/lib/countries/data/subdivisions/NL.yaml +303 -285
  283. data/lib/countries/data/subdivisions/NO.yaml +39 -17
  284. data/lib/countries/data/subdivisions/NP.yaml +302 -276
  285. data/lib/countries/data/subdivisions/NR.yaml +28 -14
  286. data/lib/countries/data/subdivisions/NZ.yaml +34 -17
  287. data/lib/countries/data/subdivisions/OM.yaml +260 -311
  288. data/lib/countries/data/subdivisions/PA.yaml +57 -44
  289. data/lib/countries/data/subdivisions/PE.yaml +107 -81
  290. data/lib/countries/data/subdivisions/PG.yaml +163 -158
  291. data/lib/countries/data/subdivisions/PH.yaml +5062 -4992
  292. data/lib/countries/data/subdivisions/PK.yaml +145 -235
  293. data/lib/countries/data/subdivisions/PL.yaml +51 -3
  294. data/lib/countries/data/subdivisions/PS.yaml +32 -16
  295. data/lib/countries/data/subdivisions/PT.yaml +53 -33
  296. data/lib/countries/data/subdivisions/PW.yaml +32 -16
  297. data/lib/countries/data/subdivisions/PY.yaml +36 -18
  298. data/lib/countries/data/subdivisions/QA.yaml +27 -78
  299. data/lib/countries/data/subdivisions/RO.yaml +84 -42
  300. data/lib/countries/data/subdivisions/RS.yaml +104 -72
  301. data/lib/countries/data/subdivisions/RU.yaml +166 -83
  302. data/lib/countries/data/subdivisions/RW.yaml +10 -5
  303. data/lib/countries/data/subdivisions/SA.yaml +26 -13
  304. data/lib/countries/data/subdivisions/SB.yaml +20 -10
  305. data/lib/countries/data/subdivisions/SC.yaml +54 -25
  306. data/lib/countries/data/subdivisions/SD.yaml +798 -780
  307. data/lib/countries/data/subdivisions/SE.yaml +42 -21
  308. data/lib/countries/data/subdivisions/SG.yaml +15 -10
  309. data/lib/countries/data/subdivisions/SH.yaml +21 -32
  310. data/lib/countries/data/subdivisions/SI.yaml +475 -263
  311. data/lib/countries/data/subdivisions/SK.yaml +16 -8
  312. data/lib/countries/data/subdivisions/SL.yaml +23 -18
  313. data/lib/countries/data/subdivisions/SM.yaml +18 -9
  314. data/lib/countries/data/subdivisions/SN.yaml +188 -174
  315. data/lib/countries/data/subdivisions/SO.yaml +36 -18
  316. data/lib/countries/data/subdivisions/SR.yaml +20 -10
  317. data/lib/countries/data/subdivisions/SS.yaml +20 -10
  318. data/lib/countries/data/subdivisions/ST.yaml +38 -52
  319. data/lib/countries/data/subdivisions/SV.yaml +28 -14
  320. data/lib/countries/data/subdivisions/SY.yaml +28 -14
  321. data/lib/countries/data/subdivisions/SZ.yaml +8 -4
  322. data/lib/countries/data/subdivisions/TD.yaml +312 -303
  323. data/lib/countries/data/subdivisions/TG.yaml +10 -5
  324. data/lib/countries/data/subdivisions/TH.yaml +211 -133
  325. data/lib/countries/data/subdivisions/TJ.yaml +161 -156
  326. data/lib/countries/data/subdivisions/TL.yaml +26 -13
  327. data/lib/countries/data/subdivisions/TM.yaml +12 -6
  328. data/lib/countries/data/subdivisions/TN.yaml +48 -24
  329. data/lib/countries/data/subdivisions/TO.yaml +10 -5
  330. data/lib/countries/data/subdivisions/TR.yaml +162 -81
  331. data/lib/countries/data/subdivisions/TT.yaml +128 -160
  332. data/lib/countries/data/subdivisions/TV.yaml +57 -63
  333. data/lib/countries/data/subdivisions/TW.yaml +143 -183
  334. data/lib/countries/data/subdivisions/TZ.yaml +62 -31
  335. data/lib/countries/data/subdivisions/UA.yaml +55 -28
  336. data/lib/countries/data/subdivisions/UG.yaml +4806 -4660
  337. data/lib/countries/data/subdivisions/UM.yaml +18 -9
  338. data/lib/countries/data/subdivisions/US.yaml +114 -57
  339. data/lib/countries/data/subdivisions/UY.yaml +99 -80
  340. data/lib/countries/data/subdivisions/UZ.yaml +28 -14
  341. data/lib/countries/data/subdivisions/VC.yaml +12 -6
  342. data/lib/countries/data/subdivisions/VE.yaml +50 -25
  343. data/lib/countries/data/subdivisions/VN.yaml +3576 -3513
  344. data/lib/countries/data/subdivisions/VU.yaml +12 -6
  345. data/lib/countries/data/subdivisions/WF.yaml +6 -3
  346. data/lib/countries/data/subdivisions/WS.yaml +22 -11
  347. data/lib/countries/data/subdivisions/YE.yaml +222 -200
  348. data/lib/countries/data/subdivisions/ZA.yaml +86 -100
  349. data/lib/countries/data/subdivisions/ZM.yaml +20 -10
  350. data/lib/countries/data/subdivisions/ZW.yaml +20 -10
  351. data/lib/countries/data/translations/countries-ab.yaml +254 -0
  352. data/lib/countries/data/translations/countries-af.yaml +254 -0
  353. data/lib/countries/data/translations/countries-ak.yaml +254 -0
  354. data/lib/countries/data/translations/countries-am.yaml +254 -0
  355. data/lib/countries/data/translations/countries-an.yaml +254 -0
  356. data/lib/countries/data/translations/countries-ar.yaml +254 -0
  357. data/lib/countries/data/translations/countries-as.yaml +254 -0
  358. data/lib/countries/data/translations/countries-ay.yaml +254 -0
  359. data/lib/countries/data/translations/countries-az.yaml +254 -0
  360. data/lib/countries/data/translations/countries-ba.yaml +254 -0
  361. data/lib/countries/data/translations/countries-be.yaml +254 -0
  362. data/lib/countries/data/translations/countries-bg.yaml +254 -0
  363. data/lib/countries/data/translations/countries-bi.yaml +254 -0
  364. data/lib/countries/data/translations/countries-bn.yaml +254 -0
  365. data/lib/countries/data/translations/countries-bn_IN.yaml +254 -0
  366. data/lib/countries/data/translations/countries-br.yaml +254 -0
  367. data/lib/countries/data/translations/countries-bs.yaml +254 -0
  368. data/lib/countries/data/translations/countries-ca.yaml +254 -0
  369. data/lib/countries/data/translations/countries-ce.yaml +254 -0
  370. data/lib/countries/data/translations/countries-ch.yaml +254 -0
  371. data/lib/countries/data/translations/countries-cs.yaml +254 -0
  372. data/lib/countries/data/translations/countries-cv.yaml +254 -0
  373. data/lib/countries/data/translations/countries-cy.yaml +254 -0
  374. data/lib/countries/data/translations/countries-da.yaml +254 -0
  375. data/lib/countries/data/translations/countries-de.yaml +254 -0
  376. data/lib/countries/data/translations/countries-dv.yaml +254 -0
  377. data/lib/countries/data/translations/countries-dz.yaml +254 -0
  378. data/lib/countries/data/translations/countries-ee.yaml +254 -0
  379. data/lib/countries/data/translations/countries-el.yaml +254 -0
  380. data/lib/countries/data/translations/countries-en.yaml +254 -0
  381. data/lib/countries/data/translations/countries-eo.yaml +254 -0
  382. data/lib/countries/data/translations/countries-es.yaml +254 -0
  383. data/lib/countries/data/translations/countries-et.yaml +254 -0
  384. data/lib/countries/data/translations/countries-eu.yaml +254 -0
  385. data/lib/countries/data/translations/countries-fa.yaml +254 -0
  386. data/lib/countries/data/translations/countries-ff.yaml +254 -0
  387. data/lib/countries/data/translations/countries-fi.yaml +254 -0
  388. data/lib/countries/data/translations/countries-fo.yaml +254 -0
  389. data/lib/countries/data/translations/countries-fr.yaml +254 -0
  390. data/lib/countries/data/translations/countries-fy.yaml +254 -0
  391. data/lib/countries/data/translations/countries-ga.yaml +254 -0
  392. data/lib/countries/data/translations/countries-gl.yaml +254 -0
  393. data/lib/countries/data/translations/countries-gn.yaml +254 -0
  394. data/lib/countries/data/translations/countries-gu.yaml +254 -0
  395. data/lib/countries/data/translations/countries-gv.yaml +254 -0
  396. data/lib/countries/data/translations/countries-ha.yaml +254 -0
  397. data/lib/countries/data/translations/countries-he.yaml +254 -0
  398. data/lib/countries/data/translations/countries-hi.yaml +254 -0
  399. data/lib/countries/data/translations/countries-hr.yaml +254 -0
  400. data/lib/countries/data/translations/countries-ht.yaml +254 -0
  401. data/lib/countries/data/translations/countries-hu.yaml +254 -0
  402. data/lib/countries/data/translations/countries-hy.yaml +254 -0
  403. data/lib/countries/data/translations/countries-ia.yaml +254 -0
  404. data/lib/countries/data/translations/countries-id.yaml +254 -0
  405. data/lib/countries/data/translations/countries-io.yaml +254 -0
  406. data/lib/countries/data/translations/countries-is.yaml +254 -0
  407. data/lib/countries/data/translations/countries-it.yaml +254 -0
  408. data/lib/countries/data/translations/countries-iu.yaml +254 -0
  409. data/lib/countries/data/translations/countries-ja.yaml +254 -0
  410. data/lib/countries/data/translations/countries-ka.yaml +254 -0
  411. data/lib/countries/data/translations/countries-ki.yaml +254 -0
  412. data/lib/countries/data/translations/countries-kk.yaml +254 -0
  413. data/lib/countries/data/translations/countries-kl.yaml +254 -0
  414. data/lib/countries/data/translations/countries-km.yaml +254 -0
  415. data/lib/countries/data/translations/countries-kn.yaml +254 -0
  416. data/lib/countries/data/translations/countries-ko.yaml +254 -0
  417. data/lib/countries/data/translations/countries-ku.yaml +254 -0
  418. data/lib/countries/data/translations/countries-kv.yaml +254 -0
  419. data/lib/countries/data/translations/countries-kw.yaml +254 -0
  420. data/lib/countries/data/translations/countries-ky.yaml +254 -0
  421. data/lib/countries/data/translations/countries-lo.yaml +254 -0
  422. data/lib/countries/data/translations/countries-lt.yaml +254 -0
  423. data/lib/countries/data/translations/countries-lv.yaml +254 -0
  424. data/lib/countries/data/translations/countries-mi.yaml +254 -0
  425. data/lib/countries/data/translations/countries-mk.yaml +254 -0
  426. data/lib/countries/data/translations/countries-ml.yaml +254 -0
  427. data/lib/countries/data/translations/countries-mn.yaml +254 -0
  428. data/lib/countries/data/translations/countries-mr.yaml +254 -0
  429. data/lib/countries/data/translations/countries-ms.yaml +254 -0
  430. data/lib/countries/data/translations/countries-mt.yaml +254 -0
  431. data/lib/countries/data/translations/countries-my.yaml +254 -0
  432. data/lib/countries/data/translations/countries-na.yaml +254 -0
  433. data/lib/countries/data/translations/countries-nb.yaml +254 -0
  434. data/lib/countries/data/translations/countries-ne.yaml +254 -0
  435. data/lib/countries/data/translations/countries-nl.yaml +254 -0
  436. data/lib/countries/data/translations/countries-nn.yaml +254 -0
  437. data/lib/countries/data/translations/countries-nv.yaml +254 -0
  438. data/lib/countries/data/translations/countries-oc.yaml +254 -0
  439. data/lib/countries/data/translations/countries-or.yaml +254 -0
  440. data/lib/countries/data/translations/countries-pa.yaml +254 -0
  441. data/lib/countries/data/translations/countries-pi.yaml +254 -0
  442. data/lib/countries/data/translations/countries-pl.yaml +254 -0
  443. data/lib/countries/data/translations/countries-ps.yaml +254 -0
  444. data/lib/countries/data/translations/countries-pt.yaml +254 -0
  445. data/lib/countries/data/translations/countries-pt_BR.yaml +254 -0
  446. data/lib/countries/data/translations/countries-ro.yaml +254 -0
  447. data/lib/countries/data/translations/countries-ru.yaml +254 -0
  448. data/lib/countries/data/translations/countries-rw.yaml +254 -0
  449. data/lib/countries/data/translations/countries-sc.yaml +254 -0
  450. data/lib/countries/data/translations/countries-sd.yaml +254 -0
  451. data/lib/countries/data/translations/countries-si.yaml +254 -0
  452. data/lib/countries/data/translations/countries-sk.yaml +254 -0
  453. data/lib/countries/data/translations/countries-sl.yaml +254 -0
  454. data/lib/countries/data/translations/countries-so.yaml +254 -0
  455. data/lib/countries/data/translations/countries-sq.yaml +254 -0
  456. data/lib/countries/data/translations/countries-sr.yaml +254 -0
  457. data/lib/countries/data/translations/countries-sv.yaml +254 -0
  458. data/lib/countries/data/translations/countries-sw.yaml +254 -0
  459. data/lib/countries/data/translations/countries-ta.yaml +254 -0
  460. data/lib/countries/data/translations/countries-te.yaml +254 -0
  461. data/lib/countries/data/translations/countries-tg.yaml +254 -0
  462. data/lib/countries/data/translations/countries-th.yaml +254 -0
  463. data/lib/countries/data/translations/countries-ti.yaml +254 -0
  464. data/lib/countries/data/translations/countries-tk.yaml +254 -0
  465. data/lib/countries/data/translations/countries-tl.yaml +254 -0
  466. data/lib/countries/data/translations/countries-tr.yaml +254 -0
  467. data/lib/countries/data/translations/countries-tt.yaml +254 -0
  468. data/lib/countries/data/translations/countries-ug.yaml +254 -0
  469. data/lib/countries/data/translations/countries-uk.yaml +254 -0
  470. data/lib/countries/data/translations/countries-ur.yaml +254 -0
  471. data/lib/countries/data/translations/countries-uz.yaml +254 -0
  472. data/lib/countries/data/translations/countries-ve.yaml +254 -0
  473. data/lib/countries/data/translations/countries-vi.yaml +254 -0
  474. data/lib/countries/data/translations/countries-wa.yaml +254 -0
  475. data/lib/countries/data/translations/countries-wo.yaml +254 -0
  476. data/lib/countries/data/translations/countries-xh.yaml +254 -0
  477. data/lib/countries/data/translations/countries-yo.yaml +254 -0
  478. data/lib/countries/data/translations/countries-zh_CN.yaml +254 -0
  479. data/lib/countries/data/translations/countries-zh_HK.yaml +254 -0
  480. data/lib/countries/data/translations/countries-zh_TW.yaml +254 -0
  481. data/lib/countries/data/translations/countries-zu.yaml +254 -0
  482. data/lib/countries/data.rb +45 -42
  483. data/lib/countries/global.rb +2 -0
  484. data/lib/countries/iso3166.rb +3 -1
  485. data/lib/countries/kwarg_struct.rb +2 -0
  486. data/lib/countries/mongoid.rb +2 -0
  487. data/lib/countries/sources/cldr/downloader.rb +8 -8
  488. data/lib/countries/sources/cldr/subdivision.rb +3 -0
  489. data/lib/countries/sources/cldr/subdivision_updater.rb +23 -17
  490. data/lib/countries/sources/local/cached_loader.rb +3 -0
  491. data/lib/countries/sources/local/subdivision.rb +5 -2
  492. data/lib/countries/sources.rb +2 -0
  493. data/lib/countries/structure.rb +1 -1
  494. data/lib/countries/subdivision.rb +21 -8
  495. data/lib/countries/tasks/geocoding.rake +15 -6
  496. data/lib/countries/tasks/postal_codes.rake +5 -3
  497. data/lib/countries/timezones.rb +5 -2
  498. data/lib/countries/translations.rb +2 -0
  499. data/lib/countries/version.rb +3 -1
  500. data/lib/countries.rb +2 -0
  501. data/spec/00_global_spec.rb +2 -0
  502. data/spec/configuration_spec.rb +11 -5
  503. data/spec/country_spec.rb +131 -38
  504. data/spec/data_spec.rb +85 -21
  505. data/spec/mongoid_spec.rb +2 -2
  506. data/spec/perf_spec.rb +16 -16
  507. data/spec/spec_helper.rb +2 -0
  508. data/spec/subdivision_spec.rb +6 -4
  509. data/spec/thread_safety_spec.rb +4 -3
  510. data/spec/timezone_spec.rb +2 -0
  511. metadata +146 -34
  512. data/lib/countries/cache/locales/zh.json +0 -1
  513. data/lib/countries/data/subdivisions/AI.yaml +0 -197
  514. data/lib/countries/data/subdivisions/BM.yaml +0 -155
  515. data/lib/countries/data/subdivisions/CK.yaml +0 -155
  516. data/lib/countries/data/subdivisions/EH.yaml +0 -80
  517. data/lib/countries/data/subdivisions/SJ.yaml +0 -29
  518. data/lib/countries/data/subdivisions/TK.yaml +0 -43
  519. data/lib/countries/data/translation_corrections.yaml +0 -51
  520. data/lib/countries/setup.rb +0 -18
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  '03':
3
3
  name: Saint George
4
- code:
4
+ code: '03'
5
5
  unofficial_names: Saint George
6
6
  geo:
7
7
  latitude: 17.1078489
@@ -54,9 +54,10 @@
54
54
  ca: Parròquia de Saint George
55
55
  'no': Saint George prestegjeld
56
56
  comments:
57
+ type: parish
57
58
  '04':
58
59
  name: Saint John’s
59
- code:
60
+ code: '04'
60
61
  unofficial_names: Saint John’s
61
62
  geo:
62
63
  latitude: 17.116667
@@ -94,9 +95,10 @@
94
95
  ca: Parròquia de Saint John
95
96
  'no': Saint John prestegjeld
96
97
  comments:
98
+ type: parish
97
99
  '05':
98
100
  name: Saint Mary
99
- code:
101
+ code: '05'
100
102
  unofficial_names: Saint Mary
101
103
  geo:
102
104
  latitude: 17.0512064
@@ -150,9 +152,10 @@
150
152
  ca: Parròquia de Saint Mary
151
153
  'no': Saint Mary prestegjeld
152
154
  comments:
155
+ type: parish
153
156
  '06':
154
157
  name: Saint Paul
155
- code:
158
+ code: '06'
156
159
  unofficial_names: Saint Paul
157
160
  geo:
158
161
  latitude: 17.0371588
@@ -205,9 +208,10 @@
205
208
  ca: Parròquia de Saint Paul
206
209
  'no': Saint Paul prestegjeld
207
210
  comments:
211
+ type: parish
208
212
  '07':
209
213
  name: Saint Peter
210
- code:
214
+ code: '07'
211
215
  unofficial_names: Saint Peter
212
216
  geo:
213
217
  latitude: 17.0980665
@@ -260,9 +264,10 @@
260
264
  ca: Parròquia de Saint Peter
261
265
  'no': Saint Peter prestegjeld
262
266
  comments:
267
+ type: parish
263
268
  '08':
264
269
  name: Saint Philip
265
- code:
270
+ code: '08'
266
271
  unofficial_names: Saint Philip
267
272
  geo:
268
273
  latitude: 17.0480636
@@ -315,9 +320,10 @@
315
320
  ca: Parròquia de Saint Philip
316
321
  'no': Saint Philip prestegjeld
317
322
  comments:
323
+ type: parish
318
324
  '10':
319
325
  name: Barbuda
320
- code:
326
+ code: '10'
321
327
  unofficial_names: Barbuda
322
328
  geo:
323
329
  latitude: 17.626798
@@ -386,23 +392,10 @@
386
392
  'no': Barbuda
387
393
  yo_BJ: Bàrbúdà
388
394
  comments:
389
- X2~:
390
- name: Redonda
391
- code:
392
- unofficial_names: Redonda
393
- geo:
394
- latitude: 16.938416
395
- longitude: -62.3455148
396
- min_latitude: 16.9325319
397
- min_longitude: -62.347657
398
- max_latitude: 16.9430241
399
- max_longitude: -62.342078
400
- translations:
401
- en: Redonda
402
- comments:
395
+ type: dependency
403
396
  '11':
404
397
  name: Redonda
405
- code:
398
+ code: '11'
406
399
  unofficial_names:
407
400
  geo:
408
401
  latitude:
@@ -465,3 +458,4 @@ X2~:
465
458
  mk: Редонда
466
459
  'no': Redonda
467
460
  comments:
461
+ type: dependency
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  '01':
3
3
  name: Berat
4
- code:
4
+ code: '01'
5
5
  unofficial_names:
6
6
  geo:
7
7
  latitude: 40.7086377
@@ -70,9 +70,10 @@
70
70
  mk: Белград
71
71
  'no': Berat
72
72
  comments:
73
+ type: county
73
74
  '02':
74
75
  name: Durrës
75
- code:
76
+ code: '02'
76
77
  unofficial_names:
77
78
  geo:
78
79
  latitude: 41.316667
@@ -141,9 +142,10 @@
141
142
  mk: Драч
142
143
  'no': Durrës
143
144
  comments:
145
+ type: county
144
146
  '03':
145
147
  name: Elbasan
146
- code:
148
+ code: '03'
147
149
  unofficial_names:
148
150
  geo:
149
151
  latitude: 41.11023
@@ -199,9 +201,10 @@
199
201
  mk: Елбасан
200
202
  'no': Elbasan
201
203
  comments:
204
+ type: county
202
205
  '04':
203
206
  name: Fier
204
- code:
207
+ code: '04'
205
208
  unofficial_names:
206
209
  geo:
207
210
  latitude: 40.9191392
@@ -255,9 +258,10 @@
255
258
  mk: Фиер
256
259
  'no': Fier
257
260
  comments:
261
+ type: county
258
262
  '05':
259
263
  name: Gjirokastër
260
- code:
264
+ code: '05'
261
265
  unofficial_names:
262
266
  geo:
263
267
  latitude: 40.0672874
@@ -327,9 +331,10 @@
327
331
  mk: Ѓирокастро
328
332
  'no': Gjirokastër
329
333
  comments:
334
+ type: county
330
335
  '06':
331
336
  name: Korçë
332
- code:
337
+ code: '06'
333
338
  unofficial_names:
334
339
  geo:
335
340
  latitude: 40.6140785
@@ -396,9 +401,10 @@
396
401
  mk: Горица
397
402
  'no': Korçë
398
403
  comments:
404
+ type: county
399
405
  '07':
400
406
  name: Kukës
401
- code:
407
+ code: '07'
402
408
  unofficial_names:
403
409
  geo:
404
410
  latitude: 42.076667
@@ -452,9 +458,10 @@
452
458
  mk: Кукуш
453
459
  'no': Kukës
454
460
  comments:
461
+ type: county
455
462
  '08':
456
463
  name: Lezhë
457
- code:
464
+ code: '08'
458
465
  unofficial_names:
459
466
  geo:
460
467
  latitude: 41.78607299999999
@@ -509,9 +516,10 @@
509
516
  mk: Леска
510
517
  'no': Lezhë
511
518
  comments:
519
+ type: county
512
520
  '09':
513
521
  name: Dibër
514
- code:
522
+ code: '09'
515
523
  unofficial_names:
516
524
  geo:
517
525
  latitude: 41.5888163
@@ -567,9 +575,10 @@
567
575
  mk: Дебар
568
576
  'no': Dibër
569
577
  comments:
578
+ type: county
570
579
  '10':
571
580
  name: Shkodër
572
- code:
581
+ code: '10'
573
582
  unofficial_names:
574
583
  geo:
575
584
  latitude: 42.0692985
@@ -627,9 +636,10 @@
627
636
  mk: Скадар
628
637
  'no': Shkodër
629
638
  comments:
639
+ type: county
630
640
  '11':
631
641
  name: Tiranë
632
- code:
642
+ code: '11'
633
643
  unofficial_names:
634
644
  - Tiranë
635
645
  - Tirana
@@ -690,9 +700,10 @@
690
700
  mk: Тирана
691
701
  'no': Tiranë
692
702
  comments:
703
+ type: county
693
704
  '12':
694
705
  name: Vlorë
695
- code:
706
+ code: '12'
696
707
  unofficial_names:
697
708
  geo:
698
709
  latitude: 40.465
@@ -759,3 +770,4 @@
759
770
  mk: Валона
760
771
  'no': Vlorë
761
772
  comments:
773
+ type: county
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  AG:
3
3
  name: Aragacotn
4
- code:
4
+ code: AG
5
5
  unofficial_names: Aragacotn
6
6
  geo:
7
7
  latitude:
@@ -73,9 +73,10 @@ AG:
73
73
  mk: Арагацотн
74
74
  'no': Aragatsotn
75
75
  comments:
76
+ type: region
76
77
  AR:
77
78
  name: Ararat
78
- code:
79
+ code: AR
79
80
  unofficial_names: Ararat
80
81
  geo:
81
82
  latitude: 39.9753273
@@ -143,9 +144,10 @@ AR:
143
144
  mk: Арарат
144
145
  'no': Ararat
145
146
  comments:
147
+ type: region
146
148
  AV:
147
149
  name: Armavir
148
- code:
150
+ code: AV
149
151
  unofficial_names: Armavir
150
152
  geo:
151
153
  latitude: 40.1315615
@@ -214,9 +216,10 @@ AV:
214
216
  mk: Армавир
215
217
  'no': Armavir
216
218
  comments:
219
+ type: region
217
220
  ER:
218
221
  name: Erevan
219
- code:
222
+ code: ER
220
223
  unofficial_names: Erevan
221
224
  geo:
222
225
  latitude: 40.183333
@@ -306,9 +309,10 @@ ER:
306
309
  'no': Jerevan
307
310
  yo_BJ: Yerevan
308
311
  comments:
312
+ type: city
309
313
  GR:
310
314
  name: Gegark'unik'
311
- code:
315
+ code: GR
312
316
  unofficial_names:
313
317
  - Gegharkunick
314
318
  geo:
@@ -378,9 +382,10 @@ GR:
378
382
  mk: Гехаркуник
379
383
  'no': Gegharkunik
380
384
  comments:
385
+ type: region
381
386
  KT:
382
387
  name: Kotayk'
383
- code:
388
+ code: KT
384
389
  unofficial_names:
385
390
  - Kotaik
386
391
  geo:
@@ -450,9 +455,10 @@ KT:
450
455
  mk: Котајк
451
456
  'no': Kotajk
452
457
  comments:
458
+ type: region
453
459
  LO:
454
460
  name: Lory
455
- code:
461
+ code: LO
456
462
  unofficial_names:
457
463
  - Lorri
458
464
  geo:
@@ -522,9 +528,10 @@ LO:
522
528
  mk: Лори
523
529
  'no': Lori
524
530
  comments:
531
+ type: region
525
532
  SH:
526
533
  name: Širak
527
- code:
534
+ code: SH
528
535
  unofficial_names: Širak
529
536
  geo:
530
537
  latitude: 40.9630814
@@ -593,9 +600,10 @@ SH:
593
600
  mk: Ширак
594
601
  'no': Sjirak
595
602
  comments:
603
+ type: region
596
604
  SU:
597
605
  name: Syunik'
598
- code:
606
+ code: SU
599
607
  unofficial_names: Syunik'
600
608
  geo:
601
609
  latitude: 39.3194392
@@ -665,9 +673,10 @@ SU:
665
673
  mk: Сјуник
666
674
  'no': Syunik
667
675
  comments:
676
+ type: region
668
677
  TV:
669
678
  name: Tavuš
670
- code:
679
+ code: TV
671
680
  unofficial_names:
672
681
  - Tavoush
673
682
  geo:
@@ -737,9 +746,10 @@ TV:
737
746
  mk: Тавуш
738
747
  'no': Tavusj
739
748
  comments:
749
+ type: region
740
750
  VD:
741
751
  name: Vayoc Jor
742
- code:
752
+ code: VD
743
753
  unofficial_names: Vayoc Jor
744
754
  geo:
745
755
  latitude: 39.8107912
@@ -810,3 +820,4 @@ VD:
810
820
  mk: Вајоц Ѕор
811
821
  'no': Vajots Dzor
812
822
  comments:
823
+ type: region
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  BGO:
3
3
  name: Bengo
4
- code:
4
+ code: BGO
5
5
  unofficial_names: Bengo
6
6
  geo:
7
7
  latitude: -9.104225699999999
@@ -68,9 +68,10 @@ BGO:
68
68
  yue: 本哥省
69
69
  'no': Bengo
70
70
  comments:
71
+ type: province
71
72
  BGU:
72
73
  name: Benguela
73
- code:
74
+ code: BGU
74
75
  unofficial_names: Benguela
75
76
  geo:
76
77
  latitude: -12.5905158
@@ -135,9 +136,10 @@ BGU:
135
136
  yue: 班圭拉省
136
137
  'no': Benguela
137
138
  comments:
139
+ type: province
138
140
  BIE:
139
141
  name: Bié
140
- code:
142
+ code: BIE
141
143
  unofficial_names: Bié
142
144
  geo:
143
145
  latitude: -12.5727907
@@ -201,9 +203,10 @@ BIE:
201
203
  yue: 比耶省
202
204
  'no': Bié
203
205
  comments:
206
+ type: province
204
207
  CAB:
205
208
  name: Cabinda
206
- code:
209
+ code: CAB
207
210
  unofficial_names:
208
211
  - Kabinda
209
212
  geo:
@@ -275,9 +278,10 @@ CAB:
275
278
  yue: 喀丙達省
276
279
  'no': Cabinda
277
280
  comments:
281
+ type: province
278
282
  CCU:
279
283
  name: Cuando-Cubango
280
- code:
284
+ code: CCU
281
285
  unofficial_names:
282
286
  - Cuando-Cubango
283
287
  geo:
@@ -342,9 +346,10 @@ CCU:
342
346
  yue: 庫安多古班哥省
343
347
  'no': Cuando Cubango
344
348
  comments:
349
+ type: province
345
350
  CNN:
346
351
  name: Cunene
347
- code:
352
+ code: CNN
348
353
  unofficial_names: Cunene
349
354
  geo:
350
355
  latitude: -16.2802221
@@ -406,9 +411,10 @@ CNN:
406
411
  yue: 庫內納省
407
412
  'no': Cunene
408
413
  comments:
414
+ type: province
409
415
  CNO:
410
416
  name: Cuanza Norte
411
- code:
417
+ code: CNO
412
418
  unofficial_names:
413
419
  - Cuanza-Norte
414
420
  geo:
@@ -471,9 +477,10 @@ CNO:
471
477
  yue: 北廣薩省
472
478
  'no': Cuanza Norte
473
479
  comments:
480
+ type: province
474
481
  CUS:
475
482
  name: Cuanza Sul
476
- code:
483
+ code: CUS
477
484
  unofficial_names:
478
485
  - Cuanza-Sul
479
486
  geo:
@@ -536,9 +543,10 @@ CUS:
536
543
  yue: 南廣薩省
537
544
  'no': Cuanza Sul
538
545
  comments:
546
+ type: province
539
547
  HUA:
540
548
  name: Huambo
541
- code:
549
+ code: HUA
542
550
  unofficial_names: Huambo
543
551
  geo:
544
552
  latitude: -12.766667
@@ -602,9 +610,10 @@ HUA:
602
610
  yue: 萬博省
603
611
  'no': Huambo
604
612
  comments:
613
+ type: province
605
614
  HUI:
606
615
  name: Huíla
607
- code:
616
+ code: HUI
608
617
  unofficial_names: Huíla
609
618
  geo:
610
619
  latitude: -14.9280553
@@ -666,9 +675,10 @@ HUI:
666
675
  yue: 威拉省
667
676
  'no': Huíla
668
677
  comments:
678
+ type: province
669
679
  LNO:
670
680
  name: Lunda Norte
671
- code:
681
+ code: LNO
672
682
  unofficial_names: Lunda Norte
673
683
  geo:
674
684
  latitude: -8.352502200000002
@@ -730,9 +740,10 @@ LNO:
730
740
  yue: 北倫達省
731
741
  'no': Lunda Norte
732
742
  comments:
743
+ type: province
733
744
  LSU:
734
745
  name: Lunda Sul
735
- code:
746
+ code: LSU
736
747
  unofficial_names: Lunda Sul
737
748
  geo:
738
749
  latitude: -10.2866578
@@ -794,9 +805,10 @@ LSU:
794
805
  yue: 南倫達省
795
806
  'no': Lunda Sul
796
807
  comments:
808
+ type: province
797
809
  LUA:
798
810
  name: Luanda
799
- code:
811
+ code: LUA
800
812
  unofficial_names: Luanda
801
813
  geo:
802
814
  latitude: -8.838333
@@ -860,9 +872,10 @@ LUA:
860
872
  yue: 羅安達省
861
873
  'no': Luanda
862
874
  comments:
875
+ type: province
863
876
  MAL:
864
877
  name: Malange
865
- code:
878
+ code: MAL
866
879
  unofficial_names:
867
880
  - Malange
868
881
  geo:
@@ -925,9 +938,10 @@ MAL:
925
938
  yue: 馬蘭哲省
926
939
  'no': Malanje
927
940
  comments:
941
+ type: province
928
942
  MOX:
929
943
  name: Moxico
930
- code:
944
+ code: MOX
931
945
  unofficial_names: Moxico
932
946
  geo:
933
947
  latitude: -13.4293579
@@ -992,9 +1006,10 @@ MOX:
992
1006
  yue: 莫西古省
993
1007
  'no': Moxico
994
1008
  comments:
1009
+ type: province
995
1010
  NAM:
996
1011
  name: Namibe
997
- code:
1012
+ code: NAM
998
1013
  unofficial_names: Namibe
999
1014
  geo:
1000
1015
  latitude: -15.195278
@@ -1058,9 +1073,10 @@ NAM:
1058
1073
  yue: 納米貝省
1059
1074
  'no': Namibe
1060
1075
  comments:
1076
+ type: province
1061
1077
  UIG:
1062
1078
  name: Uíge
1063
- code:
1079
+ code: UIG
1064
1080
  unofficial_names: Uíge
1065
1081
  geo:
1066
1082
  latitude: -7.616667
@@ -1122,9 +1138,10 @@ UIG:
1122
1138
  yue: 威熱省
1123
1139
  'no': Uíge
1124
1140
  comments:
1141
+ type: province
1125
1142
  ZAI:
1126
1143
  name: Zaire
1127
- code:
1144
+ code: ZAI
1128
1145
  unofficial_names: Zaire
1129
1146
  geo:
1130
1147
  latitude: -6.573345799999999
@@ -1185,3 +1202,4 @@ ZAI:
1185
1202
  yue: 薩伊省
1186
1203
  'no': Zaire
1187
1204
  comments:
1205
+ type: province