carmen 1.0.2 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -2
- data/README.md +40 -14
- data/iso_data/base/world/az/nx.yml +2 -2
- data/iso_data/base/world/ba/bih.yml +9 -9
- data/iso_data/base/world/bd/a.yml +2 -2
- data/iso_data/base/world/bd/b.yml +2 -2
- data/iso_data/base/world/bd/c.yml +9 -9
- data/iso_data/base/world/bd/e.yml +2 -2
- data/iso_data/base/world/bd/g.yml +2 -2
- data/iso_data/base/world/be/vlg.yml +2 -2
- data/iso_data/base/world/bf/06.yml +2 -2
- data/iso_data/base/world/cv/s.yml +8 -8
- data/iso_data/base/world/cz.yml +15 -15
- data/iso_data/base/world/cz/{pr.yml → 10.yml} +20 -6
- data/iso_data/base/world/cz/{st.yml → 20.yml} +0 -0
- data/iso_data/base/world/cz/{jc.yml → 31.yml} +0 -0
- data/iso_data/base/world/cz/{pl.yml → 32.yml} +2 -2
- data/iso_data/base/world/cz/{ka.yml → 41.yml} +0 -0
- data/iso_data/base/world/cz/{us.yml → 42.yml} +0 -0
- data/iso_data/base/world/cz/{li.yml → 51.yml} +0 -0
- data/iso_data/base/world/cz/{kr.yml → 52.yml} +0 -0
- data/iso_data/base/world/cz/{pa.yml → 53.yml} +0 -0
- data/iso_data/base/world/cz/{vy.yml → 63.yml} +5 -5
- data/iso_data/base/world/cz/{jm.yml → 64.yml} +7 -7
- data/iso_data/base/world/cz/{ol.yml → 71.yml} +0 -0
- data/iso_data/base/world/cz/{zl.yml → 72.yml} +0 -0
- data/iso_data/base/world/cz/{mo.yml → 80.yml} +0 -0
- data/iso_data/base/world/es/pv.yml +2 -2
- data/iso_data/base/world/fr.yml +24 -42
- data/iso_data/base/world/fr/{v.yml → ara.yml} +10 -2
- data/iso_data/base/world/fr/{n.yml → bfc.yml} +8 -8
- data/iso_data/base/world/fr/{e.yml → bre.yml} +0 -0
- data/iso_data/base/world/fr/{h.yml → cor.yml} +0 -0
- data/iso_data/base/world/fr/{f.yml → cvl.yml} +0 -0
- data/iso_data/base/world/fr/ges.yml +21 -0
- data/iso_data/base/world/fr/gua.yml +3 -0
- data/iso_data/base/world/fr/{b.yml → hdf.yml} +5 -5
- data/iso_data/base/world/fr/{j.yml → idf.yml} +6 -6
- data/iso_data/base/world/fr/lre.yml +3 -0
- data/iso_data/base/world/fr/may.yml +3 -0
- data/iso_data/base/world/fr/naq.yml +25 -0
- data/iso_data/base/world/fr/{k.yml → nor.yml} +5 -5
- data/iso_data/base/world/fr/occ.yml +27 -0
- data/iso_data/base/world/fr/{u.yml → pac.yml} +2 -2
- data/iso_data/base/world/fr/{r.yml → pdl.yml} +0 -0
- data/iso_data/base/world/gb.yml +3 -463
- data/iso_data/base/world/gb/eng.yml +305 -0
- data/iso_data/base/world/{bd/2.yml → gb/nir.yml} +11 -11
- data/iso_data/base/world/gb/sct.yml +65 -0
- data/iso_data/base/world/gb/wls.yml +45 -0
- data/iso_data/base/world/gr/a.yml +3 -3
- data/iso_data/base/world/gr/b.yml +3 -3
- data/iso_data/base/world/gr/c.yml +2 -2
- data/iso_data/base/world/gr/d.yml +2 -2
- data/iso_data/base/world/gr/f.yml +4 -4
- data/iso_data/base/world/gr/g.yml +2 -2
- data/iso_data/base/world/gr/h.yml +3 -3
- data/iso_data/base/world/gr/k.yml +2 -2
- data/iso_data/base/world/gr/m.yml +2 -2
- data/iso_data/base/world/id/jw.yml +2 -2
- data/iso_data/base/world/id/ka.yml +2 -2
- data/iso_data/base/world/id/sl.yml +5 -5
- data/iso_data/base/world/ie/l.yml +4 -4
- data/iso_data/base/world/it/25.yml +2 -2
- data/iso_data/base/world/it/34.yml +2 -2
- data/iso_data/base/world/it/45.yml +4 -4
- data/iso_data/base/world/it/52.yml +2 -2
- data/iso_data/base/world/it/65.yml +2 -2
- data/iso_data/base/world/it/75.yml +2 -2
- data/iso_data/base/world/it/78.yml +2 -2
- data/iso_data/base/world/it/88.yml +4 -4
- data/iso_data/base/world/la.yml +2 -2
- data/iso_data/base/world/lk/3.yml +2 -2
- data/iso_data/base/world/lk/4.yml +2 -2
- data/iso_data/base/world/lk/5.yml +2 -2
- data/iso_data/base/world/lk/9.yml +2 -2
- data/iso_data/base/world/ma/01.yml +3 -3
- data/iso_data/base/world/ma/04.yml +2 -2
- data/iso_data/base/world/ma/05.yml +2 -2
- data/iso_data/base/world/ma/06.yml +2 -2
- data/iso_data/base/world/ma/08.yml +4 -4
- data/iso_data/base/world/ma/11.yml +2 -2
- data/iso_data/base/world/ma/13.yml +4 -4
- data/iso_data/base/world/ma/14.yml +2 -2
- data/iso_data/base/world/ma/16.yml +2 -2
- data/iso_data/base/world/mv/ce.yml +2 -2
- data/iso_data/base/world/mv/nc.yml +3 -3
- data/iso_data/base/world/mv/no.yml +4 -4
- data/iso_data/base/world/mv/su.yml +2 -2
- data/iso_data/base/world/mw/c.yml +2 -2
- data/iso_data/base/world/mw/n.yml +2 -2
- data/iso_data/base/world/mw/s.yml +2 -2
- data/iso_data/base/world/nz/n.yml +4 -4
- data/iso_data/base/world/nz/s.yml +6 -6
- data/iso_data/base/world/ph/11.yml +2 -2
- data/iso_data/base/world/rs/km.yml +4 -4
- data/iso_data/base/world/rs/vo.yml +7 -7
- data/iso_data/base/world/ug/c.yml +8 -8
- data/iso_data/base/world/ug/e.yml +23 -23
- data/iso_data/base/world/ug/n.yml +17 -17
- data/iso_data/base/world/ug/w.yml +14 -14
- data/iso_data/overlay/world/bd.yml +3 -0
- data/iso_data/overlay/world/bm.yml +19 -0
- data/iso_data/overlay/world/ca/qc.yml +35 -0
- data/iso_data/overlay/world/gb.yml +2 -0
- data/iso_data/overlay/world/id/ka.yml +3 -0
- data/iso_data/overlay/world/in.yml +3 -0
- data/iso_data/overlay/world/mx/agu.yml +22 -0
- data/iso_data/overlay/world/mx/bcn.yml +11 -0
- data/iso_data/overlay/world/mx/bcs.yml +11 -0
- data/iso_data/overlay/world/mx/cam.yml +22 -0
- data/iso_data/overlay/world/mx/chh.yml +135 -0
- data/iso_data/overlay/world/mx/chp.yml +237 -0
- data/iso_data/overlay/world/mx/coa.yml +77 -0
- data/iso_data/overlay/world/mx/col.yml +21 -0
- data/iso_data/overlay/world/mx/dif.yml +33 -0
- data/iso_data/overlay/world/mx/dur.yml +33 -0
- data/iso_data/overlay/world/mx/gro.yml +163 -0
- data/iso_data/overlay/world/mx/gua.yml +93 -0
- data/iso_data/overlay/world/mx/hid.yml +169 -0
- data/iso_data/overlay/world/mx/jal.yml +251 -0
- data/iso_data/overlay/world/mx/mex.yml +251 -0
- data/iso_data/overlay/world/mx/mic.yml +227 -0
- data/iso_data/overlay/world/mx/mor.yml +67 -0
- data/iso_data/overlay/world/mx/nay.yml +41 -0
- data/iso_data/overlay/world/mx/nle.yml +103 -0
- data/iso_data/overlay/world/mx/oax.yml +1141 -0
- data/iso_data/overlay/world/mx/pue.yml +435 -0
- data/iso_data/overlay/world/mx/que.yml +37 -0
- data/iso_data/overlay/world/mx/roo.yml +21 -0
- data/iso_data/overlay/world/mx/sin.yml +37 -0
- data/iso_data/overlay/world/mx/slp.yml +117 -0
- data/iso_data/overlay/world/mx/son.yml +145 -0
- data/iso_data/overlay/world/mx/tab.yml +35 -0
- data/iso_data/overlay/world/mx/tam.yml +87 -0
- data/iso_data/overlay/world/mx/tla.yml +121 -0
- data/iso_data/overlay/world/mx/ver.yml +426 -0
- data/iso_data/overlay/world/mx/yuc.yml +213 -0
- data/iso_data/overlay/world/mx/zac.yml +118 -0
- data/lib/carmen/country.rb +23 -1
- data/lib/carmen/region.rb +6 -2
- data/lib/carmen/region_collection.rb +12 -0
- data/lib/carmen/version.rb +1 -1
- data/locale/base/en/world.yml +8 -8
- data/locale/base/en/world/az.yml +9 -9
- data/locale/base/en/world/az/nx.yml +4 -4
- data/locale/base/en/world/ba/bih.yml +14 -14
- data/locale/base/en/world/bd/a.yml +2 -2
- data/locale/base/en/world/bd/b.yml +2 -2
- data/locale/base/en/world/bd/c.yml +10 -10
- data/locale/base/en/world/bd/e.yml +2 -2
- data/locale/base/en/world/bd/g.yml +2 -2
- data/locale/base/en/world/be/vlg.yml +2 -2
- data/locale/base/en/world/bf/06.yml +2 -2
- data/locale/base/en/world/cd.yml +1 -1
- data/locale/base/en/world/cv/s.yml +8 -8
- data/locale/base/en/world/cz.yml +23 -23
- data/locale/base/en/world/cz/{pr.yml → 10.yml} +21 -7
- data/locale/base/en/world/cz/{st.yml → 20.yml} +3 -3
- data/locale/base/en/world/cz/{jc.yml → 31.yml} +3 -3
- data/locale/base/en/world/cz/{pl.yml → 32.yml} +5 -5
- data/locale/base/en/world/cz/{ka.yml → 41.yml} +1 -1
- data/locale/base/en/world/cz/{us.yml → 42.yml} +2 -2
- data/locale/base/en/world/cz/{li.yml → 51.yml} +2 -2
- data/locale/base/en/world/cz/{kr.yml → 52.yml} +1 -1
- data/locale/base/en/world/cz/{pa.yml → 53.yml} +2 -2
- data/locale/base/en/world/cz/{vy.yml → 63.yml} +7 -7
- data/locale/base/en/world/cz/{jm.yml → 64.yml} +8 -8
- data/locale/base/en/world/cz/{ol.yml → 71.yml} +3 -3
- data/locale/base/en/world/cz/{zl.yml → 72.yml} +3 -3
- data/locale/base/en/world/cz/{mo.yml → 80.yml} +2 -2
- data/locale/base/en/world/es.yml +1 -1
- data/locale/base/en/world/es/cl.yml +1 -1
- data/locale/base/en/world/es/pv.yml +5 -5
- data/locale/base/en/world/et.yml +3 -3
- data/locale/base/en/world/fr.yml +32 -50
- data/locale/base/en/world/fr/{v.yml → ara.yml} +11 -3
- data/locale/base/en/world/fr/{i.yml → bfc.yml} +11 -3
- data/locale/base/en/world/fr/{e.yml → bre.yml} +1 -1
- data/locale/base/en/world/fr/{h.yml → cor.yml} +1 -1
- data/locale/base/en/world/fr/{f.yml → cvl.yml} +1 -1
- data/locale/base/en/world/fr/ges.yml +25 -0
- data/locale/base/en/world/fr/gua.yml +7 -0
- data/locale/base/en/world/fr/{s.yml → hdf.yml} +5 -1
- data/locale/base/en/world/fr/{j.yml → idf.yml} +8 -8
- data/locale/base/en/world/fr/lre.yml +7 -0
- data/locale/base/en/world/fr/may.yml +7 -0
- data/locale/base/en/world/fr/naq.yml +29 -0
- data/locale/base/en/world/fr/{p.yml → nor.yml} +5 -1
- data/locale/base/en/world/fr/{n.yml → occ.yml} +15 -5
- data/locale/base/en/world/fr/{u.yml → pac.yml} +3 -3
- data/locale/base/en/world/fr/{r.yml → pdl.yml} +1 -1
- data/locale/base/en/world/gb.yml +1 -461
- data/locale/base/en/world/gb/eng.yml +309 -0
- data/locale/base/en/world/gb/nir.yml +27 -0
- data/locale/base/en/world/gb/sct.yml +69 -0
- data/locale/base/en/world/gb/wls.yml +49 -0
- data/locale/base/en/world/gr/a.yml +4 -4
- data/locale/base/en/world/gr/b.yml +4 -4
- data/locale/base/en/world/gr/c.yml +2 -2
- data/locale/base/en/world/gr/d.yml +2 -2
- data/locale/base/en/world/gr/f.yml +6 -6
- data/locale/base/en/world/gr/g.yml +2 -2
- data/locale/base/en/world/gr/h.yml +6 -6
- data/locale/base/en/world/gr/k.yml +2 -2
- data/locale/base/en/world/gr/m.yml +2 -2
- data/locale/base/en/world/hr.yml +1 -1
- data/locale/base/en/world/hu.yml +1 -1
- data/locale/base/en/world/id/jw.yml +2 -2
- data/locale/base/en/world/id/ka.yml +4 -4
- data/locale/base/en/world/id/sl.yml +6 -6
- data/locale/base/en/world/ie/l.yml +4 -4
- data/locale/base/en/world/ir.yml +3 -3
- data/locale/base/en/world/it/25.yml +4 -4
- data/locale/base/en/world/it/34.yml +2 -2
- data/locale/base/en/world/it/45.yml +4 -4
- data/locale/base/en/world/it/52.yml +2 -2
- data/locale/base/en/world/it/65.yml +2 -2
- data/locale/base/en/world/it/75.yml +2 -2
- data/locale/base/en/world/it/78.yml +2 -2
- data/locale/base/en/world/it/88.yml +4 -4
- data/locale/base/en/world/la.yml +3 -3
- data/locale/base/en/world/lk.yml +1 -1
- data/locale/base/en/world/lk/3.yml +2 -2
- data/locale/base/en/world/lk/4.yml +2 -2
- data/locale/base/en/world/lk/5.yml +2 -2
- data/locale/base/en/world/lk/9.yml +2 -2
- data/locale/base/en/world/lt.yml +1 -1
- data/locale/base/en/world/lv.yml +4 -4
- data/locale/base/en/world/ly.yml +1 -1
- data/locale/base/en/world/ma/01.yml +4 -4
- data/locale/base/en/world/ma/04.yml +2 -2
- data/locale/base/en/world/ma/05.yml +2 -2
- data/locale/base/en/world/ma/06.yml +2 -2
- data/locale/base/en/world/ma/08.yml +4 -4
- data/locale/base/en/world/ma/11.yml +2 -2
- data/locale/base/en/world/ma/13.yml +4 -4
- data/locale/base/en/world/ma/14.yml +2 -2
- data/locale/base/en/world/ma/16.yml +2 -2
- data/locale/base/en/world/md.yml +2 -2
- data/locale/base/en/world/me.yml +2 -2
- data/locale/base/en/world/mk.yml +7 -7
- data/locale/base/en/world/mn.yml +2 -2
- data/locale/base/en/world/mt.yml +6 -6
- data/locale/base/en/world/mv/ce.yml +4 -4
- data/locale/base/en/world/mv/nc.yml +4 -4
- data/locale/base/en/world/mv/no.yml +4 -4
- data/locale/base/en/world/mv/su.yml +2 -2
- data/locale/base/en/world/mw/c.yml +2 -2
- data/locale/base/en/world/mw/n.yml +2 -2
- data/locale/base/en/world/mw/s.yml +2 -2
- data/locale/base/en/world/no.yml +1 -1
- data/locale/base/en/world/nz/n.yml +4 -4
- data/locale/base/en/world/nz/s.yml +6 -6
- data/locale/base/en/world/ph/06.yml +1 -1
- data/locale/base/en/world/ph/11.yml +4 -4
- data/locale/base/en/world/pl.yml +3 -3
- data/locale/base/en/world/pt.yml +1 -1
- data/locale/base/en/world/py.yml +1 -1
- data/locale/base/en/world/rs.yml +1 -1
- data/locale/base/en/world/rs/km.yml +4 -4
- data/locale/base/en/world/rs/vo.yml +8 -8
- data/locale/base/en/world/sa.yml +1 -1
- data/locale/base/en/world/se.yml +2 -2
- data/locale/base/en/world/si.yml +25 -25
- data/locale/base/en/world/sk.yml +1 -1
- data/locale/base/en/world/td.yml +1 -1
- data/locale/base/en/world/tr.yml +7 -7
- data/locale/base/en/world/ug/c.yml +8 -8
- data/locale/base/en/world/ug/e.yml +24 -24
- data/locale/base/en/world/ug/n.yml +18 -18
- data/locale/base/en/world/ug/w.yml +14 -14
- data/locale/base/en/world/vn.yml +6 -6
- data/locale/base/en/world/ye.yml +4 -4
- data/locale/overlay/bn/world.yml +4 -4
- data/locale/overlay/cn/world.yml +524 -480
- data/locale/overlay/cn/world/cn.yml +70 -0
- data/locale/overlay/cs/world.yml +34 -6
- data/locale/overlay/de/world.yml +1 -1
- data/locale/overlay/en/world.yml +4 -1
- data/locale/overlay/en/world/bd.yml +6 -0
- data/locale/overlay/en/world/be.yml +11 -0
- data/locale/overlay/en/world/bm.yml +22 -0
- data/locale/overlay/en/world/ca/qc.yml +39 -0
- data/locale/overlay/en/world/gb.yml +2 -0
- data/locale/overlay/en/world/id/ka.yml +7 -0
- data/locale/overlay/en/world/in.yml +6 -0
- data/locale/overlay/en/world/mx/agu.yml +27 -0
- data/locale/overlay/en/world/mx/bcn.yml +15 -0
- data/locale/overlay/en/world/mx/bcs.yml +15 -0
- data/locale/overlay/en/world/mx/cam.yml +27 -0
- data/locale/overlay/en/world/mx/chh.yml +139 -0
- data/locale/overlay/en/world/mx/chp.yml +241 -0
- data/locale/overlay/en/world/mx/coa.yml +81 -0
- data/locale/overlay/en/world/mx/col.yml +25 -0
- data/locale/overlay/en/world/mx/dif.yml +37 -0
- data/locale/overlay/en/world/mx/dur.yml +37 -0
- data/locale/overlay/en/world/mx/gro.yml +167 -0
- data/locale/overlay/en/world/mx/gua.yml +97 -0
- data/locale/overlay/en/world/mx/hid.yml +173 -0
- data/locale/overlay/en/world/mx/jal.yml +255 -0
- data/locale/overlay/en/world/mx/mex.yml +255 -0
- data/locale/overlay/en/world/mx/mic.yml +231 -0
- data/locale/overlay/en/world/mx/mor.yml +71 -0
- data/locale/overlay/en/world/mx/nay.yml +45 -0
- data/locale/overlay/en/world/mx/nle.yml +107 -0
- data/locale/overlay/en/world/mx/oax.yml +1145 -0
- data/locale/overlay/en/world/mx/pue.yml +439 -0
- data/locale/overlay/en/world/mx/que.yml +41 -0
- data/locale/overlay/en/world/mx/roo.yml +25 -0
- data/locale/overlay/en/world/mx/sin.yml +41 -0
- data/locale/overlay/en/world/mx/slp.yml +121 -0
- data/locale/overlay/en/world/mx/son.yml +149 -0
- data/locale/overlay/en/world/mx/tab.yml +39 -0
- data/locale/overlay/en/world/mx/tam.yml +91 -0
- data/locale/overlay/en/world/mx/tla.yml +125 -0
- data/locale/overlay/en/world/mx/ver.yml +429 -0
- data/locale/overlay/en/world/mx/yuc.yml +217 -0
- data/locale/overlay/en/world/mx/zac.yml +121 -0
- data/locale/overlay/en/world/mz.yml +8 -0
- data/locale/overlay/es/world.yml +2 -2
- data/locale/overlay/fr/world.yml +1 -1
- data/locale/overlay/fr/world/be.yml +10 -0
- data/locale/overlay/fr/world/be/vlg.yml +15 -0
- data/locale/overlay/hi/world.yml +491 -491
- data/locale/overlay/it/world.yml +528 -476
- data/locale/overlay/ja/world.yml +2 -2
- data/locale/overlay/ja/world/ru.yml +174 -0
- data/locale/overlay/pt/world/mz.yml +10 -0
- data/locale/overlay/ru/world.yml +5 -5
- data/locale/overlay/ru/world/ru.yml +15 -0
- data/locale/overlay/th/world.yml +999 -0
- data/locale/overlay/th/world/th.yml +158 -0
- data/locale/overlay/tr/world/tr.yml +166 -0
- data/locale/overlay/tw/world.yml +967 -0
- metadata +156 -116
- data/iso_data/base/world/bd/1.yml +0 -13
- data/iso_data/base/world/bd/3.yml +0 -35
- data/iso_data/base/world/bd/4.yml +0 -21
- data/iso_data/base/world/bd/5.yml +0 -33
- data/iso_data/base/world/bd/6.yml +0 -9
- data/iso_data/base/world/bl.yml +0 -1
- data/iso_data/base/world/fr/a.yml +0 -5
- data/iso_data/base/world/fr/c.yml +0 -9
- data/iso_data/base/world/fr/d.yml +0 -9
- data/iso_data/base/world/fr/g.yml +0 -9
- data/iso_data/base/world/fr/i.yml +0 -9
- data/iso_data/base/world/fr/l.yml +0 -7
- data/iso_data/base/world/fr/m.yml +0 -9
- data/iso_data/base/world/fr/o.yml +0 -5
- data/iso_data/base/world/fr/p.yml +0 -7
- data/iso_data/base/world/fr/q.yml +0 -5
- data/iso_data/base/world/fr/s.yml +0 -7
- data/iso_data/base/world/fr/t.yml +0 -9
- data/iso_data/base/world/gg.yml +0 -1
- data/iso_data/base/world/id/ma.yml +0 -5
- data/iso_data/base/world/im.yml +0 -1
- data/iso_data/base/world/je.yml +0 -1
- data/iso_data/base/world/mf.yml +0 -1
- data/iso_data/base/world/mo.yml +0 -1
- data/iso_data/overlay/world.yml +0 -5
- data/locale/base/en/world/bd/1.yml +0 -17
- data/locale/base/en/world/bd/2.yml +0 -27
- data/locale/base/en/world/bd/3.yml +0 -39
- data/locale/base/en/world/bd/4.yml +0 -25
- data/locale/base/en/world/bd/5.yml +0 -37
- data/locale/base/en/world/bd/6.yml +0 -13
- data/locale/base/en/world/bl.yml +0 -4
- data/locale/base/en/world/fr/a.yml +0 -9
- data/locale/base/en/world/fr/b.yml +0 -15
- data/locale/base/en/world/fr/c.yml +0 -13
- data/locale/base/en/world/fr/d.yml +0 -13
- data/locale/base/en/world/fr/g.yml +0 -13
- data/locale/base/en/world/fr/k.yml +0 -15
- data/locale/base/en/world/fr/l.yml +0 -11
- data/locale/base/en/world/fr/m.yml +0 -13
- data/locale/base/en/world/fr/o.yml +0 -9
- data/locale/base/en/world/fr/q.yml +0 -9
- data/locale/base/en/world/fr/t.yml +0 -13
- data/locale/base/en/world/gg.yml +0 -4
- data/locale/base/en/world/id/ma.yml +0 -9
- data/locale/base/en/world/im.yml +0 -4
- data/locale/base/en/world/je.yml +0 -4
- data/locale/base/en/world/mf.yml +0 -4
- data/locale/base/en/world/mo.yml +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94a18311304a0f479c340bbf7a39c9820113cc8d
|
4
|
+
data.tar.gz: 3f49ab0339f4f11db9827327fc7be9029d2e1b91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d0a740660bfa609a18d4afa356a68a4b76f9d92b11587152f82d18c21821ae10582693c58e2818acfe8ae648e79ad41257fd89ce2cb0b4c23abc39f38c77483
|
7
|
+
data.tar.gz: 6f6e4b875d2914de66c0fe4ae32b7ba32b045f7a5916baa0d66c1d375c5c78adfcbdf3fb6ed98c4023f841f90a6f09242b8438106fa729b4884b6d16d731e10f
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,17 @@
|
|
1
|
-
###
|
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
|
-
#
|
1
|
+
# Carmen
|
2
2
|
|
3
|
-
|
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
|
7
|
+
Carmen features the following:
|
10
8
|
|
11
|
-
|
12
|
-
|
9
|
+
* Clean API
|
10
|
+
* Complete countries & regions data from the iso-codes Debian package
|
11
|
+
* A sane approach to internationalization
|
13
12
|
|
14
|
-
|
15
|
-
last stable version of Carmen that will run on Ruby 1.8.x.
|
13
|
+
## Ruby on Rails
|
16
14
|
|
17
|
-
Carmen
|
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,21 +1,21 @@
|
|
1
1
|
---
|
2
|
-
- code: '
|
2
|
+
- code: '01'
|
3
3
|
type: canton
|
4
|
-
- code: '
|
4
|
+
- code: '02'
|
5
5
|
type: canton
|
6
|
-
- code: '
|
6
|
+
- code: '03'
|
7
7
|
type: canton
|
8
|
-
- code:
|
8
|
+
- code: '04'
|
9
9
|
type: canton
|
10
|
-
- code: '
|
10
|
+
- code: '05'
|
11
11
|
type: canton
|
12
12
|
- code: '06'
|
13
13
|
type: canton
|
14
|
-
- code: '
|
15
|
-
type: canton
|
16
|
-
- code: '01'
|
14
|
+
- code: '07'
|
17
15
|
type: canton
|
18
16
|
- code: 08
|
19
17
|
type: canton
|
20
|
-
- code:
|
18
|
+
- code: 09
|
19
|
+
type: canton
|
20
|
+
- code: '10'
|
21
21
|
type: canton
|
@@ -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: '
|
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: '
|
26
|
+
- code: '42'
|
29
27
|
type: district
|
30
|
-
- code: '
|
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
|
@@ -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
|
data/iso_data/base/world/cz.yml
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
---
|
2
|
-
- code:
|
2
|
+
- code: '10'
|
3
|
+
type: capital city
|
4
|
+
- code: '20'
|
3
5
|
type: region
|
4
|
-
- code:
|
6
|
+
- code: '31'
|
5
7
|
type: region
|
6
|
-
- code:
|
8
|
+
- code: '32'
|
7
9
|
type: region
|
8
|
-
- code:
|
10
|
+
- code: '41'
|
9
11
|
type: region
|
10
|
-
- code:
|
12
|
+
- code: '42'
|
11
13
|
type: region
|
12
|
-
- code:
|
14
|
+
- code: '51'
|
13
15
|
type: region
|
14
|
-
- code:
|
16
|
+
- code: '52'
|
15
17
|
type: region
|
16
|
-
- code:
|
18
|
+
- code: '53'
|
17
19
|
type: region
|
18
|
-
- code:
|
20
|
+
- code: '63'
|
19
21
|
type: region
|
20
|
-
- code:
|
22
|
+
- code: '64'
|
21
23
|
type: region
|
22
|
-
- code:
|
24
|
+
- code: '71'
|
23
25
|
type: region
|
24
|
-
- code:
|
26
|
+
- code: '72'
|
25
27
|
type: region
|
26
|
-
- code:
|
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:
|
20
|
+
- code: '110'
|
21
21
|
type: district
|
22
|
-
- code:
|
22
|
+
- code: '111'
|
23
23
|
type: district
|
24
|
-
- code:
|
24
|
+
- code: '112'
|
25
25
|
type: district
|
26
|
-
- code:
|
26
|
+
- code: '113'
|
27
27
|
type: district
|
28
|
-
- code:
|
28
|
+
- code: '114'
|
29
29
|
type: district
|
30
|
-
- code:
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,11 +1,11 @@
|
|
1
1
|
---
|
2
|
-
- code: '
|
2
|
+
- code: '631'
|
3
3
|
type: district
|
4
|
-
- code: '
|
4
|
+
- code: '632'
|
5
5
|
type: district
|
6
|
-
- code: '
|
6
|
+
- code: '633'
|
7
7
|
type: district
|
8
|
-
- code: '
|
8
|
+
- code: '634'
|
9
9
|
type: district
|
10
|
-
- code: '
|
10
|
+
- code: '635'
|
11
11
|
type: district
|