lib/guard/livereload.rb in guard-livereload-0.1.6 vs lib/guard/livereload.rb in guard-livereload-0.1.7
- old
+ new
@@ -1,39 +1,39 @@
require 'guard'
require 'guard/guard'
module Guard
class LiveReload < Guard
-
+
autoload :Reactor, 'guard/livereload/reactor'
-
+
attr_accessor :reactor
-
+
# =================
# = Guard methods =
# =================
-
+
def initialize(watchers = [], options = {})
super
@options = {
- :api_version => '1.4',
+ :api_version => '1.5',
:host => '0.0.0.0',
:port => '35729',
:apply_js_live => true,
:apply_css_live => true
}.update(options)
end
-
+
def start
@reactor = Reactor.new(@options)
end
-
+
def stop
reactor.stop
end
-
+
def run_on_change(paths)
reactor.reload_browser(paths)
end
-
+
end
-end
\ No newline at end of file
+end