Sha256: b00c7cc11c7527a26098a513379023daa0e9effe9db25091f842b3a6085c395f
Contents?: true
Size: 933 Bytes
Versions: 2
Compression:
Stored size: 933 Bytes
Contents
# CodeKit needs relative paths dir = File.dirname(__FILE__) $LOAD_PATH.unshift dir unless $LOAD_PATH.include?(dir) require "oulu/generator" require "oulu/version" require 'oulu' begin require 'sassc' Sass = ::SassC rescue LoadError => err begin require 'sass' Sass = ::Sass rescue LoadError raise err end end module Oulu @components ||= [] class << self attr_accessor :components def load_paths components.flat_map(&:load_paths) end end if defined?(Rails) && defined?(Rails::Engine) class Engine < ::Rails::Engine require 'oulu/engine' end module Rails class Railtie < ::Rails::Railtie rake_tasks do load "tasks/install.rake" end end end else oulu_path = File.expand_path("../../app/assets/stylesheets", __FILE__) ENV["SASS_PATH"] = [ENV["SASS_PATH"], oulu_path].compact.join(File::PATH_SEPARATOR) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
oulu-0.19.0 | lib/oulu.rb |
oulu-0.18.5 | lib/oulu.rb |