jasmine-headless-webkit/lib/jasmine/headless/ember_script_cache.rb
2013-04-22 15:14:46 +08:00

21 lines
326 B
Ruby

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