Sha256: dd992df201a3040bcb3542249e5e87ce2930c70f45173873e429af62b0678419
Contents?: true
Size: 938 Bytes
Versions: 2
Compression:
Stored size: 938 Bytes
Contents
require 'octicons' module Precious module Assets MANIFEST = %w(app.js editor.js app.css criticmarkup.css fileview.css ie7.css print.css *.png *.jpg *.svg *.eot *.ttf) ASSET_URL = 'gollum/assets' def self.sprockets(dir = File.dirname(File.expand_path(__FILE__))) env = Sprockets::Environment.new env.append_path ::File.join(dir, 'public/gollum/stylesheets/') env.append_path ::File.join(dir, 'public/gollum/javascript') env.append_path ::File.join(dir, 'public/gollum/images') env.append_path ::File.join(dir, 'public/gollum/fonts') env.js_compressor = :uglify env.css_compressor = :scss env.context_class.class_eval do def base_url self.class.class_variable_get(:@@base_url) end include ::Octicons include ::Precious::Views::RouteHelpers include ::Precious::Views::OcticonHelpers end env end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gollum-5.0.1 | lib/gollum/assets.rb |
gollum-5.0.0 | lib/gollum/assets.rb |