ok, there's a little bit that can be cached
This commit is contained in:
parent
d0afb329f1
commit
2672550bbd
@ -40,6 +40,8 @@ module Jasmine
|
|||||||
coffeescript_run = []
|
coffeescript_run = []
|
||||||
|
|
||||||
files.collect { |file|
|
files.collect { |file|
|
||||||
|
next @code_for_file[file] if @code_for_file[file]
|
||||||
|
|
||||||
coffeescript_run << file if (ext = File.extname(file)) == '.coffee'
|
coffeescript_run << file if (ext = File.extname(file)) == '.coffee'
|
||||||
|
|
||||||
output = []
|
output = []
|
||||||
@ -56,6 +58,8 @@ module Jasmine
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@code_for_file[file] = output if output.length == 1
|
||||||
|
|
||||||
output
|
output
|
||||||
}.flatten.reject(&:empty?)
|
}.flatten.reject(&:empty?)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user