From 852f03316008afe1ccb2106d602a4288c27cc738 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Sun, 19 Jun 2011 12:54:11 -0700 Subject: [PATCH] Handle pathnames being assigned to the working path of a command. Closes GH-434. --- lib/compass/commands/base.rb | 2 +- lib/compass/compiler.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/compass/commands/base.rb b/lib/compass/commands/base.rb index 91a0850f..046fedb6 100644 --- a/lib/compass/commands/base.rb +++ b/lib/compass/commands/base.rb @@ -10,7 +10,7 @@ module Compass attr_accessor :working_path, :options def initialize(working_path, options) - self.working_path = working_path + self.working_path = working_path.to_s self.options = options end diff --git a/lib/compass/compiler.rb b/lib/compass/compiler.rb index fe00ef66..a10aee99 100644 --- a/lib/compass/compiler.rb +++ b/lib/compass/compiler.rb @@ -6,7 +6,7 @@ module Compass attr_accessor :working_path, :from, :to, :options, :sass_options, :staleness_checker, :importer def initialize(working_path, from, to, options) - self.working_path = working_path + self.working_path = working_path.to_s self.from, self.to = from.gsub('./', ''), to self.logger = options.delete(:logger) sass_opts = options.delete(:sass) || {}