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
  AD:
3
3
  name: Adygeya, Respublika
4
- code:
4
+ code: AD
5
5
  unofficial_names:
6
6
  - Adygei Republic
7
7
  - Adygeja
@@ -86,9 +86,10 @@ AD:
86
86
  mk: Адигеја
87
87
  'no': Adygia
88
88
  comments:
89
+ type: republic
89
90
  AL:
90
91
  name: Altay, Respublika
91
- code:
92
+ code: AL
92
93
  unofficial_names:
93
94
  - Altaj
94
95
  - Altay
@@ -171,9 +172,10 @@ AL:
171
172
  mk: Република Алтај
172
173
  'no': Altaj
173
174
  comments:
175
+ type: republic
174
176
  ALT:
175
177
  name: Altayskiy kray
176
- code:
178
+ code: ALT
177
179
  unofficial_names:
178
180
  - Altai Kray
179
181
  - Altajskij Kray
@@ -255,9 +257,10 @@ ALT:
255
257
  mk: Алтајски крај
256
258
  'no': Altaj²
257
259
  comments:
260
+ type: administrative_territory
258
261
  AMU:
259
262
  name: Amurskaya oblast'
260
- code:
263
+ code: AMU
261
264
  unofficial_names:
262
265
  - Amurskaja Oblast
263
266
  geo:
@@ -336,9 +339,10 @@ AMU:
336
339
  mk: Амурска област
337
340
  'no': Amur
338
341
  comments:
342
+ type: administrative_region
339
343
  ARK:
340
344
  name: Arkhangel'skaya oblast'
341
- code:
345
+ code: ARK
342
346
  unofficial_names:
343
347
  - Arhangelskaja Oblast
344
348
  - Arhangelsk
@@ -420,9 +424,10 @@ ARK:
420
424
  mk: Архангелска област
421
425
  'no': Arkhangelsk
422
426
  comments:
427
+ type: administrative_region
423
428
  AST:
424
429
  name: Astrakhanskaya oblast'
425
- code:
430
+ code: AST
426
431
  unofficial_names:
427
432
  - Astrahanska Oblast
428
433
  - Astrahan
@@ -503,9 +508,10 @@ AST:
503
508
  mk: Астраханска област
504
509
  'no': Astrakhan
505
510
  comments:
511
+ type: administrative_region
506
512
  BA:
507
513
  name: Bashkortostan, Respublika
508
- code:
514
+ code: BA
509
515
  unofficial_names:
510
516
  - Baškortostan
511
517
  geo:
@@ -592,9 +598,10 @@ BA:
592
598
  mk: Башкортостан
593
599
  'no': Basjkortostan
594
600
  comments:
601
+ type: republic
595
602
  BEL:
596
603
  name: Belgorodskaya oblast'
597
- code:
604
+ code: BEL
598
605
  unofficial_names:
599
606
  - Belgorodskaja Oblast
600
607
  geo:
@@ -672,9 +679,10 @@ BEL:
672
679
  mk: Белгородска област
673
680
  'no': Belgorod
674
681
  comments:
682
+ type: administrative_region
675
683
  BRY:
676
684
  name: Bryanskaya oblast'
677
- code:
685
+ code: BRY
678
686
  unofficial_names:
679
687
  - Brjanskaja Oblast
680
688
  - Brjansk
@@ -754,9 +762,10 @@ BRY:
754
762
  mk: Брјанска област
755
763
  'no': Brjansk
756
764
  comments:
765
+ type: administrative_region
757
766
  BU:
758
767
  name: Buryatiya, Respublika
759
- code:
768
+ code: BU
760
769
  unofficial_names:
761
770
  - Buryat Republic
762
771
  - Burjatija
@@ -839,9 +848,10 @@ BU:
839
848
  mk: Бурјатија
840
849
  'no': Burjatia
841
850
  comments:
851
+ type: republic
842
852
  CE:
843
853
  name: Chechenskaya Respublika
844
- code:
854
+ code: CE
845
855
  unofficial_names:
846
856
  - Chechen
847
857
  - Chechenia
@@ -934,9 +944,10 @@ CE:
934
944
  mk: Чеченија
935
945
  'no': Tsjetsjenia
936
946
  comments:
947
+ type: republic
937
948
  CHE:
938
949
  name: Chelyabinskaya oblast'
939
- code:
950
+ code: CHE
940
951
  unofficial_names:
941
952
  - Cheljabinsk
942
953
  - Čeljabinskaja Oblast
@@ -1017,9 +1028,10 @@ CHE:
1017
1028
  mk: Чељабинска област
1018
1029
  'no': Tsjeljabinsk
1019
1030
  comments:
