guard-livereload 0.1.10 → 0.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -39,7 +39,7 @@ Please read {Guard doc}[http://github.com/guard/guard#readme] for more info abou
39
39
 
40
40
  == Options
41
41
 
42
- LiveReload guard have 5 options that you can set like this:
42
+ LiveReload guard has 6 options that you can set like this:
43
43
 
44
44
  guard 'livereload', :api_version => '1.4', :port => '35728' do
45
45
  ...
@@ -52,6 +52,7 @@ Available options:
52
52
  :port => '12345' # default '35729'
53
53
  :apply_js_live => false # default true
54
54
  :apply_css_live => false # default true
55
+ :grace_period => 0.5 # default 0 (seconds)
55
56
 
56
57
  See {LiveReload configuration doc}[http://github.com/mockko/livereload#readme] for more info about those options.
57
58
 
@@ -19,7 +19,8 @@ module Guard
19
19
  :host => '0.0.0.0',
20
20
  :port => '35729',
21
21
  :apply_js_live => true,
22
- :apply_css_live => true
22
+ :apply_css_live => true,
23
+ :grace_period => 0
23
24
  }.update(options)
24
25
  end
25
26
 
@@ -32,6 +33,7 @@ module Guard
32
33
  end
33
34
 
34
35
  def run_on_change(paths)
36
+ sleep @options[:grace_period]
35
37
  reactor.reload_browser(paths)
36
38
  end
37
39
 
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module LiveReloadVersion
3
- VERSION = "0.1.10"
3
+ VERSION = "0.1.11"
4
4
  end
5
5
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: guard-livereload
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.10
5
+ version: 0.1.11
6
6
  platform: ruby
7
7
  authors:
8
8
  - Thibaud Guillaume-Gentil
@@ -10,8 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-04-17 00:00:00 +02:00
14
- default_executable:
13
+ date: 2011-05-07 00:00:00 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: guard
@@ -95,7 +94,6 @@ files:
95
94
  - lib/guard/livereload.rb
96
95
  - LICENSE
97
96
  - README.rdoc
98
- has_rdoc: true
99
97
  homepage: http://rubygems.org/gems/guard-livereload
100
98
  licenses: []
101
99
 
@@ -119,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
117
  requirements: []
120
118
 
121
119
  rubyforge_project: guard-livereload
122
- rubygems_version: 1.6.2
120
+ rubygems_version: 1.8.1
123
121
  signing_key:
124
122
  specification_version: 3
125
123
  summary: Guard gem for livereload