tabler-rubygem 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitattributes +14 -0
- data/.gitignore +19 -0
- data/.travis.yml +17 -0
- data/CHANGELOG.md +29 -0
- data/Gemfile +11 -0
- data/LICENSE +21 -0
- data/README.md +110 -0
- data/Rakefile +78 -0
- data/assets/fonts/feather/feather-webfont.eot +0 -0
- data/assets/fonts/feather/feather-webfont.svg +1038 -0
- data/assets/fonts/feather/feather-webfont.ttf +0 -0
- data/assets/fonts/feather/feather-webfont.woff +0 -0
- data/assets/images/browsers/android-browser.svg +1 -0
- data/assets/images/browsers/aol-explorer.svg +1 -0
- data/assets/images/browsers/blackberry.svg +1 -0
- data/assets/images/browsers/camino.svg +1 -0
- data/assets/images/browsers/chrome.svg +1 -0
- data/assets/images/browsers/chromium.svg +1 -0
- data/assets/images/browsers/dolphin.svg +1 -0
- data/assets/images/browsers/edge.svg +1 -0
- data/assets/images/browsers/firefox.svg +1 -0
- data/assets/images/browsers/ie.svg +1 -0
- data/assets/images/browsers/maxthon.svg +1 -0
- data/assets/images/browsers/mozilla.svg +1 -0
- data/assets/images/browsers/netscape.svg +1 -0
- data/assets/images/browsers/opera.svg +1 -0
- data/assets/images/browsers/safari.svg +1 -0
- data/assets/images/browsers/sleipnir.svg +1 -0
- data/assets/images/browsers/uc-browser.svg +1 -0
- data/assets/images/browsers/vivaldi.svg +1 -0
- data/assets/images/crypto-currencies/bitcoin.svg +1 -0
- data/assets/images/crypto-currencies/cardano.svg +1 -0
- data/assets/images/crypto-currencies/dash.svg +1 -0
- data/assets/images/crypto-currencies/eos.svg +1 -0
- data/assets/images/crypto-currencies/ethereum.svg +1 -0
- data/assets/images/crypto-currencies/litecoin.svg +1 -0
- data/assets/images/crypto-currencies/nem.svg +1 -0
- data/assets/images/crypto-currencies/ripple.svg +1 -0
- data/assets/images/flags/ad.svg +1 -0
- data/assets/images/flags/ae.svg +1 -0
- data/assets/images/flags/af.svg +1 -0
- data/assets/images/flags/ag.svg +1 -0
- data/assets/images/flags/ai.svg +1 -0
- data/assets/images/flags/al.svg +1 -0
- data/assets/images/flags/am.svg +1 -0
- data/assets/images/flags/ao.svg +1 -0
- data/assets/images/flags/aq.svg +1 -0
- data/assets/images/flags/ar.svg +1 -0
- data/assets/images/flags/as.svg +1 -0
- data/assets/images/flags/at.svg +1 -0
- data/assets/images/flags/au.svg +1 -0
- data/assets/images/flags/aw.svg +1 -0
- data/assets/images/flags/ax.svg +1 -0
- data/assets/images/flags/az.svg +1 -0
- data/assets/images/flags/ba.svg +1 -0
- data/assets/images/flags/bb.svg +1 -0
- data/assets/images/flags/bd.svg +1 -0
- data/assets/images/flags/be.svg +1 -0
- data/assets/images/flags/bf.svg +1 -0
- data/assets/images/flags/bg.svg +1 -0
- data/assets/images/flags/bh.svg +1 -0
- data/assets/images/flags/bi.svg +1 -0
- data/assets/images/flags/bj.svg +1 -0
- data/assets/images/flags/bl.svg +1 -0
- data/assets/images/flags/bm.svg +1 -0
- data/assets/images/flags/bn.svg +1 -0
- data/assets/images/flags/bo.svg +1 -0
- data/assets/images/flags/bq.svg +1 -0
- data/assets/images/flags/br.svg +1 -0
- data/assets/images/flags/bs.svg +1 -0
- data/assets/images/flags/bt.svg +1 -0
- data/assets/images/flags/bv.svg +1 -0
- data/assets/images/flags/bw.svg +1 -0
- data/assets/images/flags/by.svg +1 -0
- data/assets/images/flags/bz.svg +1 -0
- data/assets/images/flags/ca.svg +6 -0
- data/assets/images/flags/cc.svg +1 -0
- data/assets/images/flags/cd.svg +1 -0
- data/assets/images/flags/cf.svg +1 -0
- data/assets/images/flags/cg.svg +1 -0
- data/assets/images/flags/ch.svg +1 -0
- data/assets/images/flags/ci.svg +1 -0
- data/assets/images/flags/ck.svg +1 -0
- data/assets/images/flags/cl.svg +1 -0
- data/assets/images/flags/cm.svg +1 -0
- data/assets/images/flags/cn.svg +1 -0
- data/assets/images/flags/co.svg +1 -0
- data/assets/images/flags/cr.svg +1 -0
- data/assets/images/flags/cu.svg +1 -0
- data/assets/images/flags/cv.svg +1 -0
- data/assets/images/flags/cw.svg +1 -0
- data/assets/images/flags/cx.svg +1 -0
- data/assets/images/flags/cy.svg +1 -0
- data/assets/images/flags/cz.svg +1 -0
- data/assets/images/flags/de.svg +1 -0
- data/assets/images/flags/dj.svg +1 -0
- data/assets/images/flags/dk.svg +1 -0
- data/assets/images/flags/dm.svg +1 -0
- data/assets/images/flags/do.svg +1 -0
- data/assets/images/flags/dz.svg +1 -0
- data/assets/images/flags/ec.svg +1 -0
- data/assets/images/flags/ee.svg +1 -0
- data/assets/images/flags/eg.svg +1 -0
- data/assets/images/flags/eh.svg +1 -0
- data/assets/images/flags/er.svg +1 -0
- data/assets/images/flags/es.svg +1 -0
- data/assets/images/flags/et.svg +1 -0
- data/assets/images/flags/eu.svg +1 -0
- data/assets/images/flags/fi.svg +1 -0
- data/assets/images/flags/fj.svg +1 -0
- data/assets/images/flags/fk.svg +1 -0
- data/assets/images/flags/fm.svg +1 -0
- data/assets/images/flags/fo.svg +1 -0
- data/assets/images/flags/fr.svg +1 -0
- data/assets/images/flags/ga.svg +1 -0
- data/assets/images/flags/gb-eng.svg +1 -0
- data/assets/images/flags/gb-nir.svg +1 -0
- data/assets/images/flags/gb-sct.svg +1 -0
- data/assets/images/flags/gb-wls.svg +1 -0
- data/assets/images/flags/gb.svg +1 -0
- data/assets/images/flags/gd.svg +1 -0
- data/assets/images/flags/ge.svg +1 -0
- data/assets/images/flags/gf.svg +1 -0
- data/assets/images/flags/gg.svg +1 -0
- data/assets/images/flags/gh.svg +1 -0
- data/assets/images/flags/gi.svg +1 -0
- data/assets/images/flags/gl.svg +1 -0
- data/assets/images/flags/gm.svg +1 -0
- data/assets/images/flags/gn.svg +1 -0
- data/assets/images/flags/gp.svg +1 -0
- data/assets/images/flags/gq.svg +1 -0
- data/assets/images/flags/gr.svg +1 -0
- data/assets/images/flags/gs.svg +1 -0
- data/assets/images/flags/gt.svg +1 -0
- data/assets/images/flags/gu.svg +1 -0
- data/assets/images/flags/gw.svg +1 -0
- data/assets/images/flags/gy.svg +1 -0
- data/assets/images/flags/hk.svg +1 -0
- data/assets/images/flags/hm.svg +1 -0
- data/assets/images/flags/hn.svg +1 -0
- data/assets/images/flags/hr.svg +1 -0
- data/assets/images/flags/ht.svg +1 -0
- data/assets/images/flags/hu.svg +1 -0
- data/assets/images/flags/id.svg +1 -0
- data/assets/images/flags/ie.svg +1 -0
- data/assets/images/flags/il.svg +1 -0
- data/assets/images/flags/im.svg +1 -0
- data/assets/images/flags/in.svg +1 -0
- data/assets/images/flags/io.svg +1 -0
- data/assets/images/flags/iq.svg +1 -0
- data/assets/images/flags/ir.svg +1 -0
- data/assets/images/flags/is.svg +1 -0
- data/assets/images/flags/it.svg +1 -0
- data/assets/images/flags/je.svg +1 -0
- data/assets/images/flags/jm.svg +1 -0
- data/assets/images/flags/jo.svg +1 -0
- data/assets/images/flags/jp.svg +1 -0
- data/assets/images/flags/ke.svg +1 -0
- data/assets/images/flags/kg.svg +1 -0
- data/assets/images/flags/kh.svg +1 -0
- data/assets/images/flags/ki.svg +1 -0
- data/assets/images/flags/km.svg +1 -0
- data/assets/images/flags/kn.svg +1 -0
- data/assets/images/flags/kp.svg +1 -0
- data/assets/images/flags/kr.svg +1 -0
- data/assets/images/flags/kw.svg +1 -0
- data/assets/images/flags/ky.svg +1 -0
- data/assets/images/flags/kz.svg +1 -0
- data/assets/images/flags/la.svg +1 -0
- data/assets/images/flags/lb.svg +1 -0
- data/assets/images/flags/lc.svg +1 -0
- data/assets/images/flags/li.svg +1 -0
- data/assets/images/flags/lk.svg +1 -0
- data/assets/images/flags/lr.svg +1 -0
- data/assets/images/flags/ls.svg +1 -0
- data/assets/images/flags/lt.svg +1 -0
- data/assets/images/flags/lu.svg +1 -0
- data/assets/images/flags/lv.svg +1 -0
- data/assets/images/flags/ly.svg +1 -0
- data/assets/images/flags/ma.svg +1 -0
- data/assets/images/flags/mc.svg +1 -0
- data/assets/images/flags/md.svg +1 -0
- data/assets/images/flags/me.svg +1 -0
- data/assets/images/flags/mf.svg +1 -0
- data/assets/images/flags/mg.svg +1 -0
- data/assets/images/flags/mh.svg +1 -0
- data/assets/images/flags/mk.svg +1 -0
- data/assets/images/flags/ml.svg +1 -0
- data/assets/images/flags/mm.svg +1 -0
- data/assets/images/flags/mn.svg +1 -0
- data/assets/images/flags/mo.svg +1 -0
- data/assets/images/flags/mp.svg +1 -0
- data/assets/images/flags/mq.svg +1 -0
- data/assets/images/flags/mr.svg +1 -0
- data/assets/images/flags/ms.svg +1 -0
- data/assets/images/flags/mt.svg +1 -0
- data/assets/images/flags/mu.svg +1 -0
- data/assets/images/flags/mv.svg +1 -0
- data/assets/images/flags/mw.svg +1 -0
- data/assets/images/flags/mx.svg +1 -0
- data/assets/images/flags/my.svg +1 -0
- data/assets/images/flags/mz.svg +1 -0
- data/assets/images/flags/na.svg +1 -0
- data/assets/images/flags/nc.svg +1 -0
- data/assets/images/flags/ne.svg +1 -0
- data/assets/images/flags/nf.svg +1 -0
- data/assets/images/flags/ng.svg +1 -0
- data/assets/images/flags/ni.svg +1 -0
- data/assets/images/flags/nl.svg +1 -0
- data/assets/images/flags/no.svg +1 -0
- data/assets/images/flags/np.svg +1 -0
- data/assets/images/flags/nr.svg +1 -0
- data/assets/images/flags/nu.svg +1 -0
- data/assets/images/flags/nz.svg +1 -0
- data/assets/images/flags/om.svg +1 -0
- data/assets/images/flags/pa.svg +1 -0
- data/assets/images/flags/pe.svg +1 -0
- data/assets/images/flags/pf.svg +1 -0
- data/assets/images/flags/pg.svg +1 -0
- data/assets/images/flags/ph.svg +1 -0
- data/assets/images/flags/pk.svg +1 -0
- data/assets/images/flags/pl.svg +1 -0
- data/assets/images/flags/pm.svg +1 -0
- data/assets/images/flags/pn.svg +1 -0
- data/assets/images/flags/pr.svg +1 -0
- data/assets/images/flags/ps.svg +1 -0
- data/assets/images/flags/pt.svg +1 -0
- data/assets/images/flags/pw.svg +1 -0
- data/assets/images/flags/py.svg +1 -0
- data/assets/images/flags/qa.svg +1 -0
- data/assets/images/flags/re.svg +1 -0
- data/assets/images/flags/ro.svg +1 -0
- data/assets/images/flags/rs.svg +1 -0
- data/assets/images/flags/ru.svg +1 -0
- data/assets/images/flags/rw.svg +1 -0
- data/assets/images/flags/sa.svg +1 -0
- data/assets/images/flags/sb.svg +1 -0
- data/assets/images/flags/sc.svg +1 -0
- data/assets/images/flags/sd.svg +1 -0
- data/assets/images/flags/se.svg +1 -0
- data/assets/images/flags/sg.svg +1 -0
- data/assets/images/flags/sh.svg +1 -0
- data/assets/images/flags/si.svg +1 -0
- data/assets/images/flags/sj.svg +1 -0
- data/assets/images/flags/sk.svg +1 -0
- data/assets/images/flags/sl.svg +1 -0
- data/assets/images/flags/sm.svg +1 -0
- data/assets/images/flags/sn.svg +1 -0
- data/assets/images/flags/so.svg +1 -0
- data/assets/images/flags/sr.svg +1 -0
- data/assets/images/flags/ss.svg +1 -0
- data/assets/images/flags/st.svg +1 -0
- data/assets/images/flags/sv.svg +1 -0
- data/assets/images/flags/sx.svg +1 -0
- data/assets/images/flags/sy.svg +1 -0
- data/assets/images/flags/sz.svg +1 -0
- data/assets/images/flags/tc.svg +1 -0
- data/assets/images/flags/td.svg +1 -0
- data/assets/images/flags/tf.svg +1 -0
- data/assets/images/flags/tg.svg +1 -0
- data/assets/images/flags/th.svg +1 -0
- data/assets/images/flags/tj.svg +1 -0
- data/assets/images/flags/tk.svg +1 -0
- data/assets/images/flags/tl.svg +1 -0
- data/assets/images/flags/tm.svg +1 -0
- data/assets/images/flags/tn.svg +1 -0
- data/assets/images/flags/to.svg +1 -0
- data/assets/images/flags/tr.svg +1 -0
- data/assets/images/flags/tt.svg +1 -0
- data/assets/images/flags/tv.svg +1 -0
- data/assets/images/flags/tw.svg +1 -0
- data/assets/images/flags/tz.svg +1 -0
- data/assets/images/flags/ua.svg +1 -0
- data/assets/images/flags/ug.svg +1 -0
- data/assets/images/flags/um.svg +1 -0
- data/assets/images/flags/un.svg +1 -0
- data/assets/images/flags/us.svg +18 -0
- data/assets/images/flags/uy.svg +1 -0
- data/assets/images/flags/uz.svg +1 -0
- data/assets/images/flags/va.svg +1 -0
- data/assets/images/flags/vc.svg +1 -0
- data/assets/images/flags/ve.svg +1 -0
- data/assets/images/flags/vg.svg +1 -0
- data/assets/images/flags/vi.svg +1 -0
- data/assets/images/flags/vn.svg +1 -0
- data/assets/images/flags/vu.svg +1 -0
- data/assets/images/flags/wf.svg +1 -0
- data/assets/images/flags/ws.svg +1 -0
- data/assets/images/flags/ye.svg +1 -0
- data/assets/images/flags/yt.svg +1 -0
- data/assets/images/flags/za.svg +1 -0
- data/assets/images/flags/zm.svg +1 -0
- data/assets/images/flags/zw.svg +1 -0
- data/assets/images/payments/2checkout-dark.svg +1 -0
- data/assets/images/payments/2checkout.svg +1 -0
- data/assets/images/payments/alipay-dark.svg +1 -0
- data/assets/images/payments/alipay.svg +1 -0
- data/assets/images/payments/amazon-dark.svg +1 -0
- data/assets/images/payments/amazon.svg +1 -0
- data/assets/images/payments/americanexpress-dark.svg +1 -0
- data/assets/images/payments/americanexpress.svg +1 -0
- data/assets/images/payments/applepay-dark.svg +1 -0
- data/assets/images/payments/applepay.svg +1 -0
- data/assets/images/payments/bancontact-dark.svg +1 -0
- data/assets/images/payments/bancontact.svg +1 -0
- data/assets/images/payments/bitcoin-dark.svg +1 -0
- data/assets/images/payments/bitcoin.svg +1 -0
- data/assets/images/payments/bitpay-dark.svg +1 -0
- data/assets/images/payments/bitpay.svg +1 -0
- data/assets/images/payments/cirrus-dark.svg +1 -0
- data/assets/images/payments/cirrus.svg +1 -0
- data/assets/images/payments/clickandbuy-dark.svg +1 -0
- data/assets/images/payments/clickandbuy.svg +1 -0
- data/assets/images/payments/coinkite-dark.svg +1 -0
- data/assets/images/payments/coinkite.svg +1 -0
- data/assets/images/payments/dinersclub-dark.svg +1 -0
- data/assets/images/payments/dinersclub.svg +1 -0
- data/assets/images/payments/directdebit-dark.svg +1 -0
- data/assets/images/payments/directdebit.svg +1 -0
- data/assets/images/payments/discover-dark.svg +1 -0
- data/assets/images/payments/discover.svg +1 -0
- data/assets/images/payments/dwolla-dark.svg +1 -0
- data/assets/images/payments/dwolla.svg +1 -0
- data/assets/images/payments/ebay-dark.svg +1 -0
- data/assets/images/payments/ebay.svg +1 -0
- data/assets/images/payments/eway-dark.svg +1 -0
- data/assets/images/payments/eway.svg +1 -0
- data/assets/images/payments/giropay-dark.svg +1 -0
- data/assets/images/payments/giropay.svg +1 -0
- data/assets/images/payments/googlewallet-dark.svg +1 -0
- data/assets/images/payments/googlewallet.svg +1 -0
- data/assets/images/payments/ingenico-dark.svg +1 -0
- data/assets/images/payments/ingenico.svg +1 -0
- data/assets/images/payments/jcb-dark.svg +1 -0
- data/assets/images/payments/jcb.svg +1 -0
- data/assets/images/payments/klarna-dark.svg +1 -0
- data/assets/images/payments/klarna.svg +1 -0
- data/assets/images/payments/laser-dark.svg +1 -0
- data/assets/images/payments/laser.svg +1 -0
- data/assets/images/payments/maestro-dark.svg +1 -0
- data/assets/images/payments/maestro.svg +1 -0
- data/assets/images/payments/mastercard-dark.svg +1 -0
- data/assets/images/payments/mastercard.svg +1 -0
- data/assets/images/payments/monero-dark.svg +1 -0
- data/assets/images/payments/monero.svg +1 -0
- data/assets/images/payments/neteller-dark.svg +1 -0
- data/assets/images/payments/neteller.svg +1 -0
- data/assets/images/payments/ogone-dark.svg +1 -0
- data/assets/images/payments/ogone.svg +1 -0
- data/assets/images/payments/okpay-dark.svg +1 -0
- data/assets/images/payments/okpay.svg +1 -0
- data/assets/images/payments/paybox-dark.svg +1 -0
- data/assets/images/payments/paybox.svg +1 -0
- data/assets/images/payments/paymill-dark.svg +1 -0
- data/assets/images/payments/paymill.svg +1 -0
- data/assets/images/payments/payone-dark.svg +1 -0
- data/assets/images/payments/payone.svg +1 -0
- data/assets/images/payments/payoneer-dark.svg +1 -0
- data/assets/images/payments/payoneer.svg +1 -0
- data/assets/images/payments/paypal-dark.svg +1 -0
- data/assets/images/payments/paypal.svg +1 -0
- data/assets/images/payments/paysafecard-dark.svg +1 -0
- data/assets/images/payments/paysafecard.svg +1 -0
- data/assets/images/payments/payu-dark.svg +1 -0
- data/assets/images/payments/payu.svg +1 -0
- data/assets/images/payments/payza-dark.svg +1 -0
- data/assets/images/payments/payza.svg +1 -0
- data/assets/images/payments/ripple-dark.svg +1 -0
- data/assets/images/payments/ripple.svg +1 -0
- data/assets/images/payments/sage-dark.svg +1 -0
- data/assets/images/payments/sage.svg +1 -0
- data/assets/images/payments/sepa-dark.svg +1 -0
- data/assets/images/payments/sepa.svg +1 -0
- data/assets/images/payments/shopify-dark.svg +1 -0
- data/assets/images/payments/shopify.svg +1 -0
- data/assets/images/payments/skrill-dark.svg +1 -0
- data/assets/images/payments/skrill.svg +1 -0
- data/assets/images/payments/solo-dark.svg +1 -0
- data/assets/images/payments/solo.svg +1 -0
- data/assets/images/payments/square-dark.svg +1 -0
- data/assets/images/payments/square.svg +1 -0
- data/assets/images/payments/stripe-dark.svg +1 -0
- data/assets/images/payments/stripe.svg +1 -0
- data/assets/images/payments/switch-dark.svg +1 -0
- data/assets/images/payments/switch.svg +1 -0
- data/assets/images/payments/ukash-dark.svg +1 -0
- data/assets/images/payments/ukash.svg +1 -0
- data/assets/images/payments/unionpay-dark.svg +1 -0
- data/assets/images/payments/unionpay.svg +1 -0
- data/assets/images/payments/verifone-dark.svg +1 -0
- data/assets/images/payments/verifone.svg +1 -0
- data/assets/images/payments/verisign-dark.svg +1 -0
- data/assets/images/payments/verisign.svg +1 -0
- data/assets/images/payments/visa-dark.svg +1 -0
- data/assets/images/payments/visa.svg +1 -0
- data/assets/images/payments/webmoney-dark.svg +1 -0
- data/assets/images/payments/webmoney.svg +1 -0
- data/assets/images/payments/westernunion-dark.svg +1 -0
- data/assets/images/payments/westernunion.svg +1 -0
- data/assets/images/payments/worldpay-dark.svg +1 -0
- data/assets/images/payments/worldpay.svg +1 -0
- data/assets/javascripts/tabler.js +6 -0
- data/assets/javascripts/tabler.plugins.js +3 -0
- data/assets/javascripts/tabler/core.js +108 -0
- data/assets/javascripts/tabler/plugins/charts-c3/js/c3.min.js +1 -0
- data/assets/javascripts/tabler/plugins/charts-c3/js/d3.v3.min.js +5 -0
- data/assets/javascripts/tabler/plugins/charts-c3/plugin.js +10 -0
- data/assets/javascripts/tabler/plugins/fullcalendar/js/fullcalendar.min.js +7 -0
- data/assets/javascripts/tabler/plugins/fullcalendar/js/moment.min.js +1 -0
- data/assets/javascripts/tabler/plugins/fullcalendar/plugin.js +9 -0
- data/assets/javascripts/tabler/plugins/input-mask/js/jquery.mask.min.js +19 -0
- data/assets/javascripts/tabler/plugins/input-mask/plugin.js +8 -0
- data/assets/javascripts/tabler/plugins/maps-google/plugin.js +0 -0
- data/assets/javascripts/tabler/plugins/prismjs/js/prism.pack.js +30 -0
- data/assets/javascripts/tabler/plugins/prismjs/plugin.js +18 -0
- data/assets/javascripts/tabler/tabler.js +102 -0
- data/assets/javascripts/tabler/vendors/bootstrap.bundle.min.js +6 -0
- data/assets/javascripts/tabler/vendors/chart.bundle.min.js +10 -0
- data/assets/javascripts/tabler/vendors/circle-progress.min.js +10 -0
- data/assets/javascripts/tabler/vendors/jquery-3.2.1.min.js +4 -0
- data/assets/javascripts/tabler/vendors/jquery-3.2.1.slim.min.js +4 -0
- data/assets/javascripts/tabler/vendors/jquery-jvectormap-2.0.3.min.js +2 -0
- data/assets/javascripts/tabler/vendors/jquery-jvectormap-de-merc.js +1 -0
- data/assets/javascripts/tabler/vendors/jquery-jvectormap-world-mill.js +1 -0
- data/assets/javascripts/tabler/vendors/jquery.sparkline.min.js +2 -0
- data/assets/javascripts/tabler/vendors/jquery.tablesorter.min.js +4 -0
- data/assets/javascripts/tabler/vendors/selectize.min.js +3829 -0
- data/assets/stylesheets/_bootstrap-grid.scss +32 -0
- data/assets/stylesheets/_bootstrap-reboot.scss +12 -0
- data/assets/stylesheets/_bootstrap.scss +42 -0
- data/assets/stylesheets/_tabler.plugins.scss +5 -0
- data/assets/stylesheets/_tabler.scss +65 -0
- data/assets/stylesheets/bootstrap/_alert.scss +51 -0
- data/assets/stylesheets/bootstrap/_badge.scss +47 -0
- data/assets/stylesheets/bootstrap/_breadcrumb.scss +38 -0
- data/assets/stylesheets/bootstrap/_button-group.scss +166 -0
- data/assets/stylesheets/bootstrap/_buttons.scss +143 -0
- data/assets/stylesheets/bootstrap/_card.scss +299 -0
- data/assets/stylesheets/bootstrap/_carousel.scss +235 -0
- data/assets/stylesheets/bootstrap/_close.scss +34 -0
- data/assets/stylesheets/bootstrap/_code.scss +56 -0
- data/assets/stylesheets/bootstrap/_custom-forms.scss +420 -0
- data/assets/stylesheets/bootstrap/_dropdown.scss +138 -0
- data/assets/stylesheets/bootstrap/_forms.scss +335 -0
- data/assets/stylesheets/bootstrap/_functions.scss +86 -0
- data/assets/stylesheets/bootstrap/_grid.scss +52 -0
- data/assets/stylesheets/bootstrap/_images.scss +42 -0
- data/assets/stylesheets/bootstrap/_input-group.scss +159 -0
- data/assets/stylesheets/bootstrap/_jumbotron.scss +16 -0
- data/assets/stylesheets/bootstrap/_list-group.scss +115 -0
- data/assets/stylesheets/bootstrap/_media.scss +8 -0
- data/assets/stylesheets/bootstrap/_mixins.scss +42 -0
- data/assets/stylesheets/bootstrap/_modal.scss +168 -0
- data/assets/stylesheets/bootstrap/_nav.scss +118 -0
- data/assets/stylesheets/bootstrap/_navbar.scss +311 -0
- data/assets/stylesheets/bootstrap/_pagination.scss +78 -0
- data/assets/stylesheets/bootstrap/_popover.scss +183 -0
- data/assets/stylesheets/bootstrap/_print.scss +124 -0
- data/assets/stylesheets/bootstrap/_progress.scss +34 -0
- data/assets/stylesheets/bootstrap/_reboot.scss +482 -0
- data/assets/stylesheets/bootstrap/_root.scss +19 -0
- data/assets/stylesheets/bootstrap/_tables.scss +188 -0
- data/assets/stylesheets/bootstrap/_tooltip.scss +115 -0
- data/assets/stylesheets/bootstrap/_transitions.scss +36 -0
- data/assets/stylesheets/bootstrap/_type.scss +125 -0
- data/assets/stylesheets/bootstrap/_utilities.scss +14 -0
- data/assets/stylesheets/bootstrap/_variables.scss +919 -0
- data/assets/stylesheets/bootstrap/mixins/_alert.scss +13 -0
- data/assets/stylesheets/bootstrap/mixins/_background-variant.scss +21 -0
- data/assets/stylesheets/bootstrap/mixins/_badge.scss +12 -0
- data/assets/stylesheets/bootstrap/mixins/_border-radius.scss +35 -0
- data/assets/stylesheets/bootstrap/mixins/_box-shadow.scss +5 -0
- data/assets/stylesheets/bootstrap/mixins/_breakpoints.scss +123 -0
- data/assets/stylesheets/bootstrap/mixins/_buttons.scss +109 -0
- data/assets/stylesheets/bootstrap/mixins/_caret.scss +65 -0
- data/assets/stylesheets/bootstrap/mixins/_clearfix.scss +7 -0
- data/assets/stylesheets/bootstrap/mixins/_float.scss +11 -0
- data/assets/stylesheets/bootstrap/mixins/_forms.scss +137 -0
- data/assets/stylesheets/bootstrap/mixins/_gradients.scss +45 -0
- data/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +67 -0
- data/assets/stylesheets/bootstrap/mixins/_grid.scss +52 -0
- data/assets/stylesheets/bootstrap/mixins/_hover.scss +37 -0
- data/assets/stylesheets/bootstrap/mixins/_image.scss +36 -0
- data/assets/stylesheets/bootstrap/mixins/_list-group.scss +21 -0
- data/assets/stylesheets/bootstrap/mixins/_lists.scss +7 -0
- data/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +10 -0
- data/assets/stylesheets/bootstrap/mixins/_navbar-align.scss +10 -0
- data/assets/stylesheets/bootstrap/mixins/_pagination.scss +22 -0
- data/assets/stylesheets/bootstrap/mixins/_reset-text.scss +17 -0
- data/assets/stylesheets/bootstrap/mixins/_resize.scss +6 -0
- data/assets/stylesheets/bootstrap/mixins/_screen-reader.scss +33 -0
- data/assets/stylesheets/bootstrap/mixins/_size.scss +6 -0
- data/assets/stylesheets/bootstrap/mixins/_table-row.scss +30 -0
- data/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +14 -0
- data/assets/stylesheets/bootstrap/mixins/_text-hide.scss +9 -0
- data/assets/stylesheets/bootstrap/mixins/_text-truncate.scss +8 -0
- data/assets/stylesheets/bootstrap/mixins/_transition.scss +9 -0
- data/assets/stylesheets/bootstrap/mixins/_visibility.scss +7 -0
- data/assets/stylesheets/bootstrap/utilities/_align.scss +8 -0
- data/assets/stylesheets/bootstrap/utilities/_background.scss +19 -0
- data/assets/stylesheets/bootstrap/utilities/_borders.scss +59 -0
- data/assets/stylesheets/bootstrap/utilities/_clearfix.scss +3 -0
- data/assets/stylesheets/bootstrap/utilities/_display.scss +38 -0
- data/assets/stylesheets/bootstrap/utilities/_embed.scss +52 -0
- data/assets/stylesheets/bootstrap/utilities/_flex.scss +47 -0
- data/assets/stylesheets/bootstrap/utilities/_float.scss +9 -0
- data/assets/stylesheets/bootstrap/utilities/_position.scss +37 -0
- data/assets/stylesheets/bootstrap/utilities/_screenreaders.scss +11 -0
- data/assets/stylesheets/bootstrap/utilities/_sizing.scss +12 -0
- data/assets/stylesheets/bootstrap/utilities/_spacing.scss +51 -0
- data/assets/stylesheets/bootstrap/utilities/_text.scss +52 -0
- data/assets/stylesheets/bootstrap/utilities/_visibility.scss +11 -0
- data/assets/stylesheets/tabler/_alert.scss +25 -0
- data/assets/stylesheets/tabler/_aside.scss +36 -0
- data/assets/stylesheets/tabler/_avatar.scss +101 -0
- data/assets/stylesheets/tabler/_badge.scss +8 -0
- data/assets/stylesheets/tabler/_breadcrumb.scss +18 -0
- data/assets/stylesheets/tabler/_browser.scss +19 -0
- data/assets/stylesheets/tabler/_button.scss +118 -0
- data/assets/stylesheets/tabler/_cards.scss +415 -0
- data/assets/stylesheets/tabler/_charts.scss +51 -0
- data/assets/stylesheets/tabler/_chat.scss +88 -0
- data/assets/stylesheets/tabler/_chips.scss +45 -0
- data/assets/stylesheets/tabler/_close.scss +10 -0
- data/assets/stylesheets/tabler/_colors.scss +8 -0
- data/assets/stylesheets/tabler/_core.scss +37 -0
- data/assets/stylesheets/tabler/_dropdown.scss +68 -0
- data/assets/stylesheets/tabler/_example.scss +47 -0
- data/assets/stylesheets/tabler/_flag.scss +17 -0
- data/assets/stylesheets/tabler/_footer.scss +15 -0
- data/assets/stylesheets/tabler/_form.scss +158 -0
- data/assets/stylesheets/tabler/_functions.scss +3 -0
- data/assets/stylesheets/tabler/_grid.scss +50 -0
- data/assets/stylesheets/tabler/_header.scss +128 -0
- data/assets/stylesheets/tabler/_icon.scss +29 -0
- data/assets/stylesheets/tabler/_image.scss +12 -0
- data/assets/stylesheets/tabler/_infobox.scss +0 -0
- data/assets/stylesheets/tabler/_jvectormap.scss +140 -0
- data/assets/stylesheets/tabler/_layout.scss +95 -0
- data/assets/stylesheets/tabler/_link.scss +25 -0
- data/assets/stylesheets/tabler/_list-group.scss +21 -0
- data/assets/stylesheets/tabler/_list.scss +34 -0
- data/assets/stylesheets/tabler/_maps.scss +52 -0
- data/assets/stylesheets/tabler/_media.scss +13 -0
- data/assets/stylesheets/tabler/_nav.scss +107 -0
- data/assets/stylesheets/tabler/_pagination.scss +29 -0
- data/assets/stylesheets/tabler/_payments.scss +19 -0
- data/assets/stylesheets/tabler/_popover.scss +12 -0
- data/assets/stylesheets/tabler/_product.scss +7 -0
- data/assets/stylesheets/tabler/_progress.scss +140 -0
- data/assets/stylesheets/tabler/_selectize.scss +372 -0
- data/assets/stylesheets/tabler/_social.scss +14 -0
- data/assets/stylesheets/tabler/_sparkline.scss +20 -0
- data/assets/stylesheets/tabler/_stamp.scss +18 -0
- data/assets/stylesheets/tabler/_statuses.scss +25 -0
- data/assets/stylesheets/tabler/_syntax.scss +78 -0
- data/assets/stylesheets/tabler/_tables.scss +135 -0
- data/assets/stylesheets/tabler/_tag.scss +97 -0
- data/assets/stylesheets/tabler/_text.scss +22 -0
- data/assets/stylesheets/tabler/_timeline.scss +71 -0
- data/assets/stylesheets/tabler/_type.scss +120 -0
- data/assets/stylesheets/tabler/_utilities.scss +31 -0
- data/assets/stylesheets/tabler/_variables.scss +311 -0
- data/assets/stylesheets/tabler/fonts/_feather.scss +1074 -0
- data/assets/stylesheets/tabler/forms/_custom-colorinput.scss +51 -0
- data/assets/stylesheets/tabler/forms/_custom-imagecheck.scss +85 -0
- data/assets/stylesheets/tabler/forms/_custom-range.scss +140 -0
- data/assets/stylesheets/tabler/forms/_custom-selectgroup.scss +80 -0
- data/assets/stylesheets/tabler/forms/_custom-switch.scss +74 -0
- data/assets/stylesheets/tabler/plugins/charts-c3/plugin.css +227 -0
- data/assets/stylesheets/tabler/plugins/fullcalendar/plugin.css +1125 -0
- data/assets/stylesheets/tabler/plugins/iconfonts/plugin.css +12835 -0
- data/assets/stylesheets/tabler/plugins/maps-google/plugin.css +0 -0
- data/assets/stylesheets/tabler/plugins/prismjs/plugin.css +198 -0
- data/lib/tabler/rubygem.rb +74 -0
- data/lib/tabler/rubygem/engine.rb +15 -0
- data/lib/tabler/rubygem/version.rb +6 -0
- data/tabler.gemspec +39 -0
- data/tasks/updater.rb +75 -0
- data/tasks/updater/fonts.rb +15 -0
- data/tasks/updater/images.rb +15 -0
- data/tasks/updater/js.rb +54 -0
- data/tasks/updater/logger.rb +57 -0
- data/tasks/updater/network.rb +103 -0
- data/tasks/updater/scss.rb +90 -0
- data/test/dummy_rails/README.rdoc +3 -0
- data/test/dummy_rails/Rakefile +6 -0
- data/test/dummy_rails/app/assets/images/.keep +0 -0
- data/test/dummy_rails/app/assets/javascripts/application.js +7 -0
- data/test/dummy_rails/app/assets/stylesheets/application.sass +4 -0
- data/test/dummy_rails/app/controllers/application_controller.rb +5 -0
- data/test/dummy_rails/app/controllers/pages_controller.rb +4 -0
- data/test/dummy_rails/app/helpers/application_helper.rb +2 -0
- data/test/dummy_rails/app/views/layouts/application.html.erb +14 -0
- data/test/dummy_rails/app/views/pages/root.html.slim +58 -0
- data/test/dummy_rails/config.ru +4 -0
- data/test/dummy_rails/config/application.rb +35 -0
- data/test/dummy_rails/config/boot.rb +5 -0
- data/test/dummy_rails/config/environment.rb +5 -0
- data/test/dummy_rails/config/environments/development.rb +23 -0
- data/test/dummy_rails/config/environments/production.rb +82 -0
- data/test/dummy_rails/config/environments/test.rb +38 -0
- data/test/dummy_rails/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy_rails/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy_rails/config/initializers/inflections.rb +16 -0
- data/test/dummy_rails/config/initializers/mime_types.rb +5 -0
- data/test/dummy_rails/config/initializers/secret_token.rb +18 -0
- data/test/dummy_rails/config/initializers/session_store.rb +3 -0
- data/test/dummy_rails/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy_rails/config/locales/en.yml +3 -0
- data/test/dummy_rails/config/locales/es.yml +3 -0
- data/test/dummy_rails/config/routes.rb +3 -0
- data/test/dummy_rails/log/.keep +0 -0
- data/test/gemfiles/rails_4_2.gemfile +7 -0
- data/test/gemfiles/rails_5_0.gemfile +8 -0
- data/test/gemfiles/rails_5_1.gemfile +8 -0
- data/test/rails_test.rb +24 -0
- data/test/support/dummy_rails_integration.rb +29 -0
- data/test/support/reporting.rb +27 -0
- data/test/test_helper.rb +35 -0
- data/test/test_helper_rails.rb +6 -0
- metadata +917 -0
File without changes
|
@@ -0,0 +1,198 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
/* PrismJS 1.9.0
|
3
|
+
http://prismjs.com/download.html?themes=prism&languages=markup+css+clike+javascript+ruby+json+less+php+python+jsx+sass+scss+sql&plugins=line-highlight+line-numbers */
|
4
|
+
/**
|
5
|
+
* prism.js default theme for JavaScript, CSS and HTML
|
6
|
+
* Based on dabblet (http://dabblet.com)
|
7
|
+
* @author Lea Verou
|
8
|
+
*/
|
9
|
+
.token.comment,
|
10
|
+
.token.prolog,
|
11
|
+
.token.doctype,
|
12
|
+
.token.cdata {
|
13
|
+
color: slategray;
|
14
|
+
}
|
15
|
+
|
16
|
+
.token.punctuation {
|
17
|
+
color: #999;
|
18
|
+
}
|
19
|
+
|
20
|
+
.namespace {
|
21
|
+
opacity: .7;
|
22
|
+
}
|
23
|
+
|
24
|
+
.token.property,
|
25
|
+
.token.tag,
|
26
|
+
.token.boolean,
|
27
|
+
.token.number,
|
28
|
+
.token.constant,
|
29
|
+
.token.symbol,
|
30
|
+
.token.deleted {
|
31
|
+
color: #905;
|
32
|
+
}
|
33
|
+
|
34
|
+
.token.selector,
|
35
|
+
.token.attr-name,
|
36
|
+
.token.string,
|
37
|
+
.token.char,
|
38
|
+
.token.builtin,
|
39
|
+
.token.inserted {
|
40
|
+
color: #690;
|
41
|
+
}
|
42
|
+
|
43
|
+
.token.operator,
|
44
|
+
.token.entity,
|
45
|
+
.token.url,
|
46
|
+
.language-css .token.string,
|
47
|
+
.style .token.string {
|
48
|
+
color: #a67f59;
|
49
|
+
background: rgba(255, 255, 255, 0.5);
|
50
|
+
}
|
51
|
+
|
52
|
+
.token.atrule,
|
53
|
+
.token.attr-value,
|
54
|
+
.token.keyword {
|
55
|
+
color: #07a;
|
56
|
+
}
|
57
|
+
|
58
|
+
.token.function {
|
59
|
+
color: #dd4a68;
|
60
|
+
}
|
61
|
+
|
62
|
+
.token.regex,
|
63
|
+
.token.important,
|
64
|
+
.token.variable {
|
65
|
+
color: #e90;
|
66
|
+
}
|
67
|
+
|
68
|
+
.token.important,
|
69
|
+
.token.bold {
|
70
|
+
font-weight: bold;
|
71
|
+
}
|
72
|
+
|
73
|
+
.token.italic {
|
74
|
+
font-style: italic;
|
75
|
+
}
|
76
|
+
|
77
|
+
.token.entity {
|
78
|
+
cursor: help;
|
79
|
+
}
|
80
|
+
|
81
|
+
pre[data-line] {
|
82
|
+
position: relative;
|
83
|
+
}
|
84
|
+
|
85
|
+
.line-highlight {
|
86
|
+
position: absolute;
|
87
|
+
left: 0;
|
88
|
+
right: 0;
|
89
|
+
margin-top: 1em;
|
90
|
+
/* Same as .prism’s padding-top */
|
91
|
+
background: rgba(255, 255, 0, 0.1);
|
92
|
+
pointer-events: none;
|
93
|
+
line-height: inherit;
|
94
|
+
white-space: pre;
|
95
|
+
}
|
96
|
+
|
97
|
+
.line-highlight:before,
|
98
|
+
.line-highlight[data-end]:after {
|
99
|
+
content: attr(data-start);
|
100
|
+
position: absolute;
|
101
|
+
top: .4em;
|
102
|
+
left: .6em;
|
103
|
+
min-width: 1em;
|
104
|
+
padding: 0 .5em;
|
105
|
+
background-color: rgba(153, 122, 102, 0.4);
|
106
|
+
color: #f5f2f0;
|
107
|
+
font: bold 65%/1.5 sans-serif;
|
108
|
+
text-align: center;
|
109
|
+
vertical-align: .3em;
|
110
|
+
border-radius: 999px;
|
111
|
+
text-shadow: none;
|
112
|
+
box-shadow: 0 1px white;
|
113
|
+
}
|
114
|
+
|
115
|
+
.line-highlight[data-end]:after {
|
116
|
+
content: attr(data-end);
|
117
|
+
top: auto;
|
118
|
+
bottom: .4em;
|
119
|
+
}
|
120
|
+
|
121
|
+
.line-numbers .line-highlight:before,
|
122
|
+
.line-numbers .line-highlight:after {
|
123
|
+
content: none;
|
124
|
+
}
|
125
|
+
|
126
|
+
pre.line-numbers {
|
127
|
+
position: relative;
|
128
|
+
padding-left: 3.8em;
|
129
|
+
counter-reset: linenumber;
|
130
|
+
}
|
131
|
+
|
132
|
+
pre.line-numbers > code {
|
133
|
+
position: relative;
|
134
|
+
white-space: inherit;
|
135
|
+
}
|
136
|
+
|
137
|
+
.line-numbers .line-numbers-rows {
|
138
|
+
position: absolute;
|
139
|
+
pointer-events: none;
|
140
|
+
top: 0;
|
141
|
+
font-size: 100%;
|
142
|
+
left: -3.8em;
|
143
|
+
width: 3em;
|
144
|
+
/* works for line-numbers below 1000 lines */
|
145
|
+
letter-spacing: -1px;
|
146
|
+
border-right: 1px solid rgba(0, 40, 100, 0.12);
|
147
|
+
-webkit-user-select: none;
|
148
|
+
-moz-user-select: none;
|
149
|
+
-ms-user-select: none;
|
150
|
+
user-select: none;
|
151
|
+
}
|
152
|
+
|
153
|
+
.line-numbers-rows > span {
|
154
|
+
pointer-events: none;
|
155
|
+
display: block;
|
156
|
+
counter-increment: linenumber;
|
157
|
+
}
|
158
|
+
|
159
|
+
.line-numbers-rows > span:before {
|
160
|
+
content: counter(linenumber);
|
161
|
+
color: rgba(154, 160, 172, 0.5);
|
162
|
+
display: block;
|
163
|
+
padding-right: 0.8em;
|
164
|
+
text-align: right;
|
165
|
+
}
|
166
|
+
|
167
|
+
pre.code-toolbar {
|
168
|
+
position: relative;
|
169
|
+
}
|
170
|
+
|
171
|
+
pre.code-toolbar > .toolbar {
|
172
|
+
position: absolute;
|
173
|
+
top: .3em;
|
174
|
+
right: .2em;
|
175
|
+
transition: opacity 0.3s ease-in-out;
|
176
|
+
opacity: 1;
|
177
|
+
}
|
178
|
+
|
179
|
+
pre.code-toolbar > .toolbar .toolbar-item {
|
180
|
+
display: inline-block;
|
181
|
+
-webkit-user-select: none;
|
182
|
+
-moz-user-select: none;
|
183
|
+
-ms-user-select: none;
|
184
|
+
user-select: none;
|
185
|
+
}
|
186
|
+
|
187
|
+
pre.code-toolbar > .toolbar a {
|
188
|
+
cursor: pointer;
|
189
|
+
}
|
190
|
+
|
191
|
+
pre.code-toolbar > .toolbar a,
|
192
|
+
pre.code-toolbar > .toolbar button,
|
193
|
+
pre.code-toolbar > .toolbar span {
|
194
|
+
color: #9aa0ac;
|
195
|
+
padding: 0 .5em;
|
196
|
+
font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
|
197
|
+
font-size: px2rem(14px);
|
198
|
+
}
|
@@ -0,0 +1,74 @@
|
|
1
|
+
require 'tabler/rubygem/version'
|
2
|
+
require 'popper_js'
|
3
|
+
|
4
|
+
module Tabler
|
5
|
+
module Rubygem
|
6
|
+
class << self
|
7
|
+
# Inspired by Kaminari
|
8
|
+
def load!
|
9
|
+
if rails?
|
10
|
+
register_rails_engine
|
11
|
+
elsif hanami?
|
12
|
+
register_hanami
|
13
|
+
elsif sprockets?
|
14
|
+
register_sprockets
|
15
|
+
end
|
16
|
+
|
17
|
+
configure_sass
|
18
|
+
end
|
19
|
+
|
20
|
+
# Paths
|
21
|
+
def gem_path
|
22
|
+
@gem_path ||= File.expand_path '..', File.dirname(__FILE__)
|
23
|
+
end
|
24
|
+
|
25
|
+
def stylesheets_path
|
26
|
+
File.join assets_path, 'stylesheets'
|
27
|
+
end
|
28
|
+
|
29
|
+
def javascripts_path
|
30
|
+
File.join assets_path, 'javascripts'
|
31
|
+
end
|
32
|
+
|
33
|
+
def assets_path
|
34
|
+
@assets_path ||= File.join gem_path, 'assets'
|
35
|
+
end
|
36
|
+
|
37
|
+
# Environment detection helpers
|
38
|
+
def sprockets?
|
39
|
+
defined?(::Sprockets)
|
40
|
+
end
|
41
|
+
|
42
|
+
def rails?
|
43
|
+
defined?(::Rails)
|
44
|
+
end
|
45
|
+
|
46
|
+
def hanami?
|
47
|
+
defined?(::Hanami)
|
48
|
+
end
|
49
|
+
|
50
|
+
private
|
51
|
+
|
52
|
+
def configure_sass
|
53
|
+
require 'sass'
|
54
|
+
|
55
|
+
::Sass.load_paths << stylesheets_path
|
56
|
+
end
|
57
|
+
|
58
|
+
def register_rails_engine
|
59
|
+
require 'tabler/rubygem/engine'
|
60
|
+
end
|
61
|
+
|
62
|
+
def register_sprockets
|
63
|
+
Sprockets.append_path(stylesheets_path)
|
64
|
+
Sprockets.append_path(javascripts_path)
|
65
|
+
end
|
66
|
+
|
67
|
+
def register_hanami
|
68
|
+
Hanami::Assets.sources << assets_path
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
Tabler::Rubygem.load!
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'autoprefixer-rails'
|
2
|
+
|
3
|
+
module Tabler
|
4
|
+
module Rubygem
|
5
|
+
module Rails
|
6
|
+
class Engine < ::Rails::Engine
|
7
|
+
initializer 'tabler.assets' do |app|
|
8
|
+
%w(stylesheets javascripts fonts images).each do |sub|
|
9
|
+
app.config.assets.paths << root.join('assets', sub).to_s
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/tabler.gemspec
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
lib = File.expand_path('../lib', __FILE__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
require 'tabler/rubygem/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = 'tabler-rubygem'
|
7
|
+
s.version = Tabler::Rubygem::VERSION
|
8
|
+
s.authors = ['lightyrs']
|
9
|
+
s.email = 'harris@lightyrs.com'
|
10
|
+
s.summary = 'Integrates Tabler Dashboard UI Kit (built on Bootstrap 4) into Rails Asset Pipeline'
|
11
|
+
s.homepage = 'https://github.com/lightyrs/tabler-rubygem'
|
12
|
+
s.license = 'MIT'
|
13
|
+
|
14
|
+
s.add_runtime_dependency 'popper_js', '>= 1.12.9', '< 2'
|
15
|
+
|
16
|
+
s.add_runtime_dependency 'sass', '>= 3.5.2'
|
17
|
+
s.add_runtime_dependency 'autoprefixer-rails', '>= 6.0.3'
|
18
|
+
|
19
|
+
# Testing dependencies
|
20
|
+
s.add_development_dependency 'minitest', '~> 5.8.0'
|
21
|
+
s.add_development_dependency 'minitest-reporters', '~> 1.0.5'
|
22
|
+
s.add_development_dependency 'term-ansicolor'
|
23
|
+
# Integration testing
|
24
|
+
s.add_development_dependency 'capybara', '>= 2.6.0'
|
25
|
+
s.add_development_dependency 'poltergeist'
|
26
|
+
# Dummy Rails app dependencies
|
27
|
+
s.add_development_dependency 'actionpack', '>= 4.1.5'
|
28
|
+
s.add_development_dependency 'activesupport', '>= 4.1.5'
|
29
|
+
s.add_development_dependency 'json', '>= 1.8.1'
|
30
|
+
s.add_development_dependency 'sprockets-rails', '>= 2.3.2'
|
31
|
+
s.add_development_dependency 'jquery-rails', '>= 3.1.0'
|
32
|
+
s.add_development_dependency 'slim-rails'
|
33
|
+
s.add_development_dependency 'uglifier'
|
34
|
+
|
35
|
+
s.files = `git ls-files`.split("\n")
|
36
|
+
s.test_files = `git ls-files -- test/*`.split("\n")
|
37
|
+
|
38
|
+
s.require_paths = ["lib"]
|
39
|
+
end
|
data/tasks/updater.rb
ADDED
@@ -0,0 +1,75 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
require 'open-uri'
|
4
|
+
require 'json'
|
5
|
+
require 'strscan'
|
6
|
+
require 'forwardable'
|
7
|
+
require 'term/ansicolor'
|
8
|
+
require 'fileutils'
|
9
|
+
|
10
|
+
require_relative 'updater/scss'
|
11
|
+
require_relative 'updater/js'
|
12
|
+
require_relative 'updater/fonts'
|
13
|
+
require_relative 'updater/images'
|
14
|
+
require_relative 'updater/logger'
|
15
|
+
require_relative 'updater/network'
|
16
|
+
|
17
|
+
class Updater
|
18
|
+
extend Forwardable
|
19
|
+
include Network
|
20
|
+
include Js
|
21
|
+
include Scss
|
22
|
+
include Fonts
|
23
|
+
include Images
|
24
|
+
|
25
|
+
def initialize(repo: 'tabler/tabler', branch: 'master', save_to: {}, cache_path: 'tmp/tabler-cache')
|
26
|
+
@logger = Logger.new
|
27
|
+
@repo = repo
|
28
|
+
@branch = branch || 'master'
|
29
|
+
@branch_sha = get_branch_sha
|
30
|
+
@cache_path = cache_path
|
31
|
+
@repo_url = "https://github.com/#@repo"
|
32
|
+
@save_to = {
|
33
|
+
js: 'assets/javascripts/tabler',
|
34
|
+
scss: 'assets/stylesheets',
|
35
|
+
fonts: 'assets/fonts',
|
36
|
+
images: 'assets/images'}.merge(save_to)
|
37
|
+
end
|
38
|
+
|
39
|
+
def_delegators :@logger, :log, :log_status, :log_processing, :log_transform, :log_file_info, :log_processed, :log_http_get_file, :log_http_get_files, :silence_log
|
40
|
+
|
41
|
+
def update_bootstrap
|
42
|
+
log_status 'Updating Tabler'
|
43
|
+
puts " repo : #@repo_url"
|
44
|
+
puts " branch : #@branch_sha #@repo_url/tree/#@branch"
|
45
|
+
puts " save to: #{@save_to.to_json}"
|
46
|
+
puts " twbs cache: #{@cache_path}"
|
47
|
+
puts '-' * 60
|
48
|
+
|
49
|
+
FileUtils.rm_rf('assets')
|
50
|
+
@save_to.each { |_, v| FileUtils.mkdir_p(v) }
|
51
|
+
|
52
|
+
update_scss_assets
|
53
|
+
update_font_assets
|
54
|
+
update_image_assets
|
55
|
+
update_javascript_assets
|
56
|
+
store_version
|
57
|
+
end
|
58
|
+
|
59
|
+
def save_file(path, content, mode='w')
|
60
|
+
dir = File.dirname(path)
|
61
|
+
FileUtils.mkdir_p(dir) unless File.directory?(dir)
|
62
|
+
File.open(path, mode) { |file| file.write(content) }
|
63
|
+
end
|
64
|
+
|
65
|
+
def upstream_version
|
66
|
+
@upstream_version ||= get_json(file_url 'package.json')['version']
|
67
|
+
end
|
68
|
+
|
69
|
+
# Update version.rb file with BOOTSTRAP_SHA
|
70
|
+
def store_version
|
71
|
+
path = 'lib/tabler/rubygem/version.rb'
|
72
|
+
content = File.read(path).sub(/TABLER_SHA\s*=\s*['"][^'"]*['"]/, "TABLER_SHA = '#@branch_sha'")
|
73
|
+
File.open(path, 'w') { |f| f.write(content) }
|
74
|
+
end
|
75
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
class Updater
|
2
|
+
module Fonts
|
3
|
+
def update_font_assets
|
4
|
+
log_status 'Updating fonts...'
|
5
|
+
save_to = @save_to[:fonts]
|
6
|
+
contents = {}
|
7
|
+
tabler_font_files = get_paths_by_type('src/assets/fonts', /\.(?:eot|svg|ttf|woff)$/)
|
8
|
+
read_files('src/assets/fonts', tabler_font_files).each do |name, file|
|
9
|
+
contents[name] = file
|
10
|
+
save_file("#{save_to}/#{name}", file)
|
11
|
+
end
|
12
|
+
log_processed "#{tabler_font_files * ' '}"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
class Updater
|
2
|
+
module Images
|
3
|
+
def update_image_assets
|
4
|
+
log_status 'Updating images...'
|
5
|
+
save_to = @save_to[:images]
|
6
|
+
contents = {}
|
7
|
+
tabler_image_files = get_paths_by_type('src/assets/images', /\.(?:svg|png|gif|jpg|jpeg)$/)
|
8
|
+
read_files('src/assets/images', tabler_image_files).each do |name, file|
|
9
|
+
contents[name] = file
|
10
|
+
save_file("#{save_to}/#{name}", file)
|
11
|
+
end
|
12
|
+
log_processed "#{tabler_image_files * ' '}"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|