lib/sammy.rb in sammy-0.0.12 vs lib/sammy.rb in sammy-0.5.0

- old
+ new

@@ -1,9 +1,27 @@ -require 'compass' -Compass::Frameworks.register("sammy", :path => "#{File.dirname(__FILE__)}/..") - -module Sammy - - VERSION = "0.0.12" - DATE = "2013-12-04" - -end \ No newline at end of file +# CodeKit needs relative paths +dir = File.dirname(__FILE__) +$LOAD_PATH.unshift dir unless $LOAD_PATH.include?(dir) + +require "sammy/generator" + +unless defined?(Sass) + require 'sass' +end + +module Sammy + if defined?(Rails) && defined?(Rails::Engine) + class Engine < ::Rails::Engine + require 'sammy/engine' + end + + module Rails + class Railtie < ::Rails::Railtie + rake_tasks do + load "tasks/install.rake" + end + end + end + else + Sass.load_paths << File.expand_path("../../app/assets/stylesheets", __FILE__) + end +end