ok, there's a little bit that can be cached

This commit is contained in:
John Bintz 2011-06-10 14:29:16 -04:00
parent d0afb329f1
commit 2672550bbd

View File

@ -40,6 +40,8 @@ module Jasmine
coffeescript_run = []
files.collect { |file|
next @code_for_file[file] if @code_for_file[file]
coffeescript_run << file if (ext = File.extname(file)) == '.coffee'
output = []
@ -56,6 +58,8 @@ module Jasmine
end
end
@code_for_file[file] = output if output.length == 1
output
}.flatten.reject(&:empty?)
end