Skip to content

Commit

Permalink
Handle pathnames being assigned to the working path of a command.
Browse files Browse the repository at this point in the history
Closes GH-434.
  • Loading branch information
chriseppstein committed Jun 19, 2011
1 parent 82d739f commit 852f033
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/compass/commands/base.rb
Expand Up @@ -10,7 +10,7 @@ def self.register(command_name)
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

Expand Down
2 changes: 1 addition & 1 deletion lib/compass/compiler.rb
Expand Up @@ -6,7 +6,7 @@ class Compiler
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) || {}
Expand Down

2 comments on commit 852f033

@fbjork
Copy link

@fbjork fbjork commented on 852f033 Jun 20, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this. Would love to see a point release that includes this soon!

@rossfoley
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix! I tried this locally and it fixed my problem with the PathName error.

Please sign in to comment.