lib/barista/compiler.rb in barista-0.1.2 vs lib/barista/compiler.rb in barista-0.1.3

- old
+ new

@@ -30,15 +30,17 @@ end protected def coffee_options - "-p" + ["-p"].tap do |options| + options << "--no-wrap" if Barista.no_wrap? + end.join(" ") end - def temp_file_for_content + def temp_file_for_content(content = @content) tf = Tempfile.new("barista-#{content_hash}.coffee") - tf.write @content + tf.write content tf.close tf end def invoke_coffee(path) \ No newline at end of file