lib/juicer/minifyer/yui_compressor.rb in juicer-1.1.2 vs lib/juicer/minifyer/yui_compressor.rb in juicer-1.2.0

- old
+ new

@@ -55,10 +55,10 @@ output ||= file use_tmp = !output.is_a?(String) output = File.join(Dir::tmpdir, File.basename(file) + '.min.tmp.' + type.to_s) if use_tmp FileUtils.mkdir_p(File.dirname(output)) - result = execute(%Q{-jar "#{locate_jar}"#{jar_args} -o "#{output}" "#{file}"}) + result = execute("-jar", "#{locate_jar}#{jar_args}", "-o", output, file) if use_tmp # If no output file is provided, YUI compressor will output.puts IO.read(output) # compress to a temp file. This file should be cleared File.delete(output) # out after we fetch its contents. end