jasmine-headless-webkit/lib/jasmine/headless/ember_script_cache.rb

21 lines
326 B
Ruby
Raw Normal View History

2013-04-22 07:14:46 +00:00
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