Sha256: 41772c31a1f603a479a0e07a71dff651ebd17890aa5fd07f63ce85e4203736c1

Contents?: true

Size: 626 Bytes

Versions: 2

Compression:

Stored size: 626 Bytes

Contents

dir = File.dirname(__FILE__)
$LOAD_PATH.unshift dir unless $LOAD_PATH.include?(dir)

require "styler/generator"


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


end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
styler-sass-0.1.4 lib/styler.rb
styler-sass-0.1.3 lib/styler.rb