1031
+ type: administrative_region
1020
1032
  CHU:
1021
1033
  name: Chukotskiy avtonomnyy okrug
1022
- code:
1034
+ code: CHU
1023
1035
  unofficial_names:
1024
1036
  - Chuckchi
1025
1037
  - Čukotskij Avtonomnyj Okrug
@@ -1100,9 +1112,10 @@ CHU:
1100
1112
  mk: Чукотски автономен округ
1101
1113
  'no': Tsjukotka
1102
1114
  comments:
1115
+ type: autonomous_district
1103
1116
  CU:
1104
1117
  name: Chuvashskaya Respublika
1105
- code:
1118
+ code: CU
1106
1119
  unofficial_names:
1107
1120
  - Chuvash Republic
1108
1121
  - Chuvashskaya Respublika
@@ -1186,9 +1199,10 @@ CU:
1186
1199
  mk: Чувашија
1187
1200
  'no': Tsjuvasjia
1188
1201
  comments:
1202
+ type: republic
1189
1203
  DA:
1190
1204
  name: Dagestan, Respublika
1191
- code:
1205
+ code: DA
1192
1206
  unofficial_names: Dagestan, Respublika
1193
1207
  geo:
1194
1208
  latitude: 55.7599606
@@ -1273,9 +1287,10 @@ DA:
1273
1287
  mk: Дагестан
1274
1288
  'no': Dagestan
1275
1289
  comments:
1290
+ type: republic
1276
1291
  IN:
1277
1292
  name: Ingushskaya Respublika [Respublika Ingushetiya]
1278
- code:
1293
+ code: IN
1279
1294
  unofficial_names:
1280
1295
  - Ingushetija
1281
1296
  - Ingušetija
@@ -1352,9 +1367,10 @@ IN:
1352
1367
  mk: Ингушетија
1353
1368
  'no': Ingusjetia
1354
1369
  comments:
1370
+ type: republic
1355
1371
  IRK:
1356
1372
  name: Irkutskaya oblast'
1357
- code:
1373
+ code: IRK
1358
1374
  unofficial_names:
1359
1375
  - Irkutskaja Oblast
1360
1376
  geo:
@@ -1432,9 +1448,10 @@ IRK:
1432
1448
  mk: Иркутска област
1433
1449
  'no': Irkutsk
1434
1450
  comments:
1451
+ type: administrative_region
1435
1452
  IVA:
1436
1453
  name: Ivanovskaya oblast'
1437
- code:
1454
+ code: IVA
1438
1455
  unofficial_names:
1439
1456
  - Ivanovskaja Oblast
1440
1457
  geo:
@@ -1512,9 +1529,10 @@ IVA:
1512
1529
  mk: Ивановска област
1513
1530
  'no': Ivanovo
1514
1531
  comments:
1532
+ type: administrative_region
1515
1533
  KAM:
1516
1534
  name: Kamchatskaya oblast'
1517
- code:
1535
+ code: KAM
1518
1536
  unofficial_names:
1519
1537
  - Kamchatskaya Oblast
1520
1538
  - Kamčatskaja Oblast
@@ -1597,9 +1615,10 @@ KAM:
1597
1615
  mk: Камчатски крај
1598
1616
  'no': Kamtsjatka
1599
1617
  comments:
1618
+ type: administrative_territory
1600
1619
  KB:
1601
1620
  name: Kabardino-Balkarskaya Respublika
1602
- code:
1621
+ code: KB
1603
1622
  unofficial_names:
1604
1623
  - Kabardino-Balkarian Republic
1605
1624
  - Kabardino-Balkarskaja Respublika
@@ -1683,9 +1702,10 @@ KB:
1683
1702
  mk: Кабардино-Балкарија
1684
1703
  'no': Kabardino-Balkaria
1685
1704
  comments:
1705
+ type: republic
1686
1706
  KC:
1687
1707
  name: Karachayevo-Cherkesskaya Respublika
1688
- code:
1708
+ code: KC
1689
1709
  unofficial_names:
1690
1710
  - Karachay-Cherkessian
1691
1711
  - Karačajevo-Čerkesskaja Respublika
@@ -1768,9 +1788,10 @@ KC:
1768
1788
  mk: Карачаево-Черкесија
1769
1789
  'no': Karatsjajevo-Tsjerkessia
1770
1790
  comments:
1791
+ type: republic
1771
1792
  KDA:
1772
1793
  name: Krasnodarskiy kray
1773
- code:
1794
+ code: KDA
1774
1795
  unofficial_names:
1775
1796
  - Krasnodarskij Kraj
1776
1797
  geo:
