From 553f0e0d2d83949955adff627ee5c7a49b085a68 Mon Sep 17 00:00:00 2001 From: Nathan Weizenbaum Date: Fri, 18 May 2012 15:19:01 -0700 Subject: [PATCH] Fix a constant-resolution error. Closes #388 --- doc-src/SASS_CHANGELOG.md | 5 +++++ lib/sass/exec.rb | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/doc-src/SASS_CHANGELOG.md b/doc-src/SASS_CHANGELOG.md index 56589d8d69..1749d67db6 100644 --- a/doc-src/SASS_CHANGELOG.md +++ b/doc-src/SASS_CHANGELOG.md @@ -3,6 +3,11 @@ * Table of contents {:toc} +## 3.1.19 (Unreleased) + +* Fix an `uninitialized constant Sass::Exec::Sass::Util` error when using the + command-line tool. + ## 3.1.18 * Ruby 2.0 compatibility. Thanks to [Jeremy diff --git a/lib/sass/exec.rb b/lib/sass/exec.rb index 184e95becb..b8177d6f36 100644 --- a/lib/sass/exec.rb +++ b/lib/sass/exec.rb @@ -452,7 +452,7 @@ def split_colon_path(path) def probably_dest_dir?(path) return false unless path return false if colon_path?(path) - return Sass::Util.glob(File.join(path, "*.s[ca]ss")).empty? + return ::Sass::Util.glob(File.join(path, "*.s[ca]ss")).empty? end end @@ -584,7 +584,7 @@ def process_directory end ext = @options[:from] - Sass::Util.glob("#{@options[:input]}/**/*.#{ext}") do |f| + ::Sass::Util.glob("#{@options[:input]}/**/*.#{ext}") do |f| output = if @options[:in_place] f