Sha256: 5b7129bb9c7919d321c83fb85ab0426e07c5832f753e024fc467ef15145d12a3
Contents?: true
Size: 1.2 KB
Versions: 1
Compression:
Stored size: 1.2 KB
Contents
dir = File.dirname(__FILE__) $LOAD_PATH.unshift dir unless $LOAD_PATH.include?(dir) require "ustyle/version" require "ustyle/utils" require "ustyle/hash" require "ustyle/middleware/icon_middleware" module Reustyle class << self def load! require "ustyle/sass_functions" require "ustyle/icons" require "ustyle/helpers/icon_helper" if rails? require "ustyle/engine" elsif sprockets? require "ustyle/sprockets" require "ustyle/sinatra" end ::Sass.load_paths << File.join(assets_path, "stylesheets") end def sprockets? defined?(::Sprockets) end def rails? defined?(::Rails) end def gem_path @gem_path ||= File.expand_path "..", File.dirname(__FILE__) end def assets_path @assets_path ||= File.join gem_path, "vendor", "assets" end def asset_directories %w(stylesheets javascripts images fonts) end def sprockets_env @sprockets_env ||= ::Sprockets::Environment.new end def autoprefixer_config file = File.join Reustyle.gem_path, 'config/autoprefixer.yml' params = YAML.load_file(file).symbolize_keys params end end end Reustyle.load!
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
reustyle-2.0.10 | lib/ustyle.rb |