@@ -1852,9 +1873,10 @@ KDA:
1852
1873
  mk: Краснодарски крај
1853
1874
  'no': Krasnodar
1854
1875
  comments:
1876
+ type: administrative_territory
1855
1877
  KEM:
1856
1878
  name: Kemerovskaya oblast'
1857
- code:
1879
+ code: KEM
1858
1880
  unofficial_names:
1859
1881
  - Kemerovskaja Oblast
1860
1882
  geo:
@@ -1932,9 +1954,10 @@ KEM:
1932
1954
  mk: Кемеровска област
1933
1955
  'no': Kemerovo
1934
1956
  comments:
1957
+ type: administrative_region
1935
1958
  KGD:
1936
1959
  name: Kaliningradskaya oblast'
1937
- code:
1960
+ code: KGD
1938
1961
  unofficial_names:
1939
1962
  - Kaliningradskaja Oblast
1940
1963
  geo:
@@ -2017,9 +2040,10 @@ KGD:
2017
2040
  'no': Kaliningrad
2018
2041
  yo_BJ: Kaliningrad Oblast
2019
2042
  comments:
2043
+ type: administrative_region
2020
2044
  KGN:
2021
2045
  name: Kurganskaya oblast'
2022
- code:
2046
+ code: KGN
2023
2047
  unofficial_names:
2024
2048
  - Kurganskaja Oblast
2025
2049
  geo:
@@ -2098,9 +2122,10 @@ KGN:
2098
2122
  mk: Курганска област
2099
2123
  'no': Kurgan
2100
2124
  comments:
2125
+ type: administrative_region
2101
2126
  KHA:
2102
2127
  name: Khabarovskiy kray
2103
- code:
2128
+ code: KHA
2104
2129
  unofficial_names:
2105
2130
  - Habarovskij Kray
2106
2131
  - Habarovsk
@@ -2182,9 +2207,10 @@ KHA:
2182
2207
  mk: Хабаровски крај
2183
2208
  'no': Khabarovsk
2184
2209
  comments:
2210
+ type: administrative_territory
2185
2211
  KHM:
2186
2212
  name: Khanty-Mansiyskiy avtonomnyy okrug [Yugra]
2187
- code:
2213
+ code: KHM
2188
2214
  unofficial_names:
2189
2215
  - Hanty-Mansijskij Avtonomnyj Okrug
2190
2216
  - Hanty-Mansija
@@ -2262,9 +2288,10 @@ KHM:
2262
2288
  mk: Ханти-Мансиски автономен округ
2263
2289
  'no': Khanty-Mansia
2264
2290
  comments:
2291
+ type: autonomous_district
2265
2292
  KIR:
2266
2293
  name: Kirovskaya oblast'
2267
- code:
2294
+ code: KIR
2268
2295
  unofficial_names:
2269
2296
  - Kirovskaja Oblast
2270
2297
  geo:
@@ -2342,9 +2369,10 @@ KIR:
2342
2369
  mk: Кировска област
2343
2370
  'no': Kirov
2344
2371
  comments:
2372
+ type: administrative_region
2345
2373
  KK:
2346
2374
  name: Khakasiya, Respublika
2347
- code:
2375
+ code: KK
2348
2376
  unofficial_names:
2349
2377
  - Khakass Republic
2350
2378
  - Hakasija
@@ -2425,9 +2453,10 @@ KK:
2425
2453
  mk: Хакасија
2426
2454
  'no': Khakasia
2427
2455
  comments:
2456
+ type: republic
2428
2457
  KL:
2429
2458
  name: Kalmykiya, Respublika
2430
- code:
2459
+ code: KL
2431
2460
  unofficial_names:
2432
2461
  - Halmg-Tangč
2433
2462
  - Kalmyk Republic
@@ -2512,9 +2541,10 @@ KL:
2512
2541
  mk: Калмикија
2513
2542
  'no': Kalmykia
2514
2543
  comments:
2544
+ type: republic
2515
2545
  KLU:
2516
2546
  name: Kaluzhskaya oblast'
2517
- code:
2547
+ code: KLU
2518
2548
  unofficial_names:
2519
2549
  - Kaluzhskaya Oblast
2520
2550
  - Kalužskaja Oblast
@@ -2592,9 +2622,10 @@ KLU:
2592
2622
  mk: Калушка област
2593
2623
  'no': Kaluga
2594
2624
  comments:
2625
+ type: administrative_region
2595
2626
  KO:
2596
2627
  name: Komi, Respublika
2597
- code:
2628
+ code: KO
2598
2629
  unofficial_names: Komi, Respublika
2599
2630
  geo:
2600
2631
  latitude: 63.8630539
