lib/modular.rb in modular-grid-0.0.12 vs lib/modular.rb in modular-grid-0.0.13
- old
+ new
@@ -1,7 +1,11 @@
-require "modular/version"
+# CodeKit needs relative paths
+dir = File.dirname(__FILE__)
+$LOAD_PATH.unshift dir unless $LOAD_PATH.include?(dir)
+require "modular/generator"
+
unless defined?(Sass)
require 'sass'
end
module Modular
@@ -15,8 +19,9 @@
rake_tasks do
load "tasks/install.rake"
end
end
else
- Sass.load_paths << File.expand_path("../../app/assets/stylesheets", __FILE__)
+ modular_path = File.expand_path("../../app/assets/stylesheets", __FILE__)
+ ENV["SASS_PATH"] = [ENV["SASS_PATH"], modular_path].compact.join(File::PATH_SEPARATOR)
end
end