em-filewatcher 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/em-filewatcher.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ad7744cea20546a0a5265c908a99cfb52efab781
4
- data.tar.gz: 686aa6753667415c1de59109de363027b599e7d7
3
+ metadata.gz: bbcbc3c9ca1aa68e123b48ce78b68b72ca15ad62
4
+ data.tar.gz: eeaaf4690a3a94aa9ddbc34050f215932a107237
5
5
  SHA512:
6
- metadata.gz: 851b7f28f4d90dd3fdfb41d1dd3efa5a2f8ca87e79aef8126103d7a83cf9ae0d0b07e3d5a7958d0f13924e2f7397b2fa7ea34b29ad927d0528591e40014bf2e4
7
- data.tar.gz: 3f19ed42ba92e5c5f23b74664c1632868a3489788647687be032b3ff60315402e1521999d1e80d5af0f147bc8a35549dda4fe54d69a2e1264ae59857e420f182
6
+ metadata.gz: 780c8c2ee9b1967725cee97aefa43c45be0242e5c50283795770a9fb7a9bcfc35e112bac4be5821c6bb81e6a919092181bbc6ceae80f326c020b6ee2a32a2912
7
+ data.tar.gz: 95c8c8fa2085a1ec356235c3287080a8f05f53de5b4c61b80aa1f93c5b0e2a81b562cc982b150c7aa5c6855485ec4d4799896142b6f07f038a1f275ce69e99d2
@@ -11,8 +11,8 @@ module EM
11
11
  @filewatcher = ::FileWatcher.new([path])
12
12
 
13
13
  t = Thread.new(@filewatcher) do |fw|
14
- fw.watch do |path|
15
- EM::next_tick {callback.call(path)}
14
+ fw.watch do |path, event|
15
+ EM::next_tick {callback.call(path, event)}
16
16
  end
17
17
  end
18
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: em-filewatcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - pjc0247