@@ -2674,9 +2705,10 @@ KO:
2674
2705
  mk: Коми
2675
2706
  'no': Komi
2676
2707
  comments:
2708
+ type: republic
2677
2709
  KOS:
2678
2710
  name: Kostromskaya oblast'
2679
- code:
2711
+ code: KOS
2680
2712
  unofficial_names:
2681
2713
  - Kostromskaja Oblast
2682
2714
  geo:
@@ -2754,9 +2786,10 @@ KOS:
2754
2786
  mk: Костромска област
2755
2787
  'no': Kostroma
2756
2788
  comments:
2789
+ type: administrative_region
2757
2790
  KR:
2758
2791
  name: Kareliya, Respublika
2759
- code:
2792
+ code: KR
2760
2793
  unofficial_names:
2761
2794
  - Karelian Republic
2762
2795
  - Karelija
@@ -2839,9 +2872,10 @@ KR:
2839
2872
  mk: Република Карелија
2840
2873
  'no': Karelia
2841
2874
  comments:
2875
+ type: republic
2842
2876
  KRS:
2843
2877
  name: Kurskaya oblast'
2844
- code:
2878
+ code: KRS
2845
2879
  unofficial_names:
2846
2880
  - Kurskaja Oblast
2847
2881
  geo:
@@ -2918,9 +2952,10 @@ KRS:
2918
2952
  mk: Курска област
2919
2953
  'no': Kursk
2920
2954
  comments:
2955
+ type: administrative_region
2921
2956
  KYA:
2922
2957
  name: Krasnoyarskiy kray
2923
- code:
2958
+ code: KYA
2924
2959
  unofficial_names:
2925
2960
  - Krasnojarsk
2926
2961
  - Krasnojarskij Kraj
@@ -3002,9 +3037,10 @@ KYA:
3002
3037
  mk: Краснојарски крај
3003
3038
  'no': Krasnojarsk
3004
3039
  comments:
3040
+ type: administrative_territory
3005
3041
  LEN:
3006
3042
  name: Leningradskaya oblast'
3007
- code:
3043
+ code: LEN
3008
3044
  unofficial_names:
3009
3045
  - Leningradskaja Oblast
3010
3046
  geo:
@@ -3085,9 +3121,10 @@ LEN:
3085
3121
  mk: Ленинградска област
3086
3122
  'no': Leningrad
3087
3123
  comments:
3124
+ type: administrative_region
3088
3125
  LIP:
3089
3126
  name: Lipetskaya oblast'
3090
- code:
3127
+ code: LIP
3091
3128
  unofficial_names:
3092
3129
  - Lipeckaja Oblast
3093
3130
  - Lipeck
@@ -3168,9 +3205,10 @@ LIP:
3168
3205
  mk: Липецка област
3169
3206
  'no': Lipetsk
3170
3207
  comments:
3208
+ type: administrative_region
3171
3209
  MAG:
3172
3210
  name: Magadanskaya oblast'
3173
- code:
3211
+ code: MAG
3174
3212
  unofficial_names:
3175
3213
  - Magadanskaja Oblast
3176
3214
  geo:
@@ -3249,9 +3287,10 @@ MAG:
3249
3287
  mk: Магаданска област
3250
3288
  'no': Magadan
3251
3289
  comments:
3290
+ type: administrative_region
3252
3291
  ME:
3253
3292
  name: Mariy El, Respublika
3254
- code:
3293
+ code: ME
3255
3294
  unofficial_names:
3256
3295
  - Mariy El
3257
3296
  - Marij El
@@ -3333,9 +3372,10 @@ ME:
3333
3372
  mk: Мариј Ел
3334
3373
  'no': Mari El
3335
3374
  comments:
3375
+ type: republic
3336
3376
  MO:
3337
3377
  name: Mordoviya, Respublika
3338
- code:
3378
+ code: MO
3339
3379
  unofficial_names:
3340
3380
  - Mordovian Republic
3341
3381
  - Mordovija
@@ -3416,9 +3456,10 @@ MO:
3416
3456
  mk: Мордовија
3417
3457
  'no': Mordovia
3418
3458
  comments:
3459
+ type: republic
3419
3460
  MOS:
3420
3461
  name: Moskovskaya oblast'
3421
- code:
3462
+ code: MOS
3422
3463
  unofficial_names:
3423
3464
  - Moskovskaja Oblast
3424
3465
  geo:
@@ -3497,9 +3538,10 @@ MOS:
3497
3538
  mk: Московска област
3498
3539
  'no': Moskva
3499
3540
  comments:
3541
+ type: administrative_region
3500
3542
  MOW:
3501
3543
  name: Moskva
