Sha256: 7129b62232fbfa8ef7c8727ff9ade9b4857b59055dc197d720cd01aed8865dc1
Contents?: true
Size: 555 Bytes
Versions: 22
Compression:
Stored size: 555 Bytes
Contents
module Epuber module ThirdParty class Bower class << self JS_COMPONENTS = { jquery: 'jquery/dist/', cookies: 'cookies-js/dist/', uri: 'uri.js/src/', spin: 'spin.js/', keymaster: 'keymaster/', } def path_to_js(component) path = JS_COMPONENTS[component] raise "Not found component #{component}" if path.nil? File.expand_path("bower/bower_components/#{path}", File.dirname(__FILE__)) end end end end end
Version data entries
22 entries across 22 versions & 1 rubygems