filewatcher 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +1 -1
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/lib/filewatcher.rb +8 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c559395f1c1457f19ee303e83605956596ebac4
|
4
|
+
data.tar.gz: 24e7685882c3861de55f9bfc17db9befdb545d14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac444120cc0219f01225a064476c8a6af0a15fccb55cc3e50f632befe545550ba70048e1419257e20bfdf32805ffb11bbfbc4a2ae9b993398b152ff7e9a4ea1d
|
7
|
+
data.tar.gz: 2212e58fcb3605ac6ea7b3103823ea7593abc94f6344a6208cce9aa58039017a755e3845dde5e8fd1a4c033a0a21d696dec6d69b4b7e682fe9b26e26b2d6b357
|
data/README.rdoc
CHANGED
data/Rakefile
CHANGED
@@ -6,7 +6,7 @@ begin
|
|
6
6
|
Jeweler::Tasks.new do |gem|
|
7
7
|
gem.name = "filewatcher"
|
8
8
|
gem.summary = %Q{Simple filewatcher.}
|
9
|
-
gem.description = %Q{Detect changes in
|
9
|
+
gem.description = %Q{Detect changes in filesystem.}
|
10
10
|
gem.email = "thomas.flemming@gmail.com"
|
11
11
|
gem.homepage = "http://github.com/thomasfl/filewatcher"
|
12
12
|
gem.executables = ["filewatcher"]
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.2
|
data/lib/filewatcher.rb
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
class FileWatcher
|
5
5
|
|
6
6
|
def self.VERSION
|
7
|
-
return "0.3.
|
7
|
+
return "0.3.2"
|
8
8
|
end
|
9
9
|
|
10
10
|
def initialize(unexpanded_filenames, print_filelist=false)
|
@@ -53,6 +53,13 @@ class FileWatcher
|
|
53
53
|
end
|
54
54
|
|
55
55
|
@filenames.each do |filename|
|
56
|
+
if(not(File.exists?(filename)))
|
57
|
+
@filenames.delete(filename)
|
58
|
+
@last_mtimes.delete(filename)
|
59
|
+
@updated_file = filename
|
60
|
+
@event = :delete
|
61
|
+
return true
|
62
|
+
end
|
56
63
|
mtime = File.stat(filename).mtime
|
57
64
|
updated = @last_mtimes[filename] < mtime
|
58
65
|
@last_mtimes[filename] = mtime
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: filewatcher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Flemming
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thoughtbot-shoulda
|
@@ -38,7 +38,7 @@ dependencies:
|
|
38
38
|
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 1.16.2
|
41
|
-
description: Detect changes in
|
41
|
+
description: Detect changes in filesystem.
|
42
42
|
email: thomas.flemming@gmail.com
|
43
43
|
executables:
|
44
44
|
- filewatcher
|