3502
- code:
3544
+ code: MOW
3503
3545
  unofficial_names:
3504
3546
  - Moskva
3505
3547
  - Moskau
@@ -3601,9 +3643,10 @@ MOW:
3601
3643
  ha_NE: Moscow
3602
3644
  'no': Moskva²
3603
3645
  comments:
3646
+ type: autonomous_city
3604
3647
  MUR:
3605
3648
  name: Murmanskaya oblast'
3606
- code:
3649
+ code: MUR
3607
3650
  unofficial_names:
3608
3651
  - Murmanskaja Oblast
3609
3652
  geo:
@@ -3682,9 +3725,10 @@ MUR:
3682
3725
  mk: Мурманска област
3683
3726
  'no': Murmansk
3684
3727
  comments:
3728
+ type: administrative_region
3685
3729
  NEN:
3686
3730
  name: Nenetskiy avtonomnyy okrug
3687
- code:
3731
+ code: NEN
3688
3732
  unofficial_names:
3689
3733
  - Nenetskij Avtonomnyj Okrug
3690
3734
  geo:
@@ -3761,9 +3805,10 @@ NEN:
3761
3805
  mk: Ненецки автономен округ
3762
3806
  'no': Nenetsk
3763
3807
  comments:
3808
+ type: autonomous_district
3764
3809
  NGR:
3765
3810
  name: Novgorodskaya oblast'
3766
- code:
3811
+ code: NGR
3767
3812
  unofficial_names:
3768
3813
  - Novgorodskaja Oblast
3769
3814
  geo:
@@ -3840,9 +3885,10 @@ NGR:
3840
3885
  mk: Новгородска област
3841
3886
  'no': Novgorod
3842
3887
  comments:
3888
+ type: administrative_region
3843
3889
  NIZ:
3844
3890
  name: Nizhegorodskaya oblast'
3845
- code:
3891
+ code: NIZ
3846
3892
  unofficial_names:
3847
3893
  - Gorki
3848
3894
  - Gorkij
@@ -3925,9 +3971,10 @@ NIZ:
3925
3971
  mk: Нижегородска област
3926
3972
  'no': Nizjnij Novgorod
3927
3973
  comments:
3974
+ type: administrative_region
3928
3975
  NVS:
3929
3976
  name: Novosibirskaya oblast'
3930
- code:
3977
+ code: NVS
3931
3978
  unofficial_names:
3932
3979
  - Novosibirskaja Oblast
3933
3980
  geo:
@@ -4005,9 +4052,10 @@ NVS:
4005
4052
  mk: Новосибирска област
4006
4053
  'no': Novosibirsk
4007
4054
  comments:
4055
+ type: administrative_region
4008
4056
  OMS:
4009
4057
  name: Omskaya oblast'
4010
- code:
4058
+ code: OMS
4011
4059
  unofficial_names:
4012
4060
  - Omskaja Oblast
4013
4061
  geo:
@@ -4086,9 +4134,10 @@ OMS:
4086
4134
  mk: Омска област
4087
4135
  'no': Omsk
4088
4136
  comments:
4137
+ type: administrative_region
4089
4138
  ORE:
4090
4139
  name: Orenburgskaya oblast'
4091
- code:
4140
+ code: ORE
4092
4141
  unofficial_names:
4093
4142
  - Orenburgskaja Oblast
4094
4143
  geo:
@@ -4168,9 +4217,10 @@ ORE:
4168
4217
  mk: Оренбуршка област
4169
4218
  'no': Orenburg
4170
4219
  comments:
4220
+ type: administrative_region
4171
4221
  ORL:
4172
4222
  name: Orlovskaya oblast'
4173
- code:
4223
+ code: ORL
4174
4224
  unofficial_names:
4175
4225
  - Orlovskaja Oblast
4176
4226
  - Orjol
@@ -4249,9 +4299,10 @@ ORL:
4249
4299
  mk: Орловска област
4250
4300
  'no': Orjol
4251
4301
  comments:
4302
+ type: administrative_region
4252
4303
  PER:
4253
4304
  name: Perm
4254
- code:
4305
+ code: PER
4255
4306
  unofficial_names:
4256
4307
  - Permskaja Oblast
4257
4308
  geo:
@@ -4327,9 +4378,10 @@ PER:
4327
4378
  mk: Пермски крај
4328
4379
  'no': Perm
4329
4380
  comments:
4381
+ type: administrative_territory
4330
4382
  PNZ:
4331
4383
  name: Penzenskaya oblast'
4332
- code:
4384
+ code: PNZ
4333
4385
  unofficial_names:
4334
4386
  - Penzenskaja Oblast
4335
4387
  geo:
