From 1cb08350e630bc9edda1b31b027a3d314eda92f1 Mon Sep 17 00:00:00 2001 From: Prem Sichanugrist Date: Fri, 12 Oct 2012 13:24:16 -0400 Subject: [PATCH] Require Sass only when it's necessary This will fix the problem on using sass from the command line in the environment that `sass` gem is not available. --- lib/bourbon/sass_extensions.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/bourbon/sass_extensions.rb b/lib/bourbon/sass_extensions.rb index ad567200e..da9034c69 100644 --- a/lib/bourbon/sass_extensions.rb +++ b/lib/bourbon/sass_extensions.rb @@ -1,6 +1,8 @@ module Bourbon::SassExtensions end -require "sass" +unless defined?(Sass) + require 'sass' +end -require File.join(File.dirname(__FILE__), "/sass_extensions/functions") +require File.join(File.dirname(__FILE__), '/sass_extensions/functions')