carmen 1.0.2 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (386) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +15 -2
  3. data/README.md +40 -14
  4. data/iso_data/base/world/az/nx.yml +2 -2
  5. data/iso_data/base/world/ba/bih.yml +9 -9
  6. data/iso_data/base/world/bd/a.yml +2 -2
  7. data/iso_data/base/world/bd/b.yml +2 -2
  8. data/iso_data/base/world/bd/c.yml +9 -9
  9. data/iso_data/base/world/bd/e.yml +2 -2
  10. data/iso_data/base/world/bd/g.yml +2 -2
  11. data/iso_data/base/world/be/vlg.yml +2 -2
  12. data/iso_data/base/world/bf/06.yml +2 -2
  13. data/iso_data/base/world/cv/s.yml +8 -8
  14. data/iso_data/base/world/cz.yml +15 -15
  15. data/iso_data/base/world/cz/{pr.yml → 10.yml} +20 -6
  16. data/iso_data/base/world/cz/{st.yml → 20.yml} +0 -0
  17. data/iso_data/base/world/cz/{jc.yml → 31.yml} +0 -0
  18. data/iso_data/base/world/cz/{pl.yml → 32.yml} +2 -2
  19. data/iso_data/base/world/cz/{ka.yml → 41.yml} +0 -0
  20. data/iso_data/base/world/cz/{us.yml → 42.yml} +0 -0
  21. data/iso_data/base/world/cz/{li.yml → 51.yml} +0 -0
  22. data/iso_data/base/world/cz/{kr.yml → 52.yml} +0 -0
  23. data/iso_data/base/world/cz/{pa.yml → 53.yml} +0 -0
  24. data/iso_data/base/world/cz/{vy.yml → 63.yml} +5 -5
  25. data/iso_data/base/world/cz/{jm.yml → 64.yml} +7 -7
  26. data/iso_data/base/world/cz/{ol.yml → 71.yml} +0 -0
  27. data/iso_data/base/world/cz/{zl.yml → 72.yml} +0 -0
  28. data/iso_data/base/world/cz/{mo.yml → 80.yml} +0 -0
  29. data/iso_data/base/world/es/pv.yml +2 -2
  30. data/iso_data/base/world/fr.yml +24 -42
  31. data/iso_data/base/world/fr/{v.yml → ara.yml} +10 -2
  32. data/iso_data/base/world/fr/{n.yml → bfc.yml} +8 -8
  33. data/iso_data/base/world/fr/{e.yml → bre.yml} +0 -0
  34. data/iso_data/base/world/fr/{h.yml → cor.yml} +0 -0
  35. data/iso_data/base/world/fr/{f.yml → cvl.yml} +0 -0
  36. data/iso_data/base/world/fr/ges.yml +21 -0
  37. data/iso_data/base/world/fr/gua.yml +3 -0
  38. data/iso_data/base/world/fr/{b.yml → hdf.yml} +5 -5
  39. data/iso_data/base/world/fr/{j.yml → idf.yml} +6 -6
  40. data/iso_data/base/world/fr/lre.yml +3 -0
  41. data/iso_data/base/world/fr/may.yml +3 -0
  42. data/iso_data/base/world/fr/naq.yml +25 -0
  43. data/iso_data/base/world/fr/{k.yml → nor.yml} +5 -5
  44. data/iso_data/base/world/fr/occ.yml +27 -0
  45. data/iso_data/base/world/fr/{u.yml → pac.yml} +2 -2
  46. data/iso_data/base/world/fr/{r.yml → pdl.yml} +0 -0
  47. data/iso_data/base/world/gb.yml +3 -463
  48. data/iso_data/base/world/gb/eng.yml +305 -0
  49. data/iso_data/base/world/{bd/2.yml → gb/nir.yml} +11 -11
  50. data/iso_data/base/world/gb/sct.yml +65 -0
  51. data/iso_data/base/world/gb/wls.yml +45 -0
  52. data/iso_data/base/world/gr/a.yml +3 -3
  53. data/iso_data/base/world/gr/b.yml +3 -3
  54. data/iso_data/base/world/gr/c.yml +2 -2
  55. data/iso_data/base/world/gr/d.yml +2 -2
  56. data/iso_data/base/world/gr/f.yml +4 -4
  57. data/iso_data/base/world/gr/g.yml +2 -2
  58. data/iso_data/base/world/gr/h.yml +3 -3
  59. data/iso_data/base/world/gr/k.yml +2 -2
  60. data/iso_data/base/world/gr/m.yml +2 -2
  61. data/iso_data/base/world/id/jw.yml +2 -2
  62. data/iso_data/base/world/id/ka.yml +2 -2
  63. data/iso_data/base/world/id/sl.yml +5 -5
  64. data/iso_data/base/world/ie/l.yml +4 -4
  65. data/iso_data/base/world/it/25.yml +2 -2
  66. data/iso_data/base/world/it/34.yml +2 -2
  67. data/iso_data/base/world/it/45.yml +4 -4
  68. data/iso_data/base/world/it/52.yml +2 -2
  69. data/iso_data/base/world/it/65.yml +2 -2
  70. data/iso_data/base/world/it/75.yml +2 -2
  71. data/iso_data/base/world/it/78.yml +2 -2
  72. data/iso_data/base/world/it/88.yml +4 -4
  73. data/iso_data/base/world/la.yml +2 -2
  74. data/iso_data/base/world/lk/3.yml +2 -2
  75. data/iso_data/base/world/lk/4.yml +2 -2
  76. data/iso_data/base/world/lk/5.yml +2 -2
  77. data/iso_data/base/world/lk/9.yml +2 -2
  78. data/iso_data/base/world/ma/01.yml +3 -3
  79. data/iso_data/base/world/ma/04.yml +2 -2
  80. data/iso_data/base/world/ma/05.yml +2 -2
  81. data/iso_data/base/world/ma/06.yml +2 -2
  82. data/iso_data/base/world/ma/08.yml +4 -4
  83. data/iso_data/base/world/ma/11.yml +2 -2
  84. data/iso_data/base/world/ma/13.yml +4 -4
  85. data/iso_data/base/world/ma/14.yml +2 -2
  86. data/iso_data/base/world/ma/16.yml +2 -2
  87. data/iso_data/base/world/mv/ce.yml +2 -2
  88. data/iso_data/base/world/mv/nc.yml +3 -3
  89. data/iso_data/base/world/mv/no.yml +4 -4
  90. data/iso_data/base/world/mv/su.yml +2 -2
  91. data/iso_data/base/world/mw/c.yml +2 -2
  92. data/iso_data/base/world/mw/n.yml +2 -2
  93. data/iso_data/base/world/mw/s.yml +2 -2
  94. data/iso_data/base/world/nz/n.yml +4 -4
  95. data/iso_data/base/world/nz/s.yml +6 -6
  96. data/iso_data/base/world/ph/11.yml +2 -2
  97. data/iso_data/base/world/rs/km.yml +4 -4
  98. data/iso_data/base/world/rs/vo.yml +7 -7
  99. data/iso_data/base/world/ug/c.yml +8 -8
  100. data/iso_data/base/world/ug/e.yml +23 -23
  101. data/iso_data/base/world/ug/n.yml +17 -17
  102. data/iso_data/base/world/ug/w.yml +14 -14
  103. data/iso_data/overlay/world/bd.yml +3 -0
  104. data/iso_data/overlay/world/bm.yml +19 -0
  105. data/iso_data/overlay/world/ca/qc.yml +35 -0
  106. data/iso_data/overlay/world/gb.yml +2 -0
  107. data/iso_data/overlay/world/id/ka.yml +3 -0
  108. data/iso_data/overlay/world/in.yml +3 -0
  109. data/iso_data/overlay/world/mx/agu.yml +22 -0
  110. data/iso_data/overlay/world/mx/bcn.yml +11 -0
  111. data/iso_data/overlay/world/mx/bcs.yml +11 -0
  112. data/iso_data/overlay/world/mx/cam.yml +22 -0
  113. data/iso_data/overlay/world/mx/chh.yml +135 -0
  114. data/iso_data/overlay/world/mx/chp.yml +237 -0
  115. data/iso_data/overlay/world/mx/coa.yml +77 -0
  116. data/iso_data/overlay/world/mx/col.yml +21 -0
  117. data/iso_data/overlay/world/mx/dif.yml +33 -0
  118. data/iso_data/overlay/world/mx/dur.yml +33 -0
  119. data/iso_data/overlay/world/mx/gro.yml +163 -0
  120. data/iso_data/overlay/world/mx/gua.yml +93 -0
  121. data/iso_data/overlay/world/mx/hid.yml +169 -0
  122. data/iso_data/overlay/world/mx/jal.yml +251 -0
  123. data/iso_data/overlay/world/mx/mex.yml +251 -0
  124. data/iso_data/overlay/world/mx/mic.yml +227 -0
  125. data/iso_data/overlay/world/mx/mor.yml +67 -0
  126. data/iso_data/overlay/world/mx/nay.yml +41 -0
  127. data/iso_data/overlay/world/mx/nle.yml +103 -0
  128. data/iso_data/overlay/world/mx/oax.yml +1141 -0
  129. data/iso_data/overlay/world/mx/pue.yml +435 -0
  130. data/iso_data/overlay/world/mx/que.yml +37 -0
  131. data/iso_data/overlay/world/mx/roo.yml +21 -0
  132. data/iso_data/overlay/world/mx/sin.yml +37 -0
  133. data/iso_data/overlay/world/mx/slp.yml +117 -0
  134. data/iso_data/overlay/world/mx/son.yml +145 -0
  135. data/iso_data/overlay/world/mx/tab.yml +35 -0
  136. data/iso_data/overlay/world/mx/tam.yml +87 -0
  137. data/iso_data/overlay/world/mx/tla.yml +121 -0
  138. data/iso_data/overlay/world/mx/ver.yml +426 -0
  139. data/iso_data/overlay/world/mx/yuc.yml +213 -0
  140. data/iso_data/overlay/world/mx/zac.yml +118 -0
  141. data/lib/carmen/country.rb +23 -1
  142. data/lib/carmen/region.rb +6 -2
  143. data/lib/carmen/region_collection.rb +12 -0
  144. data/lib/carmen/version.rb +1 -1
  145. data/locale/base/en/world.yml +8 -8
  146. data/locale/base/en/world/az.yml +9 -9
  147. data/locale/base/en/world/az/nx.yml +4 -4
  148. data/locale/base/en/world/ba/bih.yml +14 -14
  149. data/locale/base/en/world/bd/a.yml +2 -2
  150. data/locale/base/en/world/bd/b.yml +2 -2
  151. data/locale/base/en/world/bd/c.yml +10 -10
  152. data/locale/base/en/world/bd/e.yml +2 -2
  153. data/locale/base/en/world/bd/g.yml +2 -2
  154. data/locale/base/en/world/be/vlg.yml +2 -2
  155. data/locale/base/en/world/bf/06.yml +2 -2
  156. data/locale/base/en/world/cd.yml +1 -1
  157. data/locale/base/en/world/cv/s.yml +8 -8
  158. data/locale/base/en/world/cz.yml +23 -23
  159. data/locale/base/en/world/cz/{pr.yml → 10.yml} +21 -7
  160. data/locale/base/en/world/cz/{st.yml → 20.yml} +3 -3
  161. data/locale/base/en/world/cz/{jc.yml → 31.yml} +3 -3
  162. data/locale/base/en/world/cz/{pl.yml → 32.yml} +5 -5
  163. data/locale/base/en/world/cz/{ka.yml → 41.yml} +1 -1
  164. data/locale/base/en/world/cz/{us.yml → 42.yml} +2 -2
  165. data/locale/base/en/world/cz/{li.yml → 51.yml} +2 -2
  166. data/locale/base/en/world/cz/{kr.yml → 52.yml} +1 -1
  167. data/locale/base/en/world/cz/{pa.yml → 53.yml} +2 -2
  168. data/locale/base/en/world/cz/{vy.yml → 63.yml} +7 -7
  169. data/locale/base/en/world/cz/{jm.yml → 64.yml} +8 -8
  170. data/locale/base/en/world/cz/{ol.yml → 71.yml} +3 -3
  171. data/locale/base/en/world/cz/{zl.yml → 72.yml} +3 -3
  172. data/locale/base/en/world/cz/{mo.yml → 80.yml} +2 -2
  173. data/locale/base/en/world/es.yml +1 -1
  174. data/locale/base/en/world/es/cl.yml +1 -1
  175. data/locale/base/en/world/es/pv.yml +5 -5
  176. data/locale/base/en/world/et.yml +3 -3
  177. data/locale/base/en/world/fr.yml +32 -50
  178. data/locale/base/en/world/fr/{v.yml → ara.yml} +11 -3
  179. data/locale/base/en/world/fr/{i.yml → bfc.yml} +11 -3
  180. data/locale/base/en/world/fr/{e.yml → bre.yml} +1 -1
  181. data/locale/base/en/world/fr/{h.yml → cor.yml} +1 -1
  182. data/locale/base/en/world/fr/{f.yml → cvl.yml} +1 -1
  183. data/locale/base/en/world/fr/ges.yml +25 -0
  184. data/locale/base/en/world/fr/gua.yml +7 -0
  185. data/locale/base/en/world/fr/{s.yml → hdf.yml} +5 -1
  186. data/locale/base/en/world/fr/{j.yml → idf.yml} +8 -8
  187. data/locale/base/en/world/fr/lre.yml +7 -0
  188. data/locale/base/en/world/fr/may.yml +7 -0
  189. data/locale/base/en/world/fr/naq.yml +29 -0
  190. data/locale/base/en/world/fr/{p.yml → nor.yml} +5 -1
  191. data/locale/base/en/world/fr/{n.yml → occ.yml} +15 -5
  192. data/locale/base/en/world/fr/{u.yml → pac.yml} +3 -3
  193. data/locale/base/en/world/fr/{r.yml → pdl.yml} +1 -1
  194. data/locale/base/en/world/gb.yml +1 -461
  195. data/locale/base/en/world/gb/eng.yml +309 -0
  196. data/locale/base/en/world/gb/nir.yml +27 -0
  197. data/locale/base/en/world/gb/sct.yml +69 -0
  198. data/locale/base/en/world/gb/wls.yml +49 -0
  199. data/locale/base/en/world/gr/a.yml +4 -4
  200. data/locale/base/en/world/gr/b.yml +4 -4
  201. data/locale/base/en/world/gr/c.yml +2 -2
  202. data/locale/base/en/world/gr/d.yml +2 -2
  203. data/locale/base/en/world/gr/f.yml +6 -6
  204. data/locale/base/en/world/gr/g.yml +2 -2
  205. data/locale/base/en/world/gr/h.yml +6 -6
  206. data/locale/base/en/world/gr/k.yml +2 -2
  207. data/locale/base/en/world/gr/m.yml +2 -2
  208. data/locale/base/en/world/hr.yml +1 -1
  209. data/locale/base/en/world/hu.yml +1 -1
  210. data/locale/base/en/world/id/jw.yml +2 -2
  211. data/locale/base/en/world/id/ka.yml +4 -4
  212. data/locale/base/en/world/id/sl.yml +6 -6
  213. data/locale/base/en/world/ie/l.yml +4 -4
  214. data/locale/base/en/world/ir.yml +3 -3
  215. data/locale/base/en/world/it/25.yml +4 -4
  216. data/locale/base/en/world/it/34.yml +2 -2
  217. data/locale/base/en/world/it/45.yml +4 -4
  218. data/locale/base/en/world/it/52.yml +2 -2
  219. data/locale/base/en/world/it/65.yml +2 -2
  220. data/locale/base/en/world/it/75.yml +2 -2
  221. data/locale/base/en/world/it/78.yml +2 -2
  222. data/locale/base/en/world/it/88.yml +4 -4
  223. data/locale/base/en/world/la.yml +3 -3
  224. data/locale/base/en/world/lk.yml +1 -1
  225. data/locale/base/en/world/lk/3.yml +2 -2
  226. data/locale/base/en/world/lk/4.yml +2 -2
  227. data/locale/base/en/world/lk/5.yml +2 -2
  228. data/locale/base/en/world/lk/9.yml +2 -2
  229. data/locale/base/en/world/lt.yml +1 -1
  230. data/locale/base/en/world/lv.yml +4 -4
  231. data/locale/base/en/world/ly.yml +1 -1
  232. data/locale/base/en/world/ma/01.yml +4 -4
  233. data/locale/base/en/world/ma/04.yml +2 -2
  234. data/locale/base/en/world/ma/05.yml +2 -2
  235. data/locale/base/en/world/ma/06.yml +2 -2
  236. data/locale/base/en/world/ma/08.yml +4 -4
  237. data/locale/base/en/world/ma/11.yml +2 -2
  238. data/locale/base/en/world/ma/13.yml +4 -4
  239. data/locale/base/en/world/ma/14.yml +2 -2
  240. data/locale/base/en/world/ma/16.yml +2 -2
  241. data/locale/base/en/world/md.yml +2 -2
  242. data/locale/base/en/world/me.yml +2 -2
  243. data/locale/base/en/world/mk.yml +7 -7
  244. data/locale/base/en/world/mn.yml +2 -2
  245. data/locale/base/en/world/mt.yml +6 -6
  246. data/locale/base/en/world/mv/ce.yml +4 -4
  247. data/locale/base/en/world/mv/nc.yml +4 -4
  248. data/locale/base/en/world/mv/no.yml +4 -4
  249. data/locale/base/en/world/mv/su.yml +2 -2
  250. data/locale/base/en/world/mw/c.yml +2 -2
  251. data/locale/base/en/world/mw/n.yml +2 -2
  252. data/locale/base/en/world/mw/s.yml +2 -2
  253. data/locale/base/en/world/no.yml +1 -1
  254. data/locale/base/en/world/nz/n.yml +4 -4
  255. data/locale/base/en/world/nz/s.yml +6 -6
  256. data/locale/base/en/world/ph/06.yml +1 -1
  257. data/locale/base/en/world/ph/11.yml +4 -4
  258. data/locale/base/en/world/pl.yml +3 -3
  259. data/locale/base/en/world/pt.yml +1 -1
  260. data/locale/base/en/world/py.yml +1 -1
  261. data/locale/base/en/world/rs.yml +1 -1
  262. data/locale/base/en/world/rs/km.yml +4 -4
  263. data/locale/base/en/world/rs/vo.yml +8 -8
  264. data/locale/base/en/world/sa.yml +1 -1
  265. data/locale/base/en/world/se.yml +2 -2
  266. data/locale/base/en/world/si.yml +25 -25
  267. data/locale/base/en/world/sk.yml +1 -1
  268. data/locale/base/en/world/td.yml +1 -1
  269. data/locale/base/en/world/tr.yml +7 -7
  270. data/locale/base/en/world/ug/c.yml +8 -8
  271. data/locale/base/en/world/ug/e.yml +24 -24
  272. data/locale/base/en/world/ug/n.yml +18 -18
  273. data/locale/base/en/world/ug/w.yml +14 -14
  274. data/locale/base/en/world/vn.yml +6 -6
  275. data/locale/base/en/world/ye.yml +4 -4
  276. data/locale/overlay/bn/world.yml +4 -4
  277. data/locale/overlay/cn/world.yml +524 -480
  278. data/locale/overlay/cn/world/cn.yml +70 -0
  279. data/locale/overlay/cs/world.yml +34 -6
  280. data/locale/overlay/de/world.yml +1 -1
  281. data/locale/overlay/en/world.yml +4 -1
  282. data/locale/overlay/en/world/bd.yml +6 -0
  283. data/locale/overlay/en/world/be.yml +11 -0
  284. data/locale/overlay/en/world/bm.yml +22 -0
  285. data/locale/overlay/en/world/ca/qc.yml +39 -0
  286. data/locale/overlay/en/world/gb.yml +2 -0
  287. data/locale/overlay/en/world/id/ka.yml +7 -0
  288. data/locale/overlay/en/world/in.yml +6 -0
  289. data/locale/overlay/en/world/mx/agu.yml +27 -0
  290. data/locale/overlay/en/world/mx/bcn.yml +15 -0
  291. data/locale/overlay/en/world/mx/bcs.yml +15 -0
  292. data/locale/overlay/en/world/mx/cam.yml +27 -0
  293. data/locale/overlay/en/world/mx/chh.yml +139 -0
  294. data/locale/overlay/en/world/mx/chp.yml +241 -0
  295. data/locale/overlay/en/world/mx/coa.yml +81 -0
  296. data/locale/overlay/en/world/mx/col.yml +25 -0
  297. data/locale/overlay/en/world/mx/dif.yml +37 -0
  298. data/locale/overlay/en/world/mx/dur.yml +37 -0
  299. data/locale/overlay/en/world/mx/gro.yml +167 -0
  300. data/locale/overlay/en/world/mx/gua.yml +97 -0
  301. data/locale/overlay/en/world/mx/hid.yml +173 -0
  302. data/locale/overlay/en/world/mx/jal.yml +255 -0
  303. data/locale/overlay/en/world/mx/mex.yml +255 -0
  304. data/locale/overlay/en/world/mx/mic.yml +231 -0
  305. data/locale/overlay/en/world/mx/mor.yml +71 -0
  306. data/locale/overlay/en/world/mx/nay.yml +45 -0
  307. data/locale/overlay/en/world/mx/nle.yml +107 -0
  308. data/locale/overlay/en/world/mx/oax.yml +1145 -0
  309. data/locale/overlay/en/world/mx/pue.yml +439 -0
  310. data/locale/overlay/en/world/mx/que.yml +41 -0
  311. data/locale/overlay/en/world/mx/roo.yml +25 -0
  312. data/locale/overlay/en/world/mx/sin.yml +41 -0
  313. data/locale/overlay/en/world/mx/slp.yml +121 -0
  314. data/locale/overlay/en/world/mx/son.yml +149 -0
  315. data/locale/overlay/en/world/mx/tab.yml +39 -0
  316. data/locale/overlay/en/world/mx/tam.yml +91 -0
  317. data/locale/overlay/en/world/mx/tla.yml +125 -0
  318. data/locale/overlay/en/world/mx/ver.yml +429 -0
  319. data/locale/overlay/en/world/mx/yuc.yml +217 -0
  320. data/locale/overlay/en/world/mx/zac.yml +121 -0
  321. data/locale/overlay/en/world/mz.yml +8 -0
  322. data/locale/overlay/es/world.yml +2 -2
  323. data/locale/overlay/fr/world.yml +1 -1
  324. data/locale/overlay/fr/world/be.yml +10 -0
  325. data/locale/overlay/fr/world/be/vlg.yml +15 -0
  326. data/locale/overlay/hi/world.yml +491 -491
  327. data/locale/overlay/it/world.yml +528 -476
  328. data/locale/overlay/ja/world.yml +2 -2
  329. data/locale/overlay/ja/world/ru.yml +174 -0
  330. data/locale/overlay/pt/world/mz.yml +10 -0
  331. data/locale/overlay/ru/world.yml +5 -5
  332. data/locale/overlay/ru/world/ru.yml +15 -0
  333. data/locale/overlay/th/world.yml +999 -0
  334. data/locale/overlay/th/world/th.yml +158 -0
  335. data/locale/overlay/tr/world/tr.yml +166 -0
  336. data/locale/overlay/tw/world.yml +967 -0
  337. metadata +156 -116
  338. data/iso_data/base/world/bd/1.yml +0 -13
  339. data/iso_data/base/world/bd/3.yml +0 -35
  340. data/iso_data/base/world/bd/4.yml +0 -21
  341. data/iso_data/base/world/bd/5.yml +0 -33
  342. data/iso_data/base/world/bd/6.yml +0 -9
  343. data/iso_data/base/world/bl.yml +0 -1
  344. data/iso_data/base/world/fr/a.yml +0 -5
  345. data/iso_data/base/world/fr/c.yml +0 -9
  346. data/iso_data/base/world/fr/d.yml +0 -9
  347. data/iso_data/base/world/fr/g.yml +0 -9
  348. data/iso_data/base/world/fr/i.yml +0 -9
  349. data/iso_data/base/world/fr/l.yml +0 -7
  350. data/iso_data/base/world/fr/m.yml +0 -9
  351. data/iso_data/base/world/fr/o.yml +0 -5
  352. data/iso_data/base/world/fr/p.yml +0 -7
  353. data/iso_data/base/world/fr/q.yml +0 -5
  354. data/iso_data/base/world/fr/s.yml +0 -7
  355. data/iso_data/base/world/fr/t.yml +0 -9
  356. data/iso_data/base/world/gg.yml +0 -1
  357. data/iso_data/base/world/id/ma.yml +0 -5
  358. data/iso_data/base/world/im.yml +0 -1
  359. data/iso_data/base/world/je.yml +0 -1
  360. data/iso_data/base/world/mf.yml +0 -1
  361. data/iso_data/base/world/mo.yml +0 -1
  362. data/iso_data/overlay/world.yml +0 -5
  363. data/locale/base/en/world/bd/1.yml +0 -17
  364. data/locale/base/en/world/bd/2.yml +0 -27
  365. data/locale/base/en/world/bd/3.yml +0 -39
  366. data/locale/base/en/world/bd/4.yml +0 -25
  367. data/locale/base/en/world/bd/5.yml +0 -37
  368. data/locale/base/en/world/bd/6.yml +0 -13
  369. data/locale/base/en/world/bl.yml +0 -4
  370. data/locale/base/en/world/fr/a.yml +0 -9
  371. data/locale/base/en/world/fr/b.yml +0 -15
  372. data/locale/base/en/world/fr/c.yml +0 -13
  373. data/locale/base/en/world/fr/d.yml +0 -13
  374. data/locale/base/en/world/fr/g.yml +0 -13
  375. data/locale/base/en/world/fr/k.yml +0 -15
  376. data/locale/base/en/world/fr/l.yml +0 -11
  377. data/locale/base/en/world/fr/m.yml +0 -13
  378. data/locale/base/en/world/fr/o.yml +0 -9
  379. data/locale/base/en/world/fr/q.yml +0 -9
  380. data/locale/base/en/world/fr/t.yml +0 -13
  381. data/locale/base/en/world/gg.yml +0 -4
  382. data/locale/base/en/world/id/ma.yml +0 -9
  383. data/locale/base/en/world/im.yml +0 -4
  384. data/locale/base/en/world/je.yml +0 -4
  385. data/locale/base/en/world/mf.yml +0 -4
  386. data/locale/base/en/world/mo.yml +0 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e77f874e0aac2a2bc20290314c17eed4d98bf2a5