@@ -4406,9 +4458,10 @@ PNZ:
4406
4458
  mk: Пензенска област
4407
4459
  'no': Penza
4408
4460
  comments:
4461
+ type: administrative_region
4409
4462
  PRI:
4410
4463
  name: Primorskiy kray
4411
- code:
4464
+ code: PRI
4412
4465
  unofficial_names:
4413
4466
  - Primorskij
4414
4467
  - Primorskij Kraj
@@ -4490,9 +4543,10 @@ PRI:
4490
4543
  mk: Приморски крај
4491
4544
  'no': Primorskij
4492
4545
  comments:
4546
+ type: administrative_territory
4493
4547
  PSK:
4494
4548
  name: Pskovskaya oblast'
4495
- code:
4549
+ code: PSK
4496
4550
  unofficial_names:
4497
4551
  - Pihkva
4498
4552
  - Pleskau
@@ -4571,9 +4625,10 @@ PSK:
4571
4625
  mk: Псковска област
4572
4626
  'no': Pskov
4573
4627
  comments:
4628
+ type: administrative_region
4574
4629
  ROS:
4575
4630
  name: Rostovskaya oblast'
4576
- code:
4631
+ code: ROS
4577
4632
  unofficial_names:
4578
4633
  - Rostovskaja Oblast
4579
4634
  geo:
@@ -4653,9 +4708,10 @@ ROS:
4653
4708
  mk: Ростовска област
4654
4709
  'no': Rostov
4655
4710
  comments:
4711
+ type: administrative_region
4656
4712
  RYA:
4657
4713
  name: Ryazanskaya oblast'
4658
- code:
4714
+ code: RYA
4659
4715
  unofficial_names:
4660
4716
  - Rjazanskaja Oblast
4661
4717
  - Rjazan
@@ -4734,9 +4790,10 @@ RYA:
4734
4790
  mk: Рјазањска област
4735
4791
  'no': Rjazan
4736
4792
  comments:
4793
+ type: administrative_region
4737
4794
  SA:
4738
4795
  name: Sakha, Respublika [Yakutiya]
4739
- code:
4796
+ code: SA
4740
4797
  unofficial_names:
4741
4798
  - Jakutija
4742
4799
  - Sakha
@@ -4824,9 +4881,10 @@ SA:
4824
4881
  mk: Јакутија
4825
4882
  'no': Sakha
4826
4883
  comments:
4884
+ type: republic
4827
4885
  SAK:
4828
4886
  name: Sakhalinskaya oblast'
4829
- code:
4887
+ code: SAK
4830
4888
  unofficial_names:
4831
4889
  - Sahalinskaya Oblast
4832
4890
  - Sahalin
@@ -4908,9 +4966,10 @@ SAK:
4908
4966
  mk: Сахалинска област
4909
4967
  'no': Sakhalin
4910
4968
  comments:
4969
+ type: administrative_region
4911
4970
  SAM:
4912
4971
  name: Samarskaya oblast'
4913
- code:
4972
+ code: SAM
4914
4973
  unofficial_names:
4915
4974
  - Samarskaja Oblast
4916
4975
  geo:
@@ -4987,9 +5046,10 @@ SAM:
4987
5046
  mk: Самарска област
4988
5047
  'no': Samara
4989
5048
  comments:
5049
+ type: administrative_region
4990
5050
  SAR:
4991
5051
  name: Saratovskaya oblast'
4992
- code:
5052
+ code: SAR
4993
5053
  unofficial_names:
4994
5054
  - Saratovskaja Oblast
4995
5055
  geo:
@@ -5066,9 +5126,10 @@ SAR:
5066
5126
  mk: Саратовска област
5067
5127
  'no': Saratov
5068
5128
  comments:
5129
+ type: administrative_region
5069
5130
  SE:
5070
5131
  name: Severnaya Osetiya, Respublika [Alaniya] [Respublika Severnaya Osetiya-Alaniya]
5071
- code:
5132
+ code: SE
5072
5133
  unofficial_names:
5073
5134
  - Alania
5074
5135
  - North Ossetian Republic
@@ -5154,9 +5215,10 @@ SE:
5154
5215
  mk: Северна Осетија-Аланија
5155
5216
  'no': Nord-Ossetia
5156
5217
  comments:
5218
+ type: republic
5157
5219
  SMO:
5158
5220
  name: Smolenskaya oblast'
5159
- code:
5221
+ code: SMO
5160
5222
  unofficial_names:
5161
5223
  - Smolenskaja Oblast
5162
5224
  geo:
@@ -5233,9 +5295,10 @@ SMO:
5233
5295
  mk: Смоленска област
5234
5296
  'no': Smolensk
