From e957da4ec8375b2eb260a6b81db7f0e9b2c30eed Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Thu, 31 Dec 2009 11:09:47 -0800 Subject: [PATCH] Grid image generation: Fix a double output issue, let write_file handle dry runs, and make sure to open the file for binary output. --- lib/compass/grid_builder.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/compass/grid_builder.rb b/lib/compass/grid_builder.rb index fd6fd4db..38edabef 100644 --- a/lib/compass/grid_builder.rb +++ b/lib/compass/grid_builder.rb @@ -93,12 +93,7 @@ module Compass end end directory File.dirname(filename) - logger.record((overwrite ? :overwrite : :create), basename(filename)) - unless options[:dry_run] - write_file(filename, self.to_blob) - else - true - end + write_file(filename, self.to_blob, options, true) end end end