lib/barista.rb in barista-0.1.3 vs lib/barista.rb in barista-0.1.4

- old
+ new

@@ -36,9 +36,10 @@ file = file.to_s file = root.join(file).to_s unless file.include?(root.to_s) destination_path = file.gsub(/\.(coffee|js)\Z/, '').gsub(root.to_s, output_root.to_s) + ".js" return unless force || should_compile_file?(file, destination_path) Rails.logger.debug "[Barista] Compiling #{file} to #{destination_path}" + FileUtils.mkdir_p File.dirname(destination_path) File.open(destination_path, "w+") do |f| f.write Compiler.compile(File.read(file)) end true rescue SystemCallError \ No newline at end of file