Sha256: 20ca3f8d0f377d7b4b21b2966b56ccf9d24769fb53ca62336eb8f23d3162147c
Contents?: true
Size: 1012 Bytes
Versions: 2
Compression:
Stored size: 1012 Bytes
Contents
require "styler/version" require "styler/generator" dir = File.dirname(__FILE__) $LOAD_PATH.unshift dir unless $LOAD_PATH.include?(dir) unless defined?(Sass) require 'sass' end module Styler if defined?(Rails) && defined?(Rails::Engine) class Engine < ::Rails::Engine require 'styler/engine' end module Rails class Railtie < ::Rails::Railtie rake_tasks do load "tasks/install.rake" end end end else bourbon_path = File.expand_path("../../app/assets/stylesheets", __FILE__) ENV["SASS_PATH"] = [ENV["SASS_PATH"], bourbon_path].compact.join(File::PATH_SEPARATOR) end def gem_path @gem_path ||= File.expand_path '..', File.dirname(__FILE__) end def stylesheets_path File.join assets_path, 'stylesheets' end def fonts_path File.join assets_path, 'fonts' end def javascripts_path File.join assets_path, 'javascripts' end def assets_path @assets_path ||= File.join gem_path, 'assets' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
styler-sass-0.1.2 | lib/styler.rb |
styler-sass-0.1.1 | lib/styler.rb |