5235
5297
  comments:
5298
+ type: administrative_region
5236
5299
  SPE:
5237
5300
  name: Sankt-Peterburg
5238
- code:
5301
+ code: SPE
5239
5302
  unofficial_names:
5240
5303
  - San Pietroburgo
5241
5304
  - Sankt-Peterburg
@@ -5334,9 +5397,10 @@ SPE:
5334
5397
  'no': St. Petersburg
5335
5398
  yo_BJ: Saint Petersburg
5336
5399
  comments:
5400
+ type: autonomous_city
5337
5401
  STA:
5338
5402
  name: Stavropol'skiy kray
5339
- code:
5403
+ code: STA
5340
5404
  unofficial_names:
5341
5405
  - Stavropolskij Kraj
5342
5406
  geo:
@@ -5414,9 +5478,10 @@ STA:
5414
5478
  mk: Ставрополски крај
5415
5479
  'no': Stavropol
5416
5480
  comments:
5481
+ type: administrative_territory
5417
5482
  SVE:
5418
5483
  name: Sverdlovskaya oblast'
5419
- code:
5484
+ code: SVE
5420
5485
  unofficial_names:
5421
5486
  - Sverdlovskaja Oblast
5422
5487
  geo:
@@ -5494,9 +5559,10 @@ SVE:
5494
5559
  mk: Свердловска област
5495
5560
  'no': Sverdlovsk
5496
5561
  comments:
5562
+ type: administrative_region
5497
5563
  TA:
5498
5564
  name: Tatarstan, Respublika
5499
- code:
5565
+ code: TA
5500
5566
  unofficial_names: Tatarstan, Respublika
5501
5567
  geo:
5502
5568
  latitude: 55.1802364
@@ -5580,9 +5646,10 @@ TA:
5580
5646
  mk: Татарстан
5581
5647
  'no': Tatarstan
5582
5648
  comments:
5649
+ type: republic
5583
5650
  TAM:
5584
5651
  name: Tambovskaya oblast'
5585
- code:
5652
+ code: TAM
5586
5653
  unofficial_names:
5587
5654
  - Tambovskaja Oblast
5588
5655
  geo:
@@ -5659,9 +5726,10 @@ TAM:
5659
5726
  mk: Тамбовска област
5660
5727
  'no': Tambov
5661
5728
  comments:
5729
+ type: administrative_region
5662
5730
  TOM:
5663
5731
  name: Tomskaya oblast'
5664
- code:
5732
+ code: TOM
5665
5733
  unofficial_names:
5666
5734
  - Tomskaja Oblast
5667
5735
  geo:
@@ -5738,9 +5806,10 @@ TOM:
5738
5806
  mk: Томска област
5739
5807
  'no': Tomsk
5740
5808
  comments:
5809
+ type: administrative_region
5741
5810
  TUL:
5742
5811
  name: Tul'skaya oblast'
5743
- code:
5812
+ code: TUL
5744
5813
  unofficial_names:
5745
5814
  - Tulskaja Oblast
5746
5815
  geo:
@@ -5818,9 +5887,10 @@ TUL:
5818
5887
  mk: Тулска област
5819
5888
  'no': Tula
5820
5889
  comments:
5890
+ type: administrative_region
5821
5891
  TVE:
5822
5892
  name: Tverskaya oblast'
5823
- code:
5893
+ code: TVE
5824
5894
  unofficial_names:
5825
5895
  - Tverskaja Oblast
5826
5896
  geo:
@@ -5898,9 +5968,10 @@ TVE:
5898
5968
  mk: Тверска област
5899
5969
  'no': Tver
5900
5970
  comments:
5971
+ type: administrative_region
5901
5972
  TY:
5902
5973
  name: Tyva, Respublika [Tuva]
5903
- code:
5974
+ code: TY
5904
5975
  unofficial_names:
5905
5976
  - Tuva
5906
5977
  geo:
@@ -5983,9 +6054,10 @@ TY:
5983
6054
  mk: Тува
5984
6055
  'no': Tuva
5985
6056
  comments:
6057
+ type: republic
5986
6058
  TYU:
5987
6059
  name: Tyumenskaya oblast'
5988
- code:
6060
+ code: TYU
5989
6061
  unofficial_names:
5990
6062
  - Tjumenskaja Oblast
5991
6063
  - Tumen
@@ -6065,9 +6137,10 @@ TYU:
6065
6137
  mk: Тјумењска област
6066
6138
  'no': Tjumen
6067
6139
  comments:
6140
+ type: administrative_region
6068
6141
  UD:
6069
6142
  name: Udmurtskaya Respublika
