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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c92b5d0bfb0ba966968794fd7d3bf5b0f84cd502
4
- data.tar.gz: 4575d8bbab39c0433983eb9e63d0032b2ec19123
3
+ metadata.gz: f1898992c5889a043423dc786d78b7b74fd7e7bb
4
+ data.tar.gz: 2d6c64cf12ef5e33b30115942deb5de20418cd53
5
5
  SHA512:
6
- metadata.gz: fe5de6f7fe1ab86506d0aa9d6739b51b4d2b88d14acc76a0b0b18cd43689cfdde391f61b80bb0ca8502ec7f896476e8f98667b4e0ae98f35449b1ad9ce9ea8d9
7
- data.tar.gz: 4f076200f14b07ba40adbf1563843cb58aff072c8a793f667e6076d826fba0498b7fa5607dd0f46bdaef79b70874e21f3d4b8f7d6aebb0889800a33e7a6f8b4a
6
+ metadata.gz: 7a1e4fc6b7739648f345d00df55e28aabdeb5e50ec249dc281e9463d89d37acf53cea912b180655c1c2fab3b97ca75cae4a56421e1abe6ce062895875e318f08
7
+ data.tar.gz: ff509308ebc1c6795f832023bce01dccad6c53f0b1f2aa3667b1fde618bda875cfb29020d84171dfb501f4e86273eb60421da5b5bc22a429be28913908a9b827
data/.gitignore CHANGED
@@ -2,3 +2,6 @@ Gemfile.lock
2
2
  pkg
3
3
  .DS_Store
4
4
  coverage
5
+ .bundle
6
+ bundle
7
+ tmp
@@ -27,7 +27,7 @@ module Guard
27
27
  reactor.stop
28
28
  end
29
29
 
30
- def run_on_changes(paths)
30
+ def run_on_modifications(paths)
31
31
  sleep options[:grace_period]
32
32
  reactor.reload_browser(paths)
33
33
  end
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module LiveReloadVersion
3
- VERSION = "2.0.1"
3
+ VERSION = "2.1.0"
4
4
  end
5
5
  end
@@ -100,17 +100,17 @@ describe Guard::LiveReload do
100
100
  end
101
101
  end
102
102
 
103
- describe "#run_on_changes" do
103
+ describe "#run_on_modifications" do
104
104
  it "reloads browser" do
105
105
  expect(reactor).to receive(:reload_browser).with(['foo'])
106
- plugin.run_on_changes(['foo'])
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.run_on_changes(['foo'])
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.1
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-26 00:00:00.000000000 Z
11
+ date: 2013-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: guard