guard-livereload 2.0.1 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/lib/guard/livereload.rb +1 -1
- data/lib/guard/livereload/version.rb +1 -1
- data/spec/lib/guard/livereload_spec.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1898992c5889a043423dc786d78b7b74fd7e7bb
|
4
|
+
data.tar.gz: 2d6c64cf12ef5e33b30115942deb5de20418cd53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a1e4fc6b7739648f345d00df55e28aabdeb5e50ec249dc281e9463d89d37acf53cea912b180655c1c2fab3b97ca75cae4a56421e1abe6ce062895875e318f08
|
7
|
+
data.tar.gz: ff509308ebc1c6795f832023bce01dccad6c53f0b1f2aa3667b1fde618bda875cfb29020d84171dfb501f4e86273eb60421da5b5bc22a429be28913908a9b827
|
data/.gitignore
CHANGED
data/lib/guard/livereload.rb
CHANGED
@@ -100,17 +100,17 @@ describe Guard::LiveReload do
|
|
100
100
|
end
|
101
101
|
end
|
102
102
|
|
103
|
-
describe "#
|
103
|
+
describe "#run_on_modifications" do
|
104
104
|
it "reloads browser" do
|
105
105
|
expect(reactor).to receive(:reload_browser).with(['foo'])
|
106
|
-
plugin.
|
106
|
+
plugin.run_on_modifications(['foo'])
|
107
107
|
end
|
108
108
|
|
109
109
|
it "can wait 0.5 seconds before reloading the browser" do
|
110
110
|
expect(reactor).to receive(:reload_browser).with(['foo'])
|
111
111
|
expect(plugin).to receive(:sleep).with(0.5)
|
112
112
|
plugin.options[:grace_period] = 0.5
|
113
|
-
plugin.
|
113
|
+
plugin.run_on_modifications(['foo'])
|
114
114
|
end
|
115
115
|
end
|
116
116
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-livereload
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thibaud Guillaume-Gentil
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-12-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: guard
|