lib/epuber/third_party/bower.rb in epuber-0.7.4 vs lib/epuber/third_party/bower.rb in epuber-0.8.0

- old
+ new

@@ -3,15 +3,15 @@ module Epuber module ThirdParty class Bower class << self JS_COMPONENTS = { - jquery: 'jquery/dist/', - cookies: 'cookies-js/dist/', - uri: 'uri.js/src/', - spin: 'spin.js/', + 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?