Sha256: 28a79b47126d90443177ab7c1ab1e3ea552b813bcc495d493c2122e87988bc7d
Contents?: true
Size: 577 Bytes
Versions: 10
Compression:
Stored size: 577 Bytes
Contents
# frozen_string_literal: true 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/', }.freeze 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
10 entries across 10 versions & 1 rubygems