From 18d248732172f477171c48466df47fc3cfe36d6b Mon Sep 17 00:00:00 2001 From: Qoyyim Date: Tue, 2 Nov 2010 21:08:51 -0700 Subject: [PATCH] fix jsmin command doesnt allow directory name with space --- lib/synthesis/asset_package.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/synthesis/asset_package.rb b/lib/synthesis/asset_package.rb index 99c9f7a..fbb6e69 100644 --- a/lib/synthesis/asset_package.rb +++ b/lib/synthesis/asset_package.rb @@ -160,7 +160,7 @@ def compress_js(source) File.open("#{tmp_path}_uncompressed.js", "w") {|f| f.write(source) } # compress file with JSMin library - `ruby #{jsmin_path}/jsmin.rb <#{tmp_path}_uncompressed.js >#{tmp_path}_compressed.js \n` + `ruby "#{jsmin_path}/jsmin.rb" <"#{tmp_path}_uncompressed.js" >"#{tmp_path}_compressed.js" \n` # read it back in and trim it result = ""