6070
- code:
6143
+ code: UD
6071
6144
  unofficial_names:
6072
6145
  - Udmurt Republic
6073
6146
  - Udmurtskaya Respublika
@@ -6150,9 +6223,10 @@ UD:
6150
6223
  mk: Удмуртија
6151
6224
  'no': Udmurtia
6152
6225
  comments:
6226
+ type: republic
6153
6227
  ULY:
6154
6228
  name: Ul'yanovskaya oblast'
6155
- code:
6229
+ code: ULY
6156
6230
  unofficial_names:
6157
6231
  - Uljanovskaja Oblast
6158
6232
  - Uljanovsk
@@ -6231,9 +6305,10 @@ ULY:
6231
6305
  mk: Уљјановска област
6232
6306
  'no': Uljanovsk
6233
6307
  comments:
6308
+ type: administrative_region
6234
6309
  VGG:
6235
6310
  name: Volgogradskaya oblast'
6236
- code:
6311
+ code: VGG
6237
6312
  unofficial_names:
6238
6313
  - Volgogradskaja Oblast
6239
6314
  geo:
@@ -6312,9 +6387,10 @@ VGG:
6312
6387
  mk: Волгоградска област
6313
6388
  'no': Volgograd
6314
6389
  comments:
6390
+ type: administrative_region
6315
6391
  VLA:
6316
6392
  name: Vladimirskaya oblast'
6317
- code:
6393
+ code: VLA
6318
6394
  unofficial_names:
6319
6395
  - Vladimirskaja Oblast
6320
6396
  geo:
@@ -6393,9 +6469,10 @@ VLA:
6393
6469
  mk: Владимирска област
6394
6470
  'no': Vladimir
6395
6471
  comments:
6472
+ type: administrative_region
6396
6473
  VLG:
6397
6474
  name: Vologodskaya oblast'
6398
- code:
6475
+ code: VLG
6399
6476
  unofficial_names:
6400
6477
  - Vologodskaja Oblast
6401
6478
  geo:
@@ -6474,9 +6551,10 @@ VLG:
6474
6551
  mk: Вологодска област
6475
6552
  'no': Vologda
6476
6553
  comments:
6554
+ type: administrative_region
6477
6555
  VOR:
6478
6556
  name: Voronezhskaya oblast'
6479
- code:
6557
+ code: VOR
6480
6558
  unofficial_names:
6481
6559
  - Voronežskaja Oblast
6482
6560
  - Voronež
@@ -6556,9 +6634,10 @@ VOR:
6556
6634
  mk: Воронешка област
6557
6635
  'no': Voronezj
6558
6636
  comments:
6637
+ type: administrative_region
6559
6638
  YAN:
6560
6639
  name: Yamalo-Nenetskiy avtonomnyy okrug
6561
- code:
6640
+ code: YAN
6562
6641
  unofficial_names:
6563
6642
  - Jamalija
6564
6643
  - Jamalo-Nenetskij Avtonomnyj Okrug
@@ -6638,9 +6717,10 @@ YAN:
6638
6717
  mk: Јамало-Ненецки автономен округ
6639
6718
  'no': Jamalo-Nenetsk
6640
6719
  comments:
6720
+ type: autonomous_district
6641
6721
  YAR:
6642
6722
  name: Yaroslavskaya oblast'
6643
- code:
6723
+ code: YAR
6644
6724
  unofficial_names:
6645
6725
  - Jaroslavskaja Oblast
6646
6726
  - Jaroslavl
@@ -6718,9 +6798,10 @@ YAR:
6718
6798
  mk: Јарославска област
6719
6799
  'no': Jaroslavl
6720
6800
  comments:
6801
+ type: administrative_region
6721
6802
  YEV:
6722
6803
  name: Yevreyskaya avtonomnaya oblast'
6723
- code:
6804
+ code: YEV
6724
6805
  unofficial_names:
6725
6806
  - Jevrejskaja Oblast
6726
6807
  - Jevrejskaja Respublika
@@ -6804,9 +6885,10 @@ YEV:
6804
6885
  mk: Еврејска автономна област
6805
6886
  'no': Den jødiske autonome oblast
6806
6887
  comments:
6888
+ type: autonomous_district
6807
6889
  ZAB:
6808
6890
  name: Zabaykal'skij kray
6809
- code:
6891
+ code: ZAB
6810
6892
  unofficial_names:
6811
6893
  - Zabajkal'skij kraj
6812
6894
  - Zabajkal'skij
@@ -6886,3 +6968,4 @@ ZAB:
6886
6968
  mk: Забајкалски крај
6887
6969
  'no': Zabajkalskij
6888
6970
  comments:
6971
+ type: administrative_territory