barista 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/barista.gemspec +1 -1
- data/lib/barista.rb +1 -0
- data/lib/barista/version.rb +1 -1
- metadata +2 -2
data/barista.gemspec
CHANGED
data/lib/barista.rb
CHANGED
@@ -38,6 +38,7 @@ module Barista
|
|
38
38
|
destination_path = file.gsub(/\.(coffee|js)\Z/, '').gsub(root.to_s, output_root.to_s) + ".js"
|
39
39
|
return unless force || should_compile_file?(file, destination_path)
|
40
40
|
Rails.logger.debug "[Barista] Compiling #{file} to #{destination_path}"
|
41
|
+
FileUtils.mkdir_p File.dirname(destination_path)
|
41
42
|
File.open(destination_path, "w+") do |f|
|
42
43
|
f.write Compiler.compile(File.read(file))
|
43
44
|
end
|
data/lib/barista/version.rb
CHANGED