Sha256: e41d52eaec30573d68981b69d5dbed1a8b08eab6847f8d49e4d2a1f494bd223d
Contents?: true
Size: 733 Bytes
Versions: 1
Compression:
Stored size: 733 Bytes
Contents
require 'guard' require 'guard/guard' require 'guard/jasmine-headless-webkit/runner' module Guard class JasmineHeadlessWebkit < Guard def initialize(watchers = [], options = {}) super @options = { :all_on_start => true }.merge(options) end def start UI.info "Guard::JasmineHeadlessWebkit is running." run_all if @options[:all_on_start] end def run_all JasmineHeadlessWebkitRunner.run end def run_on_change(paths) run_all if JasmineHeadlessWebkitRunner.run(paths) != 1 end end class Dsl def newest_js_file(path) Dir[path + '*.{js,coffee}'].sort { |left, right| File.mtime(right) <=> File.mtime(left) }.first end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
guard-jasmine-headless-webkit-0.0.1 | lib/guard/jasmine-headless-webkit.rb |