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