4
- data.tar.gz: 1a02b8b80ca40664be6bbcba785ad2681c650aaf
3
+ metadata.gz: 94a18311304a0f479c340bbf7a39c9820113cc8d
4
+ data.tar.gz: 3f49ab0339f4f11db9827327fc7be9029d2e1b91
5
5
  SHA512:
6
- metadata.gz: 963a3723a464151cb7e458f4806eae7ba4bd2b8847b80e4364e9a5584c3d64e8c78a80784d91102bec6439749a0a93eada48e13cb1ce50f24fe18bd3b400d533
7
- data.tar.gz: 63fbbb3a85418079a0be0670fae6b267e5964fc37a39db20e0165e415f3e6aaab220fe8d83e759f63dee5ab51fdf466ee84c4e041887f641aa35f545a4d04b8f
6
+ metadata.gz: 3d0a740660bfa609a18d4afa356a68a4b76f9d92b11587152f82d18c21821ae10582693c58e2818acfe8ae648e79ad41257fd89ce2cb0b4c23abc39f38c77483
7
+ data.tar.gz: 6f6e4b875d2914de66c0fe4ae32b7ba32b045f7a5916baa0d66c1d375c5c78adfcbdf3fb6ed98c4023f841f90a6f09242b8438106fa729b4884b6d16d731e10f
@@ -1,4 +1,17 @@
1
- ### 1.0.2
1
+ ### master (unreleased)
2
+
3
+ ### 1.1.0 (November 7, 2017)
4
+ * [#231](https://github.com/carmen-ruby/carmen/pull/231) Base ISO data has been updated for the first time since October 25, 2014
5
+ * [#233](https://github.com/carmen-ruby/carmen/pull/233) Revert removing Puerto Rico as a country code
6
+ * [#217](https://github.com/carmen-ruby/carmen/pull/217) Add serializer friendly `to_hash` for `Country` and `Region` ([@zarelit](https://github.com/zarelit))
7
+ * [#137](https://github.com/carmen-ruby/carmen/pull/137) Add country search by numeric code ([@Envek](https://github.com/Envek))
8
+ * [#200](https://github.com/carmen-ruby/carmen/pull/200) Add municipalities of Mexico ([@jdsampayo](https://github.com/jdsampayo))
9
+ * [#193](https://github.com/carmen-ruby/carmen/pull/193) Allow filtering subregions by type ([@aldesantis](https://github.com/aldesantis))
10
+ * [#180](https://github.com/carmen-ruby/carmen/pull/180) `Region#subregions` returns freezed array ([@j15e](https://github.com/j15e))
11
+ * [#177](https://github.com/carmen-ruby/carmen/pull/177) Always return a `RegionCollection` from `Region#load_subregions` ([@codeodor](https://github.com/codeodor))
12
+ * Various geographic data updates by [Carmen contributors](https://github.com/carmen-ruby/carmen/graphs/contributors). Thank you!
13
+
14
+ ### 1.0.2 (March 13, 2015)
2
15
  * Replace use of UnicodeUtils with ActiveSupport (eikes)
3
16
  * Update data from upstream sources.
4
17
  * Fix spelling errors for French subregions (hugolantaume)
@@ -9,7 +22,7 @@
9
22
  * Fixed the name of Vietnam.
10
23
  * Add local files for Bangla language (tauhidul35)
11
24
 
12
- ### 1.0.1
25
+ ### 1.0.1 (March 06, 2014)
13
26
  * Avoid raising an exception when calling Querying#coded with a nil code
14
27
  * Fix a bug where adding additional data paths caused an error when looking up localized names in the base locale data (seangaffney)
15
28
  * Add Country#numeric_code (stevenharman)
data/README.md CHANGED
@@ -1,24 +1,18 @@
1
- # NOT ACTIVELY MAINTAINED
1
+ # Carmen
2
2
 
3
- I haven't time in over a year to properly support this project.
4
-
5
- # Carmen- A repository of geographic regions for Ruby
3
+ > A repository of geographic regions for Ruby
6
4
 
7
5
  [![Build Status](https://secure.travis-ci.org/jim/carmen.png?branch=master)](http://travis-ci.org/jim/carmen)
8
6
 
9
- Carmen 1.0.0 is now out, after more than a year in beta. This release is a rewrite of the library, separating out the geographic components from the Rails-specific view helpers. If you are using Carmen with Rails, you should check out the [carmen-rails](http://github.com/jim/carmen-rails) library.
7
+ Carmen features the following:
10
8
 
11
- The [0.2.x branch](https://github.com/jim/carmen/tree/0.2.x) contains the previous
12
- version of Carmen should you need it for some reason.
9
+ * Clean API
10
+ * Complete countries & regions data from the iso-codes Debian package
11
+ * A sane approach to internationalization
13
12
 
14
- **Carmen now requires Ruby 1.9.3 The [ruby-18 branch](https://github.com/jim/carmen/tree/ruby-18) contains the
15
- last stable version of Carmen that will run on Ruby 1.8.x.
13
+ ## Ruby on Rails
16
14
 
17
- Carmen 1.0 features the following:
18
-
19
- * A new, cleaner API
20
- * More complete data via the iso-codes Debian package (idea borrowed from [here](https://github.com/pluginaweek/has_addresses))
21
- * A sane approach to internationalization
15
+ If you are using Carmen with Rails, you should check out the [carmen-rails](http://github.com/jim/carmen-rails) library.
22
16
 
23
17
  # How to Use Carmen
24
18
 
@@ -39,12 +33,39 @@ A Country object has some attributes that may be useful:
39
33
  us.alpha_3_code
40
34
  => 'USA'
41
35
 
36
+ us.numeric_code
37
+ => '840'
38
+
42
39
  us.code # alias for alpha_2_code
43
40
  => 'US'
44
41
 
45
42
  us.official_name
46
43
  => "United States of America"
47
44
 
45
+ You can use separate finder methods for searching by each attribute (recommended):
46
+
47
+ gb = Country.alpha_2_coded('GB')
48
+ => <#Carmen::Country name="United Kingdom">
49
+
50
+ ru = Country.alpha_3_coded('RUS')
51
+ => <#Carmen::Country name="Russian Federation">
52
+
53
+ ad = Country.numeric_coded('020') # Note a string here! Alias: numerically_coded
54
+ => <#Carmen::Country name="Andorra">
55
+
56
+ __NOTICE:__ Please note, that in `numeric_coded` you should pass a 3-symbol zero padded string. Be aware of the fact, that Ruby interprets integers with leading zero as octal number (`020 == 16 # => true`).
57
+
58
+ You can query country by any code in single method (not recommended, and will be deprecated):
59
+
60
+ us = Country.coded('US')
61
+ => <#Carmen::Country name="United States">
62
+
63
+ us = Country.coded('USA')
64
+ => <#Carmen::Country name="United States">
65
+
66
+ us = Country.coded('840') # Note a string here
67
+ => <#Carmen::Country name="United States">
68
+
48
69
  A `Country` (and its subregions) can contain subregions. In the US these are states, but other countries have other types of regions:
49
70
 
50
71
  us.subregions?
@@ -59,6 +80,11 @@ similarly to a `Country` to find, for instance, a specific state:
59
80
  illinois = us.subregions.coded('IL')
60
81
  => <#Carmen::Region "Illinois">
61
82
 
83
+ You can also find all subregions with a specific type:
84
+
85
+ states = us.subregions.typed('state')
86
+ => [<#Carmen::Region name="Alaska" type="state">, <#Carmen::Region name="Alabama" type="state">, ...]
87
+
62
88
  Subregions support a smaller set of attributes than countries:
63
89
 
64
90
  illinois.name
@@ -1,12 +1,12 @@
1
1
  ---
2
- - code: NV
3
- type: municipality
4
2
  - code: BAB
5
3
  type: rayon
6
4
  - code: CUL
7
5
  type: rayon
8
6
  - code: KAN
9
7
  type: rayon
8
+ - code: NV
9
+ type: municipality
10
10
  - code: ORD
11
11
  type: rayon
12
12
  - code: SAD
@@ -1,21 +1,21 @@
1
1
  ---
2
- - code: '05'
2
+ - code: '01'
3
3
  type: canton
4
- - code: '07'
4
+ - code: '02'
5
5
  type: canton
6
- - code: '10'
6
+ - code: '03'
7
7
  type: canton
8
- - code: 09
8
+ - code: '04'
9
9
  type: canton
10
- - code: '02'
10
+ - code: '05'
11
11
  type: canton
12
12
  - code: '06'
13
13
  type: canton
14
- - code: '03'
15
- type: canton
16
- - code: '01'
14
+ - code: '07'
17
15
  type: canton
18
16
  - code: 08
19
17
  type: canton
20
- - code: '04'
18
+ - code: 09
19
+ type: canton
20
+ - code: '10'
21
21
  type: canton
@@ -7,7 +7,7 @@
7
7
  type: district
8
8
  - code: '25'
9
9
  type: district
10
- - code: '51'
11
- type: district
12
10
  - code: '50'
13
11
  type: district
12
+ - code: '51'
13
+ type: district
@@ -3,12 +3,12 @@
3
3
  type: district
4
4
  - code: '04'
5
5
  type: district
6
+ - code: 08
7
+ type: district
6
8
  - code: 09
7
9
  type: district
8
10
  - code: '10'
9
11
  type: district
10
- - code: 08
11
- type: district
12
12
  - code: '11'
13
13
  type: district
14
14
  - code: '16'
@@ -3,33 +3,33 @@
3
3
  type: district
4
4
  - code: '15'
5
5
  type: district
6
- - code: '18'
7
- type: district
8
6
  - code: '17'
9
7
  type: district
8
+ - code: '18'
9
+ type: district
10
10
  - code: '21'
11
11
  type: district
12
12
  - code: '26'
13
13
  type: district
14
- - code: '36'
15
- type: district
16
14
  - code: '33'
17
15
  type: district
16
+ - code: '34'
17
+ type: district
18
18
  - code: '35'
19
19
  type: district
20
- - code: '34'
20
+ - code: '36'
21
21
  type: district
22
22
  - code: '40'
23
23
  type: district
24
- - code: '42'
25
- type: district
26
24
  - code: '41'
27
25
  type: district
28
- - code: '53'
26
+ - code: '42'
29
27
  type: district
30
- - code: '62'
28
+ - code: '53'
31
29
  type: district
32
30
  - code: '57'
33
31
  type: district
32
+ - code: '62'
33
+ type: district
34
34
  - code: '63'
35
35
  type: district
@@ -3,12 +3,12 @@
3
3
  type: district
4
4
  - code: '24'
5
5
  type: district
6
- - code: '48'
7
- type: district
8
6
  - code: '44'
9
7
  type: district
10
8
  - code: '45'
11
9
  type: district
10
+ - code: '48'
11
+ type: district
12
12
  - code: '49'
13
13
  type: district
14
14
  - code: '54'
@@ -3,7 +3,7 @@
3
3
  type: district
4
4
  - code: '38'
5
5
  type: district
6
- - code: '61'
7
- type: district
8
6
  - code: '60'
9
7
  type: district
8
+ - code: '61'
9
+ type: district
@@ -1,11 +1,11 @@
1
1
  ---
2
2
  - code: VAN
3
3
  type: province
4
+ - code: VBR
5
+ type: province
4
6
  - code: VLI
5
7
  type: province
6
8
  - code: VOV
7
9
  type: province
8
- - code: VBR
9
- type: province
10
10
  - code: VWV
11
11
  type: province
@@ -1,9 +1,9 @@
1
1
  ---
2
2
  - code: BLK
3
3
  type: province
4
- - code: SNG
5
- type: province
6
4
  - code: SIS
7
5
  type: province
6
+ - code: SNG
7
+ type: province
8
8
  - code: ZIR
9
9
  type: province
@@ -1,6 +1,12 @@
1
1
  ---
2
2
  - code: BR
3
3
  type: municipality
4
+ - code: CA
5
+ type: municipality
6
+ - code: CF
7
+ type: municipality
8
+ - code: CR
9
+ type: municipality
4
10
  - code: MA
5
11
  type: municipality
6
12
  - code: MO
@@ -9,20 +15,14 @@
9
15
  type: municipality
10
16
  - code: RS
11
17
  type: municipality
12
- - code: CA
13
- type: municipality
14
- - code: CF
15
- type: municipality
16
- - code: CR
17
- type: municipality
18
18
  - code: SD
19
19
  type: municipality
20
20
  - code: SF
21
21
  type: municipality
22
- - code: SO
23
- type: municipality
24
22
  - code: SM
25
23
  type: municipality
24
+ - code: SO
25
+ type: municipality
26
26
  - code: SS
27
27
  type: municipality
28
28
  - code: TA
@@ -1,29 +1,29 @@
1
1
  ---
2
- - code: JC
2
+ - code: '10'
3
+ type: capital city
4
+ - code: '20'
3
5
  type: region
4
- - code: JM
6
+ - code: '31'
5
7
  type: region
6
- - code: KA
8
+ - code: '32'
7
9
  type: region
8
- - code: KR
10
+ - code: '41'
9
11
  type: region
10
- - code: LI
12
+ - code: '42'
11
13
  type: region
12
- - code: MO
14
+ - code: '51'
13
15
  type: region
14
- - code: OL
16
+ - code: '52'
15
17
  type: region
16
- - code: PA
18
+ - code: '53'
17
19
  type: region
18
- - code: PL
20
+ - code: '63'
19
21
  type: region
20
- - code: PR
22
+ - code: '64'
21
23
  type: region
22
- - code: ST
24
+ - code: '71'
23
25
  type: region
24
- - code: US
26
+ - code: '72'
25
27
  type: region
26
- - code: VY
27
- type: region
28
- - code: ZL
28
+ - code: '80'
29
29
  type: region
@@ -17,15 +17,29 @@
17
17
  type: district
18
18
  - code: '109'
19
19
  type: district
20
- - code: 10A
20
+ - code: '110'
21
21
  type: district
22
- - code: 10B
22
+ - code: '111'
23
23
  type: district
24
- - code: 10C
24
+ - code: '112'
25
25
  type: district
26
- - code: 10D
26
+ - code: '113'
27
27
  type: district
28
- - code: 10E
28
+ - code: '114'
29
29
  type: district
30
- - code: 10F
30
+ - code: '115'
31
+ type: district
32
+ - code: '116'
33
+ type: district
34
+ - code: '117'
35
+ type: district
36
+ - code: '118'
37
+ type: district
38
+ - code: '119'
39
+ type: district
40
+ - code: '120'
41
+ type: district
42
+ - code: '121'
43
+ type: district
44
+ - code: '122'
31
45
  type: district
@@ -3,10 +3,10 @@
3
3
  type: district
4
4
  - code: '322'
5
5
  type: district
6
- - code: '324'
7
- type: district
8
6
  - code: '323'
9
7
  type: district
8
+ - code: '324'
9
+ type: district
10
10
  - code: '325'
11
11
  type: district
12
12
  - code: '326'
@@ -1,11 +1,11 @@
1
1
  ---
2
- - code: '611'
2
+ - code: '631'
3
3
  type: district
4
- - code: '612'
4
+ - code: '632'
5
5
  type: district
6
- - code: '613'
6
+ - code: '633'
7
7
  type: district
8
- - code: '614'
8
+ - code: '634'
9
9
  type: district
10
- - code: '615'
10
+ - code: '635'
11
11
  type: district