From 31370e20d82307c4d1f6b9162bf9629d46e181c7 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Tue, 2 Dec 2008 15:48:22 -0800 Subject: [PATCH] Fixed the --imports command-line option so that it generates useful output for being passed to sass. E.g.: sass `compass --imports` some_file.sass --- compass.gemspec | 2 +- lib/compass/exec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compass.gemspec b/compass.gemspec index 1cb3d9c1..1e5feafb 100644 --- a/compass.gemspec +++ b/compass.gemspec @@ -4,7 +4,7 @@ Gem::Specification.new do |s| s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version= s.authors = ["Chris Eppstein"] - s.date = %q{2008-12-01} + s.date = %q{2008-12-02} s.default_executable = %q{compass} s.description = %q{Sass-Based CSS Meta-Framework. Semantic, Maintainable CSS.} s.email = %q{chris@eppsteins.net} diff --git a/lib/compass/exec.rb b/lib/compass/exec.rb index 3ef1fedf..62d4a4cc 100644 --- a/lib/compass/exec.rb +++ b/lib/compass/exec.rb @@ -130,7 +130,7 @@ END opts.on('--imports', :NONE, 'Emit an import path suitable for use with the Sass command-line tool.') do #XXX cross platform support? - print ::Compass::Frameworks::ALL.map{|f| f.stylesheets_directory}.join(File::PATH_SEPARATOR) + print ::Compass::Frameworks::ALL.map{|f| "-I #{f.stylesheets_directory}"}.join(' ') exit end