jasmine-headless-webkit/lib/jasmine/headless/coffee_script_cache.rb
2011-09-01 10:39:29 -04:00

21 lines
330 B
Ruby

require 'coffee_script'
require 'digest/sha1'
require 'fileutils'
module Jasmine
module Headless
class CoffeeScriptCache < CacheableAction
class << self
def cache_type
"coffee_script"
end
end
def action
CoffeeScript.compile(File.read(file))
end
end
end
end